/* =====================================================
   Fragrances4All — custom styles on top of Bootstrap 5
   Palette: near-black ink, warm cream, gold accent
   Type: Playfair Display (serif display) + Inter (sans)
   ===================================================== */

:root {
    --ink: #141311;
    --ink-soft: #3c3a36;
    --cream: #f7f3ec;
    --cream-deep: #efe8db;
    --gold: #c9a24b;
    --gold-dark: #ad8836;
    --line: #e5dfd3;
    --radius: 10px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: #fffdf9;
    font-weight: 400;
}

h1, h2, h3, h4, h5, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

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

/* ---------- Buttons ---------- */
.btn { border-radius: 6px; font-weight: 500; letter-spacing: .02em; }

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #fff;
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
    background: var(--ink);
    color: var(--cream);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .45rem 1rem;
}

/* ---------- Navbar ---------- */
.site-nav {
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
    padding-top: .8rem;
    padding-bottom: .8rem;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.navbar-brand span { color: var(--gold); }
.site-nav .nav-link {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 .35rem;
}
.site-nav .nav-link.active { color: var(--gold-dark); }

.nav-search {
    position: relative;
    min-width: 230px;
}
.nav-search .form-control {
    border-radius: 50px;
    border-color: var(--line);
    background: var(--cream);
    padding-right: 2.6rem;
    font-size: .88rem;
}
.nav-search button {
    position: absolute;
    right: 4px; top: 4px; bottom: 4px;
    width: 34px;
    border: 0;
    border-radius: 50px;
    background: var(--ink);
    color: #fff;
}

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    color: var(--ink);
    padding: .35rem .55rem;
}
.icon-btn:hover { color: var(--gold-dark); }
.icon-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--gold);
    color: #fff;
    font-size: .62rem;
    font-weight: 600;
    min-width: 17px; height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
/* Editorial fragrance photography (Unsplash CDN) with a dark
   left-to-right gradient so the headline stays legible. */
.hero-slide {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}
.hero-slide-1 {
    background-image:
        linear-gradient(100deg, rgba(14,12,9,.94) 0%, rgba(14,12,9,.78) 36%, rgba(14,12,9,.30) 70%, rgba(14,12,9,.15) 100%),
        url('https://images.unsplash.com/photo-1615634260167-c8cdede054de?w=1600&q=80&auto=format&fit=crop');
}
.hero-slide-2 {
    background-image:
        linear-gradient(100deg, rgba(8,11,16,.94) 0%, rgba(8,11,16,.78) 36%, rgba(8,11,16,.32) 72%, rgba(8,11,16,.18) 100%),
        url('https://images.unsplash.com/photo-1523293182086-7651a899d37f?w=1600&q=80&auto=format&fit=crop');
}
.hero-slide-3 {
    background-image:
        linear-gradient(100deg, rgba(16,9,9,.94) 0%, rgba(16,9,9,.76) 36%, rgba(16,9,9,.30) 72%, rgba(16,9,9,.15) 100%),
        url('https://images.unsplash.com/photo-1594035910387-fea47794261f?w=1600&q=80&auto=format&fit=crop');
}

.hero-slide .container { padding-top: 96px; padding-bottom: 96px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-cta .btn-outline-light {
    border-radius: 8px;
    border-width: 1px;
    font-weight: 500;
}
.hero-content { max-width: 620px; color: #fff; }
.hero-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 1.8rem; }

/* ---------- Features strip ---------- */
.features-strip {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 2.4rem 0;
}
.features-strip i { font-size: 1.7rem; color: var(--gold-dark); }
.features-strip h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    margin: .65rem 0 .15rem;
}
.features-strip p { font-size: .8rem; color: var(--ink-soft); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}
.section-head h2 { font-size: 1.9rem; font-weight: 600; margin: 0; }
.section-link {
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
}

.section-dark { background: var(--ink); }
.section-dark .section-head h2 { color: var(--cream); }

/* ---------- Product card ---------- */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 14px 34px rgba(20, 19, 17, .1);
    transform: translateY(-3px);
}
.product-card-media {
    position: relative;
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-media a {
    display: flex;
    width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}
.product-card-media img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }

.badge-tag {
    position: absolute;
    top: .7rem; left: .7rem;
    z-index: 2;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .25rem .55rem;
    border-radius: 4px;
}
.badge-tester { background: var(--cream-deep); color: var(--ink-soft); border: 1px solid var(--line); }

.product-card-actions {
    position: absolute;
    top: .7rem; right: .7rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .25s ease, transform .25s ease;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }

