/* =====================================================================
   Alifzar Scents — Brand Design System
   ===================================================================== */

/* @import rules must come first, before any other CSS rule */
@import url('fonts/fonts.css');
@import url('fonts/bootstrap-icons.css');

:root {
    --brown: #2E1F1A;
    --brown-soft: #3C2A22;
    --cream: #F5EBDD;
    --cream-soft: #FBF6EE;
    --gold: #C8A45A;
    --gold-dark: #A9843F;
    --gold-light: #E3CFA0;
    --white: #FFFFFF;
    --ink: #2E1F1A;
    --muted: #8A776A;
    --border-soft: rgba(46, 31, 26, 0.12);
    --border-gold: rgba(200, 164, 90, 0.4);
    --shadow-soft: 0 10px 30px rgba(46, 31, 26, 0.08);
    --shadow-card: 0 6px 20px rgba(46, 31, 26, 0.10);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    font-size: 15.5px;
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--brown);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}
.script-accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}
.text-muted-brand { color: var(--muted) !important; }
.text-gold { color: var(--gold) !important; }
.bg-brand { background-color: var(--brown) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-cream-soft { background-color: var(--cream-soft) !important; }
.eyebrow {
    font-family: var(--font-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 600;
    color: var(--gold);
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
@media (max-width: 767px) {
    .section { padding: 3rem 0; }
}
.section-title { font-size: 2.1rem; margin-bottom: .5rem; }
.section-sub { color: var(--muted); max-width: 560px; }
.divider-gold {
    width: 60px; height: 2px; background: var(--gold); border: none; margin: 1rem 0;
}
/* Bootstrap's container padding (12px/side) is narrower than the negative margins our
   .g-5 rows use (24px/side) — on any row using g-5, that 12px shortfall pushes real
   content past the viewport edge, which then gets silently clipped by overflow-x:hidden
   (seen as text/icons cut off on mobile). Padding here to 24px/side absorbs every gutter
   size used across the site so rows can never push wider than the viewport. */
.container-xl { max-width: 1280px; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 500; letter-spacing: .03em; padding: .75rem 1.75rem; font-size: .9rem; transition: all .25s ease; border: 1px solid transparent; }
.btn-brand { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn-brand:hover, .btn-brand:focus { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.btn-gold { background: var(--gold); color: var(--brown); border-color: var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.btn-outline-brand { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline-brand:hover { background: var(--brown); color: var(--cream); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--brown); }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: rgba(245,235,221,.55); }
.btn-outline-cream:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }
.btn-lg { padding: .95rem 2.25rem; font-size: .95rem; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
    content: ""; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%;
    margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent;
    animation: btn-spin .6s linear infinite; color: inherit; opacity: .7;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

/* ---------- Header ---------- */
.site-header { background: var(--brown); position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s ease; border-bottom: 1px solid rgba(200,164,90,.15); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
/* header-inner's flex items default to min-width:auto, which refuses to shrink below the
   brand text's intrinsic width — on narrow phones that forces the whole header (and page)
   wider than the viewport. min-width:0 lets it shrink; the name below then truncates instead. */
.brand-logo { display: flex; align-items: center; gap: .65rem; color: var(--cream); min-width: 0; flex-shrink: 1; }
.header-icons { flex-shrink: 0; }
.brand-logo .logo-mark {
    width: 46px; height: 46px; border: 1.5px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-serif);
    font-size: 1.1rem; color: var(--gold); letter-spacing: .05em; flex-shrink: 0;
}
.brand-logo .logo-mark-img {
    width: 50px; height: 50px; border-radius: 10px; background: var(--cream);
    display: flex; align-items: center; justify-content: center; padding: 5px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand-logo .logo-mark-img img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo .logo-text { line-height: 1.1; min-width: 0; overflow: hidden; }
.brand-logo .logo-text .name { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .12em; color: var(--cream); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo .logo-text .tagline { font-size: .58rem; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
    color: var(--cream); font-size: .85rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
    position: relative; padding: .35rem 0;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-icons { display: flex; align-items: center; gap: 1.1rem; }
.header-icons a, .header-icons button { color: #FFFFFF; font-size: 1.15rem; background: none; border: none; position: relative; display: inline-flex; }
.header-icons a:hover, .header-icons button:hover { color: var(--gold); }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background: var(--gold); color: var(--brown);
    font-size: .62rem; font-weight: 700; width: 17px; height: 17px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.offcanvas-menu .offcanvas-body a { display: block; padding: .6rem 0; color: var(--brown); font-family: var(--font-serif); font-size: 1.1rem; border-bottom: 1px solid var(--border-soft); }
.search-panel { background: var(--brown); border-top: 1px solid var(--border-gold); }
.search-panel input { background: transparent; border: none; border-bottom: 1px solid var(--gold); color: var(--cream); font-size: 1.2rem; padding: .5rem 0; font-family: var(--font-serif); }
.search-panel input:focus { outline: none; box-shadow: none; }
.search-panel input::placeholder { color: rgba(245,235,221,.5); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--cream-soft); padding: .9rem 0; border-bottom: 1px solid var(--border-soft); }
.breadcrumb-bar .breadcrumb { margin: 0; font-size: .82rem; }
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--gold-dark); }
.breadcrumb-bar .active { color: var(--brown); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--brown); position: relative; overflow: hidden; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(46,31,26,0) 40%, rgba(46,31,26,.5) 100%); }
.hero h1 { color: var(--cream); font-size: 3.1rem; }
.hero p.lead { color: rgba(245,235,221,.8); font-size: 1.05rem; max-width: 460px; }

/* Home hero: full-bleed background image, left side dissolving into a dark scrim so text stays
   readable while the product on the right stays clear — replaces the old boxed two-column layout. */
.hero-slide {
    min-height: 660px; display: flex; align-items: center; position: relative;
    background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(46,31,26,.96) 0%, rgba(46,31,26,.88) 30%, rgba(46,31,26,.5) 54%, rgba(46,31,26,.12) 75%, rgba(46,31,26,0) 90%);
}
/* .hero-slide's direct child is a flex item, which defaults to min-width:auto — without
   resetting it, long headings refuse to shrink/wrap and overflow the viewport on mobile. */
.hero-slide > .container-xl { min-width: 0; width: 100%; }
.hero-text-col { position: relative; z-index: 1; max-width: 540px; }
@media (max-width: 991px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-slide { min-height: 560px; padding: 3rem 0; }
    .hero-slide::before { background: linear-gradient(180deg, rgba(46,31,26,.5) 0%, rgba(46,31,26,.82) 55%, rgba(46,31,26,.95) 100%); }
    .hero-text-col { max-width: 100%; }
}

/* ---------- Feature blocks ---------- */
.feature-block { text-align: center; padding: 1.5rem 1rem; }
.feature-icon {
    width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--gold); font-size: 1.5rem;
}
.feature-block h5 { font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.feature-block p { color: var(--muted); font-size: .88rem; margin: 0; }
.features-strip { background: var(--brown-soft); }
.features-strip .feature-block h5 { color: var(--cream); }
.features-strip .feature-block p { color: rgba(245,235,221,.65); }

/* ---------- Product Card ---------- */
.product-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.product-card .pc-media { position: relative; aspect-ratio: 1 / 1.15; overflow: hidden; background: var(--cream-soft); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 12px; left: 12px; background: var(--brown); color: var(--gold); font-size: .68rem; letter-spacing: .06em; padding: .3rem .65rem; border-radius: 2px; text-transform: uppercase; }
.pc-badge.sale { background: var(--gold); color: var(--brown); }
.pc-wishlist { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--brown); border: none; }
.pc-wishlist:hover, .pc-wishlist.active { color: var(--gold-dark); }
.product-card .pc-body { padding: 1.1rem 1.1rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.pc-category { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-name { font-family: var(--font-serif); font-size: 1.05rem; margin: .25rem 0 .35rem; }
.pc-name a { color: var(--brown); }
.pc-rating { color: var(--gold); font-size: .78rem; margin-bottom: .4rem; }
.pc-rating .count { color: var(--muted); margin-left: .3rem; }
.pc-price { font-family: var(--font-serif); font-weight: 600; color: var(--brown); font-size: 1.05rem; margin-top: auto; }
.pc-price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .88rem; margin-right: .4rem; }
.pc-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.pc-actions .btn { flex: 1; padding: .55rem .5rem; font-size: .76rem; }
.pc-actions .pc-quickcart { flex: 0 0 auto; width: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ---------- Collection Card ---------- */
.collection-card { position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-repeat: no-repeat; }
.collection-card::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(46,31,26,.05) 30%, rgba(20,13,10,.85) 100%); }
.collection-card .cc-body { position: relative; padding: 1.6rem; color: var(--cream); width: 100%; }
.collection-card h3 { color: var(--cream); font-size: 1.35rem; }
.collection-card p { color: rgba(245,235,221,.75); font-size: .85rem; margin: .35rem 0 .9rem; }
.collection-card .cc-meta { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; display:block; }

/* ---------- Review Card ---------- */
.review-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.6rem; height: 100%; }
.review-card .stars { color: var(--gold); font-size: .85rem; margin-bottom: .8rem; }
.review-card p.review-text { color: var(--brown); font-style: italic; font-family: var(--font-serif); font-size: 1rem; margin-bottom: 1.2rem; }
.review-card .reviewer { display: flex; align-items: center; gap: .7rem; }
.review-card .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--cream-soft); }
.review-card .reviewer .name { font-weight: 600; font-size: .88rem; color: var(--brown); }
.review-card .reviewer .loc { font-size: .75rem; color: var(--muted); }

