
/* ===========================================================================
   SOURCE FILE: style.css
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');
:root{--ink:#2b1b14;--cream:#fffaf5;--gold:#9b6b3f;--line:#eadfd4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif}h1,h2,h3,h4{font-family:'Playfair Display',Georgia,serif}a{transition:.2s ease}button,input,select,textarea{font:inherit}button{cursor:pointer}.logo-mark{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#d9b892,#8b5d36);color:white;font:800 24px 'Playfair Display';box-shadow:0 8px 24px #9b6b3f33}.logo-mark.light{background:#d9b892;color:#241711}.badge{position:absolute;right:-3px;top:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#9b6b3f;color:white;font-size:10px;display:grid;place-items:center;font-weight:800}.badge-dark{background:#d9b892;color:#241711}.hero-gradient{background:radial-gradient(circle at 80% 20%,#d7b99166,transparent 28%),linear-gradient(135deg,#fffaf5 0%,#f2e5d8 48%,#e7d2bd 100%)}.hero-orb{position:absolute;border-radius:999px;filter:blur(1px);opacity:.6}.eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#9b6b3f;font-weight:800}.muted{color:#6f625b;line-height:1.7}.category-card{min-height:210px;padding:24px;border:1px solid var(--line);border-radius:26px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 6px 20px #3d26150a}.category-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #3d26151a}.category-card h3{font-size:20px}.category-card p{color:#76685f;font-size:14px;line-height:1.5;margin-top:7px}.category-card>span{font-weight:800;color:#9b6b3f}.category-image{width:100%;height:120px;border-radius:18px;overflow:hidden;background:#f4e8dd}.category-image img{width:100%;height:100%;display:block;object-fit:cover}.rating{background:#f4eadf;border-radius:999px;padding:6px 10px;font-weight:800;color:#8a5b35}.info-chip{background:#f8f2ed;border-radius:16px;padding:13px}.info-chip b,.info-chip span{display:block}.info-chip b{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#8c7769}.info-chip span{font-weight:700;margin-top:4px}.brisk-card{min-width:0}.qty{width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:white;font-weight:800}.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:15px;padding:13px 18px;font-weight:800}.primary-btn{background:#2b1b14;color:white;border:1px solid #2b1b14}.primary-btn:hover{background:#9b6b3f}.secondary-btn{background:#f1e6dc;color:#5a3926;border:1px solid #eadfd4}.secondary-btn:hover{background:#ead7c7}.footer-pill{border:1px solid #ffffff1c;background:#ffffff0a;padding:9px 14px;border-radius:999px;font-size:12px}.checkout-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:28px}.step{background:white;border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;align-items:center;gap:10px;color:#9a8a80}.step b{width:30px;height:30px;border-radius:10px;background:#f1e6dc;display:grid;place-items:center}.step.active{border-color:#9b6b3f;color:#2b1b14}.step.active b,.step.done b{background:#9b6b3f;color:white}.checkout-panel{background:white;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 10px 30px #3d26150a}.checkout-panel label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#65574f}.checkout-panel input,.checkout-panel select,.checkout-panel textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 13px;outline:none;background:#fff}.checkout-panel input:focus,.checkout-panel select:focus,.checkout-panel textarea:focus{border-color:#9b6b3f;box-shadow:0 0 0 3px #9b6b3f14}.payment-option{display:flex!important;grid-template-columns:none!important;align-items:center;gap:12px;border:1px solid var(--line);border-radius:18px;padding:17px;cursor:pointer}.payment-option input{width:auto!important}.payment-option small{display:block;color:#8b7b70;margin-top:4px}.status-pill{padding:7px 11px;background:#e6f5ea;color:#267344;border-radius:999px;font-size:12px;font-weight:800}.success-icon{margin:auto;width:86px;height:86px;border-radius:30px;background:#e8f5eb;color:#267344;display:grid;place-items:center;font-size:48px;font-weight:900}.timeline{position:relative;margin-left:15px}.timeline:before{content:'';position:absolute;left:17px;top:18px;bottom:18px;width:2px;background:#eadfd4}.timeline-item{position:relative;display:flex;gap:18px;padding:0 0 30px}.timeline-item>span{position:relative;z-index:1;width:36px;height:36px;border-radius:50%;background:#f1e6dc;display:grid;place-items:center;font-weight:800}.timeline-item.active>span{background:#9b6b3f;color:white}.timeline-item p{margin:5px 0 0;color:#8c7b70;font-size:13px}.ab-card{border:1px solid var(--line);border-radius:28px;background:#fff;overflow:hidden}.skip-link{position:absolute;left:10px;top:10px;transform:translateY(-200%);background:#2b1b14;color:#fff;padding:10px;border-radius:10px;z-index:100}.skip-link:focus{transform:none}@media(max-width:767px){.hero-title{font-size:42px!important}.checkout-panel{padding:20px}.step span{font-size:12px}.step{padding:10px}.category-card{min-height:180px}.brisk-card{border-radius:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}

/* Final navigation alignment */
.nav-link{display:flex;align-items:center;justify-content:center;height:44px;padding:0 12px;border-radius:12px;white-space:nowrap;line-height:1;}
.nav-link:hover{background:#f3e9e0;color:#6d472d;}


/* =========================================================
   BRISK VISUAL THEME — merged from client home reference
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Jost:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700&display=swap');

:root{
  --bg:#F8F3E8;
  --ink:#2E241B;
  --ink-soft:#5C4A3A;
  --ink-faint:#8A7862;
  --gold:#A66A3F;
  --gold-deep:#8B5E34;
  --gold-soft:#D8BE86;
  --card:#FFFDF8;
  --line:#E5D8BF;
  --shell:#EFE2C6;
  --shell-2:#F1E7D2;
}
body{background:var(--bg);color:var(--ink);font-family:'Jost',sans-serif;}
h1,h2,h3,h4,.hero-title,.font-display{font-family:'Playfair Display',serif;}
a{color:var(--ink);}
.nav-link:hover{color:var(--gold-deep);}
.primary-btn{background:var(--gold)!important;}
.primary-btn:hover{background:var(--gold-deep)!important;}
.secondary-btn{border-color:var(--line)!important;color:var(--ink)!important;}
.hero-gradient{background:var(--bg)!important;}
.brisk-card{border-color:var(--line)!important;}
.footer-pill{border-color:rgba(166,106,63,.55)!important;color:#F8F3E8!important;}



/* =========================================================
   BRISK PRODUCT CARD FLOW
   ========================================================= */

.product-card {
    cursor: pointer;
}

.product-card:focus-visible {
    outline: 2px solid #8B5E34;
    outline-offset: 3px;
}

.quick-preview,
[data-quick-preview],
.quick-preview-button {
    display: none !important;
}


/* =========================================================
   BRISK RESPONSIVE SYSTEM
   Mobile-first safeguards for phones, tablets and desktops
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.mobile-nav-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: #F8F3E8;
    color: var(--gold-deep);
    outline: none;
}

/* Desktop header search injected by search.js */
header nav > .flex.items-center.gap-2 {
    min-width: 0;
    flex-shrink: 1;
}

#global-search {
    min-width: 0;
}

/* Prevent long product/category names from forcing cards wider */
.brisk-card,
.product-card,
.category-card,
.checkout-panel,
.ab-card {
    min-width: 0;
    max-width: 100%;
}

.brisk-card *,
.product-card *,
.category-card *,
.checkout-panel * {
    min-width: 0;
}

/* Tables and wide data blocks remain usable on small screens */
.table-scroll,
.overflow-x-auto {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}

/* ===================================================================
   BRISK RESPONSIVE SYSTEM — consolidated single source of truth
   (replaces three earlier, partially-conflicting patch layers)

   Approach: fluid sizing (clamp/minmax/vw) is used wherever a value
   just needs to scale smoothly with the viewport, so there is no gap
   width between breakpoints where something can overflow. A discrete
   breakpoint is only used where the LAYOUT genuinely changes shape
   (e.g. the header switching from the hamburger menu to full nav, or
   the profile sidebar moving beside the form instead of above it).
   =================================================================== */

/* ---- Page shell: reliable sticky footer at every content length,
   with no dependency on a fixed viewport height. ---- */
html, body { height: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh; /* accounts for mobile browser toolbars */
    display: flex;
    flex-direction: column;
}
body > main,
body > #main { flex: 1 0 auto; }
body > footer { flex: 0 0 auto; width: 100%; }

/* ---- Header search: one definition, used at every breakpoint below
   via width overrides only — search stays visible everywhere. ---- */
#global-search-wrap {
    position: relative;
    z-index: 60;
    min-width: 0;
}
#global-search {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
}
#global-search-results {
    width: 100%;
    min-width: 0;
    max-height: min(60vh, 420px);
    overflow: auto;
}

/* ---- Desktop nav (≥1024px, hamburger hidden): logo, links, search
   and icons scale fluidly with the viewport rather than jumping
   between fixed tiers, so nothing between 1024px and an ultra-wide
   desktop can overflow the header and be clipped off-screen. ---- */
@media (min-width: 1024px) {
    header nav {
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: clamp(8px, 1.5vw, 24px);
    }
    header nav > a:first-child img {
        width: clamp(104px, 9vw, 144px);
    }
    header nav > div.hidden.lg\:flex {
        min-width: 0;
        flex-wrap: wrap;
        row-gap: 4px;
        gap: clamp(0px, 0.4vw, 6px);
    }
    header nav > div.hidden.lg\:flex > a,
    header nav > div.hidden.lg\:flex > div > button {
        padding-left: clamp(8px, 1vw, 16px);
        padding-right: clamp(8px, 1vw, 16px);
    }
    header nav > .flex.items-center.gap-2 {
        min-width: 0;
        flex-shrink: 0;
        gap: clamp(6px, 0.8vw, 8px);
    }
    #global-search-wrap {
        width: clamp(120px, 12vw, 260px);
        flex: 0 1 260px;
    }
}

/* ---- Tablet (768–1023px): the hamburger menu stands in for the
   desktop links here, so the header only has to fit the logo,
   search and icons — search can stay generously wide. ---- */
@media (min-width: 768px) and (max-width: 1023px) {
    header nav { min-height: 72px; }
    header nav > .flex.items-center.gap-2 {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 8px;
    }
    #global-search-wrap {
        width: clamp(180px, 32vw, 320px);
        flex: 1 1 240px;
    }
}

/* ---- Phone (<768px): logo + icons on row one, full-width live
   search on row two. This is a genuine layout change (not just
   smaller spacing) so it gets its own breakpoint; everything inside
   it still scales with clamp() rather than fixed pixel steps. ---- */
@media (max-width: 767px) {
    header nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
        width: 100%;
        min-width: 0;
        padding: 9px 12px;
    }
    header nav > a:first-child {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: auto;
    }
    header nav > a:first-child img {
        display: block;
        width: clamp(80px, 24vw, 104px);
        max-width: 100%;
        height: auto;
    }
    header nav > div.hidden.lg\:flex { display: none; }
    header nav > .flex.items-center.gap-2 { display: contents; }
    header nav > .flex.items-center.gap-2 > a[href$="profile.html"],
    header nav > .flex.items-center.gap-2 > a[href$="cart.html"],
    header nav > .flex.items-center.gap-2 > #mobile-menu-button {
        grid-row: 1;
        width: clamp(34px, 10vw, 40px);
        height: clamp(34px, 10vw, 40px);
        min-width: 0;
        flex: none;
        margin: 0;
    }
    header nav > .flex.items-center.gap-2 > a[href$="profile.html"] { grid-column: 2; }
    header nav > .flex.items-center.gap-2 > a[href$="cart.html"] { grid-column: 3; }
    header nav > .flex.items-center.gap-2 > #mobile-menu-button { grid-column: 4; }
    header nav > .flex.items-center.gap-2 > #global-search-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        flex: none;
    }
    #global-search { height: 44px; padding-left: 38px; padding-right: 42px; }
    #global-search-results { left: 0; right: 0; }
    #global-search-submit { right: 7px; }

    /* Note: the mobile menu's static search box is hidden by JS
       (search.js) only once the live header search is confirmed to
       exist — not unconditionally here — so search never disappears
       if that script fails to load or run. */

    body { font-size: 15px; }
    main { width: 100%; max-width: 100%; }

    .checkout-panel { padding: 16px; border-radius: 20px; }
    .checkout-steps { grid-template-columns: 1fr; gap: 7px; margin-bottom: 20px; }
    .step { min-width: 0; padding: 10px 12px; }
    .step span { font-size: 12px; }
    .category-card { min-height: 165px; padding: 18px; border-radius: 20px; }
    .category-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 32px; }
    .primary-btn, .secondary-btn { min-height: 46px; padding: 11px 15px; }
    .timeline { margin-left: 0; }
    .timeline-item { gap: 12px; padding-bottom: 22px; }

    p, span, a, td, th, label { overflow-wrap: anywhere; }
    [role="dialog"], .modal, .preview-modal { max-width: calc(100vw - 24px); }
}

/* Respect devices that do not support hover */
@media (hover: none) {
    .category-card:hover,
    .product-card:hover { transform: none; }
}

/* ---- Profile page: sidebar + form. Below lg, Tailwind's own grid
   class already collapses to a single column; from 768px up the
   sidebar intentionally sits beside the form a little earlier than
   the desktop breakpoint. Overflow-safety (min-width:0) applies at
   every width, not just one tier. ---- */
