/* 
 * Eye-Glass Store - Premium High-Fashion Stylesheet
 * Fonts: Playfair Display (Headings & Menu) & Plus Jakarta Sans (Body)
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b0f19; /* Midnight Obsidian */
    --primary-dark: #05070c; /* Deepest Obsidian */
    --accent-red: #c5a880; /* Elegant Champagne Gold (replaces red brand color) */
    --accent-gold: #e5c398; /* Warm brushed gold */
    --bg-light: #f9f8f6; /* Warm soft ivory for backgrounds */
    --bg-white: #ffffff;
    --text-dark: #0b0f19;
    --text-muted: #6e6b64; /* Sophisticated warm gray */
    --border-light: #e6e2dc; /* Brushed warm sand */
    --border-dark: #2c2923;
    --whatsapp-green: #128c7e; /* Sophisticated teal green for whatsapp */
    --whatsapp-dark: #0b5e54;
    
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* Ultra-smooth luxury ease-out */
    --shadow-subtle: 0 4px 20px rgba(11, 15, 25, 0.02);
    --shadow-medium: 0 15px 35px rgba(197, 168, 128, 0.15); /* Elegant gold shadow glow */
}

/* Base Resets & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Containers */
.container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: 0; /* Square elegant edges */
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-red);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

.btn-white:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.02);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

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

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

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--bg-white);
    font-size: 1rem;
    padding: 16px 36px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    margin-right: 10px;
    fill: currentColor;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Header & Navigation (Upgraded Luxury Gold & Obsidian Theme) */
.promo-bar {
    background-color: var(--primary-color); /* Midnight Obsidian */
    color: var(--accent-red); /* Champagne Gold text! */
    text-align: center;
    font-size: 0.7rem;
    font-family: var(--font-headings);
    font-weight: 800;
    letter-spacing: 0.15em; /* Premium luxury letter spacing */
    padding: 9px 0;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-dark);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.85); /* Glassmorphism background */
    backdrop-filter: blur(15px); /* Modern glass blur */
    -webkit-backdrop-filter: blur(15px);
    color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* Eye-Glass Luxury Obsidian-Gold Brand Logo */
.logo {
    background-color: var(--primary-color); /* Deep Obsidian background */
    color: var(--accent-red); /* Champagne Gold text! */
    height: 100%;
    padding: 0 28px;
    font-family: var(--font-headings);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em; /* Spaced out, designer label feel */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border-right: 1px solid var(--border-dark);
    transition: var(--transition);
}

.logo:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.logo span {
    color: var(--accent-gold); /* Shimmering light gold for accent span */
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Make only standard dropdown nav items relative boundary */
.nav-item-dropdown {
    position: relative;
}

.nav-link {
    padding: 0 18px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--accent-red);
}

.nav-link.promo-link {
    color: var(--accent-red);
}

/* Subcategory Standard Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--accent-red);
    box-shadow: var(--shadow-medium);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 12px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-item a:hover {
    background-color: var(--bg-light);
    padding-left: 25px;
    color: var(--accent-red);
}

/* ----------------------------------------------------
   MEGA MENU SYSTEM (Screenshot Mega Dropdown Match)
   ---------------------------------------------------- */
.nav-item-megamenu {
    position: static; /* Let absolute child align to .main-header width */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    z-index: 999;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 35px;
}

.mega-menu-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 35px;
}

.mega-col {
    text-align: left;
}

.mega-title {
    font-family: var(--font-headings);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    width: 90%;
}

.mega-list {
    list-style: none;
}

.mega-list li {
    margin-bottom: 10px;
}

.mega-list a {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    display: block;
}

.mega-list a:hover {
    color: var(--accent-red);
    padding-left: 4px;
}

/* Bottom Best Sellers Gray Band inside Mega Menu */
.mega-menu-best-sellers {
    background-color: var(--bg-light); /* #f4f4f4 */
    border-top: 1px solid var(--border-light);
    padding: 25px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.best-sellers-label {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    width: 120px;
    text-align: left;
    position: relative;
}

.best-sellers-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--accent-red);
}

.best-sellers-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 25px;
}

.best-seller-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 18%;
    text-align: center;
}

.best-seller-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.04));
    transition: var(--transition);
}

.best-seller-item span {
    font-size: 0.7rem;
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.best-seller-item:hover img {
    transform: scale(1.08) translateY(-2px);
}

.best-seller-item:hover span {
    color: var(--accent-red);
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search bar header element */
.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    background-color: var(--bg-light);
    padding: 6px 12px;
    margin-right: 10px;
}

.header-search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.75rem;
    font-family: var(--font-body);
    width: 150px;
    padding: 2px 5px;
}