/* ---------- Screenshot Review Card (WhatsApp / social proof screenshots) ---------- */
.ss-review-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.ss-review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ss-review-card .ss-media { position: relative; aspect-ratio: 3 / 4; background: var(--cream-soft); overflow: hidden; }
.ss-review-card .ss-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.ss-verified-badge { position: absolute; top: 10px; left: 10px; background: rgba(46,31,26,.85); color: var(--gold); font-size: .68rem; letter-spacing: .05em; padding: .3rem .65rem; border-radius: 20px; display: flex; align-items: center; gap: .3rem; }
.ss-review-card .ss-footer { padding: .9rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ss-review-card .ss-name { font-size: .82rem; font-weight: 600; color: var(--brown); }
.ss-review-card .ss-shop-link { font-size: .76rem; color: var(--gold-dark); white-space: nowrap; }
.ss-review-card .ss-shop-link:hover { color: var(--brown); }

/* ---------- Rating summary ---------- */
.rating-summary-box { background: var(--brown); color: var(--cream); border-radius: var(--radius-lg); padding: 2.2rem; }
.rating-big { font-family: var(--font-serif); font-size: 3.2rem; color: var(--gold); line-height: 1; }
.rating-bar-row { display: flex; align-items: center; gap: .7rem; font-size: .8rem; margin-bottom: .5rem; }
.rating-bar-row .bar { flex: 1; height: 6px; background: rgba(245,235,221,.15); border-radius: 3px; overflow: hidden; }
.rating-bar-row .bar span { display: block; height: 100%; background: var(--gold); }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 1px solid var(--border-soft); padding-top: 2rem; margin-top: 2.5rem; }
.stats-strip .stat { text-align: center; }
.stats-strip .stat .num { font-family: var(--font-serif); font-size: 1.7rem; color: var(--brown); }
.stats-strip .stat .lbl { font-size: .78rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-label { font-size: .82rem; font-weight: 500; color: var(--brown); margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1px solid var(--border-soft); padding: .7rem .9rem; font-size: .9rem; background: var(--white);
}
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(200,164,90,.15); }
.form-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 2rem; }
.invalid-feedback { display: block; }

