/* ==========================================================================
   QUEEN PLUS PERDE - WARM LUXURY LIGHT ATELIER THEME
   Philosophy: Subtle Architectural Curves (5% Radius = 6px) / Warm Ivory / 
   Champagne Gold / Pure Textile Craftsmanship
   ========================================================================== */

/* ---- CSS Design Tokens ---- */
:root {
    --bg-body: #FAFAF8;
    --bg-surface: #FFFFFF;
    --bg-muted: #F4F1EA;
    --bg-accent: #EFECE6;
    --bg-dark: #141416;
    --bg-dark-surface: #1E1E24;
    
    --gold-primary: #C5A059;
    --gold-dark: #A9843E;
    --gold-light: #F9F6F0;
    --gold-border: rgba(197, 160, 89, 0.35);
    
    --border-subtle: #ECE8E1;
    --border-light: #DFD9CE;
    --border-strong: #C8C0B2;
    
    --text-heading: #141416;
    --text-body: #4A4A55;
    --text-muted: #7E7E8E;
    --text-light: #A0A0B0;
    
    --radius-default: 6px;
    --radius-sm: 4px;
    --radius-lg: 8px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 14px 36px rgba(197, 160, 89, 0.15);
    --shadow-dropdown: 0 20px 48px rgba(0, 0, 0, 0.08);
    
    --font-heading: 'Playfair Display', 'Cinzel', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Global Reset & Architectural 5% Radius ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-body);
    color: var(--text-body);
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    background-color: var(--bg-body);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 64px;
    }
}

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

a:hover {
    color: var(--gold-primary);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.container {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Logo Styling in Light Mode ---- */
.site-header__logo img,
.mobile-drawer-atelier img {
    filter: none !important;
    transition: var(--transition);
}
.site-header__logo:hover img {
    transform: scale(1.02);
}

.site-footer-atelier img {
    filter: invert(1) brightness(2.5) drop-shadow(0 0 2px rgba(255, 255, 255, 0.4)) !important;
}

/* ---- Header & Navbars ---- */
.top-bar-atelier {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 0;
}

.site-header-atelier {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.main-nav-atelier {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 40;
}

.nav-link-atelier {
    display: inline-flex;
    align-items: center;
    padding: 16px 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-heading);
    position: relative;
}

.nav-link-atelier::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

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

.nav-item-atelier:hover .nav-link-atelier {
    color: var(--gold-primary);
}

/* Mega Menu */
.mega-menu-atelier {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-top: 2px solid var(--gold-primary);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-dropdown);
    z-index: 60;
    border-radius: 0 0 var(--radius-default) var(--radius-default);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: var(--radius-default);
}

.btn--primary {
    background-color: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
}

.btn--primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
    transform: translateY(-2px);
}

.btn--secondary,
.btn--outline {
    background-color: var(--bg-surface);
    color: var(--text-heading);
    border-color: var(--border-light);
}

.btn--secondary:hover,
.btn--outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

/* ---- Product Cards (Warm Luxury Light) ---- */
.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card__image {
    background-color: #F8F7F4;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

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

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

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.product-card__price-current {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--gold-dark);
}

.product-card__price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card__purchase-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}

/* ---- Curated Category Cards ---- */
.curated-box {
    position: relative;
    height: 440px;
    overflow: hidden;
    border-radius: var(--radius-default);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-card);
}

.curated-box:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-hover);
}

.curated-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.curated-box:hover img {
    transform: scale(1.08);
}

/* ---- Story / Craftsmanship Section ---- */
.story-atelier {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.story-grid-img {
    height: 480px;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-default);
}

.story-grid-subimg {
    height: 232px;
    max-height: 232px;
    object-fit: cover;
    border-radius: var(--radius-default);
}

/* ---- Weekly Deals Countdown Box ---- */
.weekly-countdown-box {
    background: linear-gradient(135deg, #F4F1EA 0%, #EAE6DD 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-default);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.digit-box {
    width: 68px;
    height: 68px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-dark);
    box-shadow: var(--shadow-sm);
}

/* ---- Category & Catalog Grid ---- */
.catalog-section {
    padding: 36px 0 80px;
    background-color: var(--bg-body);
}
.catalog-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
}
@media (max-width: 991px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}
.catalog-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-card);
}
.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}
.filter-group:last-child {
    border-bottom: none;
}
.filter-group__title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-dark);
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 700;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-body);
}
.filter-checkbox:hover {
    color: var(--gold-dark);
}
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Product Detail Page Grid ---- */
.product-detail {
    padding: 40px 0 80px;
    background-color: var(--bg-body);
}
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 991px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.product-gallery__main {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
.product-gallery__main img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.product-gallery__thumb {
    width: 80px;
    height: 80px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px var(--gold-border);
}
.product-info {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
    padding: 36px;
    box-shadow: var(--shadow-card);
}
.product-info__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}
.product-info__pricing {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.product-info__price-current {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--gold-dark);
}
.product-info__price-old {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.variant-pill {
    padding: 10px 18px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-default);
    color: var(--text-heading);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.variant-pill--active,
.variant-pill:hover {
    background-color: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin: 32px 0 20px;
}
.product-tab {
    padding: 12px 24px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.product-tab.active,
.product-tab:hover {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-primary);
}

/* Breadcrumbs */
.breadcrumb-section {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb a:hover {
    color: var(--gold-dark);
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--border-light);
}

/* Form Controls */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-default);
    color: var(--text-heading);
    padding: 12px 16px;
    font-size: 13px;
    transition: var(--transition);
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* ---- Footer ---- */
.site-footer-atelier {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer-atelier .footer-heading-atelier {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer-atelier .footer-heading-atelier::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background-color: var(--gold-primary);
}

/* ---- Mobile Elements ---- */
.mobile-drawer-atelier {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.mobile-drawer-atelier.active {
    display: block;
}
.mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.mobile-drawer__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-dropdown);
}
.mobile-bottom-bar-atelier {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--bg-surface) !important;
    border-top: 1px solid var(--border-subtle) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 10px 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

/* Force hide mobile bars on desktop */
@media (min-width: 768px) {
    .mobile-drawer-atelier,
    .mobile-bottom-bar-atelier,
    #mobileStickyBar,
    #mobileDrawer {
        display: none !important;
    }
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-default) !important;
    width: 44px !important;
    height: 44px !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-card) !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gold-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--gold-primary) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 13px !important;
    font-weight: 900;
}
.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    border-radius: var(--radius-sm) !important;
}
.swiper-pagination-bullet-active {
    background: var(--gold-primary) !important;
    width: 24px !important;
}
