/* ==========================================================================
   VANITY HARBOR - PREMIUM LUXURY STYLING SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --primary: #D4AF37;          /* Metallic Elegant Gold */
    --primary-dark: #AA7C11;     /* Dark Burnished Gold */
    --primary-light: #F3E5AB;    /* Champagne / Light Gold */
    
    --bg-ivory: #FAF7F2;         /* Warm Ivory White */
    --bg-beige: #F4EFE6;         /* Warm Beige */
    --bg-nude: #E8DFD0;          /* Warm Champagne Nude */
    --bg-sand: #D8CBB5;          /* Soft Sand */
    
    --dark: #111111;             /* Deep Rich Black */
    --dark-light: #1E1E1E;       /* Off-Black for subtle contrasts */
    --dark-muted: #666666;       /* Charcoal for helper text */
    
    --white: #FFFFFF;
    --success: #4A7C59;          /* Classy forest green for validations/success */
    --error: #9B2226;            /* Premium ruby red for error states */
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 17, 17, 0.12);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --header-height: 70px;
    --mobile-nav-height: 60px;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-ivory);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--mobile-nav-height); /* Clear room for fixed mobile nav */
}

h1, h2, h3, h4, h5, h6, .Serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.w-100 { width: 100%; }
.col-6 { width: 48%; }
.gold-text { color: var(--primary); }

/* Premium Grid Layouts */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

/* Button & UI Ripples */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background-color: var(--dark);
    color: var(--white);
    border: 1px solid var(--dark);
}

/* Shimmer Golden Metallic Effect */
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-gold:hover::after {
    left: 125%;
}

.btn-gold:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-gold-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary);
}

.btn-gold-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-text-gold {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.btn-text-gold:hover {
    border-color: var(--primary-dark);
}

/* Cards & Glassmorphism */
.card-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(216, 203, 181, 0.4);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.card-premium:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Premium Inputs */
.input-premium, .select-premium {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bg-sand);
    color: var(--dark);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.input-premium:focus, .select-premium:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 1px var(--primary);
}

/* VIEW STATE CONTROLLER */
.view {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view-container {
    min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height));
    margin-top: var(--header-height);
    width: 100%;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    background-color: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--dark);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

.brand-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--dark) 30%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.nav-item {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.action-btn {
    cursor: pointer;
    color: var(--dark);
    position: relative;
    padding: 0.4rem;
    transition: var(--transition-fast);
}

.action-btn:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.action-btn .badge {
    position: absolute;
    top: -2px; right: -2px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   MOBILE DRAWERS
   ========================================================================== */
.side-menu-overlay, .cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.side-drawer, .cart-drawer {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background-color: var(--bg-ivory);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer {
    left: 0;
    transform: translateX(-100%);
}

.cart-drawer {
    right: 0;
    transform: translateX(100%);
}

.side-drawer.open, .cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.close-btn {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-muted);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Custom scrollbar for mobile drawer nav */
.drawer-nav::-webkit-scrollbar {
    width: 4px;
}
.drawer-nav::-webkit-scrollbar-track {
    background: transparent;
}
.drawer-nav::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 2px;
}

body.sexshop-theme .drawer-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 0, 60, 0.3);
}

.drawer-item {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.drawer-item:hover {
    color: var(--primary-dark);
}

.drawer-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(216, 203, 181, 0.3);
    font-size: 0.75rem;
    text-align: center;
    color: var(--dark-muted);
}

/* ==========================================================================
   VIEW: HOME
   ========================================================================== */
.hero-section {
    height: 80vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 650px;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero-logo-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-lg);
    display: block;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.product-card {
    background: transparent;
    transition: var(--transition-smooth);
    position: relative;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-nude);
    aspect-ratio: 3/4;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-wishlist-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition-fast);
}

.product-wishlist-btn:hover {
    background: var(--white);
    color: var(--error);
    transform: scale(1.1);
}

.product-wishlist-btn.active {
    color: var(--error);
}

.product-wishlist-btn.active svg {
    fill: var(--error) !important;
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.35);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.25);
    }
    70% {
        transform: scale(1);
    }
}

.product-wishlist-btn.animating {
    animation: pulseHeart 0.6s ease-in-out;
}

.product-actions-overlay {
    position: absolute;
    bottom: -50px; left: 0;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.85), transparent);
    display: flex;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 3;
}

.product-card:hover .product-actions-overlay {
    bottom: 0;
    opacity: 1;
}