#main > section:has(#profile-form) > .grid,
#main > section:has(#profile-form) aside,
#profile-form {
    min-width: 0;
}
#profile-form .grid { min-width: 0; }
#profile-form input,
#profile-form select,
#profile-form textarea { min-width: 0; max-width: 100%; }
[data-profile-name] { overflow-wrap: anywhere; }

@media (min-width: 768px) and (max-width: 1023px) {
    #main > section:has(#profile-form) > .grid {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 20px;
    }
}
@media (max-width: 767px) {
    #main > section:has(#profile-form) > .flex.items-center {
        align-items: flex-start;
        gap: 12px;
    }
    #main > section:has(#profile-form) > .flex.items-center img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex: 0 0 44px;
    }
    [data-profile-name] {
        font-size: clamp(28px, 9vw, 42px);
        line-height: 1.05;
    }
    #profile-form .primary-btn { width: 100%; }
}

/* ---- Footer: Tailwind's own md:grid-cols-2 / lg:grid-cols-5 classes
   already handle column stacking correctly at every breakpoint —
   this is only the overflow/visibility safety net. No fixed heights,
   no overflow:hidden anywhere near the footer. ---- */
footer .grid > div { min-width: 0; }
footer p, footer a, footer h2 { overflow-wrap: anywhere; }

/* ---- Hero slider: fluid height that blends viewport width AND
   height, so short or landscape screens automatically get a shorter
   slide instead of one taller than what's actually visible — this
   was the root cause of the slide reading as "half hidden". dvh is
   used where supported so a mobile browser's address bar can't
   shrink the visible area out from under a vh-based height. ---- */
#heroCarousel {
    height: clamp(380px, 40vh + 15vw, 820px);
    overflow: hidden;
}
@supports (height: 100dvh) {
    #heroCarousel {
        height: clamp(380px, 40dvh + 15vw, 820px);
    }
}
#heroCarousel .slide,
#heroCarousel .slide img { height: 100%; }


/* =========================================================
   BRISK RESPONSIVE PATCH — FINAL
   Responsive corrections only. Existing visual design and
   functionality are intentionally preserved.
   ========================================================= */

/* Prevent intrinsic-size overflow in all modern browsers */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

main, section, article, aside, header, footer, nav, form {
    max-width: 100%;
}

/* Flex/grid children are allowed to shrink instead of forcing
   their parent wider (particularly important in Firefox). */
.flex > *,
.grid > * {
    min-width: 0;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
}

input, select, textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Long labels/names must never create an intrinsic-width overflow. */
h1, h2, h3, h4, h5, h6,
p, a, span, label, li, td, th {
    overflow-wrap: break-word;
}

/* =========================================================
   HEADER
   ========================================================= */

/* Keep the desktop header on one stable row at medium desktop
   widths. This prevents a second wrapped nav row around 1024px. */
@media (min-width: 1024px) and (max-width: 1199px) {
    header > nav {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    header > nav > a:first-child {
        flex: 0 0 auto;
    }

    header > nav > a:first-child img {
        width: 104px !important;
    }

    header > nav > div.hidden.lg\:flex {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    header > nav > div.hidden.lg\:flex > a,
    header > nav > div.hidden.lg\:flex > div > button {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    header > nav > .flex.items-center.gap-2 {
        flex: 0 0 auto;
        gap: 5px !important;
    }

    #global-search-wrap {
        width: 120px !important;
        flex: 0 1 120px !important;
    }
}

/* =========================================================
   PHONE HEADER
   ========================================================= */

@media (max-width: 767px) {
    header {
        width: 100%;
        max-width: 100%;
    }

    header > nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 9px 12px !important;
        gap: 8px !important;
    }

    header > nav > a:first-child {
        min-width: 0 !important;
        width: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    header > nav > a:first-child img {
        display: block;
        width: clamp(78px, 25vw, 104px) !important;
        height: auto !important;
    }

    header > nav > div.hidden.lg\:flex {
        display: none !important;
    }

    header > nav > .flex.items-center.gap-2 {
        display: contents !important;
    }

    header > nav > .flex.items-center.gap-2 > a[href$="profile.html"],
    header > nav > .flex.items-center.gap-2 > a[href$="cart.html"],
    header > nav > .flex.items-center.gap-2 > #mobile-menu-button {
        grid-row: 1 !important;
        width: clamp(34px, 10vw, 40px) !important;
        height: clamp(34px, 10vw, 40px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: none !important;
    }

    header > nav > .flex.items-center.gap-2 > a[href$="profile.html"] {
        grid-column: 2 !important;
    }

    header > nav > .flex.items-center.gap-2 > a[href$="cart.html"] {
        grid-column: 3 !important;
    }

    header > nav > .flex.items-center.gap-2 > #mobile-menu-button {
        grid-column: 4 !important;
    }

    header > nav > .flex.items-center.gap-2 > #global-search-wrap {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex: none !important;
    }

    #global-search {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        font-size: 14px !important;
    }

    #global-search-results {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #mobile-menu {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    #mobile-menu > div {
        width: 100% !important;
        min-width: 0 !important;
    }

    #mobile-menu .grid {
        width: 100%;
        min-width: 0;
    }
}

/* Very narrow phones: reduce only header spacing, not the design. */
@media (max-width: 359px) {
    header > nav {
        column-gap: 5px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    header > nav > .flex.items-center.gap-2 > a[href$="profile.html"],
    header > nav > .flex.items-center.gap-2 > a[href$="cart.html"],
    header > nav > .flex.items-center.gap-2 > #mobile-menu-button {
        width: 34px !important;
        height: 34px !important;
    }

    header > nav > a:first-child img {
        width: 78px !important;
    }
}

/* =========================================================
   HERO
   ========================================================= */

#heroCarousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#heroCarousel .slide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 767px) {
    #heroCarousel {
        height: clamp(360px, 72svh, 620px) !important;
        min-height: 360px;
        max-height: 620px;
    }

    #heroCarousel .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    #heroCarousel .slide .max-w-7xl {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    #heroCarousel .slide .max-w-xl {
        width: min(100%, 520px);
        max-width: 100%;
    }

    #heroCarousel .slide h1 {
        font-size: clamp(32px, 9.5vw, 44px) !important;
        line-height: 1.08 !important;
        margin-bottom: 12px !important;
    }

    #heroCarousel .slide p {
        max-width: 100%;
        font-size: 15px !important;
        line-height: 1.55;
        margin-bottom: 20px !important;
    }

    #heroCarousel .slide a {
        max-width: 100%;
        padding: 11px 20px !important;
    }
}

/* Landscape phones should not get a huge hero that hides the
   following section. */
@media (max-width: 767px) and (orientation: landscape) {
    #heroCarousel {
        height: min(430px, 88svh) !important;
        min-height: 300px;
    }
}

/* =========================================================
   COMMON SECTIONS / CONTAINERS
   ========================================================= */

@media (max-width: 767px) {
    main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    main > section,
    main > div,
    main article,
    main aside {
        max-width: 100%;
        min-width: 0;
    }

    /* Tailwind px-6 becomes 24px. Keep it, but prevent the
       smallest screens from feeling squeezed. */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        max-width: 100%;
    }

    .checkout-panel {
        width: 100%;
        max-width: 100%;
        padding: 16px !important;
        border-radius: 20px;
    }

    .checkout-steps {
        grid-template-columns: 1fr !important;
        width: 100%;
        min-width: 0;
        gap: 7px;
    }

    .step {
        min-width: 0;
        width: 100%;
    }

    .payment-option {
        min-width: 0;
        width: 100%;
    }

    .payment-option > * {
        min-width: 0;
    }

    .primary-btn,
    .secondary-btn {
        min-height: 44px;
        max-width: 100%;
    }

    .category-card,
    .product-card,
    .brisk-card,
    .ab-card {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .category-card {
        min-height: 165px;
        padding: 18px;
        border-radius: 20px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        font-size: 30px;
    }

    /* Prevent long product names/prices from pushing flex rows. */
    .product-card h3,
    .product-card h4,
    .product-card p,
    .brisk-card h3,
    .brisk-card h4,
    .brisk-card p {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   FORMS
   ========================================================= */

@media (max-width: 767px) {
    form,
    form > *,
    form .grid,
    form .flex {
        min-width: 0;
        max-width: 100%;
    }

    form input,
    form select,
    form textarea,
    .checkout-panel input,
    .checkout-panel select,
    .checkout-panel textarea {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    textarea {
        resize: vertical;
    }

    /* Login/register cards retain their existing design but fit
       comfortably on small screens. */
    #login-form,
    #register-form {
        width: 100% !important;
        max-width: 448px !important;
        padding: 22px !important;
    }

    #login-form h1,
    #register-form h1 {
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.1;
    }

    #login-form input,
    #register-form input {
        min-height: 44px;
    }
}

/* =========================================================
   ABOUT / IMAGE BLOCKS
   ========================================================= */

@media (max-width: 767px) {
    /* The source image remains the same; only its responsive height
       is allowed to shrink on a phone. */
    img.h-\[340px\],
    img.h-\[420px\] {
        height: clamp(240px, 68vw, 340px) !important;
        object-fit: cover;
    }

    /* Any decorative absolute layer must not create page width. */
    .absolute {
        max-width: 100%;
    }
}

/* =========================================================
   PROFILE / ORDERS / CART
   ========================================================= */

@media (max-width: 767px) {
    #profile-form {
        width: 100%;
        max-width: 100%;
    }

    #profile-form .grid {
        min-width: 0;
    }

    [data-profile-name] {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(28px, 9vw, 42px) !important;
        line-height: 1.05;
    }

    .timeline {
        margin-left: 0 !important;
        min-width: 0;
    }

    .timeline-item {
        min-width: 0;
        gap: 12px;
        padding-bottom: 22px;
    }

    .timeline-item > span {
        flex: 0 0 36px;
    }
}

/* =========================================================
   MODALS / DROPDOWNS / PREVIEWS
   ========================================================= */

