/* ========================================
   Splendid Group - Product Detail Page
   ======================================== */

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 120px 3rem 2rem;
    background-color: var(--black-primary);
}

.breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.breadcrumb-container a {
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: var(--gold-primary);
}

.breadcrumb-container .separator {
    color: var(--gray-dark);
}

.breadcrumb-container .current {
    color: var(--white);
    font-weight: 500;
}

/* ========================================
   Product Detail Section
   ======================================== */
.product-detail {
    padding: 3rem 0 6rem;
    background-color: var(--black-primary);
}

.product-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

/* ========================================
   Product Gallery
   ======================================== */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    margin-bottom: 1.5rem;
    background: var(--black-secondary);
    border: 1px solid rgba(191, 139, 53, 0.1);
    overflow: hidden;
}

.main-image-wrapper {
    position: relative;
    aspect-ratio: 1;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover .main-image {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gold-muted);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-primary);
}

.zoom-btn svg {
    width: 24px;
    height: 24px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    flex: 1;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    background: var(--black-secondary);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--gold-muted);
}

.thumbnail.active {
    border-color: var(--gold-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* ========================================
   Product Info
   ======================================== */
.product-info {
    padding-top: 1rem;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.product-title {
    font-family: 'Playfair Display', var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(191, 139, 53, 0.15);
}

.price-original {
    font-size: 1.1rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.price-current {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.price-discount {
    padding: 0.35rem 0.75rem;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars svg {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

.stars svg.half {
    opacity: 0.5;
}

.stars svg.empty {
    color: var(--gray-dark);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* Description */
.product-description {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

/* ========================================
   Product Options
   ======================================== */
.product-option {
    margin-bottom: 2rem;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
}

.option-selected {
    font-size: 0.85rem;
    color: var(--gold-primary);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.75rem;
}

.color-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    border-color: var(--gray-medium);
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--gold-primary);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Material Options */
.material-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.material-btn {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-btn:hover {
    border-color: var(--gold-muted);
    color: var(--white);
}

.material-btn.active {
    border-color: var(--gold-primary);
    background: rgba(191, 139, 53, 0.1);
    color: var(--gold-primary);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 1px solid var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.size-btn:hover {
    border-color: var(--gold-muted);
}

.size-btn.active {
    border-color: var(--gold-primary);
    background: rgba(191, 139, 53, 0.1);
}

.size-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.size-btn.active .size-name {
    color: var(--gold-primary);
}

.size-dim {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-medium);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.75rem;
}

.qty-btn {
    width: 50px;
    height: 50px;
    background: var(--black-secondary);
    border: 1px solid var(--gray-dark);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-primary);
}

.qty-input {
    width: 80px;
    height: 50px;
    background: var(--black-secondary);
    border: 1px solid var(--gray-dark);
    border-left: none;
    border-right: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.qty-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* ========================================
   Action Buttons
   ======================================== */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 1.25rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-cart {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-add-cart:hover {
    background: rgba(191, 139, 53, 0.1);
}

.btn-add-cart svg {
    width: 22px;
    height: 22px;
}

.btn-buy-now {
    background: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    color: var(--black-primary);
}

.btn-buy-now:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* ========================================
   Payment Methods
   ======================================== */
.payment-methods {
    padding: 1.5rem;
    background: var(--black-secondary);
    border: 1px solid rgba(191, 139, 53, 0.1);
    margin-bottom: 2rem;
}

.payment-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
}

.payment-icon:hover {
    border-color: var(--gold-muted);
    background: rgba(191, 139, 53, 0.05);
}

.payment-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-light);
}

.payment-icon span {
    font-size: 0.7rem;
    color: var(--gray-medium);
    white-space: nowrap;
}

/* ========================================
   Product Features
   ======================================== */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--black-secondary);
    border-left: 2px solid var(--gold-primary);
}

.feature svg {
    width: 24px;
    height: 24px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.feature span {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* ========================================
   Product Tabs Section
   ======================================== */
.product-tabs-section {
    padding: 6rem 0;
    background: var(--black-secondary);
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(191, 139, 53, 0.2);
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--white);
}

.tab-btn.active {
    color: var(--gold-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Description Tab */
.description-content h3 {
    font-family: 'Playfair Display', var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.description-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin: 2rem 0 1rem;
}

.description-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.description-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.description-images img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid rgba(191, 139, 53, 0.1);
}

/* Specifications Tab */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.spec-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(191, 139, 53, 0.2);
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--gray-medium);
}

.specs-table td:last-child {
    color: var(--white);
    text-align: right;
}

.care-list {
    list-style: none;
}

.care-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-light);
    position: relative;
}

.care-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Shipping Tab */
.shipping-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.shipping-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.shipping-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.shipping-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.shipping-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-light);
    position: relative;
}

.shipping-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

.delivery-time {
    padding: 1rem;
    background: rgba(191, 139, 53, 0.1);
    border-left: 3px solid var(--gold-primary);
}

/* Reviews Tab */
.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--black-tertiary);
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-big {
    font-family: 'Playfair Display', var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--gold-primary);
}

.rating-stars .stars svg {
    width: 22px;
    height: 22px;
}

.rating-stars span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.write-review-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 2rem;
    background: var(--black-tertiary);
    border-left: 3px solid var(--gold-muted);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    display: block;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.review-rating svg {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
}

.review-rating svg.empty {
    color: var(--gray-dark);
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.verified-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   Zoom Modal
   ======================================== */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--gold-muted);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--black-primary);
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ========================================
   Cart Notification
   ======================================== */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 2rem;
    background: var(--black-secondary);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification svg {
    width: 24px;
    height: 24px;
    color: #4CAF50;
}

.cart-notification span {
    font-size: 0.95rem;
    color: var(--white);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .product-container {
        gap: 3rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-main {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .gallery-thumbnails {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shipping-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 100px 1.5rem 1.5rem;
    }
    
    .product-container {
        padding: 0 1.5rem;
    }
    
    .tabs-container {
        padding: 0 1.5rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .description-images {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rating-big {
        font-size: 3rem;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    
    .size-options {
        flex-direction: column;
    }
    
    .size-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .material-options {
        flex-direction: column;
    }
    
    .material-btn {
        width: 100%;
        text-align: center;
    }
    
    .tab-btn {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .cart-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