.header-btn {
    font-size: 1.1rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-btn:hover {
    color: var(--accent-red);
}

.header-btn span {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Styling */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 0.95rem;
    font-family: var(--font-headings);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: var(--primary-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
}

/* Hero Smart Video / Camera Banner (Screenshot 2) */
.video-hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center 12%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 60px 0;
    color: var(--bg-white);
}

.video-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.video-hero-top {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.video-hero-top svg {
    width: 28px;
    height: 28px;
}

.video-hero-bottom {
    position: relative;
    z-index: 5;
    text-align: center;
}

.video-hero-title {
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.video-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.video-hero-buttons .btn {
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* 3-Column Categories Portrait Grid (Screenshot 1 style) */
.portrait-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 80vh;
    min-height: 500px;
}

.portrait-category-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.portrait-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.75) 0%, rgba(11, 15, 25, 0.2) 50%, rgba(11, 15, 25, 0) 100%);
    z-index: 1;
    transition: var(--transition);
}

.portrait-category-card:hover::after {
    background: rgba(11, 15, 25, 0.4); /* Darker soft overlay on hover */
}

.portrait-category-title {
    position: relative;
    z-index: 5;
    color: var(--bg-white);
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.portrait-category-card:hover .portrait-category-title {
    color: var(--accent-red);
    transform: translateY(-8px); /* Float upward */
}

/* Product Carousel & Grid (Exact Screenshot Style) */
.product-carousel-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--bg-white);
    transition: var(--transition);
    position: relative;
    border: none;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Red tag text, no background box */
.product-badge-red {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--accent-red);
    font-family: var(--font-headings);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Light gray square container for spectacles image */
.product-img-wrapper {
    position: relative;
    height: 280px;
    background-color: var(--bg-light); /* Sleek #f4f4f4 background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.product-card:hover .product-img-wrapper {
    border-color: var(--border-light);
}

/* Wishlist hollow heart */
.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.wishlist-icon:hover {
    color: var(--accent-red);
}

.product-img {
    max-height: 70%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

/* Product Info (Left Aligned, Clean Details) */
.product-details {
    padding: 15px 5px;
    text-align: left;
}

.product-name {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--primary-color);
    text-transform: none; /* Let database casing govern style */
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.product-action {
    display: none;
}

/* ----------------------------------------------------
   CATALOG OVERRIDES FOR 3-COLUMN CENTERED LOOK (Screenshot 1 & 2)
   ---------------------------------------------------- */
.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.product-card-catalog {
    background-color: var(--bg-light); /* Complete gray background card */
    padding: 30px 20px 40px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 520px;
    border: 1px solid transparent;
}

.product-card-catalog:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background-color: var(--bg-white); /* Pure white background on hover */
    border-color: var(--accent-red); /* Glowing gold border */
}

/* Centered content tags */
.product-card-catalog .product-badge-red {
    position: static;
    display: block;
    margin: 0 auto 15px auto;
    font-size: 0.68rem;
}

.product-card-catalog .wishlist-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.product-card-catalog .product-img-wrapper {
    background: none; /* No secondary wrapper background */
    height: 250px;
    margin: 20px 0;
}

.product-card-catalog .product-img {
    max-height: 100%;
    max-width: 90%;
}

.product-card-catalog .product-name {
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    min-height: auto;
}

.product-card-catalog .product-price {
    font-size: 0.82rem;
    text-align: center;
    display: block;
}

/* Custom technology badges (Polarized & Transitions) */
.tech-badge-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.tech-badge-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 900;
}

.tech-badge-transitions {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) 180deg, var(--bg-white) 180deg, var(--bg-white) 360deg);
    display: inline-flex;
}

/* Slide Down Toggleable Filter Drawer Panel */
.filter-drawer {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 30px;
    margin-bottom: 25px;
    display: none; /* Managed dynamically by JS */
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    animation: filterSlideDown 0.3s ease-out;
}

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

.filter-drawer-widget {
    padding-bottom: 10px;
}

.filter-drawer-title {
    font-family: var(--font-headings);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.filter-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
}

.filter-drawer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 5px 0;
    display: block;
}

.filter-drawer-link:hover,
.filter-drawer-link.active {
    color: var(--accent-red);
    font-weight: 700;
}


/* Full-Width Summer / Lifestyle Collaboration Banners */
.collaboration-banner {
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 0;
    color: var(--bg-white);
}