/* ---------- Alerts / Toasts ---------- */
.alert-brand { background: var(--cream-soft); border: 1px solid var(--border-gold); color: var(--brown); border-radius: var(--radius-md); }
.toast-container { z-index: 2000; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float:hover { color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
@media (max-width: 575px) {
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .whatsapp-float::before {
        content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
        animation: whatsapp-pulse 2.4s ease-out infinite; z-index: -1;
    }
    @keyframes whatsapp-pulse {
        0% { transform: scale(1); opacity: .55; }
        100% { transform: scale(1.7); opacity: 0; }
    }
}

/* ---------- Badges ---------- */
.badge-status { padding: .35rem .7rem; border-radius: 20px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.badge-pending { background: #FCEED9; color: #9A6B12; }
.badge-confirmed, .badge-approved, .badge-active, .badge-paid, .badge-subscribed { background: #DDF0E1; color: #226A38; }
.badge-processing, .badge-contacted, .badge-in_progress { background: #DCEAF7; color: #1E5F8C; }
.badge-shipped { background: #E4DFF7; color: #4B37A0; }
.badge-delivered, .badge-completed, .badge-read { background: #DDF0E1; color: #226A38; }
.badge-cancelled, .badge-rejected, .badge-disabled, .badge-inactive, .badge-unread, .badge-failed { background: #FBE0DE; color: #A5301F; }
.badge-new { background: var(--brown); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: rgba(245,235,221,.75); padding-top: 4rem; }
.site-footer h6 { color: var(--cream); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 600; }
.site-footer a { color: rgba(245,235,221,.7); font-size: .88rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .65rem; }
.footer-newsletter input { background: rgba(245,235,221,.08); border: 1px solid rgba(245,235,221,.2); color: var(--cream); }
.footer-newsletter input::placeholder { color: rgba(245,235,221,.5); }
.social-circle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(245,235,221,.3); display: inline-flex; align-items: center; justify-content: center; color: var(--cream); margin-right: .5rem; }
.social-circle:hover { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.footer-bottom { border-top: 1px solid rgba(245,235,221,.12); margin-top: 3rem; padding: 1.4rem 0; font-size: .8rem; color: rgba(245,235,221,.55); }

/* ---------- Shop sidebar ---------- */
.shop-filter-box { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.3rem; }
.shop-filter-box h6 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin-bottom: 1rem; font-weight: 700; }
.shop-filter-box .form-check { margin-bottom: .5rem; }
.shop-filter-box .form-check-label { font-size: .87rem; color: var(--muted); }
.shop-filter-box .form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--brown); border: 1px solid var(--border-soft); }
.pagination .page-item.active .page-link { background: var(--brown); border-color: var(--brown); color: var(--gold); }
.pagination .page-link:hover { color: var(--gold-dark); }

/* ---------- Size selector / qty stepper ---------- */
.size-option { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 42px; padding: 0 .8rem; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: .85rem; cursor: pointer; margin-right: .5rem; margin-bottom: .5rem; background: var(--white); }
.size-option input { display: none; }
.size-option.active, .size-option:has(input:checked) { border-color: var(--brown); background: var(--brown); color: var(--cream); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.qty-stepper button { width: 40px; height: 42px; background: none; border: none; color: var(--brown); font-size: 1.1rem; }
.qty-stepper input { width: 46px; text-align: center; border: none; background: none; font-size: .95rem; }
.qty-stepper input:focus { outline: none; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--gold-light); margin-bottom: 1rem; display: block; }
.skeleton { background: linear-gradient(90deg, var(--cream-soft) 25%, #eee2cf 37%, var(--cream-soft) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner-brand { width: 2rem; height: 2rem; border: 3px solid var(--border-soft); border-top-color: var(--gold); border-radius: 50%; animation: btn-spin .7s linear infinite; }

/* ---------- Motion / animations (subtle, luxury-appropriate) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Scroll-reveal: elements fade + rise into view once, on first scroll into viewport */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }
    .reveal-1 { transition-delay: .08s; }
    .reveal-2 { transition-delay: .16s; }
    .reveal-3 { transition-delay: .24s; }
    .reveal-4 { transition-delay: .32s; }

    /* Hero entrance on page load */
    .hero-enter { opacity: 0; transform: translateY(16px); animation: hero-fade-up .8s ease forwards; }
    .hero-enter-1 { animation-delay: .05s; }
    .hero-enter-2 { animation-delay: .18s; }
    .hero-enter-3 { animation-delay: .31s; }
    .hero-enter-4 { animation-delay: .44s; }
    .hero-enter-5 { animation-delay: .57s; }
    @keyframes hero-fade-up { to { opacity: 1; transform: translateY(0); } }

    /* Collection card: gentle lift + image zoom */
    .collection-card { transition: transform .45s ease, box-shadow .45s ease; }
    .collection-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(20,13,10,.35); }

    /* Cart badge: brief pulse when the count updates */
    .cart-badge.pulse { animation: badge-pulse .5s ease; }
    @keyframes badge-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

    /* Wishlist heart: quick pop on toggle */
    .pc-wishlist.pop { animation: heart-pop .4s ease; }
    @keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

    /* Product gallery main image: soft crossfade on thumbnail switch */
    #mainProductImage { transition: opacity .25s ease; }
    #mainProductImage.swapping { opacity: 0; }

    /* Feature icon: subtle lift on hover */
    .feature-icon { transition: transform .35s ease, background-color .35s ease; }
    .feature-block:hover .feature-icon { transform: translateY(-3px) scale(1.06); }

    /* Buttons: slightly livelier hover lift, still understated */
    .btn-gold, .btn-brand, .btn-outline-brand, .btn-outline-gold { transition: all .25s ease, transform .25s ease; }
    .btn-gold:hover, .btn-brand:hover { transform: translateY(-1px); }

    /* Social icons: gentle rise */
    .social-circle { transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
    .social-circle:hover { transform: translateY(-2px); }

    /* Stat numbers: handled via JS count-up, this just smooths the redraw */
    .stats-strip .stat .num, .stat-card .num { transition: color .3s ease; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-enter { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .main-nav { display: none; }
    .header-inner { height: 72px; }
}
@media (max-width: 420px) {
    .brand-logo .logo-text .name { font-size: 1rem; letter-spacing: .06em; }
    .header-icons { gap: .8rem; }
}