.btn-card-action {
    flex: 1;
    padding: 0.6rem 0;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.btn-card-quick {
    background: var(--white);
    color: var(--dark);
}

.btn-card-quick:hover {
    background: var(--bg-beige);
}

.btn-card-add {
    background: var(--primary);
    color: var(--dark);
}

.btn-card-add:hover {
    background: var(--primary-dark);
}

.product-info {
    padding: 1rem 0 0.5rem 0;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Collections Banner */
.collections-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 350px;
    margin: 2rem 0;
}

.collection-card {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: var(--white);
    position: relative;
    cursor: pointer;
}

.collection-info {
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.collection-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.collection-info p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--bg-beige);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 5rem 3rem;
    text-align: center;
}

.benefit-item {
    max-width: 320px;
    margin: 0 auto;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

/* Testimonials Slider */
.testimonials-section {
    background-color: var(--bg-nude);
    padding: 5rem 1.5rem;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    background-color: var(--bg-ivory);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(216, 203, 181, 0.2);
}

.testimonial-card .rating {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.client-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-muted);
}

/* Instagram Header Spacing Adjustments */
.instagram-section .section-header {
    margin-bottom: 2rem;
}
.instagram-section .section-tagline {
    margin-bottom: 0.25rem;
}
.instagram-section .section-title {
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

/* Instagram Feed Simulation */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 2rem;
}

.insta-post {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.insta-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.8rem;
    gap: 0.3rem;
}