@media (max-width: 767px) {
    [role="dialog"],
    .modal,
    .preview-modal {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100svh - 24px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    #global-search-results {
        max-height: min(55svh, 420px);
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

footer .grid,
footer .flex {
    min-width: 0;
}

footer .grid > * {
    min-width: 0;
    max-width: 100%;
}

footer a,
footer p,
footer h2,
footer h3,
footer span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* =========================================================
   TABLE / WIDE CONTENT SAFETY
   ========================================================= */

.table-scroll,
.overflow-x-auto {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > *,
.overflow-x-auto > * {
    min-width: max-content;
}

/* =========================================================
   FIREFOX-SAFE FLEX / GRID FIXES
   ========================================================= */

@supports (-moz-appearance: none) {
    header nav,
    main,
    section,
    .flex,
    .grid {
        min-width: 0;
    }

    input,
    select,
    textarea {
        min-width: 0;
    }

    .product-card,
    .category-card,
    .checkout-panel {
        min-width: 0;
    }
}

/* =========================================================
   NO HORIZONTAL PAGE SCROLL — FINAL SAFETY NET
   ========================================================= */

html,
body {
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

/* =========================================================
   RATINGS & REVIEWS
   ========================================================= */
.rating-star {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #E5D8BF;
    background: #fff;
    color: #D6C9B3;
    font-size: 30px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: transform .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
    cursor: pointer;
}
.rating-star:hover,
.rating-star.is-hovered,
.rating-star.is-selected {
    color: #C58B35;
    background: #FFF8E9;
    border-color: #D9B46B;
    transform: translateY(-1px);
}
.rating-star:focus-visible {
    outline: 3px solid rgba(166,106,63,.25);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .rating-star {
        width: 44px;
        height: 44px;
        font-size: 27px;
        border-radius: 12px;
    }
}
#rating-page input,
#rating-page textarea,
#rating-page select {
    max-width: 100%;
    min-width: 0;
}
#rating-page,
#rating-page > *,
#rating-page article {
    min-width: 0;
}
#review-list p,
#rating-page h1,
#rating-page h2,
#rating-page h3 {
    overflow-wrap: anywhere;
}


/* =========================================================
   BRISK RESPONSIVE FINAL PATCH
   Layout-only: no page flow / JS behaviour changes.
   ========================================================= */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
img, video, svg, canvas { max-width:100%; height:auto; }
*, *::before, *::after { box-sizing:border-box; }
main, section, article, aside, header, footer, nav,
.container, [class*="max-w-"] { min-width:0; }

/* Footer logo and columns */
footer { width:100%; overflow:hidden; }
footer > div { width:100%; min-width:0; }
footer img[alt*="Brisk"] {
    width:144px;
    max-width:100%;
    height:auto;
    object-fit:contain;
    display:block;
}
footer a.inline-flex { max-width:100%; }
footer p, footer a, footer h2 { overflow-wrap:anywhere; }

@media (max-width:1023px) {
    .grid > * { min-width:0; }
    input, select, textarea { max-width:100%; min-width:0; }
}

@media (max-width:767px) {
    body { min-width:320px; }
    main > section { max-width:100%; }
    footer > div { padding-left:16px; padding-right:16px; }
    footer .grid { grid-template-columns:minmax(0,1fr); gap:28px; }
    footer img[alt*="Brisk"] { width:150px; }
    footer .mt-12 { margin-top:28px; }
    footer .flex { min-width:0; flex-wrap:wrap; }
    footer .flex > a { max-width:100%; }
    .grid.grid-cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    input, select, textarea { width:100%; }
    button, a { max-width:100%; }
    [role="dialog"], .modal { max-width:calc(100vw - 24px); }
}

@media (max-width:380px) {
    .grid.grid-cols-2 { grid-template-columns:minmax(0,1fr); }
    footer > div { padding-left:14px; padding-right:14px; }
}

/* =========================================================
   BRISK 2026 GLASS NAV + SEARCH + CLEAN FOOTER BRAND
   Applied globally to every page sharing the site header/footer.
   ========================================================= */

/* Floating glass header shell */
header.sticky {
    top: 10px !important;
    margin: 0 auto !important;
    width: min(calc(100% - 24px), 1320px) !important;
    border: 1px solid rgba(255, 255, 255, .58) !important;
    border-radius: 28px !important;
    background: rgba(255, 253, 248, .68) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    box-shadow: 0 14px 38px rgba(46, 36, 27, .10), inset 0 1px 0 rgba(255,255,255,.70) !important;
    overflow: visible !important;
}

header.sticky > nav {
    width: 100%;
    border-radius: inherit;
}

/* Nav links feel part of the glass instead of solid blocks */
header.sticky nav > div.hidden.lg\:flex > a,
header.sticky nav > div.hidden.lg\:flex > div > button {
    border-radius: 999px !important;
    background: transparent !important;
}
header.sticky nav > div.hidden.lg\:flex > a:hover,
header.sticky nav > div.hidden.lg\:flex > div > button:hover {
    background: rgba(255,255,255,.52) !important;
    box-shadow: inset 0 0 0 1px rgba(166,106,63,.10);
}

/* Profile, cart and hamburger become translucent glass buttons */
header.sticky nav > .flex.items-center.gap-2 > a[href$="profile.html"],
header.sticky nav > .flex.items-center.gap-2 > a[href$="cart.html"],
header.sticky nav > .flex.items-center.gap-2 > #mobile-menu-button {
    border-color: rgba(166, 106, 63, .20) !important;
    background: rgba(255,255,255,.56) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 5px 16px rgba(46,36,27,.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
header.sticky nav > .flex.items-center.gap-2 > a[href$="profile.html"]:hover,
header.sticky nav > .flex.items-center.gap-2 > a[href$="cart.html"]:hover,
header.sticky nav > .flex.items-center.gap-2 > #mobile-menu-button:hover {
    background: rgba(248,243,232,.88) !important;
}

/* Redesigned live search */
#global-search-wrap { z-index: 90; }
.brisk-search-shell {
    border: 1px solid rgba(166,106,63,.20);
    border-radius: 999px;
    background: rgba(255,255,255,.48);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 7px 20px rgba(46,36,27,.055);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.brisk-search-shell:focus-within {
    border-color: rgba(166,106,63,.52);
    background: rgba(255,255,255,.76);
    box-shadow: 0 0 0 4px rgba(166,106,63,.09), inset 0 1px 0 rgba(255,255,255,.9);
}
.brisk-search-icon {
    color: #7A5B42;
    display: grid;
    place-items: center;
}
#global-search.brisk-search-input {
    height: 44px !important;
    padding: 0 46px 0 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #2E241B !important;
    font-size: 13px !important;
    outline: none !important;
    box-shadow: none !important;
}
#global-search.brisk-search-input::placeholder { color: rgba(94,72,53,.68); }
#global-search::-webkit-search-cancel-button { opacity: .55; cursor: pointer; }
.brisk-search-submit {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #2E241B;
    color: #fff;
    transition: transform .2s ease, background .2s ease;
}
.brisk-search-submit:hover { background: #A66A3F; transform: translateY(-50%) scale(1.04); }
#global-search-results.brisk-search-results {
    border: 1px solid rgba(229,216,191,.88);
    border-radius: 20px;
    background: rgba(255,253,248,.94);
    box-shadow: 0 22px 50px rgba(46,36,27,.16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

/* Fallback/mobile-menu search gets the same visual language */
#mobile-menu {
    margin: 8px 10px 10px;
    border: 1px solid rgba(229,216,191,.78) !important;
    border-radius: 20px;
    background: rgba(255,253,248,.92) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow: hidden;
}
#mobile-search {
    border-color: rgba(166,106,63,.20) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.70) !important;
}

/* Footer logo: transparent artwork only, no padded white tile */
footer .footer-brand-logo,
footer img[alt*="Brisk"] {
    width: 150px !important;
    max-width: min(100%, 150px) !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
}
footer a.inline-flex:has(.footer-brand-logo) {
    padding: 0 !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    header.sticky {
        top: 7px !important;
        width: calc(100% - 14px) !important;
        border-radius: 22px !important;
    }
    header.sticky > nav { border-radius: 22px !important; }
    #global-search.brisk-search-input {
        height: 44px !important;
        padding-left: 41px !important;
        padding-right: 46px !important;
    }
    .brisk-search-shell { background: rgba(255,255,255,.58); }
    footer .footer-brand-logo,
    footer img[alt*="Brisk"] { width: 140px !important; }
}

@media (max-width: 380px) {
    header.sticky { width: calc(100% - 10px) !important; }
}

/* =========================================================
   PRODUCT PAGE — FLIPKART-INSPIRED RATINGS & REVIEWS LAYOUT
   ========================================================= */
.brisk-reviews-section{border:1px solid #E5D8BF;border-radius:28px;background:#fff;box-shadow:0 12px 34px rgba(46,36,27,.06);overflow:hidden}
.brisk-review-heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;border-bottom:1px solid #EDE2CF}
.brisk-rate-product-btn{border:1px solid #D9C8A9;border-radius:12px;background:#fff;padding:12px 22px;font-size:14px;font-weight:800;color:#2E241B;box-shadow:0 3px 12px rgba(46,36,27,.06);transition:.2s ease}
.brisk-rate-product-btn:hover{border-color:#A66A3F;color:#A66A3F;transform:translateY(-1px)}
.brisk-rating-grid{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.6fr)}
.brisk-rating-summary{padding:28px 26px;border-right:1px solid #EDE2CF}
.brisk-rating-grid>div{padding:28px 26px}
.brisk-review-form-panel{margin:0 26px 26px;border:1px solid #E5D8BF;border-radius:22px;background:#FFFDF8;padding:24px;box-shadow:0 14px 36px rgba(46,36,27,.08)}
.brisk-review-input{display:block;width:100%;margin-top:7px;border:1px solid #DDCFB6;border-radius:12px;background:#fff;padding:12px 14px;font-size:14px;color:#2E241B;outline:none;transition:.2s ease}
.brisk-review-input:focus{border-color:#A66A3F;box-shadow:0 0 0 3px rgba(166,106,63,.10)}
.brisk-media-upload{display:inline-flex;align-items:center;gap:7px;border:1px dashed #C9B591;border-radius:12px;background:#fff;padding:11px 14px;font-size:13px;font-weight:700;color:#6B503B;cursor:pointer}
.rating-star{border:0;background:transparent;color:#D8D0C5;font-size:34px;line-height:1;cursor:pointer;padding:2px;transition:transform .15s ease,color .15s ease}
.rating-star:hover,.rating-star.is-selected{color:#F2B233;transform:scale(1.06)}
@media(max-width:767px){.brisk-review-heading-row{align-items:flex-start;padding:20px}.brisk-rate-product-btn{padding:10px 15px}.brisk-rating-grid{grid-template-columns:1fr}.brisk-rating-summary{border-right:0;border-bottom:1px solid #EDE2CF;padding:22px 20px}.brisk-rating-grid>div{padding:22px 20px}.brisk-review-form-panel{margin:0 14px 18px;padding:18px}}

/* BRISK MANUAL RATE & REVIEW — Flipkart-inspired interaction */
.brisk-review-product-strip{display:flex;align-items:center;gap:14px;border-bottom:1px solid #EDE2CF;padding-bottom:18px}
.brisk-review-product-strip img{width:64px;height:64px;object-fit:cover;border-radius:14px;background:#F1E7D2;border:1px solid #E5D8BF}
#rating-label{min-width:88px;transition:.15s ease}
#rating-label.has-rating{color:#2E241B}
.rating-star{font-size:40px}
.rating-star.is-hovered{color:#F2B233;transform:scale(1.06)}
.brisk-certified-check{display:flex;align-items:center;gap:12px;margin-top:24px;border:1px solid #E5D8BF;border-radius:12px;background:#fff;padding:11px 13px;cursor:pointer}
.brisk-certified-check span{display:flex;flex-direction:column;line-height:1.25;color:#2E241B}
.brisk-certified-check small{margin-top:3px;font-size:11px;font-weight:500;color:#94A3B8}
.review-helpful,.review-not-helpful{transition:.15s ease}
@media(max-width:640px){.rating-star{font-size:35px}.brisk-review-product-strip img{width:54px;height:54px}}


/* === BRISK ACCOUNT DASHBOARD & VALIDATED FORMS === */
.dashboard-nav{display:flex;align-items:center;gap:.75rem;width:100%;border-radius:1rem;padding:.85rem 1rem;text-align:left;font-size:.875rem;font-weight:800;color:#55473c;transition:.2s}
.dashboard-nav:hover,.dashboard-nav.is-active{background:#F5EBDD;color:#2E241B}.dashboard-nav.is-active{box-shadow:inset 3px 0 0 #A66A3F}
.dashboard-card{border:1px solid #E9DDC8;background:#fff;border-radius:28px;padding:1.5rem;box-shadow:0 8px 26px rgba(46,36,27,.04)}
@media(min-width:768px){.dashboard-card{padding:2rem}}
.dashboard-kicker{font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.2em;color:#A66A3F}.dashboard-title{margin-top:.35rem;font-size:1.65rem;line-height:1.2;font-weight:900;color:#2E241B}.dashboard-subtitle{margin-top:.5rem;font-size:.875rem;line-height:1.6;color:#6b7280}
.field-label{display:block;font-size:.82rem;font-weight:800;color:#3f352d}.field-input{display:block;width:100%;margin-top:.45rem;border:1px solid #DCCCB5;border-radius:.8rem;padding:.78rem .9rem;background:#fff;color:#2E241B;outline:none;transition:.2s}.field-input:focus{border-color:#A66A3F;box-shadow:0 0 0 3px rgba(166,106,63,.12)}.field-input.is-invalid{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.08)}.field-error{display:block;min-height:1rem;margin-top:.3rem;font-size:.72rem;font-weight:700;color:#b91c1c}.field-help{display:block;margin-top:.3rem;font-size:.72rem;color:#94a3b8}.password-wrap{position:relative}.password-toggle{position:absolute;right:.75rem;top:50%;transform:translateY(-36%);font-size:.72rem;font-weight:900;color:#8A5734}.rule-ok{color:#047857!important;font-weight:800}.account-empty{border:1px dashed #DCCCB5;border-radius:18px;padding:2rem;text-align:center;color:#64748b}.account-item{border:1px solid #E9DDC8;border-radius:18px;padding:1rem}.coupon-cut{border:1px dashed #C9AA80;border-radius:18px;background:#FFFCF6;padding:1rem}.notification-unread{border-left:4px solid #A66A3F;background:#FFF9F0}

/* Profile manual rating */
.profile-rating-star{font-size:2rem;line-height:1;color:#d7c8b1;transition:transform .15s ease,color .15s ease;cursor:pointer;background:transparent;border:0;padding:.1rem}.profile-rating-star:hover{transform:translateY(-1px) scale(1.06)}.profile-rating-star.is-filled{color:#c58b35}.profile-rating-star:focus-visible{outline:2px solid #a66a3f;outline-offset:3px;border-radius:.4rem}

/* =========================================================
   BRISK RESPONSIVE QA PATCH — Banner + Fixed Navigation
   2026-08-22
   ========================================================= */

:root {
    --brisk-topbar-height: 32px;
    --brisk-header-height: 80px;
    --brisk-fixed-stack-height: calc(var(--brisk-topbar-height) + var(--brisk-header-height));
}

/* Keep announcement + navigation visible through the entire page,
   including when the user reaches the footer. Heights are refined by
   JS at runtime so mobile two-row headers never overlap content. */
.brisk-topbar {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 1000 !important;
    width: 100%;
}

body > header.brisk-fixed-header {
    position: fixed !important;
    top: var(--brisk-topbar-height) !important;
    left: 0;
    right: 0;
    z-index: 999 !important;
    width: 100%;
    max-width: none;
    margin: 0;
    border-bottom-color: rgba(229, 216, 191, .62) !important;
    background: rgba(255, 253, 248, .80) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 10px 30px rgba(46, 36, 27, .08);
}

body {
    padding-top: var(--brisk-fixed-stack-height);
}

/* Anchor links must not hide under the fixed navigation. */
[id] {
    scroll-margin-top: calc(var(--brisk-fixed-stack-height) + 16px);
}

/* Hero/banner base: never overflow, never leave accidental gaps. */
#heroCarousel {
    width: 100%;
    max-width: 100vw;
    height: clamp(500px, 64vh, 760px);
    min-height: 0;
    overflow: hidden;
    background: #2E241B;
}

#heroCarousel .slide {
    overflow: hidden;
}

#heroCarousel .slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

#heroCarousel .slide > .absolute.inset-0.flex.items-center {
    z-index: 2;
}

/* Desktop: image can breathe while retaining the premium full-bleed look. */
@media (min-width: 1200px) {
    #heroCarousel {
        height: clamp(520px, 61vh, 760px);
    }
    #heroCarousel .slide > img {
        object-position: center 48%;
    }
}

/* Small desktop / landscape tablet. */
@media (min-width: 768px) and (max-width: 1199px) {
    #heroCarousel {
        height: clamp(470px, 58vw, 650px);
    }
    #heroCarousel .slide > img {
        object-position: 58% center;
    }
    #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
        padding-left: clamp(42px, 6vw, 72px) !important;
        padding-right: clamp(42px, 6vw, 72px) !important;
    }
    #heroCarousel h1 {
        font-size: clamp(2.45rem, 5vw, 3.75rem) !important;
        max-width: 11ch;
    }
}

/* Mobile portrait: treat the 3:2 source image as a background safely.
   The image remains legible, copy fits in the safe zone and controls
   never collide with the CTA or dots. */
@media (max-width: 767px) {
    #heroCarousel {
        height: clamp(500px, 128vw, 620px);
        max-height: calc(100dvh - var(--brisk-fixed-stack-height) + 80px);
        min-height: 470px;
    }

    #heroCarousel .slide > img {
        object-position: 62% center;
        transform: scale(1.001); /* avoids fractional edge seams */
    }

    #heroCarousel .slide > .bg-gradient-to-r {
        background: linear-gradient(90deg,
            rgba(46,36,27,.91) 0%,
            rgba(46,36,27,.76) 48%,
            rgba(46,36,27,.28) 100%) !important;
    }

    #heroCarousel .slide > .absolute.inset-0.flex.items-center {
        align-items: flex-end !important;
        padding-bottom: 76px;
    }

    #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
        padding-left: 24px !important;
        padding-right: 58px !important;
        padding-bottom: 10px;
    }

    #heroCarousel .slide .max-w-xl {
        max-width: min(88vw, 440px) !important;
    }

    #heroCarousel h1 {
        font-size: clamp(2rem, 9.8vw, 3rem) !important;
        line-height: 1.04 !important;
        margin-bottom: 12px !important;
        max-width: 10.5ch;
    }

    #heroCarousel p {
        font-size: clamp(.9rem, 4vw, 1rem) !important;
        line-height: 1.55;
        margin-bottom: 20px !important;
        max-width: 32ch;
    }

    #heroCarousel .slide a[href="shop.html"] {
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px 20px !important;
        font-size: 14px;
    }

    #prevSlide,
    #nextSlide {
        top: 46% !important;
        width: 38px !important;
        height: 38px !important;
    }
    #prevSlide { left: 8px !important; }
    #nextSlide { right: 8px !important; }

    #slideDots {
        bottom: 22px !important;
        gap: 8px !important;
    }
}

/* Very narrow phones (320–374px): preserve usable text and CTA area. */
@media (max-width: 374px) {
    #heroCarousel {
        height: 520px;
        min-height: 500px;
    }
    #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
        padding-left: 20px !important;
        padding-right: 48px !important;
    }
    #heroCarousel h1 {
        font-size: clamp(1.8rem, 9.6vw, 2.3rem) !important;
    }
    #prevSlide,
    #nextSlide {
        width: 34px !important;
        height: 34px !important;
    }
}