.action-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.action-btn:hover { background: var(--ink); color: #fff; }
.action-btn-lg { width: 48px; height: 48px; font-size: 1.15rem; }
.wishlist-btn.active i::before { content: "\f415"; } /* bi-heart-fill */
.wishlist-btn.active { color: #c0392b; border-color: #c0392b; }

.product-card-body { padding: 1rem 1.1rem 1.15rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-brand {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-decoration: none;
}
.product-name {
    display: block;
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink);
    text-decoration: none;
    margin-top: .15rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-name:hover { color: var(--gold-dark); }
.product-meta { font-size: .74rem; color: #8d887d; margin-top: .15rem; }
.product-price { font-weight: 600; }

.btn-add {
    background: var(--cream);
    border: 1px solid var(--line);
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .7rem;
}
.btn-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Brand showcase ---------- */
.brand-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: transform .25s ease;
}
.brand-card:hover { transform: translateY(-4px); color: var(--gold); }
.brand-card-1 { background: linear-gradient(160deg, #4a3a1e, #20180a); }
.brand-card-2 { background: linear-gradient(160deg, #2e3b4a, #11161d); }
.brand-card-3 { background: linear-gradient(160deg, #4a2e3c, #1c1016); }
.brand-card-4 { background: linear-gradient(160deg, #32422f, #101810); }
.brand-card-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600; }
.brand-card-count { font-size: .78rem; opacity: .65; letter-spacing: .05em; }

/* ---------- Category banners ---------- */
.category-banner {
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    border-radius: var(--radius);
    padding: 1.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    background-size: cover;
    background-position: center;
}
.category-banner:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(20,19,17,.22); }
/* zoom the photo on hover via a pseudo-layer */
.category-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.category-banner:hover::before { transform: scale(1.06); }
.category-men {
    background-image:
        linear-gradient(to top, rgba(8,9,11,.92) 0%, rgba(8,9,11,.45) 48%, rgba(8,9,11,.12) 100%),
        url('https://images.unsplash.com/photo-1610461888750-10bfc601b874?w=800&q=80&auto=format&fit=crop');
}
.category-women {
    background-image:
        linear-gradient(to top, rgba(18,8,12,.9) 0%, rgba(18,8,12,.42) 48%, rgba(18,8,12,.10) 100%),
        url('https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?w=800&q=80&auto=format&fit=crop');
}
.category-unisex {
    background-image:
        linear-gradient(to top, rgba(12,12,9,.9) 0%, rgba(12,12,9,.42) 48%, rgba(12,12,9,.10) 100%),
        url('https://images.unsplash.com/photo-1585386959984-a4155224a1ad?w=800&q=80&auto=format&fit=crop');
}
.category-banner-label { position: relative; z-index: 1; }
.category-banner-tag {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.category-banner-label h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1.7rem;
    margin-bottom: .35rem;
}
.category-banner-cta {
    color: var(--gold);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.category-banner-cta i { transition: transform .25s ease; }
.category-banner:hover .category-banner-cta i { transform: translateX(4px); }

/* ---------- Page banner / breadcrumbs ---------- */
.page-banner {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 2.2rem 0 1.8rem;
}
.page-banner h1 { font-size: 2rem; font-weight: 600; margin: 0; }
.breadcrumb { font-size: .78rem; margin-bottom: .5rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }

/* ---------- Shop filters ---------- */
.shop-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: sticky;
    top: 90px;
}
.filter-block { margin-bottom: 1.4rem; }
.filter-block h6 {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .7rem;
}
.filter-block .form-check { margin-bottom: .3rem; }
.filter-block .form-check-label { font-size: .87rem; }
.filter-block .form-check-label small { color: #a39d90; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

.brand-list { max-height: 230px; overflow-y: auto; padding-right: .3rem; }

.results-count { font-size: .88rem; color: var(--ink-soft); }

.pagination .page-link {
    color: var(--ink);
    border-color: var(--line);
}
.pagination .page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
}

/* ---------- Product page ---------- */
.product-gallery {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.product-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .6rem; }
.gallery-thumbs .thumb {
    width: 72px; height: 72px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .4rem;
    background: #fff;
    cursor: pointer;
}
.gallery-thumbs .thumb.active { border-color: var(--gold); }

.product-title { font-size: 1.9rem; font-weight: 600; margin: .2rem 0 .4rem; }
.product-itemcode { font-size: .8rem; color: #8d887d; letter-spacing: .02em; }
.product-itemcode span { color: var(--ink-soft); font-weight: 600; }

.stock-pill {
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 50px;
}
.stock-pill.in  { background: #e8f4e9; color: #2e7d32; }
.stock-pill.out { background: #fdecea; color: #c0392b; }

.trust-strip span { font-size: .8rem; color: var(--ink-soft); }
.trust-strip i { color: var(--gold-dark); margin-right: .3rem; }

.variant-chip {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .5rem .9rem;
    text-decoration: none;
    font-size: .8rem;
    background: #fff;
    transition: border-color .2s ease;
}
.variant-chip:hover { border-color: var(--gold); }
.variant-chip strong { color: var(--gold-dark); }

.product-accordion .accordion-button {
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
    box-shadow: none;
}
.product-accordion .accordion-button:not(.collapsed) { color: var(--gold-dark); }
.spec-table th {
    width: 130px;
    font-weight: 600;
    font-size: .82rem;
    background: var(--cream);
}
.spec-table td { font-size: .87rem; }

/* ---------- Quantity control ---------- */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    border: 0;
    background: transparent;
    width: 30px; height: 32px;
    font-size: 1rem;
    color: var(--ink-soft);
}
.qty-btn:hover { background: var(--cream); }
.qty-control input {
    width: 42px;
    border: 0;
    text-align: center;
    font-size: .88rem;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-lg .qty-btn { width: 38px; height: 46px; }
.qty-lg input { width: 52px; font-size: 1rem; }

/* ---------- Cart (offcanvas + page) ---------- */
.cart-offcanvas { width: 420px; max-width: 92vw; }
.cart-offcanvas .offcanvas-footer {
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid var(--line);
}
.cart-line {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.cart-line-img img, .cart-row .cart-line-img img {
    width: 70px; height: 70px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .3rem;
}
.cart-line-name {
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    display: block;
}
.cart-remove {
    border: 0;
    background: transparent;
    color: #b3aea2;
    font-size: .8rem;
    align-self: flex-start;
}
.cart-remove:hover { color: #c0392b; }
.cart-empty { color: var(--ink-soft); }

.cart-table { border-top: 1px solid var(--line); }
.cart-row { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cart-row-total { min-width: 80px; text-align: right; }

.summary-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: sticky;
    top: 90px;
}

/* ---------- Quick view ---------- */
.quickview-img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}
.quickview-img img { max-height: 100%; object-fit: contain; }
.quickview-desc { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .8rem; font-size: .92rem; }
.contact-list i { color: var(--gold-dark); margin-right: .6rem; }
.contact-form .form-label { font-size: .82rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #b9b4a8;
    padding: 3.5rem 0 0;
    margin-top: 3rem;
    font-size: .88rem;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.footer-brand span { color: var(--gold); }
.footer-blurb { max-width: 320px; }
.site-footer h6 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a { color: #b9b4a8; text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); }
.footer-contact i { color: var(--gold); margin-right: .5rem; }
.social-icons a {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #3a382f;
    border-radius: 50%;
    color: #b9b4a8;
    margin-right: .5rem;
    text-decoration: none;
    transition: all .2s ease;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-bottom {
    border-top: 1px solid #2b2922;
    margin-top: 2.5rem;
    padding: 1.2rem 0;
    gap: .6rem;
}
.payment-icons i { font-size: 1.3rem; margin-left: .8rem; color: #8d887d; }

/* ---------- Blog ---------- */
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.blog-card:hover { box-shadow: 0 14px 34px rgba(20,19,17,.1); transform: translateY(-3px); }
.blog-card-cover {
    display: flex;
    align-items: flex-end;
    min-height: 170px;
    padding: 1rem;
    text-decoration: none;
}
/* Gradient covers by category — never 404 */
.blog-cover-guides  { background: linear-gradient(135deg, #4a3a1e, #1c1408); }
.blog-cover-for-him { background: linear-gradient(135deg, #2e3b4a, #10161d); }
.blog-cover-for-her { background: linear-gradient(135deg, #4a2e3c, #1a0f15); }
.blog-cover-brands  { background: linear-gradient(135deg, #32422f, #101810); }
.blog-cover-new-in  { background: linear-gradient(135deg, #41355a, #161020); }
.blog-card-category {
    background: rgba(255,255,255,.14);
    color: #f3eee2;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.blog-card-meta { font-size: .74rem; color: #8d887d; letter-spacing: .04em; }
.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.35;
}
.blog-card-title:hover { color: var(--gold-dark); }
.blog-card-excerpt { font-size: .87rem; color: var(--ink-soft); margin: 0; }

.blog-content { font-size: 1.02rem; line-height: 1.75; color: #2c2a26; }
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 .8rem;
}
.blog-content h3 { font-size: 1.18rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.blog-content a { color: var(--gold-dark); }
.blog-content ul { padding-left: 1.2rem; }

/* ---------- In-article product grid (blog seeder) ---------- */
.blog-product-grid { margin: 1.6rem 0 2rem; }
.blog-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece8e0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.blog-product-card:hover { box-shadow: 0 12px 28px rgba(20,19,17,.1); transform: translateY(-3px); }
.blog-product-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f5f0;
    padding: .8rem;
}
.blog-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.blog-product-info { padding: .7rem .85rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.blog-product-brand { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8d887d; }
.blog-product-name {
    font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--ink, #1b1a17);
    text-decoration: none; display: block;
}
.blog-product-name:hover { color: var(--gold-dark); }
.blog-product-meta { font-size: .74rem; color: #9b958a; }
.blog-product-price { font-size: 1.02rem; font-weight: 700; color: var(--ink, #1b1a17); margin-top: .15rem; }
.blog-product-btn { margin-top: .55rem; width: 100%; }

/* ---------- Article FAQ ---------- */
.blog-faq { margin: 1rem 0 1.5rem; }
.blog-faq-item {
    border-top: 1px solid #ece8e0;
    padding: 1rem 0;
}
.blog-faq-item:last-child { border-bottom: 1px solid #ece8e0; }
.blog-faq-q { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; }
.blog-faq-a { font-size: .95rem; color: var(--ink-soft, #44413b); margin: 0; }
.blog-faq-a p { margin: 0; }

/* ---------- Article closing CTA ---------- */
.blog-cta {
    margin: 2.2rem 0 .5rem;
    padding: 1.4rem 1.6rem;
    background: #faf8f3;
    border: 1px solid #ece8e0;
    border-radius: 12px;
}
.blog-cta p { margin: 0 0 .8rem; }
.blog-cta p:last-child { margin-bottom: 0; }

/* ---------- Toasts ---------- */
.toast { border-radius: 8px; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .nav-search { margin: .8rem 0 .4rem; width: 100%; }
    .shop-filters { position: static; margin-bottom: 1rem; }
    .hero-slide { min-height: 440px; }
}
@media (max-width: 575.98px) {
    .section { padding: 2.6rem 0; }
    .section-head h2 { font-size: 1.45rem; }
    .cart-row { flex-wrap: wrap; }
}

/* =====================================================
   v2 design refresh — modern polish layer
   (cascade overrides; loaded after the base rules)
   ===================================================== */

/* ---------- Buttons: gold gradient + lift ---------- */
.btn-gold {
    background: linear-gradient(135deg, #d9b35e 0%, #c9a24b 45%, #ad8836 100%);
    border: 0;
    padding-top: .55rem;
    padding-bottom: .55rem;
    box-shadow: 0 6px 18px rgba(201, 162, 75, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, #c9a24b 0%, #ad8836 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 162, 75, .45);
}
.btn-lg { border-radius: 8px; }

/* ---------- Navbar: glassy + animated underline ---------- */
.site-nav {
    background: rgba(255, 253, 249, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-nav .nav-link { position: relative; }
.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .6rem; right: .6rem; bottom: .15rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(20,19,17,.12);
    padding: .5rem;
}
.site-nav .dropdown-item { border-radius: 8px; font-size: .9rem; padding: .5rem .8rem; }
.site-nav .dropdown-item:hover { background: var(--cream); color: var(--gold-dark); }

/* ---------- Hero: glow, texture, entrance ---------- */
.hero-slide { position: relative; overflow: hidden; }
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(201,162,75,.22), transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 90%, rgba(255,255,255,.05), transparent 60%);
    pointer-events: none;
}
.hero-slide::after {
    content: "";
    position: absolute;
    right: -120px; top: 50%;
    transform: translateY(-50%);
    width: 460px; height: 460px;
    border: 1px solid rgba(201,162,75,.25);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 em {
    font-style: italic;
    color: var(--gold);
}
.carousel-item.active .hero-content > * {
    animation: heroUp .7s ease both;
}
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero .carousel-indicators button {
    width: 26px; height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.45);
    border: 0;
}
.hero .carousel-indicators .active { background: var(--gold); }

/* ---------- Section eyebrows ---------- */
.section-eyebrow {
    display: block;
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.section-dark .section-eyebrow { color: var(--gold); }

/* ---------- Cards: softer, rounder, calmer ---------- */
.product-card { border-radius: 16px; }
.product-card:hover { box-shadow: 0 18px 44px rgba(20,19,17,.12); transform: translateY(-5px); }
.btn-add { border-radius: 50px; padding: .35rem .85rem; }
.badge-tag { border-radius: 50px; }
.brand-card, .category-banner { border-radius: 16px; position: relative; overflow: hidden; }
.brand-card::after, .category-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(201,162,75,.18), transparent 65%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.brand-card:hover::after, .category-banner:hover::after { opacity: 1; }

/* ---------- Scroll-reveal (added by JS; no-JS safe) ---------- */
body.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
body.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Newsletter band ---------- */
.newsletter-band {
    background: var(--ink);
    color: #cfcabd;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.newsletter-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 90% at 50% 0%, rgba(201,162,75,.14), transparent 70%);
}
.newsletter-band h2 { color: var(--cream); font-size: 1.9rem; font-weight: 600; }
.newsletter-band p { max-width: 460px; margin: .6rem auto 1.5rem; font-size: .92rem; }
.newsletter-band .container { position: relative; }
.newsletter-form {
    display: flex;
    gap: .5rem;
    max-width: 440px;
}
.newsletter-form .form-control {
    border-radius: 50px;
    border: 1px solid #3a382f;
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: .65rem 1.2rem;
}
.newsletter-form .form-control::placeholder { color: #8d887d; }
.newsletter-form .btn { border-radius: 50px; padding-left: 1.4rem; padding-right: 1.4rem; }

/* ---------- Brands A–Z page ---------- */
.letter-index { display: flex; flex-wrap: wrap; gap: .35rem; }
.letter-index a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.letter-index a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.brand-letter-group { margin-bottom: 2.2rem; scroll-margin-top: 110px; }
.brand-letter {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
    padding-bottom: .3rem;
}
.brand-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .65rem .9rem;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: all .2s ease;
}
.brand-link:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,19,17,.07); }
.brand-link-count {
    background: var(--cream);
    color: var(--ink-soft);
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 50px;
}

/* ---------- Policy / About pages ---------- */
.policy-content { font-size: .98rem; line-height: 1.8; color: #2c2a26; }
.policy-content .lead-text { font-size: 1.15rem; line-height: 1.7; color: var(--ink); }
.policy-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.2rem 0 .8rem;
}
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 .5rem; font-family: 'Inter', sans-serif; }
.policy-content a { color: var(--gold-dark); }
.policy-content ul, .policy-content ol { padding-left: 1.3rem; }
.policy-content li { margin-bottom: .45rem; }
.about-stats .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.about-stats .stat-cap {
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- FAQ accordion ---------- */
.faq-section { background: var(--cream); }
.faq-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: 12px !important;
    margin-bottom: .7rem;
    overflow: hidden;
    background: #fff;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    background: #fff;
    box-shadow: none;
    padding: 1.1rem 1.2rem;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--gold-dark); background: #fff; }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq-accordion .accordion-body { color: var(--ink-soft); line-height: 1.7; padding-top: 0; }

/* ---------- Page banner refresh ---------- */
.page-banner {
    background:
        radial-gradient(ellipse 50% 100% at 90% 0%, rgba(201,162,75,.12), transparent 60%),
        var(--cream);
}
.page-banner h1 { font-size: 2.3rem; }

/* =====================================================
   v3 — real product photography in banners
   ===================================================== */

/* ---------- Hero: floating product tiles ---------- */
.hero-products {
    position: relative;
    height: 400px;
}
.hero-products::before {
    /* gold halo behind the tiles */
    content: "";
    position: absolute;
    width: 360px; height: 360px;
    right: 20px; top: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,75,.28), transparent 65%);
}
.hero-tile {
    position: absolute;
    background: #fffdf9;
    border-radius: 24px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    transition: transform .35s ease;
}
.hero-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-tile-main {
    width: 290px; height: 330px;
    right: 90px; top: 8px;
    animation: floatY 6s ease-in-out infinite;
    z-index: 1;
}
.hero-tile-small {
    width: 165px; height: 185px;
    right: 0; bottom: 6px;
    rotate: 7deg;
    animation: floatY 7.5s ease-in-out 1.2s infinite;
}
.hero-tile:hover { transform: scale(1.04); }
@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

/* ---------- Category banners: photo collage ---------- */
.category-banner { min-height: 340px; }
.category-banner-imgs {
    position: absolute;
    top: 1.4rem; right: 1.2rem;
    display: flex;
    z-index: 1;
}
.cat-tile {
    width: 112px; height: 132px;
    background: #fffdf9;
    border-radius: 16px;
    padding: .55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
    transition: transform .3s ease;
}
.cat-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-tile:first-child {
    transform: rotate(-7deg) translate(16px, 12px);
    z-index: 1;
}
.cat-tile:last-child { transform: rotate(6deg); }
.category-banner:hover .cat-tile:first-child { transform: rotate(-3deg) translate(12px, 8px) scale(1.04); }
.category-banner:hover .cat-tile:last-child  { transform: rotate(2deg) scale(1.04); }

/* ---------- Brand cards: bestseller photo medallion ---------- */
.brand-card { min-height: 220px; padding-right: 1.2rem; }
.brand-card-img {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 92px; height: 92px;
    background: #fffdf9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    transform: rotate(8deg);
    transition: transform .3s ease;
    z-index: 1;
}
.brand-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 50%; }
.brand-card:hover .brand-card-img { transform: rotate(0deg) scale(1.07); }

/* ---------- The Fragrances4All Promise (editorial split band) ---------- */
.promise-band { padding: 0; }
.promise-band .row {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20,19,17,.12);
    margin: 1rem 0 3rem;
}
.promise-photo {
    min-height: 420px;
    background:
        linear-gradient(120deg, rgba(20,19,17,.12), rgba(20,19,17,0)),
        url('https://images.unsplash.com/photo-1588405748880-12d1d2a59f75?w=1000&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}
.promise-copy {
    background: var(--cream);
    padding: 3rem 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promise-copy h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.promise-copy h2 em { font-style: italic; color: var(--gold-dark); }
.promise-copy > p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.promise-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem 1.2rem;
    margin-top: 1.4rem;
}
.promise-points div { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; }
.promise-points i {
    color: var(--gold-dark);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.promise-copy .btn { align-self: flex-start; }

@media (max-width: 991.98px) {
    .promise-photo { min-height: 300px; }
    .promise-copy { padding: 2.2rem 1.8rem; }
}
@media (max-width: 575.98px) {
    .promise-points { grid-template-columns: 1fr; }
    .category-banner { min-height: 340px; }
}

/* =====================================================
   Responsive hardening (mobile & tablet)
   Audited at 320 / 768 px with Chrome DevTools — the only
   real overflow was .row.g-5 (3rem gutter) on narrow screens.
   ===================================================== */

/* Safety net: never allow a stray element to scroll the page sideways.
   `clip` (not hidden) so position:sticky keeps working. */
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }

/* Fix: large 3rem gutters overflow the full-width container below sm.
   Vertical spacing for stacked columns is preserved. */
@media (max-width: 575.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ---- Tablet & below (navbar already collapses < 992) ---- */
@media (max-width: 991.98px) {
    .hero-slide .container { padding-top: 70px; padding-bottom: 70px; }
    .page-banner h1 { font-size: 2rem; }
    .product-title { font-size: 1.65rem; }
    .promise-copy h2 { font-size: 1.7rem; }
}

/* ---- Large phones / small tablets ---- */
@media (max-width: 767.98px) {
    .section-head { flex-wrap: wrap; gap: .3rem .8rem; }
    /* Cart page rows reflow: image + details on top, controls beneath */
    .cart-row { flex-wrap: wrap; row-gap: .75rem; }
    .cart-row .cart-row-total { margin-left: auto; }
}

/* ---- Phones ---- */
@media (max-width: 575.98px) {
    .hero-slide { min-height: 380px; }
    .hero-content h1 { font-size: 1.85rem; }
    .hero-sub { font-size: .95rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }

    .page-banner h1 { font-size: 1.55rem; }
    .section-head h2 { font-size: 1.4rem; }

    /* Newsletter input + button stack */
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }
    .newsletter-band h2 { font-size: 1.5rem; }

    /* Brand showcase cards: smaller photo medallion so text breathes */
    .brand-card { min-height: 168px; padding: 1.1rem; }
    .brand-card-img { width: 60px; height: 60px; top: .8rem; right: .8rem; }
    .brand-card-name { font-size: 1.1rem; }

    .category-banner { min-height: 300px; }
    .category-banner-label h3 { font-size: 1.45rem; }

    .promise-copy { padding: 1.8rem 1.4rem; }
    .promise-copy h2 { font-size: 1.5rem; }

    /* Product page */
    .product-title { font-size: 1.45rem; }
    .summary-card { position: static; }
    .faq-accordion .accordion-button { font-size: .92rem; padding: .9rem 1rem; }
    .spec-table th { width: 96px; font-size: .78rem; }
}

/* =====================================================
   Custom checkout page
   ===================================================== */
.checkout-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.2rem;
}
.checkout-step {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}
.checkout-msg {
    margin-top: .9rem;
    padding: .7rem .9rem;
    border-radius: 8px;
    background: #fdecea;
    color: #c0392b;
    font-size: .88rem;
}
.checkout-summary { position: sticky; top: 90px; }
.checkout-items { max-height: 340px; overflow-y: auto; }
.checkout-line { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.checkout-line:first-child { padding-top: 0; }
.checkout-line-img { position: relative; flex-shrink: 0; }
.checkout-line-img img {
    width: 56px; height: 56px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .25rem;
}
.checkout-line-qty {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--ink);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    min-width: 19px; height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 991.98px) {
    .checkout-summary { position: static; margin-top: 1.5rem; }
}

/* =====================================================
   v4 — Premium polish layer
   Loaded last; refines depth, motion, pagination, cart,
   checkout and the mobile header. Structure-safe.
   ===================================================== */

:root {
    --shadow-sm: 0 1px 2px rgba(20,19,17,.05), 0 2px 8px rgba(20,19,17,.04);
    --shadow-md: 0 6px 18px rgba(20,19,17,.07), 0 2px 6px rgba(20,19,17,.05);
    --shadow-lg: 0 18px 44px rgba(20,19,17,.12), 0 6px 14px rgba(20,19,17,.06);
    --gold-grad: linear-gradient(135deg, #d8b86a 0%, var(--gold) 45%, var(--gold-dark) 100%);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Tighter, more refined display headings */
h1, h2, h3, .font-serif { letter-spacing: -.01em; }
.section-head h2 { letter-spacing: -.015em; }

/* Brand-tinted text selection + accessible focus rings */
::selection { background: rgba(201,162,75,.28); color: var(--ink); }
a:focus-visible, button:focus-visible, .btn:focus-visible,
.page-link:focus-visible, .form-control:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 6px;
}
.btn:focus, .form-control:focus { box-shadow: 0 0 0 .2rem rgba(201,162,75,.22); }

/* Slim gold accent scrollbar (desktop) */
@media (hover: hover) and (pointer: fine) {
    * { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
    *::-webkit-scrollbar { width: 9px; height: 9px; }
    *::-webkit-scrollbar-thumb { background: rgba(173,136,54,.55); border-radius: 50px; border: 2px solid transparent; background-clip: content-box; }
    *::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); background-clip: content-box; }
}

/* ---------- Buttons: sheen, lift, comfortable tap targets ---------- */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.btn-gold {
    background-image: var(--gold-grad);
    border: none;
    box-shadow: 0 4px 14px rgba(173,136,54,.32);
}
.btn-gold:hover, .btn-gold:focus {
    background-image: var(--gold-grad);
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(173,136,54,.4);
}
.btn-gold:active { transform: translateY(0); }
.btn-dark { box-shadow: 0 4px 14px rgba(20,19,17,.18); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,19,17,.26); }
.btn-lg { padding: .8rem 1.5rem; }
.btn-outline-dark:hover { transform: translateY(-2px); }
/* Min 44px tap targets for the primary actions on touch devices */
@media (max-width: 767.98px) {
    .btn-lg, .btn-gold.w-100, .btn-dark.w-100, #pay-btn { min-height: 48px; }
}

/* ---------- Product cards: deeper, calmer luxury ---------- */
.product-card {
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(201,162,75,.55);
}
.product-card-media { background: linear-gradient(170deg, #fff 0%, #faf7f1 100%); }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-price { color: var(--ink); letter-spacing: -.01em; }
.btn-add { border-radius: 8px; transition: all .2s var(--ease); }
.action-btn { box-shadow: var(--shadow-sm); }

/* In-article blog product cards inherit the same finish */
.blog-product-card { box-shadow: var(--shadow-sm); }
.blog-product-card:hover { box-shadow: var(--shadow-md); border-color: rgba(201,162,75,.5); }

/* ---------- Pagination: pill nav, gold active, lift ---------- */
.pagination { gap: .35rem; flex-wrap: wrap; }
.pagination .page-item .page-link {
    border: 1px solid var(--line);
    border-radius: 10px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all .2s var(--ease);
}
.pagination .page-item .page-link:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.pagination .page-item.active .page-link {
    background-image: var(--gold-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(173,136,54,.36);
}
.pagination .page-item.disabled .page-link {
    opacity: .45;
    box-shadow: none;
    background: var(--cream);
}

/* ---------- Cart offcanvas + page ---------- */
.cart-offcanvas { border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(20,19,17,.16); }
.cart-offcanvas .offcanvas-header {
    background: linear-gradient(180deg, var(--cream) 0%, #fffdf9 100%);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.5rem;
}
.cart-offcanvas .offcanvas-title { font-size: 1.25rem; }
.cart-offcanvas .offcanvas-body { padding: 0 1.5rem; }
.cart-offcanvas .offcanvas-footer {
    background: linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
}
.cart-line-img img, .cart-row .cart-line-img img {
    border-radius: 10px;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cart-line-img:hover img { border-color: var(--gold); transform: scale(1.03); }
.cart-line-name:hover, .cart-row .cart-line-name:hover { color: var(--gold-dark); }
.cart-remove { transition: color .2s var(--ease); border-radius: 6px; }
.cart-remove:hover { color: #c0392b; }

/* Quantity control: rounder, gold hover */
.qty-control { border-radius: 8px; overflow: hidden; }
.qty-btn { transition: background .2s var(--ease), color .2s var(--ease); cursor: pointer; }
.qty-btn:hover { background: var(--ink); color: #fff; }

/* Summary cards (cart + product side rail): elevated, gold top edge */
.summary-card {
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    position: sticky;
    background: linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
    border-top: 3px solid transparent;
    border-image: var(--gold-grad) 1;
}

/* ---------- Checkout: premium steps + summary ---------- */
.checkout-page .breadcrumb { margin-bottom: .4rem; }
.checkout-block {
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.1rem;
    transition: box-shadow .25s var(--ease);
}
.checkout-block:focus-within { box-shadow: var(--shadow-md); border-color: rgba(201,162,75,.5); }
.checkout-step {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1rem;
}
.checkout-step::before {
    content: "";
    width: 26px; height: 2px; flex: none;
    background: var(--gold-grad);
    border-radius: 2px;
}
.checkout-summary {
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
    border-top: 3px solid transparent;
    border-image: var(--gold-grad) 1;
}
.checkout-line-img img { border-radius: 9px; }
#pay-btn { letter-spacing: .02em; }

/* ---------- Header: refined sticky + mobile ---------- */
.site-nav {
    background: rgba(255,253,249,.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20,19,17,.04);
}
.site-nav .nav-link { transition: color .2s var(--ease); border-radius: 6px; }
.icon-btn { transition: color .2s var(--ease), transform .15s var(--ease); border-radius: 10px; }
.icon-btn:hover { transform: translateY(-1px); }
.navbar-toggler { border: 1px solid var(--line); border-radius: 10px; padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(201,162,75,.25); }

@media (max-width: 991.98px) {
    /* Collapsed menu becomes a clean, tappable panel */
    .site-nav .navbar-collapse {
        background: #fffdf9;
        border: 1px solid var(--line);
        border-radius: 14px;
        margin-top: .7rem;
        padding: .6rem .9rem 1rem;
        box-shadow: var(--shadow-lg);
    }
    .site-nav .navbar-nav { gap: .1rem; }
    .site-nav .nav-link {
        padding: .7rem .4rem;
        margin: 0;
        border-bottom: 1px solid var(--line);
        font-size: .95rem;
    }
    .site-nav .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }
    .site-nav .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding: .2rem 0 .2rem .8rem;
        background: var(--cream);
        border-radius: 10px;
        margin: .2rem 0 .3rem;
    }
    .nav-search { margin: .9rem 0 .2rem; }
    .nav-search .form-control { height: 46px; font-size: 16px; /* prevents iOS zoom */ }
    .nav-search button { width: 40px; }
    .icon-btn { font-size: 1.35rem; padding: .45rem .55rem; }
}

@media (max-width: 575.98px) {
    .navbar-brand { font-size: 1.3rem; }
    .announcement-bar { font-size: .68rem; letter-spacing: .05em; padding: .4rem .6rem; }
    /* Cart offcanvas fills the phone screen for comfortable tapping */
    .cart-offcanvas { width: 100vw; max-width: 100vw; }
    .pagination .page-item .page-link { min-width: 40px; height: 40px; }
    /* Hide non-adjacent page numbers on tiny screens to avoid wrap clutter */
    .summary-card, .checkout-summary { border-radius: 12px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .product-card:hover, .btn-gold:hover, .btn-dark:hover,
    .pagination .page-item .page-link:hover, .icon-btn:hover { transform: none; }
}

/* =====================================================
   Header search — recommendation dropdown (type-ahead)
   ===================================================== */
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden auto;
    max-height: min(74vh, 520px);
    padding: .35rem;
    animation: suggestIn .16s var(--ease);
}
@keyframes suggestIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-suggest[hidden] { display: none; }

.suggest-section {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9b958a;
    padding: .55rem .7rem .3rem;
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem .6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    transition: background .15s var(--ease);
}
.suggest-item.active,
.suggest-item:hover { background: var(--cream); }
.suggest-item mark { background: rgba(201,162,75,.26); color: inherit; padding: 0 .05em; border-radius: 3px; }

/* Brand rows */
.suggest-brand-icon {
    width: 30px; height: 30px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-deep);
    color: var(--gold-dark);
    border-radius: 8px;
    font-size: .8rem;
}
.suggest-brand-name { flex: 1; font-weight: 600; font-size: .9rem; }
.suggest-brand-count {
    font-size: .72rem;
    color: #9b958a;
    background: var(--cream);
    border-radius: 50px;
    padding: .1rem .5rem;
}

/* Product rows */
.suggest-thumb {
    width: 46px; height: 46px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    padding: .25rem;
    display: flex; align-items: center; justify-content: center;
}
.suggest-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.suggest-brandline { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.suggest-name { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-meta { font-size: .73rem; color: #9b958a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }

.suggest-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: .35rem .15rem .15rem;
    padding: .6rem;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .2s var(--ease);
}
.suggest-all.active,
.suggest-all:hover { background: var(--gold-dark); color: #fff; }
.suggest-empty { padding: 1.1rem .8rem; text-align: center; color: var(--ink-soft); font-size: .88rem; }

/* On mobile the search sits in the collapsed panel — anchor the dropdown
   to the panel width and keep it comfortably tappable. */
@media (max-width: 991.98px) {
    .search-suggest { max-height: min(60vh, 420px); }
    .suggest-item { padding: .6rem .55rem; }
}

/* =====================================================
   Accounts (login / register / account)
   ===================================================== */
.auth-card {
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2.2rem 2rem;
}
.auth-head { text-align: center; margin-bottom: 1.4rem; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.auth-card .form-label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.auth-card .form-control { border-radius: 10px; }
.auth-offer {
    display: flex; align-items: center; gap: .7rem;
    background: linear-gradient(135deg, #fbf6ea, #f3ead2);
    border: 1px solid #ecdcb4;
    border-radius: 12px;
    padding: .8rem 1rem;
    font-size: .88rem;
    color: var(--ink-soft);
}
.auth-offer i { font-size: 1.4rem; color: var(--gold-dark); }

.account-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 1.6rem;
    text-align: center;
}
.account-avatar {
    width: 68px; height: 68px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-image: var(--gold-grad);
    color: #fff; font-size: 1.7rem; font-weight: 700;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 6px 16px rgba(173,136,54,.35);
}
.account-orders th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #9b958a; }
.account-orders td { font-size: .9rem; }
.order-ref-link { text-decoration: none; color: var(--ink); font-weight: 600; }
.order-ref-link:hover { color: var(--gold-dark); }

/* Order detail */
.order-detail-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
}
.order-line {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--line);
}
.order-line:last-child { border-bottom: 0; }
.order-line-total { min-width: 76px; text-align: right; }
.account-dropdown { min-width: 210px; border-radius: 12px; box-shadow: var(--shadow-lg); border-color: var(--line); }
.account-dropdown .dropdown-header { font-weight: 700; color: var(--ink); }

/* =====================================================
   Promo code box (cart summary)
   ===================================================== */
.promo-form { display: flex; gap: .5rem; }
.promo-form .form-control { border-radius: 10px; }
.promo-form .btn { border-radius: 10px; white-space: nowrap; }
.promo-applied {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    background: #eef7ee;
    border: 1px solid #cbe6cb;
    color: #2e7d32;
    border-radius: 10px;
    padding: .55rem .8rem;
    font-size: .85rem; font-weight: 600;
}
.btn-close-code {
    border: 0; background: transparent; color: #2e7d32;
    font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}
.btn-close-code:hover { color: #c0392b; }
.promo-msg { font-size: .8rem; margin-top: .4rem; min-height: 1em; }

/* =====================================================
   Homepage welcome-offer popup
   ===================================================== */
.promo-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; transition: opacity .3s var(--ease);
}
.promo-modal.open { opacity: 1; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(20,19,17,.6); backdrop-filter: blur(4px); }
.promo-dialog {
    position: relative;
    display: grid; grid-template-columns: 1fr 1.15fr;
    width: min(880px, 96vw);
    max-height: 92vh;
    background: #fffdf9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(20,19,17,.4);
    transform: translateY(16px) scale(.98);
    transition: transform .35s var(--ease);
}
.promo-modal.open .promo-dialog { transform: translateY(0) scale(1); }
.promo-x {
    position: absolute; top: .7rem; right: .9rem; z-index: 3;
    width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.85); color: var(--ink);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.promo-x:hover { background: #fff; transform: rotate(90deg); }

/* Visual (image) side */
.promo-visual {
    position: relative;
    background: radial-gradient(120% 120% at 20% 10%, #2a2622 0%, #141311 60%, #0d0c0b 100%);
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
}
.promo-eyebrow {
    position: absolute; top: 1.1rem; left: 1.3rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold);
}
.promo-bottles { position: relative; height: 260px; }
.promo-bottle {
    position: absolute;
    width: 130px; height: 180px; object-fit: contain;
    background: rgba(255,255,255,.96);
    border-radius: 12px; padding: .7rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.promo-bottle-1 { left: 6%;  top: 46px; transform: rotate(-8deg); width: 118px; height: 160px; z-index: 1; }
.promo-bottle-2 { left: 34%; top: 8px;  z-index: 3; }
.promo-bottle-3 { right: 4%; top: 60px; transform: rotate(8deg); width: 112px; height: 154px; z-index: 2; }
.promo-badge {
    position: absolute; bottom: 1.1rem; right: 1.2rem;
    width: 92px; height: 92px; border-radius: 50%;
    background-image: var(--gold-grad); color: #1b1a17;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.9rem; line-height: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
    transform: rotate(-10deg);
}
.promo-badge span { font-family: 'Inter', sans-serif; font-size: .7rem; letter-spacing: .2em; font-weight: 700; }

/* Body (offer) side */
.promo-body { padding: 2.4rem 2.1rem; display: flex; flex-direction: column; justify-content: center; }
.promo-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .5rem; }
.promo-title { font-size: 2rem; line-height: 1.1; margin-bottom: .6rem; }
.promo-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.promo-code-wrap { margin-bottom: 1.4rem; }
.promo-code-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #9b958a; }
.promo-code {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: .35rem;
    border: 2px dashed var(--gold); border-radius: 12px;
    padding: .7rem .5rem .7rem 1rem;
    background: #fffaf0;
    font-family: 'Inter', monospace; font-weight: 700; letter-spacing: .04em; color: var(--ink);
    transition: background .2s var(--ease);
}
.promo-code.copied { background: #eef7ee; border-color: #2e7d32; }
.promo-copy {
    border: 0; background: var(--ink); color: #fff;
    width: 40px; height: 38px; border-radius: 9px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease);
}
.promo-copy:hover { background: var(--gold-dark); }
.promo-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.promo-actions .btn { flex: 1 1 auto; }
.promo-fine { font-size: .74rem; color: #9b958a; margin: 1rem 0 0; }

@media (max-width: 767.98px) {
    .promo-dialog { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
    .promo-visual { min-height: 220px; padding: 1.4rem; }
    .promo-bottles { height: 200px; }
    .promo-bottle-1 { width: 96px; height: 132px; }
    .promo-bottle-2 { width: 108px; height: 150px; }
    .promo-bottle-3 { width: 92px; height: 128px; }
    .promo-body { padding: 1.6rem 1.4rem; }
    .promo-title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-modal, .promo-dialog, .promo-x { transition: none; }
}
