:root {
    /* Base Colors */
    --primary-beige: #F5F0E8;
    --cream: #FAF8F5;
    --gold: #D4AF37;
    --gold-hover: #B8960C;
    --dark-brown: #3D2B1F;
    --light-brown: #8B7355;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --shadow: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Body Colors */
    --body-bg-color: var(--cream);
    --body-text-color: var(--text-dark);
    
    /* Breadcrumb Section Colors */
    --breadcrumb-section-bg: var(--primary-beige);
    --breadcrumb-section-border-color: rgba(0,0,0,0.05);
    
    /* Breadcrumb Colors */
    --breadcrumb-text-color: var(--text-light);
    --breadcrumb-link-color: var(--text-dark);
    --breadcrumb-link-hover-color: var(--gold);
    --breadcrumb-icon-color: var(--gold);
    
    /* Main Image Colors */
    --main-image-bg: var(--primary-beige);
    
    /* Discount Tag Colors */
    --discount-tag-bg: var(--gold);
    --discount-tag-text-color: white;
    
    /* Thumbnail Colors */
    --thumb-border-color: transparent;
    --thumb-border-hover-color: var(--gold);
    --thumb-opacity: 0.7;
    --thumb-active-opacity: 1;
    
    /* Product Header Colors */
    --product-header-border-color: rgba(0,0,0,0.1);
    
    /* Product Category Colors */
    --product-category-color: var(--gold);
    
    /* Product Title Colors */
    --product-title-color: var(--dark-brown);
    
    /* Rating Colors */
    --stars-color: var(--gold);
    --review-count-color: var(--text-light);
    
    /* Price Colors */
    --current-price-color: var(--gold);
    --original-price-detail-color: var(--text-light);
    
    /* Save Badge Colors */
    --save-badge-bg: #ffebee;
    --save-badge-text-color: #c62828;
    
    /* Product Description Colors */
    --product-description-color: var(--text-light);
    
    /* Selector Colors */
    --selector-label-color: var(--dark-brown);
    --color-option-border-color: transparent;
    --color-option-border-active-color: var(--gold);
    
    /* Buy Now Main Button Colors */
    --buy-now-main-btn-bg: var(--dark-brown);
    --buy-now-main-btn-text-color: white;
    --buy-now-main-btn-hover-bg: var(--gold);
    --buy-now-main-btn-shadow-color: rgba(212,175,55,0.3);
    
    /* Product Meta Colors */
    --product-meta-bg: var(--primary-beige);
    --meta-icon-color: var(--gold);
    --meta-label-color: var(--text-light);
    --meta-value-color: var(--dark-brown);
    
    /* Related Section Colors */
    --related-section-bg: var(--primary-beige);
    --section-title-color: var(--dark-brown);
    --section-title-underline-color: var(--gold);
    
    /* Product Card Colors */
    --product-card-bg: white;
    --product-card-shadow: 0 4px 20px var(--shadow);
    --product-card-hover-shadow: 0 20px 40px rgba(0,0,0,0.12);
    --product-image-bg: var(--primary-beige);
    
    /* Discount Badge Colors (for cards) */
    --discount-badge-bg: var(--gold);
    --discount-badge-text-color: white;
    
    /* Trending Badge Colors */
    --trending-badge-bg: #FF6B6B;
    --trending-badge-text-color: white;
    --trending-badge-new-bg: #4ECDC4;
    
    /* Wishlist Button Colors */
    --wishlist-btn-bg: white;
    --wishlist-btn-hover-bg: #FF6B6B;
    --wishlist-btn-hover-text-color: white;
    --wishlist-btn-active-bg: #FF6B6B;
    --wishlist-btn-active-text-color: white;
    
    /* Buy Now Button Colors (for cards) */
    --buy-now-btn-bg: var(--dark-brown);
    --buy-now-btn-text-color: white;
    --buy-now-btn-hover-bg: var(--gold);
    
    /* Product Info Card Colors */
    --product-name-color: var(--dark-brown);
    --product-price-color: var(--gold);
    --original-price-color: var(--text-light);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--breadcrumb-section-bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--breadcrumb-section-border-color);
}

.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--breadcrumb-text-color);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--breadcrumb-link-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--breadcrumb-link-hover-color); }
.breadcrumb i { font-size: 0.8rem; color: var(--breadcrumb-icon-color); }

/* Product Detail Section */
.product-detail-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-width: 100%;
}