/* Landscape phones and short tablets: reduce banner height so content
   below the fold remains discoverable without sacrificing legibility. */
@media (max-height: 560px) and (min-width: 480px) {
    #heroCarousel {
        height: max(360px, calc(100dvh - var(--brisk-fixed-stack-height)));
        min-height: 360px;
    }
    #heroCarousel .slide > .absolute.inset-0.flex.items-center {
        align-items: center !important;
        padding-bottom: 0 !important;
    }
    #heroCarousel h1 {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    #heroCarousel p {
        margin-bottom: 16px !important;
    }
}

/* Footer remains fully reachable and is never covered by the fixed nav. */
body > footer {
    position: relative;
    z-index: 1;
}

/* =========================================================
   BRISK VISIBLE RESPONSIVE FIX v2 — 2026-08-22
   Final override: floating fixed nav + device-safe hero
   ========================================================= */

/* Fixed glass navigation: deliberately floats inside the viewport so
   the change is visible and remains present even at the footer. */
body > header.brisk-fixed-header,
header.brisk-fixed-header {
  position: fixed !important;
  top: calc(var(--brisk-topbar-height) + 10px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1320px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  border-radius: 24px !important;
  background: rgba(255,253,248,.72) !important;
  -webkit-backdrop-filter: blur(20px) saturate(155%) !important;
  backdrop-filter: blur(20px) saturate(155%) !important;
  box-shadow: 0 14px 38px rgba(46,36,27,.14) !important;
  overflow: visible !important;
}

header.brisk-fixed-header > nav {
  min-height: 72px !important;
}

/* Mobile dropdown visually belongs to the curved nav. */
header.brisk-fixed-header #mobile-menu {
  margin: 0 10px 10px !important;
  border: 1px solid rgba(229,216,191,.8) !important;
  border-radius: 18px !important;
  background: rgba(255,253,248,.94) !important;
  overflow: hidden !important;
}

body {
  padding-top: calc(var(--brisk-fixed-stack-height) + 20px) !important;
}

/* Banner: one predictable geometry per device class. */
#heroCarousel {
  height: clamp(520px, 62vh, 720px) !important;
  min-height: 520px !important;
  border-radius: 0 !important;
}

#heroCarousel .slide > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 50% !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  body > header.brisk-fixed-header,
  header.brisk-fixed-header {
    width: calc(100% - 28px) !important;
    border-radius: 22px !important;
  }

  #heroCarousel {
    height: clamp(500px, 72vw, 620px) !important;
    min-height: 500px !important;
  }
  #heroCarousel .slide > img {
    object-position: 58% center !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
  #heroCarousel h1 {
    font-size: clamp(2.6rem, 6.5vw, 4rem) !important;
    line-height: 1.05 !important;
    max-width: 10ch !important;
  }
  #heroCarousel p {
    max-width: 36ch !important;
  }
}

/* Mobile portrait */
@media (max-width: 767px) {
  :root { --brisk-header-side-gap: 10px; }

  body > header.brisk-fixed-header,
  header.brisk-fixed-header {
    top: calc(var(--brisk-topbar-height) + 8px) !important;
    width: calc(100% - 20px) !important;
    border-radius: 20px !important;
  }

  header.brisk-fixed-header > nav {
    min-height: 64px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px !important;
  }

  header.brisk-fixed-header nav img[alt*="Brisk"] {
    width: 96px !important;
    max-width: 96px !important;
  }

  #heroCarousel {
    height: min(640px, calc(100dvh - var(--brisk-fixed-stack-height) + 86px)) !important;
    min-height: 500px !important;
  }

  #heroCarousel .slide > img {
    object-position: 64% center !important;
  }

  #heroCarousel .slide > .bg-gradient-to-r {
    background: linear-gradient(90deg,
      rgba(46,36,27,.93) 0%,
      rgba(46,36,27,.78) 48%,
      rgba(46,36,27,.32) 100%) !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items: center !important;
    padding: 30px 0 52px !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding-left: 24px !important;
    padding-right: 56px !important;
  }

  #heroCarousel .slide .max-w-xl {
    max-width: min(88vw, 390px) !important;
  }

  #heroCarousel h1 {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    line-height: 1.04 !important;
    max-width: 9.5ch !important;
    margin-bottom: 12px !important;
  }

  #heroCarousel p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 29ch !important;
    margin-bottom: 18px !important;
  }

  #heroCarousel .slide a[href="shop.html"] {
    padding: 11px 18px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  #prevSlide, #nextSlide {
    width: 36px !important;
    height: 36px !important;
    top: 50% !important;
  }
  #prevSlide { left: 8px !important; }
  #nextSlide { right: 8px !important; }
  #slideDots { bottom: 18px !important; }
}

@media (max-width: 374px) {
  #heroCarousel {
    height: 530px !important;
    min-height: 530px !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding-left: 20px !important;
    padding-right: 46px !important;
  }
  #heroCarousel h1 { font-size: 2rem !important; }
  #heroCarousel p { font-size: .88rem !important; }
}

/* Short landscape devices */
@media (orientation: landscape) and (max-height: 600px) {
  #heroCarousel {
    height: max(390px, calc(100dvh - var(--brisk-fixed-stack-height) + 60px)) !important;
    min-height: 390px !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    padding-bottom: 24px !important;
  }
}

/* =========================================================
   BRISK ZERO-CROP HERO + FAST DOB INTERACTION — FINAL OVERRIDE
   The source hero artwork is 3:2 (1536x1024). Never crop it.
   ========================================================= */
#heroCarousel {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  background: #2E241B !important;
  overflow: hidden !important;
}
#heroCarousel .slide {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}
#heroCarousel .slide > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #2E241B !important;
}

/* Desktop/tablet: keep full 3:2 artwork while retaining readable overlay. */
@media (min-width: 768px) {
  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items: center !important;
    padding: 0 !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding-left: clamp(36px, 6vw, 96px) !important;
    padding-right: clamp(36px, 6vw, 96px) !important;
  }
  #heroCarousel h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.75rem) !important;
    line-height: 1.02 !important;
    max-width: 11ch !important;
  }
  #heroCarousel p {
    max-width: 36ch !important;
  }
}

/* Mobile: artwork stays fully visible in its own 3:2 area; copy sits in a
   dedicated lower panel so text never forces the artwork to be cropped. */
@media (max-width: 767px) {
  #heroCarousel {
    aspect-ratio: auto !important;
    height: clamp(500px, 132vw, 620px) !important;
    min-height: 500px !important;
    background: #2E241B !important;
  }
  #heroCarousel .slide > img {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #2E241B !important;
  }
  #heroCarousel .slide > .bg-gradient-to-r {
    top: 0 !important;
    bottom: auto !important;
    height: 100% !important;
    background: linear-gradient(180deg,
      rgba(46,36,27,.08) 0%,
      rgba(46,36,27,.12) 42%,
      rgba(46,36,27,.94) 58%,
      rgba(46,36,27,1) 100%) !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items: flex-end !important;
    padding: 0 0 58px !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding: 0 52px 0 22px !important;
  }
  #heroCarousel .slide .max-w-xl {
    max-width: 100% !important;
  }
  #heroCarousel h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem) !important;
    line-height: 1.04 !important;
    max-width: 11ch !important;
    margin-bottom: 10px !important;
  }
  #heroCarousel p {
    font-size: .92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
    max-width: 34ch !important;
  }
  #heroCarousel .slide a[href="shop.html"] {
    min-height: 42px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
  }
  #prevSlide, #nextSlide {
    top: 25% !important;
  }
}

/* DOB field: remove unnecessary animation latency and make the whole control
   feel immediate on pointer interaction. */
#profile-form input[name="dob"] {
  transition: border-color .12s ease, box-shadow .12s ease !important;
  touch-action: manipulation;
  cursor: pointer;
}
#profile-form input[name="dob"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* =========================================================
   BRISK GLOBAL UI POLISH — 2026-08-25
   Softer premium palette, consistent buttons/footer and nav underline hover
   ========================================================= */
:root{
  --brisk-accent:#A8744F;
  --brisk-accent-hover:#8F5F3E;
  --brisk-accent-soft:#F2E5D8;
  --brisk-footer:#625247;
  --brisk-footer-deep:#55463D;
  --brisk-shadow:0 10px 28px rgba(76,57,43,.10);
}

