:root {
    --bg-main: #f2e9e0;
    --accent: #DEAD6F;
    --white: #FFFFFF;
    --bg-secondary: #FEF3E6;
}

body { font-family: 'Poppins', sans-serif; background-color: var(--white); }
.text-accent { color: var(--accent); }

/* GALLERY CORE LOGIC */
.gallery-wrapper {
    display: flex;
    gap: 15px;
    height: 100%;
}

/* Vertical Thumbnails on Desktop */
.thumbnails-container {
    width: 100px;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumb.active { border-color: var(--accent); }

/* Main Image Container */
.main-image-container {
    flex-grow: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.main-image-container img {
    width: 100%;
    height: 550px; /* Fixed height for consistent layout */
    object-fit: cover;
    display: block;
    transition: 0.5s ease-in-out;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%; width: 100%;
    transform: translateY(-50%);
    display: flex; justify-content: space-between;
    padding: 0 15px;
}

.gallery-nav button {
    background: rgba(255,255,255,0.8);
    border: none; width: 40px; height: 40px;
    border-radius: 50%; color: var(--accent);
}

/* TABLET & MOBILE RESPONSIVE FIXES */
@media (max-width: 991px) {
    .gallery-wrapper {
        flex-direction: column; /* Stack thumbnails above/below image */
    }

    .thumbnails-container {
        width: 100%;
        order: 2; /* Move thumbnails below main image on mobile */
    }

    .thumb-list {
        flex-direction: row; /* Horizontal scrolling on mobile */
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumb {
        width: 80px;
        flex-shrink: 0;
    }

    .main-image-container img {
        height: 400px; /* Shorter image on mobile */
    }
}

/* UI Elements */
.product-info-card { border-radius: 15px; border: 1px solid #eee; }
.product-title { font-family: 'Playfair Display', serif; font-size: 2rem; }
.badge-accent { background: #d32f2f; color: white; padding: 2px 8px; font-size: 10px; font-weight: bold; border-radius: 3px; }
.discount-label { background: #FFEA00; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: bold; }

.shade { width: 30px; height: 30px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.1); cursor: pointer; }
.shade.active { border-color: var(--accent); transform: scale(1.1); }

.btn-buy-now { background: #FFC107; border: none; padding: 12px; font-weight: bold; border-radius: 30px; }
.btn-cart { background: #158572; color: white; border: none; padding: 12px; font-weight: bold; border-radius: 30px; }

/* Tabs */
.custom-tabs .nav-link { color: #888; border: none; font-weight: 600; padding: 15px 25px; }
.custom-tabs .nav-link.active { color: var(--accent); border-bottom: 3px solid var(--accent); background: none; }