.main-image {
    width: 100%;
    height: 600px;
    background: var(--main-image-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.discount-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--discount-tag-bg);
    color: var(--discount-tag-text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.thumbnail-list::-webkit-scrollbar { display: none; }

.thumb {
    min-width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--thumb-border-color);
    transition: var(--transition);
    opacity: var(--thumb-opacity);
}

.thumb:hover, .thumb.active {
    border-color: var(--thumb-border-hover-color);
    opacity: var(--thumb-active-opacity);
    transform: translateY(-3px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.product-header {
    border-bottom: 1px solid var(--product-header-border-color);
    padding-bottom: 1.5rem;
}

.product-category {
    font-size: 0.9rem;
    color: var(--product-category-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 2.5rem;
    color: var(--product-title-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stars {
    color: var(--stars-color);
    font-size: 1.1rem;
}

.review-count {
    color: var(--review-count-color);
    font-size: 0.9rem;
}

.product-price-detail {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--current-price-color);
}

.original-price-detail {
    font-size: 1.5rem;
    color: var(--original-price-detail-color);
    text-decoration: line-through;
}

.save-badge {
    background: var(--save-badge-bg);
    color: var(--save-badge-text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-description {
    color: var(--product-description-color);
    line-height: 1.8;
    font-size: 1rem;
    word-break: break-word;
}

/* Selectors */
.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.selector-label {
    font-weight: 600;
    color: var(--selector-label-color);
    font-size: 0.95rem;
}

.color-options {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--color-option-border-color);
    transition: var(--transition);
    position: relative;
}

.color-option:hover, .color-option.active {
    border-color: var(--color-option-border-active-color);
    transform: scale(1.1);
}

.color-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Buy Now Button */
.buy-now-main-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--buy-now-main-btn-bg);
    color: var(--buy-now-main-btn-text-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.buy-now-main-btn:hover {
    background: var(--buy-now-main-btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--buy-now-main-btn-shadow-color);
}

/* Product Meta */
.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--product-meta-bg);
    border-radius: 15px;
    margin-top: 1rem;
}

.meta-item {
    text-align: center;
    padding: 0.5rem;
}

.meta-icon {
    font-size: 1.5rem;
    color: var(--meta-icon-color);
    margin-bottom: 0.5rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--meta-label-color);
    display: block;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--meta-value-color);
}

/* Related Products */
.related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--related-section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--section-title-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--section-title-underline-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--product-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--product-card-shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--product-card-hover-shadow);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--product-image-bg);
}
.product-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--discount-badge-bg);
    color: var(--discount-badge-text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--trending-badge-bg);
    color: var(--trending-badge-text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.trending-badge.new {
    background: var(--trending-badge-new-bg);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--wishlist-btn-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.wishlist-btn:hover {
    background: var(--wishlist-btn-hover-bg);
    color: var(--wishlist-btn-hover-text-color);
    transform: scale(1.1);
}
.wishlist-btn.active {
    background: var(--wishlist-btn-active-bg);
    color: var(--wishlist-btn-active-text-color);
}

.buy-now-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--buy-now-btn-bg);
    color: var(--buy-now-btn-text-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    white-space: nowrap;
}
.product-card:hover .buy-now-btn {
    bottom: 20px;
    opacity: 1;
}
.buy-now-btn:hover {
    background: var(--buy-now-btn-hover-bg);
}

.product-info-card {
    padding: 1.5rem;
}
.product-name {
    font-family:'Playfair Display',serif;
    font-size:1.1rem;
    color: var(--product-name-color);
    margin-bottom:0.5rem;
    line-height: 1.3;
}
.product-price {
    font-size:1.2rem;
    font-weight:700;
    color: var(--product-price-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.original-price {
    text-decoration:line-through;
    color: var(--original-price-color);
    font-size:0.9rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-gallery {
        position: static;
    }
    .main-image {
        height: 500px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }
    .current-price {
        font-size: 2rem;
    }
    .main-image {
        height: 400px;
    }
    .buy-now-main-btn {
        width: 100%;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-image {
        height: 220px;
    }
    .product-info-card {
        padding: 1rem;
    }
    .product-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-detail-section {
        padding: 1.5rem 1rem;
    }
    .breadcrumb-section {
        padding: 1rem;
    }
    .product-gallery {
        max-width: 100%;
        overflow: hidden;
    }
    .main-image {
        height: 350px;
        width: 100%;
        max-width: 100vw;
    }
    .thumb {
        min-width: 80px;
        height: 80px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .product-image {
        height: 180px;
    }
    .product-info-card {
        padding: 1rem;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .product-price-detail {
        gap: 0.5rem;
    }
    .current-price {
        font-size: 1.8rem;
    }
    .original-price-detail {
        font-size: 1.2rem;
    }
    .product-title {
        font-size: 1.5rem;
    }
}