/* All standard buttons: less pill-like, more tactile */
.primary-btn,
.secondary-btn,
button:not(.qty):not([class*="rounded-full"]),
a[class*="bg-[#2E241B]"],
a[class*="bg-[#A66A3F]"],
a[class*="bg-[#8B5E34]"]{
  border-radius:9px !important;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease !important;
}
.primary-btn,
a[class*="bg-[#2E241B]"],
a[class*="bg-[#A66A3F]"],
a[class*="bg-[#8B5E34]"]{
  background:var(--brisk-accent) !important;
  border-color:var(--brisk-accent) !important;
  color:#fff !important;
  box-shadow:0 5px 14px rgba(143,95,62,.16);
}
.primary-btn:hover,
a[class*="bg-[#2E241B]"]:hover,
a[class*="bg-[#A66A3F]"]:hover,
a[class*="bg-[#8B5E34]"]:hover{
  background:var(--brisk-accent-hover) !important;
  border-color:var(--brisk-accent-hover) !important;
  transform:translateY(-2px);
  box-shadow:0 9px 20px rgba(143,95,62,.22);
}
.primary-btn:active,.secondary-btn:active{transform:translateY(0) scale(.985)}
.secondary-btn:hover{transform:translateY(-2px);box-shadow:var(--brisk-shadow);border-color:#D8C5B5!important;background:#F7EEE7!important}

/* Desktop navigation: animated line instead of a block hover */
.nav-link,
header nav .nav-link{
  position:relative !important;
  border-radius:0 !important;
  background:transparent !important;
  transition:color .2s ease !important;
}
.nav-link::after,
header nav .nav-link::after{
  content:"";
  position:absolute;
  left:50%;
  right:50%;
  bottom:3px;
  height:2px;
  border-radius:2px;
  background:var(--brisk-accent);
  transition:left .22s ease,right .22s ease;
}
.nav-link:hover,
.nav-link:focus-visible{background:transparent!important;color:var(--brisk-accent-hover)!important;outline:none}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after{left:10px;right:10px}

/* Mobile nav gets a subtle left-line interaction */
.mobile-nav-link{position:relative;overflow:hidden;transition:background .18s ease,color .18s ease,padding-left .18s ease!important}
.mobile-nav-link::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--brisk-accent);transform:scaleY(0);transition:transform .18s ease}
.mobile-nav-link:hover,.mobile-nav-link:focus-visible{background:#F5ECE4!important;color:var(--brisk-accent-hover)!important;padding-left:17px!important}
.mobile-nav-link:hover::before,.mobile-nav-link:focus-visible::before{transform:scaleY(1)}

/* Global footer: lighter than old near-black brown */
body > footer,
footer.bg-\[\#2E241B\],
footer[class*="bg-[#2E241B]"]{
  background:linear-gradient(135deg,var(--brisk-footer),var(--brisk-footer-deep)) !important;
}
body > footer a{transition:color .18s ease,transform .18s ease,opacity .18s ease}
body > footer a:hover{color:#F1D4B8!important;transform:translateX(2px)}
.footer-pill{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.16)!important;transition:background .18s ease,transform .18s ease!important}
.footer-pill:hover{background:rgba(255,255,255,.12)!important;transform:translateY(-2px)}

/* Cards feel less flat without becoming heavy */
.category-card,.brisk-card,.checkout-panel,.ab-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.brisk-card:hover,.ab-card:hover{transform:translateY(-3px);box-shadow:var(--brisk-shadow);border-color:#DCC8B7!important}

/* =========================================================
   BRISK RESPONSIVE QA FINAL — 2026-08-26
   1) Professional nav-to-banner spacing
   2) Global mobile/tablet/desktop overflow + footer safety
   ========================================================= */

/* Keep fixed navigation visually attached to page content. The runtime
   CSS variable already contains the exact topbar + header height, so no
   extra artificial body gap is required. */
body > header.brisk-fixed-header,
header.brisk-fixed-header {
    top: var(--brisk-topbar-height) !important;
}

body {
    padding-top: var(--brisk-fixed-stack-height) !important;
}

/* Home banner begins immediately after the fixed navigation stack. */
body > main#main,
main#main {
    margin-top: 0 !important;
}

#heroCarousel {
    margin-top: 0 !important;
}

/* Universal responsive safety. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img,
video {
    height: auto;
}

main,
section,
article,
aside,
header,
footer,
nav,
form,
fieldset,
.grid,
.flex {
    min-width: 0;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

/* Long ecommerce labels, product names, emails and addresses must wrap. */
p,
a,
span,
label,
button,
td,
th,
h1,
h2,
h3,
h4 {
    overflow-wrap: anywhere;
}

/* Footer should always be fully reachable and never clipped. */
footer {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

footer .grid,
footer .flex,
footer .grid > *,
footer .flex > * {
    min-width: 0;
}

/* Tablet QA */
@media (min-width: 768px) and (max-width: 1023px) {
    body > header.brisk-fixed-header,
    header.brisk-fixed-header {
        top: var(--brisk-topbar-height) !important;
        width: calc(100% - 24px) !important;
    }

    body {
        padding-top: var(--brisk-fixed-stack-height) !important;
    }

    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        width: 100%;
        max-width: 100%;
    }

    footer .grid {
        row-gap: 32px;
    }
}

/* Phones */
@media (max-width: 767px) {
    body > header.brisk-fixed-header,
    header.brisk-fixed-header {
        top: var(--brisk-topbar-height) !important;
        width: calc(100% - 16px) !important;
        border-radius: 16px !important;
    }

    body {
        padding-top: var(--brisk-fixed-stack-height) !important;
    }

    header.brisk-fixed-header > nav {
        min-height: 60px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Hero is tall enough for copy, but no longer consumes nearly a full
       extra viewport below the navigation. */
    #heroCarousel {
        height: clamp(390px, 66vw + 170px, 560px) !important;
        min-height: 390px !important;
    }

    #heroCarousel .slide > img,
    #heroCarousel .slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    main > section,
    main > div,
    main article,
    main aside,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Common two-column utility groups should stack safely on phones. */
    .grid.grid-cols-2:not(.keep-two-cols),
    .grid.grid-cols-3,
    .grid.grid-cols-4 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Action rows may wrap instead of forcing horizontal scrolling. */
    .flex.items-center.justify-between,
    .flex.justify-between {
        min-width: 0;
    }

    .primary-btn,
    .secondary-btn {
        min-height: 44px;
    }

    /* Tables remain usable without breaking the entire page width. */
    .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    footer {
        margin-top: 48px !important;
    }

    footer > div {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    footer .grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 26px !important;
    }

    footer .flex {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Very narrow devices (320–374px) */
@media (max-width: 374px) {
    body > header.brisk-fixed-header,
    header.brisk-fixed-header {
        width: calc(100% - 10px) !important;
        border-radius: 14px !important;
    }

    header.brisk-fixed-header > nav {
        padding-left: 8px !important;
        padding-right: 8px !important;
        gap: 6px !important;
    }

    header.brisk-fixed-header nav img[alt*="Brisk"] {
        width: 82px !important;
        max-width: 82px !important;
    }

    #heroCarousel {
        min-height: 370px !important;
        height: 470px !important;
    }

    .checkout-panel,
    .category-card,
    .ab-card {
        border-radius: 18px !important;
    }
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}


/* =========================================================
   BRISK MOBILE-FIRST FINAL OVERRIDES
   Banner stays fully visible (no crop) and mobile nav is stable.
   ========================================================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* Header/nav: always keep logo + actions + hamburger visible on phones/tablets */
header.brisk-fixed-header,
body > header.brisk-fixed-header {
  width: 100%;
  max-width: 100%;
}

header.brisk-fixed-header > nav,
body > header.brisk-fixed-header > nav {
  width: 100%;
  max-width: 1280px;
}

@media (max-width: 1023px) {
  header.brisk-fixed-header > nav,
  body > header.brisk-fixed-header > nav {
    min-height: 64px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px !important;
  }

  header.brisk-fixed-header nav > a:first-child,
  body > header.brisk-fixed-header nav > a:first-child {
    min-width: 0;
    flex: 0 1 auto;
  }

  header.brisk-fixed-header nav img[alt*="Brisk"],
  body > header.brisk-fixed-header nav img[alt*="Brisk"] {
    width: 104px !important;
    max-width: 104px !important;
    height: auto !important;
  }

  #mobile-menu-button {
    display: grid !important;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    place-items: center;
    position: relative;
    z-index: 80;
  }

  #mobile-menu {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 70;
  }

  #mobile-menu:not(.hidden) {
    display: block !important;
  }

  #mobile-menu a,
  #mobile-menu button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .brisk-topbar {
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  header.brisk-fixed-header > nav,
  body > header.brisk-fixed-header > nav {
    min-height: 58px !important;
  }

  header.brisk-fixed-header nav img[alt*="Brisk"],
  body > header.brisk-fixed-header nav img[alt*="Brisk"] {
    width: 92px !important;
    max-width: 92px !important;
  }

  header.brisk-fixed-header nav .h-11.w-11,
  body > header.brisk-fixed-header nav .h-11.w-11 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  #mobile-menu-button {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
}

/* HOME HERO / BANNER
   Never crop the artwork on mobile. The section follows image aspect ratio. */
#heroCarousel {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: #F8F3E8;
}

/* Desktop/tablet can keep a composed hero height */
@media (min-width: 768px) {
  #heroCarousel {
    min-height: 420px !important;
    height: clamp(420px, 48vw, 650px) !important;
  }

  #heroCarousel .slide,
  #heroCarousel .slide > img {
    width: 100% !important;
    height: 100% !important;
  }

  #heroCarousel .slide > img {
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* Phone: image fully shrinks to screen width — zero cropping */
@media (max-width: 767px) {
  #heroCarousel {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  #heroCarousel .slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  #heroCarousel .slide:not([data-slide="0"]) {
    position: absolute !important;
    inset: 0 !important;
  }

  #heroCarousel .slide > img,
  #heroCarousel .slide img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  /* Keep overlay content compact so it does not force/crop the image */
  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding: 14px 16px 18px !important;
  }

  #heroCarousel .slide .max-w-xl {
    max-width: 82% !important;
  }

  #heroCarousel h1 {
    font-size: clamp(1.25rem, 6vw, 1.9rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
  }

  #heroCarousel p {
    display: none !important;
  }

  #heroCarousel .slide a[href="shop.html"] {
    padding: 8px 13px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  #heroCarousel .slide span[class*="tracking"] {
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 380px) {
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding: 10px 12px 12px !important;
  }

  #heroCarousel h1 {
    font-size: 1.12rem !important;
  }

  #heroCarousel .slide a[href="shop.html"] {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }
}

/* General phone/tablet resilience from navbar through footer */
@media (max-width: 767px) {
  main, section, footer, header, nav {
    max-width: 100%;
  }

  main {
    overflow-x: clip;
  }

  footer .grid,
  footer [class*="grid-cols-"] {
    grid-template-columns: 1fr !important;
  }

  footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  footer > div,
  footer .mx-auto {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  input, select, textarea, button {
    max-width: 100%;
  }

  table {
    max-width: 100%;
  }
}


/* =========================================================
   BRISK BANNER REPAIR — FINAL AUTHORITATIVE RULES
   Source banner images are 1536x1024 (3:2). Keep full image visible.
   ========================================================= */
#heroCarousel {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #F8F3E8 !important;
}

#heroCarousel .slide,
#heroCarousel .slide[data-slide] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

#heroCarousel .slide > img,
#heroCarousel .slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 767px) {
  #heroCarousel {
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #heroCarousel .slide,
  #heroCarousel .slide:not([data-slide="0"]),
  #heroCarousel .slide[data-slide] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #heroCarousel .slide > img,
  #heroCarousel .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    width: 100% !important;
    padding: 12px 48px 18px !important;
  }

  #heroCarousel .slide .max-w-xl {
    max-width: 88% !important;
  }

  #heroCarousel h1 {
    font-size: clamp(1rem, 5.2vw, 1.45rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 4px !important;
  }

  #heroCarousel p,
  #heroCarousel .slide span[class*="tracking"] {
    display: none !important;
  }

  #heroCarousel .slide a[href="shop.html"] {
    display: inline-flex !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  #heroCarousel #prevSlide,
  #heroCarousel #nextSlide {
    width: 34px !important;
    height: 34px !important;
  }

  #heroCarousel #slideDots {
    bottom: 8px !important;
    gap: 6px !important;
  }
}

@media (max-width: 380px) {
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding: 8px 42px 14px !important;
  }
  #heroCarousel h1 { font-size: .95rem !important; }
  #heroCarousel .slide a[href="shop.html"] { font-size: 9px !important; padding: 6px 9px !important; }
}


/* =========================================================
   BRISK TARGETED MOBILE RESPONSIVE REPAIR
   Only mobile fixes. Desktop/tablet layouts are preserved.
   ========================================================= */
@media (max-width: 767px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden; }
  body > main, main, section, footer { min-width:0; max-width:100%; }

  /* Header / nav */
  body > header.brisk-fixed-header,
  header.brisk-fixed-header {
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:100% !important;
    border-radius:0 !important;
    margin:0 !important;
  }
  header.brisk-fixed-header > nav {
    width:100% !important;
    max-width:100% !important;
    min-height:60px !important;
    padding:7px 10px !important;
    gap:8px !important;
  }
  header.brisk-fixed-header nav img[alt*="Brisk"] {
    width:92px !important;
    max-width:92px !important;
    height:auto !important;
  }
  #mobile-menu-button {
    display:grid !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    place-items:center !important;
  }
  #mobile-menu:not(.hidden) { display:block !important; }
  #mobile-menu { width:100% !important; max-width:100% !important; }
  #mobile-menu .grid { grid-template-columns:1fr !important; }

  /* Home banner: full image visible, no crop */
  #heroCarousel {
    width:100% !important;
    aspect-ratio:3 / 2 !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  #heroCarousel .slide,
  #heroCarousel .slide[data-slide] {
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }
  #heroCarousel .slide > img,
  #heroCarousel .slide img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items:flex-end !important;
  }
  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding:10px 44px 16px !important;
  }
  #heroCarousel h1 {
    font-size:clamp(1rem,5vw,1.35rem) !important;
    line-height:1.08 !important;
    margin-bottom:4px !important;
  }
  #heroCarousel p,
  #heroCarousel .slide span[class*="tracking"] { display:none !important; }
  #heroCarousel .slide a[href="shop.html"] {
    padding:7px 10px !important;
    font-size:10px !important;
    border-radius:8px !important;
  }

  /* Common page containers */
  .max-w-7xl,.max-w-6xl,.max-w-5xl,.max-w-4xl {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  main > section,
  main > div {
    padding-left:14px !important;
    padding-right:14px !important;
  }

  /* Shop / product lists */
  #product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  #product-grid .brisk-card { min-width:0 !important; }
  #product-grid .brisk-card > div:last-child { padding:12px !important; }
  #product-grid .brisk-card h3 { min-height:0 !important; font-size:.9rem !important; }

  /* Product / cart / wishlist / forms */
  #product-detail > .grid,
  #cart-page > .grid,
  #wishlist-page > .grid,
  form .grid,
  .checkout-panel .grid {
    grid-template-columns:1fr !important;
  }
  input, select, textarea, button { max-width:100%; }
  input, select, textarea { font-size:16px; }

  /* Checkout targeted */
  .checkout-layout { grid-template-columns:1fr !important; }
  .checkout-aside { order:-1 !important; }
  .checkout-price-card { position:static !important; }
  .address-grid { grid-template-columns:1fr !important; }
  .span-2 { grid-column:auto !important; }
  .bank-grid { grid-template-columns:1fr !important; }
  .card-entry-grid { grid-template-columns:1fr !important; }
  .card-field.span-card { grid-column:auto !important; }
  .checkout-panel { padding:15px !important; border-radius:12px !important; }

  /* Footer */
  footer { width:100% !important; max-width:100% !important; overflow:hidden; }
  footer > div,
  footer .mx-auto {
    width:100% !important;
    max-width:100% !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }
  footer .grid,
  footer [class*="grid-cols-"] { grid-template-columns:1fr !important; gap:24px !important; }
  footer .flex { flex-wrap:wrap; }
}