.insta-post:hover img {
    transform: scale(1.05);
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.newsletter-section p {
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* ==========================================================================
   VIEW: CATALOG
   ========================================================================== */
.page-header {
    background-color: var(--bg-beige);
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

.catalog-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    gap: 3rem;
}

.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-group {
    border-bottom: 1px solid rgba(216, 203, 181, 0.4);
    padding-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Size Options Grid */
.size-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.size-pill {
    border: 1px solid var(--bg-sand);
    padding: 0.4rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.size-pill:hover, .size-pill.active {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* Color Options Flex */
.color-options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.color-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(17,17,17,0.1);
    position: relative;
    transition: var(--transition-fast);
}

.color-dot:hover, .color-dot.active {
    transform: scale(1.15);
    border-color: var(--primary-dark);
}

.color-dot.active::after {
    content: '✓';
    position: absolute;
    font-size: 0.65rem;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.color-dot[data-color="Oro"] { background: radial-gradient(circle, #f3e5ab 0%, #d4af37 100%); }
.color-dot[data-color="Negro"] { background-color: #111111; }
.color-dot[data-color="Champagne"] { background-color: #f7ebd3; }
.color-dot[data-color="Beige"] { background-color: #eeddbb; }
.color-dot[data-color="Vino"] { background-color: #5c0612; }

/* Custom Checkbox styles */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-checkbox-label input {
    accent-color: var(--primary);
    width: 16px; height: 16px;
}

/* Slider Style */
.slider-premium {
    width: 100%;
    accent-color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--dark-muted);
}

/* Catalog content items area */
.catalog-content {
    flex-grow: 1;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
}

.results-count {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

.mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   VIEW: PRODUCT DETAILS
   ========================================================================== */
.back-link-container {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 0 1.5rem;
}

.back-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--dark-muted);
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

/* Details Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-viewport {
    background-color: var(--bg-nude);
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

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

.gallery-thumbnails {
    display: flex;
    gap: 0.8rem;
}

.thumbnail-item {
    width: 70px;
    aspect-ratio: 3/4;
    background-color: var(--bg-nude);
    cursor: pointer;
    border: 1px solid transparent;
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition-fast);
}

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

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: var(--primary);
    opacity: 1;
}

/* Details Info Panel */
.product-detail-info {
    display: flex;
    flex-direction: column;
}

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

.detail-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--dark-light);
}

.detail-description {
    font-size: 0.9rem;
    color: var(--dark-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.detail-size-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.guide-link-btn {
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
}

.detail-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.detail-actions-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.detail-shipping-est {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--bg-beige);
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--dark-muted);
}

.detail-shipping-est span {
    font-size: 1.2rem;
}

/* Accordion for Description Extra */
.info-accordion {
    border-top: 1px solid rgba(216, 203, 181, 0.4);
    margin-top: 1.5rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(216, 203, 181, 0.4);
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    cursor: pointer;
    text-align: left;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 0.85rem;
    color: var(--dark-muted);
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1rem;
}

.accordion-trigger span {
    transition: transform 0.4s ease;
}

.accordion-item.active .accordion-trigger span {
    transform: rotate(45deg);
}

/* Customer Reviews inside Product Details */
.product-reviews-box {
    margin-top: 4rem;
    border-top: 1px solid rgba(216, 203, 181, 0.4);
    padding-top: 3rem;
}

.reviews-header-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stars-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stars-rating-summary strong {
    font-size: 2.2rem;
    font-weight: 500;
}

.client-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.client-review-item {
    border-bottom: 1px solid rgba(216, 203, 181, 0.2);
    padding-bottom: 1.5rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--dark-muted);
}

.review-stars {
    color: var(--primary);
}

.review-text {
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ==========================================================================
   VIEW: SIZE FINDER
   ========================================================================== */
.size-finder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    gap: 4rem;
    align-items: center;
}

.size-finder-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.size-finder-info h1 {
    font-size: 3.2rem;
    line-height: 1.1;
}

.size-guide-diagram {
    display: flex;
    justify-content: center;
    background-color: var(--bg-nude);
    padding: 2rem;
    border-radius: 0;
    max-width: 320px;
}

.body-diagram-svg {
    width: 100%;
    height: 250px;
}

.size-finder-form-card {
    border-radius: 0;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tooltip-trigger {
    cursor: help;
    color: var(--primary-dark);
    margin-left: 0.3rem;
}

/* Results Box Sizing */
.size-results-container {
    animation: fadeIn 0.6s ease;
}

.gold-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2rem 0;
}

.result-badges-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.result-badge {
    flex: 1;
    background-color: var(--dark);
    color: var(--white);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--primary);
}

.result-badge .label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    margin-bottom: 0.4rem;
}

.result-badge .value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.fit-score-box {
    background-color: var(--bg-beige);
    padding: 1rem;
    margin-bottom: 1.8rem;
    font-size: 0.8rem;
}

.fit-score-label {
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(17,17,17,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.fit-explanation {
    color: var(--dark-muted);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ==========================================================================
   VIEW: SET BUILDER (ARMADOR DE CONJUNTOS)
   ========================================================================== */
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    gap: 3.5rem;
}

.builder-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.builder-canvas {
    width: 320px;
    height: 420px;
    background-color: var(--bg-nude);
    border: 1px dashed var(--bg-sand);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canvas-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 2;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.canvas-item[data-layer="robe"] { z-index: 1; }
.canvas-item[data-layer="garter"] { z-index: 3; }
.canvas-item[data-layer="accessory"] { z-index: 5; }

.canvas-placeholder {
    position: absolute;
    left: 0;
    color: var(--dark-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    animation: pulse 2s infinite;
    width: 100%;
}

.canvas-item[data-layer="bra"] .canvas-placeholder {
    top: 32%;
}

.canvas-item[data-layer="panty"] .canvas-placeholder {
    top: 60%;
}

.canvas-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.canvas-actions button {
    flex: 1;
}

/* Selector Drawer tab system */
.builder-selector-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.builder-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-sand);
}

.builder-tab-btn {
    flex: 1;
    padding: 1rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.builder-tab-btn.active {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.builder-tabs-content {
    background-color: rgba(255, 255, 255, 0.4);
    min-height: 250px;
}

.builder-tab-panel {
    display: none;
}

.builder-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.builder-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.builder-selector-card {
    background-color: var(--white);
    border: 1px solid var(--bg-beige);
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.builder-selector-card:hover, .builder-selector-card.selected {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.builder-selector-card.selected {
    background-color: var(--bg-beige);
}

.builder-selector-card .thumb-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.builder-selector-card .thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.builder-selector-card h4 {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.builder-selector-card .price {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Builder Summary card */
.builder-summary-card {
    border-radius: 0;
    margin-top: 1rem;
}

.builder-items-list {
    list-style: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.builder-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(216, 203, 181, 0.3);
}

.builder-items-list li .remove-item {
    color: var(--error);
    cursor: pointer;
    font-weight: 700;
}

.builder-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.builder-pricing-row.discount-row {
    color: var(--success);
}

.builder-pricing-row.total-row {
    font-size: 1.15rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--bg-sand);
}

/* ==========================================================================
   VIEW: CHECKOUT & CART DRAWERS
   ========================================================================== */
.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cart-item-row {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
    padding-bottom: 1rem;
}

.cart-item-row .thumb {
    width: 60px;
    aspect-ratio: 3/4;
    object-fit: cover;
    background-color: var(--bg-nude);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-details h4 {
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item-meta {
    font-size: 0.7rem;
    color: var(--dark-muted);
}

.cart-item-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--bg-sand);
}

.qty-btn {
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.qty-val {
    width: 24px;
    text-align: center;
    font-size: 0.75rem;
}

.remove-cart-item {
    color: var(--dark-muted);
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
}

.remove-cart-item:hover {
    color: var(--error);
}

.cart-drawer-footer {
    padding: 1.5rem;
    background-color: var(--bg-beige);
    border-top: 1px solid rgba(216, 203, 181, 0.3);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.shipping-info-text {
    font-size: 0.7rem;
    color: var(--dark-muted);
    margin-bottom: 1.2rem;
}

/* Checkout Page Grid */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    gap: 3.5rem;
}

.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.checkout-progress::after {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background-color: var(--bg-sand);
    z-index: 1;
    transform: translateY(-50%);
}

.checkout-progress .step {
    background-color: var(--bg-ivory);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--dark-muted);
    border: 1px solid var(--bg-sand);
    z-index: 2;
    transition: var(--transition-fast);
}

.checkout-progress .step.active {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.checkout-subform {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.col-6 {
    flex: 1;
}

.checkout-actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Payment selection cards */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--bg-sand);
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method-card input {
    accent-color: var(--primary);
    margin-top: 0.2rem;
}

.payment-method-card:hover {
    border-color: var(--primary);
}

.payment-info {
    display: flex;
    flex-direction: column;
}

.payment-info strong {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.payment-info .desc {
    font-size: 0.75rem;
    color: var(--dark-muted);
}

.cc-details-container {
    margin-top: 1.5rem;
    background-color: var(--bg-beige);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(216, 203, 181, 0.4);
    animation: fadeIn 0.4s ease;
}

/* Checkout success view styling */
.checkout-success-view {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    animation: scaleIn 0.5s ease-out;
}

.success-icon {
    width: 60px; height: 60px;
    background-color: var(--success);
    color: var(--white);
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-summary-box {
    background-color: var(--bg-beige);
    padding: 1.5rem;
    border-radius: 0;
    text-align: left;
    width: 100%;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-pending {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-danger {
    background-color: var(--error, #A63A50);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Checkout Sidebar Summary */
.checkout-summary-container {
    display: flex;
    flex-direction: column;
}

.sticky-element {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.checkout-cart-items {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    align-items: center;
}

.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-feedback {
    font-size: 0.75rem;
    font-weight: 600;
}

.coupon-feedback.success { color: var(--success); }
.coupon-feedback.error { color: var(--error); }

.checkout-pricing-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
}

.pricing-row.discount { color: var(--success); }

.pricing-row.total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-sand);
}

.font-large {
    font-size: 1.15rem;
}

/* ==========================================================================
   VIEW: VIP CLUB & ADMIN PANEL
   ========================================================================== */
.vip-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
}

.vip-tag {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.vip-dashboard {
    max-width: 900px;
    margin: -3rem auto 4rem auto;
    position: relative;
    z-index: 10;
}

.vip-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.vip-badge {
    background-color: var(--primary);
    color: var(--dark);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vip-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.vip-stat {
    flex: 1;
    background-color: var(--bg-beige);
    padding: 1.2rem;
    text-align: center;
}

.vip-stat .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--dark-muted);
    margin-bottom: 0.3rem;
}

.vip-stat .value {
    font-size: 1.3rem;
    font-weight: 600;
}

.vip-benefits-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vip-benefits-grid .benefit-card {
    flex: 1;
    min-width: 240px;
    background-color: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--bg-beige);
}

.vip-benefits-grid .benefit-card .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.6rem;
}

.vip-benefits-grid .benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.vip-benefits-grid .benefit-card p {
    font-size: 0.78rem;
    color: var(--dark-muted);
}

.vip-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.tier-card {
    background-color: var(--white);
    border: 1px solid var(--bg-sand);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.tier-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.tier-card .points-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1.5rem;
}

.tier-card ul {
    list-style: none;
    text-align: left;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
    color: var(--dark-muted);
}

.tier-card ul li::before {
    content: '✦';
    color: var(--primary-dark);
    margin-right: 0.5rem;
}

.tier-card.silver {
    border-color: #A3B18A;
    background-color: rgba(163, 177, 138, 0.04);
}

.tier-card.gold {
    border-color: var(--primary);
    background-color: rgba(212, 175, 55, 0.04);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   ADMIN PANEL LAYOUT
   ========================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    gap: 3rem;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: fit-content;
}

.admin-tab-btn {
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    background-color: var(--dark);
    color: var(--white);
}

.admin-content {
    min-height: 400px;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-sand);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Admin Table styles */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(216, 203, 181, 0.3);
}

.admin-table th {
    background-color: var(--bg-beige);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table tbody tr:hover {
    background-color: rgba(216, 203, 181, 0.1);
}

.admin-product-form-box {
    background-color: var(--bg-beige);
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   AI SHOPPING ASSISTANT & CHAT PANEL
   ========================================================================== */
.chatbot-trigger {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 54px; height: 54px;
    background-color: var(--dark);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border: 1px solid var(--primary);
    transition: var(--transition-smooth);
}

.chatbot-trigger:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: var(--primary-dark);
    color: var(--dark);
}

.chatbot-trigger .pulse-indicator {
    position: absolute;
    top: 0; right: 0;
    width: 12px; height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--dark);
    animation: pulse 2s infinite;
}

.chatbot-panel {
    position: fixed;
    bottom: 90px; right: 20px;
    width: 350px;
    height: 480px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    background-color: var(--dark);
    color: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1.5px solid var(--primary);
}

.stylist-avatar {
    width: 36px; height: 36px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stylist-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-light);
}

.stylist-info .status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.close-chat {
    margin-left: auto;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}

.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-ivory);
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-message.bot {
    background-color: var(--bg-beige);
    align-self: flex-start;
    border: 1px solid rgba(216, 203, 181, 0.4);
}

.chat-message.user {
    background-color: var(--dark);
    color: var(--white);
    align-self: flex-end;
}

.chatbot-quick-replies {
    padding: 0.6rem;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    background-color: var(--bg-ivory);
    border-top: 1px solid rgba(216, 203, 181, 0.3);
    white-space: nowrap;
}

.chatbot-quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-reply-btn {
    padding: 0.4rem 0.8rem;
    background-color: var(--white);
    border: 1px solid var(--bg-sand);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-reply-btn:hover {
    border-color: var(--primary);
    background-color: var(--bg-beige);
}

.chatbot-input-area {
    display: flex;
    padding: 0.8rem;
    background-color: var(--white);
    border-top: 1px solid rgba(216, 203, 181, 0.4);
}

.chatbot-input-area input {
    flex-grow: 1;
    border: 1px solid var(--bg-sand);
}

.btn-send {
    padding: 0 1rem;
    background-color: var(--dark);
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   QUICK VIEW & PAYU MODALS
   ========================================================================== */
.modal-overlay, .payu-redirect-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-muted);
    z-index: 10;
}

/* PayU Custom Gateway Simulation style */
.payu-modal-card {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-top: 5px solid #A4C639; /* PayU characteristic green */
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: scaleIn 0.4s ease;
}

.payu-header {
    background-color: #FAF9F5;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EAE5D9;
}

.payu-logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: #4A4A4A;
}

.payu-logo::after {
    content: 'U';
    color: #A4C639;
}

.payu-sec {
    font-size: 0.7rem;
    color: #8C8C8C;
}

.payu-body {
    padding: 2rem 1.5rem;
}

.payu-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.payu-order-details {
    background-color: #F8F5EE;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.payu-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.payu-btn {
    padding: 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    border: none;
}

.payu-btn-success { background-color: #A4C639; color: #fff; }
.payu-btn-success:hover { background-color: #8CA630; }

.payu-btn-danger { background-color: #E63946; color: #fff; }
.payu-btn-danger:hover { background-color: #C12A35; }

.payu-btn-warning { background-color: #FFB703; color: #111; }
.payu-btn-warning:hover { background-color: #E09F00; }

.payu-btn-secondary { background-color: #8D99AE; color: #fff; }
.payu-btn-secondary:hover { background-color: #6D7993; }

/* Empty state styling */
.empty-state-container {
    text-align: center;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.empty-icon {
    font-size: 3rem;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & MEDIA QUERIES
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100vw;
    height: var(--mobile-nav-height);
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(216, 203, 181, 0.4);
    z-index: 998;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(17, 17, 17, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-muted);
    font-size: 0.62rem;
    font-weight: 500;
    position: relative;
    flex: 1;
    height: 100%;
}

.mobile-nav-item .icon {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active {
    color: var(--primary-dark);
}

.mobile-nav-item.active .icon {
    transform: translateY(-2px);
}

.mobile-nav-item .badge {
    position: absolute;
    top: 4px; right: 24%;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 0.6rem;
    font-weight: 700;
    width: 15px; height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */

/* Medium Screens (Tablets / Laptops) */
@mixin tablet-layout {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .checkout-layout, .builder-layout, .product-details-container, .size-finder-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sticky-element {
        position: static;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .checkout-layout, .builder-layout, .product-details-container, .size-finder-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .sticky-element {
        position: static;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
}

/* Mobile Screens (Phones / Tablets) */
@media (max-width: 1024px) {
    body {
        padding-bottom: var(--mobile-nav-height);
    }
    
    /* Header layout optimization for mobile */
    .header-container {
        padding: 0 0.8rem;
        gap: 0.6rem;
    }
    
    .brand-logo {
        gap: 0.4rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .header-actions {
        gap: 0.8rem;
    }
    
    .btn-login-nav {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
        height: auto;
        padding: 3rem 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Show mobile bottom nav, hide desktop navigation elements */
    .mobile-bottom-nav {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .filters-sidebar {
        display: none; /* Controlled programmatically on click */
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background-color: var(--bg-ivory);
        z-index: 1500;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .filters-sidebar.open {
        display: flex;
    }
    
    .mobile-filter-trigger {
        display: inline-flex;
    }
    
    .collections-banner {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .collection-card {
        height: 250px;
        padding: 2rem;
    }
    
    .benefits-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 1.5rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .builder-canvas {
        width: 100%;
        max-width: 320px;
    }
    
    .chatbot-panel {
        width: calc(100% - 40px);
        left: 20px;
        height: 400px;
        bottom: 80px;
    }

    .chatbot-trigger {
        bottom: 80px;
        right: 10px;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    /* VIP Club layout overrides for mobile */
    .vip-dashboard {
        margin: -1.5rem auto 3rem auto;
        padding: 0 1rem;
    }
    
    .vip-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    
    .vip-stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vip-stat {
        padding: 1.5rem;
    }
    
    .vip-tiers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tier-card {
        padding: 2rem 1.5rem;
        transform: none !important;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP EXPRESS SHIELD (SAME-DAY SAME DELIVERY PRIORITY)
   ========================================================================== */
.whatsapp-express-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--primary);
    padding: 0.5rem 0.8rem;
    box-shadow: var(--shadow-lg);
    animation: goldPulse 2.5s infinite, wiggle 6s infinite;
    transition: var(--transition-smooth);
}

.whatsapp-express-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-dark);
}

.whatsapp-icon-wrapper {
    width: 30px;
    height: 30px;
    background-color: #25D366; /* WhatsApp Green */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.whatsapp-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.whatsapp-tooltip {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    max-width: 260px;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08), 0 0 0 0px rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08), 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08), 0 0 0 0px rgba(212, 175, 55, 0);
    }
}

@keyframes wiggle {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-5deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-3deg); }
    98% { transform: rotate(3deg); }
}

/* On mobile screens, stack above bottom nav and adjust widths */
@media (max-width: 1024px) {
    .whatsapp-express-btn {
        bottom: 80px;
        left: 10px;
        padding: 0.4rem 0.6rem;
        max-width: 60vw;
    }
    .whatsapp-tooltip {
        font-size: 0.62rem;
        max-width: 180px;
    }
    .whatsapp-icon-wrapper {
        width: 26px;
        height: 26px;
    }
    .whatsapp-icon-wrapper svg {
        width: 16px;
        height: 16px;
    }
}

/* Admin Login Lock Screen */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - 4rem);
    padding: 2rem 1.5rem;
}

.admin-login-card {
    max-width: 400px;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--primary-light);
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
}

.admin-login-card .lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Analytics & Financial Dashboard */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--bg-sand);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.kpi-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-muted);
    font-weight: 600;
}

.kpi-card .value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.kpi-card .trend {
    font-size: 0.75rem;
    color: var(--dark-muted);
}

.kpi-card .trend.success {
    color: #4A5D4E;
}

/* Analytics Chart Container */
.analytics-chart-container {
    display: flex;
    height: 320px;
    background: var(--white);
    border: 1px solid var(--bg-sand);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    position: relative;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--dark-muted);
    border-right: 1px solid var(--bg-sand);
    padding-right: 0.8rem;
    text-align: right;
    width: 70px;
    height: calc(100% - 25px); /* Leave room for labels */
}

.chart-bars-wrapper {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
}

.chart-month-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 14%;
}

.chart-bars-subgroup {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: calc(100% - 25px);
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--bg-sand);
}

.chart-bar {
    width: 18px;
    min-height: 4px;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.chart-bar.revenue {
    background-color: var(--primary);
}

.chart-bar.profit {
    background-color: #A3B18A;
}

.chart-bar:hover {
    filter: brightness(0.9);
}

.chart-bar::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--dark);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
    font-family: inherit;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.chart-bar:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.chart-month-label {
    font-size: 0.7rem;
    color: var(--dark-muted);
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Iniciar Sesión Navbar Button */
.btn-login-nav {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--dark);
    margin-right: 15px;
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 0.4rem 0.9rem;
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.btn-login-nav:hover {
    background-color: var(--primary);
    color: var(--dark);
    border-color: var(--primary-dark);
}

/* Unified Login View Styles */
.login-layout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - 4rem);
    padding: 2rem 1.5rem;
}

.login-card-wrapper {
    max-width: 500px;
    width: 100%;
    padding: 2.5rem 2rem;
    border: 1px solid var(--primary-light);
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-sand);
    margin-bottom: 2rem;
}

.login-tab-btn {
    flex: 1;
    padding: 0.8rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    text-align: center;
}

.login-tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.login-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.login-panel.active {
    display: block;
}

/* Color Pill Selector for Admin CRUD Form */
.color-pill-select {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.color-pill-select input[type="checkbox"] {
    display: none;
}

.color-pill-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--bg-sand);
    background-color: var(--white);
    color: var(--dark);
    transition: all 0.2s ease;
    border-radius: 4px;
}

.color-pill-select input[type="checkbox"]:checked + .color-pill-badge {
    background-color: var(--primary);
    color: var(--dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

/* Specific background styles for badges to make them visually informative */
.color-pill-badge[data-color-val="Oro"] { border-left: 4px solid #d4af37; }
.color-pill-badge[data-color-val="Negro"] { border-left: 4px solid #111111; }
.color-pill-badge[data-color-val="Champagne"] { border-left: 4px solid #f7ebd3; }
.color-pill-badge[data-color-val="Beige"] { border-left: 4px solid #eeddbb; }
.color-pill-badge[data-color-val="Vino"] { border-left: 4px solid #5c0612; }
.color-pill-badge[data-color-val="Blanco"] { border-left: 4px solid #ffffff; }
.color-pill-badge[data-color-val="Gris"] { border-left: 4px solid #8e9aaf; }
.color-pill-badge[data-color-val="Rojo"] { border-left: 4px solid #8A1C14; }
.color-pill-badge[data-color-val="Azul"] { border-left: 4px solid #1d3557; }
.color-pill-badge[data-color-val="Amarillo"] { border-left: 4px solid #eae2b7; }
.color-pill-badge[data-color-val="Verde"] { border-left: 4px solid #2a9d8f; }
.color-pill-badge[data-color-val="Naranja"] { border-left: 4px solid #f4a261; }
.color-pill-badge[data-color-val="Morado"] { border-left: 4px solid #4a2840; }
.color-pill-badge[data-color-val="Rosa"] { border-left: 4px solid #ffb5a7; }
.color-pill-badge[data-color-val="Lila"] { border-left: 4px solid #d8b4f8; }
.color-pill-badge[data-color-val="Esmeralda"] { border-left: 4px solid #093A3E; }

/* Product Performance Grid & Card Styles */
.product-performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .product-performance-grid {
        grid-template-columns: 1fr;
    }
}

.performance-card {
    background-color: var(--white);
    border: 1px solid var(--bg-sand);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.performance-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.performance-card .badge-perf {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.performance-card.most-sold .badge-perf {
    background-color: var(--primary);
    color: var(--dark);
}

.performance-card.least-sold .badge-perf {
    background-color: rgba(155, 34, 38, 0.1);
    color: var(--error);
    border-left: 1px solid var(--error);
    border-bottom: 1px solid var(--error);
}

.perf-img-wrapper {
    width: 100px;
    height: 120px;
    background-color: var(--bg-nude);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

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

.perf-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.perf-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.perf-category {
    font-size: 0.75rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.perf-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--dark);
}

.perf-stat-item {
    display: flex;
    flex-direction: column;
}

.perf-stat-item span {
    font-size: 0.65rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.perf-stat-item strong {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   SEXSHOP EXCLUSIVE THEME (BLACK & INTENSE RED)
   ========================================================================== */
body.sexshop-theme {
    --primary: #FF003C;          /* Intense Hot Red */
    --primary-dark: #9B001C;     /* Dark Crimson Red */
    --primary-light: #FF5A79;    /* Light Pinkish Red */
    
    --bg-ivory: #080808;         /* Deep Rich Black */
    --bg-beige: #121212;         /* Charcoal Black */
    --bg-nude: #1E1E1E;          /* Off-Black */
    --bg-sand: #2D2D2D;          /* Dark Grey */
    
    --dark: #FFFFFF;             /* White Text for readability on black background */
    --dark-light: #E0E0E0;       /* Off-White */
    --dark-muted: #999999;       /* Muted Grey */
    
    background-color: var(--bg-ivory) !important;
    color: var(--dark) !important;
}

body.sexshop-theme .card-premium {
    background: rgba(18, 18, 18, 0.85) !important;
    border: 1px solid rgba(255, 0, 60, 0.2) !important;
    box-shadow: 0 4px 20px rgba(255, 0, 60, 0.05) !important;
}

body.sexshop-theme .main-header {
    background-color: rgba(8, 8, 8, 0.95) !important;
    border-bottom: 1px solid rgba(255, 0, 60, 0.2) !important;
}

body.sexshop-theme .mobile-bottom-nav {
    background-color: rgba(8, 8, 8, 0.95) !important;
    border-top: 1px solid rgba(255, 0, 60, 0.2) !important;
    box-shadow: 0 -4px 20px rgba(255, 0, 60, 0.05) !important;
}

body.sexshop-theme .brand-text {
    color: #FF003C !important;
}

body.sexshop-theme input.input-premium, 
body.sexshop-theme select.select-premium, 
body.sexshop-theme textarea.input-premium {
    background-color: rgba(18, 18, 18, 0.8) !important;
    border-color: rgba(255, 0, 60, 0.2) !important;
    color: #FFFFFF !important;
}

body.sexshop-theme input.input-premium:focus, 
body.sexshop-theme select.select-premium:focus, 
body.sexshop-theme textarea.input-premium:focus {
    border-color: #FF003C !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.2) !important;
}

body.sexshop-theme .btn-gold {
    background: linear-gradient(135deg, #FF003C 0%, #9B001C 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.3) !important;
}

body.sexshop-theme .btn-gold:hover {
    background: linear-gradient(135deg, #FF3360 0%, #FF003C 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 60, 0.4) !important;
}

body.sexshop-theme .mobile-nav-item.active {
    color: #FF003C !important;
}

/* ==========================================================================
   SEARCH BAR & RESULTS STYLING
   ========================================================================== */

.search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay-card {
    width: 90%;
    max-width: 700px;
    padding: 3rem 2.5rem;
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.open .search-overlay-card {
    transform: translateY(0);
}

.search-overlay-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition-fast);
    line-height: 1;
}

.search-overlay-close:hover {
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.search-overlay-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark);
    margin-top: 0;
}

.search-overlay .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-overlay .search-input-wrapper input {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 3rem 1rem 1.2rem;
    border-radius: 4px;
}

.search-overlay .search-clear-btn {
    position: absolute;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-muted);
    transition: var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.search-overlay .search-clear-btn:hover {
    color: var(--dark);
}

.search-results-container {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

/* Custom scrollbar for premium look */
.search-results-container::-webkit-scrollbar,
#drawer-search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results-container::-webkit-scrollbar-track,
#drawer-search-results::-webkit-scrollbar-track {
    background: transparent;
}
.search-results-container::-webkit-scrollbar-thumb,
#drawer-search-results::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem;
    border-bottom: 1px solid rgba(216, 203, 181, 0.25);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
}

.search-result-item:hover {
    background-color: rgba(212, 175, 55, 0.07);
    transform: translateX(4px);
}

.search-result-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(216, 203, 181, 0.4);
    background-color: var(--bg-beige);
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.search-result-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.search-result-meta {
    font-size: 0.72rem;
    color: var(--dark-muted);
    letter-spacing: 0.5px;
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.search-result-badge-adult {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #FF003C 0%, #9B001C 100%);
    color: #FFFFFF;
    border-radius: 3px;
    font-weight: 700;
    margin-left: 0.5rem;
    display: inline-block;
    letter-spacing: 0.5px;
}

.search-results-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--dark-muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* drawer search results specific */
#drawer-search-results .search-result-item {
    padding: 0.6rem 0.8rem;
    gap: 0.8rem;
}
#drawer-search-results .search-result-img {
    width: 40px;
    height: 40px;
}
#drawer-search-results .search-result-name {
    font-size: 0.85rem;
}
#drawer-search-results .search-result-price {
    font-size: 0.8rem;
}

/* Sexshop theme adaptations for search */
body.sexshop-theme .search-overlay {
    background-color: rgba(8, 8, 8, 0.9);
}

body.sexshop-theme .search-overlay-card {
    background: #121212 !important;
    border: 1px solid rgba(255, 0, 60, 0.3) !important;
    box-shadow: 0 4px 25px rgba(255, 0, 60, 0.15) !important;
}

body.sexshop-theme .search-overlay-title {
    color: #FF003C;
}

body.sexshop-theme .search-overlay-close {
    color: #E0E0E0;
}
body.sexshop-theme .search-overlay-close:hover {
    color: #FF003C;
}

body.sexshop-theme .search-overlay .search-clear-btn {
    color: #888888;
}
body.sexshop-theme .search-overlay .search-clear-btn:hover {
    color: #FFFFFF;
}

body.sexshop-theme .search-result-item {
    border-bottom: 1px solid rgba(255, 0, 60, 0.1);
}

body.sexshop-theme .search-result-item:hover {
    background-color: rgba(255, 0, 60, 0.08);
}

body.sexshop-theme .search-result-name {
    color: #FFFFFF;
}

body.sexshop-theme .search-result-meta {
    color: #888888;
}

body.sexshop-theme .search-result-price {
    color: #FF003C;
}

body.sexshop-theme .search-result-img {
    border-color: rgba(255, 0, 60, 0.2);
    background-color: #1a1a1a;
}

body.sexshop-theme .search-results-empty {
    color: #888888;
}

body.sexshop-theme .search-results-container::-webkit-scrollbar-thumb,
body.sexshop-theme #drawer-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 0, 60, 0.3);
}

body.sexshop-theme #drawer-search-results {
    background: #121212 !important;
    border-color: rgba(255, 0, 60, 0.3) !important;
}

body.sexshop-theme .btn-card-quick {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 0, 60, 0.3) !important;
}

body.sexshop-theme .btn-card-quick:hover {
    background: #FF003C !important;
    color: #FFFFFF !important;
    border-color: #FF003C !important;
}

@media (max-width: 1250px) and (min-width: 1025px) {
    .desktop-nav {
        gap: 1rem;
    }
    .header-actions {
        gap: 0.8rem;
    }
    .brand-text {
        font-size: 1.3rem;
    }
}



