.product-detail-page {
    padding: 40px 0;
    background: #fff;
}
.product-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}
.product-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}
.product-breadcrumb a:hover {
    color: #0d6efd;
}

/* Main Product Layout - Left/Right Split */
.product-detail-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Side - Product Gallery */
.product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-media {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-empty {
    font-size: 80px;
    color: #dee2e6;
}

.product-media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #212529;
    transition: all 0.2s;
    z-index: 10;
}

.product-media-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-media-prev {
    left: 16px;
}

.product-media-next {
    right: 16px;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.product-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.2s;
    padding: 0;
}

.product-thumb:hover {
    border-color: #dee2e6;
}

.product-thumb.active {
    border-color: #0d6efd;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-video {
    display: none;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-media-video.active {
    display: block;
}

.product-media-video video {
    width: 100%;
    height: 100%;
}

.product-media-video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.product-media-switch {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.product-media-switch-btn {
    flex: 1;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
}

.product-media-switch-btn:hover {
    background: #e9ecef;
}

.product-media-switch-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Right Side - Product Info */
.product-info {
    flex: 0 0 calc(50% - 40px);
    max-width: calc(50% - 40px);
}

.product-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 12px;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 16px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: #dc3545;
}

.product-price small {
    font-size: 24px;
}

.product-original {
    font-size: 20px;
    color: #6c757d;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #495057;
    margin-bottom: 20px;
}

.product-meta strong {
    color: #212529;
    font-weight: 600;
}

.product-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.product-specs h3 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.product-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.product-spec-row:last-child {
    border-bottom: none;
}

.product-spec-row b {
    color: #495057;
    font-weight: 500;
}

.product-spec-row span {
    color: #212529;
    font-weight: 600;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.qty-stepper {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.qty-step-btn {
    width: 36px;
    height: 38px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #495057;
    transition: background 0.2s;
}

.qty-step-btn:hover {
    background: #e9ecef;
}

.qty-step-input {
    width: 60px;
    height: 38px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.qty-step-input:focus {
    outline: none;
}

.product-benefits {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-benefits > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
    color: #495057;
}

.product-benefits i {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 8px;
}

/* Product Content Tabs */
.product-content {
    margin-top: 60px;
}

.product-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.product-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.product-tab:hover {
    color: #0d6efd;
}

.product-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
}

.product-panel h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.8;
    color: #495057;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.product-spec-table th,
.product-spec-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.product-spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 30%;
}

.product-spec-table td {
    color: #212529;
}

.product-video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-main {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        flex: 1;
        max-width: 100%;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .product-benefits {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .product-tab {
        white-space: nowrap;
    }
}
.review-summary {
    display: flex;
    gap: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}
.review-summary-main {
    text-align: center;
}
.review-avg-score {
    font-size: 48px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}
.review-stars {
    display: flex;
    gap: 4px;
    font-size: 20px;
    color: #ffc107;
    margin: 8px 0;
    justify-content: center;
}
.review-count {
    font-size: 14px;
    color: #6c757d;
}
.review-good-rate {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
    margin-top: 8px;
}
.review-distribution {
    flex: 1;
}
.review-dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-dist-label {
    width: 50px;
    font-size: 13px;
    color: #495057;
}
.review-dist-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.review-dist-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}
.review-dist-count {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: #6c757d;
}
.review-list {
    margin-bottom: 30px;
}
.review-item {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #212529;
}
.review-stars-sm {
    display: flex;
    gap: 2px;
    font-size: 14px;
    color: #ffc107;
}
.review-date {
    margin-left: auto;
    font-size: 13px;
    color: #6c757d;
}
.review-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.review-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    border: 1px solid #dee2e6;
}
.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-reply {
    background: #f8f9fa;
    border-left: 3px solid #0d6efd;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}
.review-reply-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
}
.review-reply-content {
    color: #6c757d;
    font-size: 14px;
}
.review-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}
.review-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}
.review-like-btn:hover {
    color: #dc3545;
}
.review-like-btn.active {
    color: #dc3545;
}
.review-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.review-empty i {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}
.review-pagination {
    text-align: center;
    margin: 20px 0;
}
.write-review-section {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}
.write-review-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.review-rating-input {
    display: flex;
    gap: 8px;
}
.rating-star {
    background: none;
    border: none;
    font-size: 32px;
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s;
}
.rating-star:hover, .rating-star.active {
    color: #ffc107;
}
.review-hint {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}
.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}
.related-products-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.related-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.related-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-product-image-empty {
    font-size: 48px;
    color: #dee2e6;
}
.related-product-name {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}
.related-product-price {
    padding: 0 12px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0d6efd;
}
.wishlist-btn {
    padding: 8px 16px;
}
.wishlist-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.wishlist-btn.active:hover {
    background: #bb2d3b;
    border-color: #b02a37;
}
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.wishlist-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.wishlist-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.wishlist-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishlist-card-image-empty {
    font-size: 64px;
    color: #dee2e6;
}
.wishlist-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.wishlist-card-body {
    padding: 16px;
}
.wishlist-card-name {
    font-weight: 600;
    margin-bottom: 8px;
}
.wishlist-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
}
.wishlist-card-original {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}
.wishlist-card-actions {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
}