@media (max-width: 359px) {
  #product-grid { grid-template-columns:1fr !important; }
  header.brisk-fixed-header nav img[alt*="Brisk"] { width:82px !important; max-width:82px !important; }
}


/* ============================================================
   BRISK MOBILE HEADER + HERO REPAIR
   Targeted fix based on phone QA screenshot.
   ============================================================ */
@media (max-width: 1023px) {
  /* One clean navigation row only */
  body > header.brisk-fixed-header,
  header.brisk-fixed-header {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }

  header.brisk-fixed-header > nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 62px !important;
    width: 100% !important;
    padding: 7px 12px !important;
    gap: 8px !important;
  }

  header.brisk-fixed-header > nav > a:first-child {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  header.brisk-fixed-header nav img[alt*="Brisk"] {
    display: block !important;
    width: 96px !important;
    max-width: 96px !important;
    height: auto !important;
  }

  /* Action group must stay on same row */
  header.brisk-fixed-header > nav > .flex.items-center.gap-2 {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 7px !important;
    margin-left: auto !important;
  }

  /* Desktop live-search is forbidden inside narrow header */
  #global-search-wrap {
    display: none !important;
  }

  header.brisk-fixed-header nav a[aria-label="My Profile"],
  header.brisk-fixed-header nav a[aria-label="Shopping cart"],
  #mobile-menu-button {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
  }

  #mobile-menu-button {
    position: relative !important;
    z-index: 1002 !important;
  }

  /* Dropdown overlays content instead of making header grow to two rows */
  #mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(70vh, 560px) !important;
    overflow-y: auto !important;
    background: #FFFDF8 !important;
    border-top: 1px solid #E5D8BF !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 14px 28px rgba(46,36,27,.14) !important;
  }

  #mobile-menu.hidden {
    display: none !important;
  }

  #mobile-menu:not(.hidden) {
    display: block !important;
  }

  #mobile-menu > div {
    padding: 14px 16px 18px !important;
  }

  #mobile-menu form {
    display: block !important;
    margin-bottom: 12px !important;
  }

  #mobile-menu #mobile-search {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  #mobile-menu .grid {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }

  #mobile-menu .mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 767px) {
  .brisk-topbar {
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  header.brisk-fixed-header > nav {
    min-height: 58px !important;
    padding: 6px 10px !important;
  }

  header.brisk-fixed-header nav img[alt*="Brisk"] {
    width: 88px !important;
    max-width: 88px !important;
  }

  header.brisk-fixed-header nav a[aria-label="My Profile"],
  header.brisk-fixed-header nav a[aria-label="Shopping cart"],
  #mobile-menu-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }

  /* Hero keeps the full source artwork — no crop */
  #heroCarousel {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #F8F3E8 !important;
  }

  #heroCarousel .slide,
  #heroCarousel .slide[data-slide] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #heroCarousel .slide > img,
  #heroCarousel .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Remove the dark/brown wash that was obscuring the banner */
  #heroCarousel .slide > .bg-gradient-to-r {
    background: linear-gradient(
      to top,
      rgba(24,18,14,.26) 0%,
      rgba(24,18,14,.08) 35%,
      rgba(24,18,14,0) 62%
    ) !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    width: 100% !important;
    padding: 10px 46px 16px !important;
  }

  #heroCarousel .slide .max-w-xl {
    max-width: 78% !important;
  }

  #heroCarousel .slide span[class*="tracking"],
  #heroCarousel .slide p {
    display: none !important;
  }

  #heroCarousel h1 {
    color: #fff !important;
    font-size: clamp(1.08rem, 5.4vw, 1.5rem) !important;
    line-height: 1.08 !important;
    margin: 0 0 8px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.42) !important;
  }

  #heroCarousel .slide a[href="shop.html"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.14) !important;
  }

  #heroCarousel #prevSlide,
  #heroCarousel #nextSlide {
    top: 50% !important;
    width: 34px !important;
    height: 34px !important;
    transform: translateY(-50%) !important;
    background: rgba(46,36,27,.58) !important;
    backdrop-filter: blur(4px);
  }

  #heroCarousel #prevSlide { left: 6px !important; }
  #heroCarousel #nextSlide { right: 6px !important; }

  #heroCarousel #slideDots {
    bottom: 7px !important;
    gap: 6px !important;
  }
}

@media (max-width: 380px) {
  header.brisk-fixed-header nav img[alt*="Brisk"] {
    width: 78px !important;
    max-width: 78px !important;
  }

  header.brisk-fixed-header > nav > .flex.items-center.gap-2 {
    gap: 5px !important;
  }

  #heroCarousel .slide > .absolute.inset-0.flex.items-center > div {
    padding: 8px 40px 13px !important;
  }

  #heroCarousel h1 {
    font-size: 1rem !important;
  }
}


/* === Professional typography sizing only (2026-08-28) ===
   Typography-only override. No layout, spacing, flow, or functionality changes.
*/
html { font-size: 15px; }
body { font-size: 0.94rem; line-height: 1.55; }

h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.18; }
h2 { font-size: clamp(1.40rem, 2.3vw, 1.85rem); line-height: 1.24; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.42rem); line-height: 1.30; }
h4 { font-size: 1.05rem; line-height: 1.35; }
h5 { font-size: 0.98rem; line-height: 1.40; }
h6 { font-size: 0.92rem; line-height: 1.40; }

button, input, select, textarea { font-size: 0.92rem; }
nav, header { font-size: 0.92rem; }
footer { font-size: 0.90rem; }

/* Product/UI typography only */
.product-card h2, .product-card h3, .product-card h4,
[data-product-card] h2, [data-product-card] h3, [data-product-card] h4 {
  font-size: 1rem;
  line-height: 1.35;
}
.product-card p, [data-product-card] p { font-size: 0.90rem; }

/* ===========================================================================
   SOURCE FILE: order-cancel.css
   =========================================================================== */
.brisk-cancel-order{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 16px;border:1px solid #c97a68;
  border-radius:10px;background:#fff;color:#9a3d2d;font-weight:700;
  cursor:pointer;transition:.2s ease;
}
.brisk-cancel-order:hover{background:#9a3d2d;color:#fff;transform:translateY(-1px)}


/* =========================================================
   BRISK PRODUCT CARD FLOW
   ========================================================= */

.product-card {
    cursor: pointer;
}

.product-card:focus-visible {
    outline: 2px solid #8B5E34;
    outline-offset: 3px;
}

.quick-preview,
[data-quick-preview],
.quick-preview-button {
    display: none !important;
}

/* Flipkart-style post-delivery rating action */
.order-product-row{display:flex;align-items:center;gap:12px;min-width:0}
.order-rate-link{display:inline-flex;margin-top:6px;color:#8B5E34;font-size:12px;font-weight:800;text-decoration:none}
.order-rate-link:hover{text-decoration:underline;color:#A66A3F}
@media(max-width:520px){
  .order-product-row{align-items:flex-start;flex-wrap:wrap}
  .order-product-row>b{margin-left:60px}
  .order-rate-link{min-height:36px;align-items:center}
}

/* ===========================================================================
   SOURCE FILE: site-responsive-final.css
   =========================================================================== */

/* =====================================================================
   BRISK — CLEAN FINAL RESPONSIVE LAYER
   Single source of truth for navbar, mobile footer and key responsive UI.
   ===================================================================== */

:root {
  --brisk-offer-h: 24px;
  --brisk-nav-h: 58px;
  --brisk-fixed-total: calc(var(--brisk-offer-h) + var(--brisk-nav-h) + 10px);
}

html {
  width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding-top: var(--brisk-fixed-total) !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  position: static !important;
}

/* Never allow an old menu-scroll-lock class to freeze page scrolling. */
body.brisk-mobile-menu-open {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
}

main, #main, body > main, body > #main {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* ---------------- OFFER BAR ---------------- */
.brisk-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--brisk-offer-h) !important;
  min-height: var(--brisk-offer-h) !important;
  padding: 0 8px !important;
  margin: 0 !important;
  background: #2E241B !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  text-align: center !important;
  z-index: 10001 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------- CURVED GLASS FIXED NAV ---------------- */
body > header.brisk-fixed-header,
header.brisk-fixed-header {
  display: block !important;
  position: fixed !important;
  top: calc(var(--brisk-offer-h) + 5px) !important;
  left: 7px !important;
  right: 7px !important;
  bottom: auto !important;
  width: auto !important;
  max-width: none !important;
  height: var(--brisk-nav-h) !important;
  min-height: var(--brisk-nav-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 18px !important;
  background: rgba(255,253,248,.80) !important;
  -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
  backdrop-filter: blur(16px) saturate(135%) !important;
  box-shadow: 0 8px 26px rgba(46,36,27,.12), inset 0 1px 0 rgba(255,255,255,.72) !important;
  overflow: visible !important;
  z-index: 10000 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

header.brisk-fixed-header > nav,
#home-navbar {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1280px !important;
  height: var(--brisk-nav-h) !important;
  min-height: var(--brisk-nav-h) !important;
  margin: 0 auto !important;
  padding: 5px 11px !important;
  gap: 8px !important;
  overflow: visible !important;
}

/* Original asset logo only, natural aspect ratio */
header.brisk-fixed-header > nav > a:first-child,
#home-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 96px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

header.brisk-fixed-header img[src$="assets/brand/brisk-logo.png"],
header.brisk-fixed-header img[src$="../assets/brand/brisk-logo.png"],
#home-brand > img {
  display: block !important;
  width: auto !important;
  max-width: 96px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

header.brisk-fixed-header > nav > .flex.items-center.gap-2,
#home-nav-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-left: auto !important;
  min-width: 0 !important;
}

header.brisk-fixed-header [data-user-name] { display: none !important; }

header.brisk-fixed-header nav a[aria-label="My Profile"],
header.brisk-fixed-header nav a[aria-label="Shopping cart"],
header.brisk-fixed-header #mobile-menu-button {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

/* Desktop links/search */
header.brisk-fixed-header > nav > div.hidden.lg\\:flex,
#home-navbar > div.hidden.lg\\:flex {
  display: none !important;
}
#global-search-wrap { display: none !important; }
header.brisk-fixed-header #mobile-menu-button { display: grid !important; }

#mobile-menu {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100dvh - var(--brisk-fixed-total)) !important;
  margin: 0 !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 15px !important;
  background: rgba(255,253,248,.96) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  box-shadow: 0 14px 34px rgba(46,36,27,.14) !important;
  z-index: 10002 !important;
}
#mobile-menu.hidden { display: none !important; }
#mobile-menu:not(.hidden), #mobile-menu[data-open="true"] { display: block !important; }
#mobile-menu .grid { grid-template-columns: 1fr !important; }

/* ---------------- MOBILE FOOTER: NORMAL DOCUMENT FLOW ---------------- */
body > footer,
footer {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 44px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  contain: none !important;
  flex: none !important;
}

footer > div,
footer > .mx-auto {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 34px 20px 100px !important;
  overflow: visible !important;
}

/* Main footer groups: one real column, no grid row sizing surprises. */
footer > div > .grid,
footer > .mx-auto > .grid,
footer .grid.md\\:grid-cols-2,
footer .grid.lg\\:grid-cols-5 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

footer > div > .grid > div,
footer > .mx-auto > .grid > div {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 30px !important;
  overflow: visible !important;
}

footer > div > .grid > div:last-child,
footer > .mx-auto > .grid > div:last-child {
  margin-bottom: 0 !important;
}

footer .grid.gap-3 {
  display: block !important;
  width: 100% !important;
}
footer .grid.gap-3 > a {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 12px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}
footer .grid.gap-3 > a:last-child { margin-bottom: 0 !important; }

footer .lg\\:col-span-2,
footer [class*="col-span"] { grid-column: auto !important; }

footer .footer-brand-logo,
footer img[alt*="Brisk"] {
  display: block !important;
  width: auto !important;
  max-width: 132px !important;
  height: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

footer p {
  width: 100% !important;
  max-width: 34rem !important;
  margin-top: 16px !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  overflow-wrap: normal !important;
}
footer h2 {
  margin-bottom: 12px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}
footer .flex.flex-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}
footer .mt-12 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 20px !important;
  padding: 18px 0 0 !important;
  overflow: visible !important;
}