.collaboration-banner-top {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.collaboration-banner-content {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.collaboration-banner-content h3 {
    color: var(--bg-white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Product Detail Layout (product-detail.php) */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.detail-gallery {
    background-color: var(--bg-light);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px; /* Upgraded premium height for desktop */
    border: 1px solid var(--border-light);
}

.gallery-thumbnails {
    display: grid;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.gallery-thumbnail-card {
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-light);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.gallery-thumbnail-card.active {
    border-color: var(--primary-color) !important;
}

.detail-gallery-column {
    position: sticky;
    top: 100px;
    align-self: start;
    z-index: 10;
}

.detail-gallery img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

.detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.detail-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.detail-meta span strong {
    color: var(--primary-color);
}

.detail-price-box {
    padding: 15px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-price {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.detail-price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Variant Selectors */
.variant-selection {
    margin-bottom: 35px;
}

.variant-group {
    margin-bottom: 25px;
}

.variant-label {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

/* Color Swatches (Upgraded Rectangular Card Swatches with Frame Outlines) */
.swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.swatch-option-card {
    position: relative;
    cursor: pointer;
}

.swatch-option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.swatch-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 52px;
    border: 1.5px solid var(--border-light);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.swatch-option-card input:checked + .swatch-card-content {
    border: 2.2px solid var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-subtle);
}

.swatch-spectacles-svg {
    width: 80%;
    height: auto;
}

/* Custom Virtual Try-On Toggle Switch Styles */
.switch-toggle input:checked + .slider-round {
    background-color: var(--accent-red) !important; /* Gold */
}

.switch-toggle .slider-round::before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-round::before {
    transform: translateX(16px);
}

/* Button & Dropdown Selectors */
.selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selector-option {
    position: relative;
    cursor: pointer;
}

.selector-option input {
    position: absolute;
    opacity: 0;
}

.selector-text {
    display: block;
    padding: 10px 20px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.selector-option input:checked + .selector-text {
    border-color: var(--primary-dark);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Stock Status */
.stock-status {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-in {
    color: #2e7d32;
}
.stock-in .stock-indicator {
    background-color: #2e7d32;
}

.stock-out {
    color: var(--accent-red);
}
.stock-out .stock-indicator {
    background-color: var(--accent-red);
}

/* Customer Portal Forms (login.php / register.php) */
.auth-layout {
    max-width: 480px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-dark);
}

.alert {
    padding: 12px 15px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fde8e8;
    color: #9b1c1c;
    border-left-color: #f05252;
}

.alert-success {
    background-color: #def7ec;
    color: #03543f;
    border-left-color: #31c48d;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--accent-red);
}

/* Admin Dashboard Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 30px 20px;
    border-right: 1px solid var(--border-dark);
}

.admin-logo {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 30px;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    margin-bottom: 10px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b3b3b3;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-red);
}

.admin-content {
    background-color: #f4f6f9;
    padding: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-card {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: var(--shadow-subtle);
}

.admin-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.admin-card-value {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 800;
}

/* Admin Tables & Forms */
.admin-table-container {
    background-color: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    background-color: var(--bg-light);
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-success {
    background-color: #def7ec;
    color: #03543f;
}

.badge-danger {
    background-color: #fde8e8;
    color: #9b1c1c;
}

.badge-info {
    background-color: #e1effe;
    color: #1e429f;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn-edit {
    color: #1e429f;
}
.admin-btn-delete {
    color: var(--accent-red);
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget-title {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #b3b3b3;
}

.footer-menu a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-about p {
    color: #b3b3b3;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-gallery-column {
        position: static;
    }
    .detail-gallery {
        position: relative;
        top: 0;
        height: 280px; /* Elegant landscape ratio for mobile spectacles display */
        padding: 20px;
    }
    .gallery-thumbnails {
        gap: 10px;
        margin-top: 10px;
    }
    .gallery-thumbnail-card {
        height: 65px; /* Extremely compact and professional on mobile! */
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .product-carousel-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .portrait-category-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .portrait-category-card {
        height: 350px;
    }
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 65px;
    }
    .nav-menu {
        display: none;
    }
    .video-hero {
        height: 60vh;
    }
    .section {
        padding: 40px 0;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------
   SLIDE-OUT DRAWER SYSTEM (Shopping Bag & Wishlist)
   ---------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 10000;
    box-shadow: -10px 0 40px rgba(11, 15, 25, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-light);
}

.drawer-header h3 {
    font-size: 1rem;
    font-family: var(--font-headings);
    font-weight: 800;
    letter-spacing: 0.1em;
    margin: 0;
    color: var(--primary-color);
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
    outline: none;
}

.drawer-close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Empty State */
.drawer-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    height: 100%;
    color: var(--text-muted);
    padding: 40px 0;
}

.drawer-empty-state svg {
    stroke: var(--accent-red);
    opacity: 0.7;
}

.drawer-empty-state p {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Drawer Item Card */
.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.drawer-item-img {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
}

.drawer-item-img img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.drawer-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-item-title {
    font-size: 0.8rem;
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.drawer-item-variant {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.drawer-item-price {
    font-size: 0.8rem;
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 2px;
}

.drawer-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 70px;
}

.drawer-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: underline;
    transition: var(--transition);
    padding: 0;
    outline: none;
}

.drawer-item-remove:hover {
    color: #b22222;
}

/* Quantity Controls */
.drawer-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    height: 28px;
    background-color: var(--bg-light);
}

.drawer-qty-btn {
    background: none;
    border: none;
    width: 26px;
    height: 100%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.drawer-qty-btn:hover {
    background-color: var(--border-light);
    color: var(--accent-red);
}

.drawer-qty-value {
    width: 26px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

/* Drawer Footer */
.drawer-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#cart-drawer-subtotal {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Responsive Overrides */
@media (max-width: 480px) {
    .drawer {
        width: 100%;
    }
    .drawer-header, .drawer-body, .drawer-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