/* Banner text contrast only */
#heroCarousel .slide h1 { color:#fff !important; text-shadow:0 2px 8px rgba(0,0,0,.62) !important; }
#heroCarousel .slide p { color:#fff !important; opacity:1 !important; text-shadow:0 1px 5px rgba(0,0,0,.65) !important; }

/* Products: 2 columns on phones, 1 only on tiny devices. */
#product-grid, #featured-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
.brisk-card { min-width:0 !important; width:100% !important; }
.brisk-card .grid.grid-cols-2 { grid-template-columns:1fr !important; gap:7px !important; }

@media (min-width: 768px) {
  :root { --brisk-offer-h: 26px; --brisk-nav-h: 62px; --brisk-fixed-total: calc(var(--brisk-offer-h) + var(--brisk-nav-h) + 14px); }
  body > header.brisk-fixed-header, header.brisk-fixed-header { top:calc(var(--brisk-offer-h) + 7px) !important; left:12px !important; right:12px !important; border-radius:22px !important; }
  header.brisk-fixed-header > nav, #home-navbar { padding:6px 16px !important; }
  header.brisk-fixed-header > nav > a:first-child, #home-brand { flex-basis:116px !important; width:116px !important; min-width:116px !important; max-width:116px !important; }
  header.brisk-fixed-header img[src$="assets/brand/brisk-logo.png"], header.brisk-fixed-header img[src$="../assets/brand/brisk-logo.png"], #home-brand > img { max-width:116px !important; height:38px !important; max-height:38px !important; }
  #product-grid, #featured-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:16px !important; }
  footer > div, footer > .mx-auto { padding-bottom:60px !important; }
}

@media (min-width: 1024px) {
  header.brisk-fixed-header > nav > div.hidden.lg\\:flex,
  #home-navbar > div.hidden.lg\\:flex { display:flex !important; flex:1 1 auto !important; align-items:center !important; justify-content:center !important; gap:0 !important; min-width:0 !important; }
  header.brisk-fixed-header > nav > div.hidden.lg\\:flex > a,
  header.brisk-fixed-header > nav > div.hidden.lg\\:flex > div > button,
  #home-navbar > div.hidden.lg\\:flex > a,
  #home-navbar > div.hidden.lg\\:flex > div > button { padding:9px 8px !important; font-size:12px !important; white-space:nowrap !important; }
  #global-search-wrap { display:block !important; width:230px !important; max-width:230px !important; min-width:160px !important; flex:0 1 230px !important; }
  header.brisk-fixed-header #mobile-menu-button { display:none !important; }
  header.brisk-fixed-header #mobile-menu { display:none !important; }
  #product-grid, #featured-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:20px !important; }

  /* Desktop footer returns to normal multi-column layout. */
  footer { margin-top:80px !important; }
  footer > div, footer > .mx-auto { max-width:1280px !important; padding:56px 24px !important; }
  footer > div > .grid, footer > .mx-auto > .grid { display:grid !important; grid-template-columns:2fr 1fr 1fr 1fr !important; gap:40px !important; }
  footer > div > .grid > div, footer > .mx-auto > .grid > div { margin:0 !important; }
}

@media (max-width: 359px) {
  header.brisk-fixed-header > nav > a:first-child, #home-brand { flex-basis:74px !important; width:74px !important; min-width:74px !important; max-width:74px !important; }
  header.brisk-fixed-header img[src$="assets/brand/brisk-logo.png"], header.brisk-fixed-header img[src$="../assets/brand/brisk-logo.png"], #home-brand > img { max-width:74px !important; height:28px !important; max-height:28px !important; }
  header.brisk-fixed-header nav a[aria-label="My Profile"], header.brisk-fixed-header nav a[aria-label="Shopping cart"], header.brisk-fixed-header #mobile-menu-button { flex-basis:33px !important; width:33px !important; min-width:33px !important; max-width:33px !important; height:33px !important; min-height:33px !important; max-height:33px !important; }
  #product-grid, #featured-grid { grid-template-columns:1fr !important; }
  footer > div, footer > .mx-auto { padding-left:16px !important; padding-right:16px !important; padding-bottom:90px !important; }
}


/* =====================================================================
   MOBILE PRODUCT CARD + FOOTER BOTTOM — 2026-08-26 FINAL
   Kept inside this single responsive stylesheet (no extra override file).
   ===================================================================== */

.product-price-row {
  min-width: 0 !important;
}
.product-price,
.product-mrp,
.product-discount {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

/* Give the footer a guaranteed real bottom so mobile browsers can always
   reach Account links + copyright, even with a fixed glass header. */
footer {
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  /* PRODUCT CARDS — two clean columns without broken numbers/text */
  #product-grid,
  #featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .brisk-card {
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  .brisk-card > div:last-child {
    padding: 14px 12px 15px !important;
  }

  .brisk-card h3 {
    min-height: 44px !important;
    margin-top: 7px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .brisk-card .product-price-row {
    display: grid !important;
    grid-template-columns: auto auto 1fr !important;
    align-items: end !important;
    column-gap: 6px !important;
    row-gap: 2px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .brisk-card .product-price {
    font-size: 19px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
  }

  .brisk-card .product-mrp {
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  .brisk-card .product-discount {
    justify-self: end !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    text-align: right !important;
  }

  .brisk-card .mt-1.text-xs {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  .brisk-card .grid.grid-cols-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .brisk-card .grid.grid-cols-2 button {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .brisk-card button.block.w-full {
    margin-top: 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* FOOTER — real document height through Cart + copyright */
  body > footer,
  footer {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  footer > div,
  footer > .mx-auto {
    display: block !important;
    height: auto !important;
    min-height: max-content !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 110px !important;
  }

  footer > div > .grid,
  footer > .mx-auto > .grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  footer .mt-12 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    margin-top: 30px !important;
    padding: 20px 0 10px !important;
    overflow: visible !important;
  }

  /* Extra document-flow tail is intentional: it lets the copyright clear
     mobile browser chrome while keeping the brown footer background. */
  footer::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: max(28px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  #product-grid,
  #featured-grid {
    gap: 9px !important;
  }

  .brisk-card > div:last-child {
    padding: 12px 10px 14px !important;
  }

  .brisk-card h3 {
    font-size: 14px !important;
    min-height: 40px !important;
  }

  .brisk-card .product-price {
    font-size: 17px !important;
  }

  .brisk-card .product-mrp {
    font-size: 11px !important;
  }

  .brisk-card .product-discount {
    font-size: 10px !important;
  }
}

/* Only extremely narrow legacy widths collapse to one product per row. */
@media (max-width: 300px) {
  #product-grid,
  #featured-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile footer copyright visibility fix only — 2026-08-31 */
@media (max-width: 767px) {
  footer .mt-12.border-t {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    color: rgba(255, 255, 255, 0.60) !important;
    padding-bottom: 24px !important;
  }
}

/* 2026-09-02 — Shop mobile card action alignment only.
   Keep Add to Cart / Buy Now at the same bottom level within each product-grid row. */
@media (max-width: 767px) {
  #product-grid > [data-product-id] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  #product-grid > [data-product-id] > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  #product-grid > [data-product-id] > div:last-child > div:last-child {
    margin-top: auto !important;
    padding-top: 16px !important;
  }
}

/* ===========================================================================
   SOURCE FILE: profile-name-navbar-fix.css
   =========================================================================== */
/* BRISK PROFILE NAME NAVBAR FIX — 2026-08-28
   Keeps logged-in username from changing navbar padding/height. */
header.brisk-fixed-header nav a[aria-label="My Profile"],
#home-nav-actions > a[aria-label="My Profile"] {
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Small screens: icon-only, stable circular action. */
@media (max-width: 1023px) {
  header.brisk-fixed-header nav a[aria-label="My Profile"],
  #home-nav-actions > a[aria-label="My Profile"] {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  header.brisk-fixed-header nav a[aria-label="My Profile"] [data-user-name],
  #home-nav-actions > a[aria-label="My Profile"] [data-user-name] {
    display: none !important;
  }
}

/* Desktop: controlled icon + name pill; long names truncate instead of pushing nav. */
@media (min-width: 1024px) {
  header.brisk-fixed-header nav a[aria-label="My Profile"],
  #home-nav-actions > a[aria-label="My Profile"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    gap: 6px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  header.brisk-fixed-header nav a[aria-label="My Profile"] svg,
  #home-nav-actions > a[aria-label="My Profile"] svg {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  header.brisk-fixed-header nav a[aria-label="My Profile"] [data-user-name],
  #home-nav-actions > a[aria-label="My Profile"] [data-user-name] {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #2E241B !important;
  }
}

/* Slightly tighter desktop widths where the center nav/search needs room. */
@media (min-width: 1024px) and (max-width: 1199px) {
  header.brisk-fixed-header nav a[aria-label="My Profile"],
  #home-nav-actions > a[aria-label="My Profile"] {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    padding-inline: 7px !important;
    gap: 5px !important;
  }
  header.brisk-fixed-header nav a[aria-label="My Profile"] [data-user-name],
  #home-nav-actions > a[aria-label="My Profile"] [data-user-name] {
    max-width: 56px !important;
  }
}

/* ===========================================================================
   SOURCE FILE: membership.css
   =========================================================================== */
/* =========================================================
   BRISK — MEMBERSHIP CARD MANAGEMENT
   Brand palette (as supplied):
     Body Background   #F8F3E8
     Section Background#FFFDF8
     Primary Text      #2E241B
     Primary Accent    #8B5E34
     Button / CTA      #A66A3F
   Self-contained: works on checkout.html, cart.html and
   profile.html without depending on any page-specific CSS.
   ========================================================= */

.mem-panel{
  --mem-bg:#F8F3E8; --mem-surface:#FFFDF8; --mem-ink:#2E241B;
  --mem-accent:#8B5E34; --mem-cta:#A66A3F; --mem-line:#E9DDC8;
  background:var(--mem-surface); border:1px solid var(--mem-line); border-radius:16px;
  padding:22px 22px 24px; margin-top:18px;
  box-shadow:0 6px 20px rgba(46,36,27,.05);
}
.mem-panel-head{margin-bottom:18px}
.mem-kicker{font-size:11px; font-weight:900; letter-spacing:.14em; color:var(--mem-cta); text-transform:uppercase}
.mem-panel-head h2{font-size:20px; font-weight:900; color:var(--mem-ink); margin:4px 0 4px}
.mem-panel-head p{font-size:13px; color:#7c7167}

.mem-block{padding-top:18px; border-top:1px dashed var(--mem-line)}
.mem-panel-head + .mem-step .mem-block{border-top:0; padding-top:0}
.mem-block + .mem-block{margin-top:6px}

/* ---- Single-step guided flow: exactly one step visible, with a
   professional fade + upward move + height-collapse transition when
   moving between "Do you have a Brisk Card?" and the next step. ---- */
.mem-step{
  overflow:hidden; max-height:640px; opacity:1; transform:translateY(0);
  transition:max-height .23s ease, opacity .2s ease, transform .2s ease;
}
.mem-step.mem-step-collapsing{
  max-height:0; opacity:0; transform:translateY(-6px); pointer-events:none;
}
.mem-back-link{
  display:inline-flex; align-items:center; gap:7px; background:transparent; border:0;
  color:var(--mem-accent); font-size:12px; font-weight:800; padding:0 0 12px; cursor:pointer;
}
.mem-back-link:hover{color:var(--mem-cta); text-decoration:underline}
.mem-back-link i{font-size:11px}
.mem-question{font-size:14px; font-weight:800; color:var(--mem-ink); margin-bottom:10px}

.mem-yn{display:flex; gap:10px}
.mem-yn-btn{
  min-width:88px; padding:10px 20px; border-radius:10px; border:1px solid var(--mem-line);
  background:var(--mem-surface); color:var(--mem-ink); font-weight:800; font-size:13px;
  cursor:pointer; transition:.16s;
}
.mem-yn-btn:hover{border-color:var(--mem-cta); background:#FFF6EC}
.mem-yn-btn.is-active{background:var(--mem-cta); border-color:var(--mem-cta); color:#fff; box-shadow:0 4px 12px rgba(166,106,63,.25)}

.mem-verify-form{margin-top:16px; max-width:420px}
.mem-field{display:block; font-size:12px; font-weight:800; color:var(--mem-ink); margin-bottom:14px}
.mem-field span{display:block; margin-bottom:6px}
.mem-field input{
  width:100%; border:1px solid #DCCCB5; border-radius:9px; padding:12px 13px;
  background:#fff; color:var(--mem-ink); font-size:14px; outline:0; transition:.16s;
  letter-spacing:.5px;
}
.mem-field input:focus{border-color:var(--mem-cta); box-shadow:0 0 0 3px rgba(166,106,63,.12)}

.mem-actions{display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:2px}
.mem-btn-primary,.mem-btn-secondary,.mem-btn-buy,.mem-btn-text{
  border-radius:8px; font-weight:800; font-size:13px; cursor:pointer; transition:.16s;
  text-transform:uppercase; letter-spacing:.03em;
}
.mem-btn-primary{background:var(--mem-cta); color:#fff; border:1px solid var(--mem-cta); padding:11px 20px}
.mem-btn-primary:hover{background:#8f5a34; transform:translateY(-1px); box-shadow:0 5px 12px rgba(139,94,52,.22)}
.mem-btn-primary:disabled{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none}
.mem-btn-secondary{background:#fff; color:var(--mem-ink); border:1px solid #DCCCB5; padding:10px 18px}
.mem-btn-secondary:hover{background:#FBF6EE; border-color:var(--mem-cta)}
.mem-btn-text{background:transparent; border:0; color:var(--mem-accent); padding:6px 2px; text-transform:none}
.mem-btn-text:hover{text-decoration:underline}
.mem-btn-link{display:inline-flex; text-decoration:none; margin-top:14px}
.mem-help{font-size:12px; color:#8a8071; text-transform:none; font-weight:600}

.mem-inline-msg{
  margin-top:14px; padding:11px 13px; border-radius:9px; font-size:13px; font-weight:700;
  display:flex; align-items:flex-start; gap:8px; line-height:1.5;
}
.mem-msg-error{background:#FDEEEC; color:#B23A2E}
.mem-msg-muted{background:#F2EEE6; color:#726757}

.mem-card-preview{
  margin-top:16px; border-radius:14px; padding:18px 20px; color:#fff;
  background:linear-gradient(135deg,#8B5E34,#A66A3F);
  box-shadow:0 10px 26px rgba(46,36,27,.18);
  max-width:420px;
}
.mem-card-preview.mem-applied{max-width:420px}
.mem-card-preview-row{display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.16)}
.mem-card-preview-row:last-of-type{border-bottom:0}
.mem-card-preview-row span{color:rgba(255,255,255,.7); font-weight:600}
.mem-card-preview-row b{font-weight:900}
.mem-card-preview .mem-status-active{color:#CFF6DE}
.mem-card-preview .mem-actions{margin-top:14px}
.mem-card-preview .mem-inline-msg{background:rgba(255,255,255,.14); color:#fff}
.mem-card-preview .mem-btn-secondary{background:rgba(255,255,255,.94)}

/* Tier tonal variants — stay within the brown/cream family */
.mem-tier-silver{background:linear-gradient(135deg,#8f9298,#5c6066)}
.mem-tier-gold{background:linear-gradient(135deg,#8B5E34,#A66A3F)}
.mem-tier-diamond{background:linear-gradient(135deg,#4A3B2D,#2E241B)}
.mem-tier-platinum{background:linear-gradient(135deg,#2E241B,#171009)}

/* ---- Plan grid (Buy a card) ---- */
.mem-plan-grid{
  margin-top:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;
}
.mem-plan-card{
  border-radius:16px; padding:18px; color:#fff; position:relative; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:0 8px 22px rgba(46,36,27,.14);
  transition:.18s;
}
.mem-plan-card:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(46,36,27,.2)}
.mem-plan-top{display:flex; align-items:center; justify-content:space-between}
.mem-plan-logo{font-size:11px; font-weight:900; letter-spacing:.16em; opacity:.85}
.mem-plan-tier{font-size:15px; font-weight:900; letter-spacing:.04em}
.mem-plan-tagline{font-size:12px; color:rgba(255,255,255,.78); margin-top:10px; min-height:32px}
.mem-plan-price{font-size:22px; font-weight:900; margin-top:10px}
.mem-plan-price span{font-size:11px; font-weight:600; color:rgba(255,255,255,.7); margin-left:4px}
.mem-plan-benefits{list-style:none; margin:14px 0 0; padding:0; display:grid; gap:7px; flex:1}
.mem-plan-benefits li{font-size:12px; line-height:1.4; color:rgba(255,255,255,.9); padding-left:16px; position:relative}
.mem-plan-benefits li:before{content:"✓"; position:absolute; left:0; top:0; font-weight:900; color:#CFEBD8}
.mem-btn-buy{
  margin-top:16px; width:100%; padding:11px 14px; border-radius:9px; border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14); color:#fff; font-weight:900; font-size:12px; cursor:pointer;
  text-transform:uppercase; letter-spacing:.04em; transition:.16s;
}
.mem-btn-buy:hover{background:rgba(255,255,255,.26)}
.mem-btn-buy:disabled{opacity:.65; cursor:default; background:rgba(255,255,255,.1)}

/* ---- Smooth reveal (Q1→verify area, Q1=No→Q2, Q2=Yes→plan grid) ---- */
@keyframes memReveal{from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:translateY(0);}}
.mem-reveal{animation:memReveal .25s ease;}

/* ---- Info (ⓘ) popover on each membership plan card ---- */
.mem-plan-tier-group{display:flex; align-items:center; gap:6px}
.mem-info-wrap{position:relative; display:inline-flex}
.mem-info-btn{
  width:18px; height:18px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background:rgba(255,255,255,.22); color:#fff; font-size:11px; line-height:1;
  display:grid; place-items:center; transition:.15s;
}
.mem-info-btn:hover,.mem-info-btn:focus-visible{background:rgba(255,255,255,.36); outline:0}
.mem-info-pop{
  position:absolute; top:calc(100% + 8px); right:0; width:220px; max-width:70vw;
  background:#fff; color:#2E241B; border-radius:10px; padding:12px 14px;
  font-size:12px; line-height:1.55; box-shadow:0 14px 30px rgba(0,0,0,.22);
  z-index:40; opacity:0; visibility:hidden; transform:translateY(-4px);
  transition:opacity .15s,transform .15s,visibility .15s; pointer-events:none;
}
.mem-info-pop strong{display:block; font-size:12px; color:#2E241B; margin-bottom:4px}
.mem-info-pop p{margin:0 0 6px; color:#5c5347}
.mem-info-pop ul{margin:0; padding-left:16px; display:grid; gap:3px; list-style:disc}
.mem-info-pop li{color:#5c5347}
.mem-info-wrap.is-open .mem-info-pop{opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto}
@media(hover:hover){
  .mem-info-wrap:hover .mem-info-pop{opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto}
}
@media(max-width:640px){
  /* Anchor to the viewport instead of the trigger so the popover can
     never overflow the screen edge on narrow phones. */
  .mem-info-pop{position:fixed; left:16px; right:16px; top:auto; bottom:16px; width:auto; max-width:none}
}

@media(min-width:1024px){ .mem-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:640px){
  .mem-plan-grid{grid-template-columns:1fr}
  .mem-panel{padding:16px 14px 18px; border-radius:12px}
  .mem-yn-btn{flex:1; min-width:0; text-align:center}
  .mem-card-preview{max-width:100%}
  .mem-verify-form{max-width:100%}
}

/* ---- My Profile → My Cards ---- */
.mem-profile-card{
  border-radius:18px; padding:22px; color:#fff; max-width:420px;
  box-shadow:0 10px 28px rgba(46,36,27,.18);
}
.mem-profile-card-top{display:flex; align-items:center; justify-content:space-between}
.mem-status-badge{font-size:10px; font-weight:900; letter-spacing:.08em; padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.18)}
.mem-status-badge.mem-status-active{color:#CFF6DE}
.mem-status-badge.mem-status-pending{color:#FFE7B0}
.mem-status-badge.mem-status-inactive{color:#F6C6C0}
.mem-profile-card h3{font-size:20px; font-weight:900; margin-top:14px; letter-spacing:.03em}
.mem-profile-card-number{font-size:15px; letter-spacing:.14em; font-weight:700; color:rgba(255,255,255,.85); margin-top:6px}
.mem-profile-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; margin-top:18px}
.mem-profile-grid span{display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.65); font-weight:800}
.mem-profile-grid b{display:block; font-size:14px; margin-top:3px; font-weight:900}
.mem-upgrade-row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; padding-top:16px; border-top:1px solid rgba(255,255,255,.18)}
.mem-upgrade-row span{display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.65); font-weight:800}
.mem-upgrade-row b{font-size:14px; font-weight:900}
.mem-upgrade-row .mem-btn-primary{background:rgba(255,255,255,.94); color:#2E241B; border-color:transparent}
.mem-upgrade-row .mem-btn-primary:hover{background:#fff}
.mem-profile-card .mem-help{color:rgba(255,255,255,.75); margin-top:18px; display:block}

.mem-empty-card{
  border:1px dashed #DCCCB5; border-radius:16px; padding:26px; text-align:center; color:#7c7167;
  background:#FFFCF6;
}

.mem-history-block{margin-top:22px}
.mem-history-block h4{font-size:14px; font-weight:900; color:#2E241B; margin-bottom:10px}
.mem-history-list{display:grid; gap:8px}
.mem-history-row{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid #E9DDC8; border-radius:12px; padding:12px 14px; background:#fff;
}
.mem-history-row strong{font-size:13px; color:#2E241B; display:block}
.mem-history-row span{font-size:12px; color:#8a8071}
.mem-history-right{text-align:right}
.mem-history-right b{display:block; font-size:13px; color:#2E241B}
.mem-history-right small{font-size:11px; color:#8a8071}

/* ---- Cart page membership row ---- */
.mem-cart-row{
  display:flex; align-items:center; gap:14px; padding:14px; border-radius:16px;
  border:1px solid #E5D8BF; color:#fff; margin-bottom:4px;
}
.mem-cart-row-badge{
  width:64px; height:64px; border-radius:12px; display:grid; place-items:center; text-align:center;
  font-size:10px; font-weight:900; letter-spacing:.05em; line-height:1.4; flex:none;
  background:rgba(255,255,255,.16); color:#fff;
}
.mem-cart-row-info{flex:1; min-width:0; color:#2E241B}
.mem-cart-row .mem-cart-row-info .font-bold{color:#2E241B}
.mem-cart-row.mem-tier-silver,.mem-cart-row.mem-tier-gold,.mem-cart-row.mem-tier-diamond,.mem-cart-row.mem-tier-platinum{
  background:#FFFDF8;
}
.mem-cart-row .mem-cart-row-badge{color:#fff}
.mem-cart-row.mem-tier-silver .mem-cart-row-badge{background:linear-gradient(135deg,#8f9298,#5c6066)}
.mem-cart-row.mem-tier-gold .mem-cart-row-badge{background:linear-gradient(135deg,#8B5E34,#A66A3F)}
.mem-cart-row.mem-tier-diamond .mem-cart-row-badge{background:linear-gradient(135deg,#4A3B2D,#2E241B)}
.mem-cart-row.mem-tier-platinum .mem-cart-row-badge{background:linear-gradient(135deg,#2E241B,#171009)}

/* ---- Dedicated Verify / Plans pages (brisk-card-verify.html,
   brisk-card-plans.html) — reuse .mem-panel etc.; these rules only
   add the page-level "back to checkout" link and a wider plan grid
   for the extra room a full page (vs. the checkout column) gives. ---- */
.mem-page-back{
  display:inline-flex; align-items:center; gap:8px; color:#8B5E34; font-weight:800;
  font-size:13px; text-decoration:none;
}
.mem-page-back:hover{color:#A66A3F; text-decoration:underline}
.mem-plan-upgrade-note{font-size:11px; color:rgba(255,255,255,.65); margin-top:10px}
@media(min-width:1280px){ .mem-plan-grid.mem-plans-page-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }

/* ---- Customer Details form (Choose Card → Customer Details step) ---- */
.mem-details-form{
  margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; max-width:640px;
}
.mem-field-wide{grid-column:1 / -1}
@media(max-width:640px){ .mem-details-form{grid-template-columns:1fr} }

/* ---- Membership Card selection success state ---- */
.mem-success{ text-align:center; padding:18px 6px 6px; max-width:440px; margin:0 auto; }
.mem-success-icon{
  width:76px; height:76px; margin:0 auto 18px; border-radius:50%;
  background:linear-gradient(135deg,#8B5E34,#A66A3F); display:grid; place-items:center;
  box-shadow:0 10px 24px rgba(139,94,52,.28); animation:memSuccessPop .35s ease;
}
.mem-success-tick{ width:36px; height:36px; color:#fff; }
@keyframes memSuccessPop{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }
.mem-success-title{ font-size:18px; font-weight:900; color:#2E241B; margin:0 0 8px; }
.mem-success-copy{ margin:0 auto; }
.mem-success-status{ display:inline-block; margin-top:14px; background:#F1E7D2; color:#8B5E34; font-size:11px; font-weight:900; letter-spacing:.06em; padding:6px 14px; border-radius:999px; }
.mem-success-actions{ justify-content:center; margin-top:20px; }
@media(max-width:480px){ .mem-success-actions{ flex-direction:column; } .mem-success-actions a{ width:100%; text-align:center; justify-content:center; } }

/* ---- Small card thumbnail next to "Do you have a Brisk Card?" ---- */
.mem-q1-row{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.mem-q1-row .mem-question{ margin-bottom:0; }
.mem-mini-card{
  flex:none; width:44px; height:28px; border-radius:6px; position:relative;
  background:linear-gradient(135deg,#8B5E34,#A66A3F); box-shadow:0 3px 8px rgba(139,94,52,.3);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.mem-mini-card-brand{ font-size:6px; font-weight:900; letter-spacing:.06em; color:rgba(255,255,255,.9); }
.mem-mini-card-stripe{ position:absolute; top:7px; left:0; right:0; height:3px; background:rgba(255,255,255,.28); }
@media(max-width:380px){ .mem-mini-card{ width:36px; height:23px; } }


/* Placeholder shown when a product/category image is missing (see top of js/script.js) */
img.img-placeholder{
  object-fit:contain !important;
  padding:clamp(8px, 6%, 28px);
  background:#f6f1ea;
  opacity:.55;
}
