/* ==========================================================================
   BloomBooks – customer website styles
   Bootstrap 5 is the base grid/components; everything below is the brand layer.
   Sections: 1 Fonts  2 Tokens  3 Base  4 Buttons & forms  5 Header  6 Hero
             7 Home sections  8 Product card  9 Listing  10 Product details
             11 Cart & order  12 Orders  13 Info pages  14 Footer  15 Utilities
   ========================================================================== */

/* 1. Fonts (bundled locally so the site works offline) */
@font-face {
    font-family: "Figtree";
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-weight: 500;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-weight: 600;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-weight: 700;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-weight: 800;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext carries the rupee sign (U+20B9) */
@font-face {
    font-family: "Figtree";
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Figtree";
    font-weight: 500;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Figtree";
    font-weight: 600;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Figtree";
    font-weight: 700;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Figtree";
    font-weight: 800;
    font-display: swap;
    src: url("../vendor/fonts/figtree-latin-ext-800-normal.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Merriweather";
    font-weight: 700;
    font-display: swap;
    src: url("../vendor/fonts/merriweather-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Merriweather";
    font-weight: 900;
    font-display: swap;
    src: url("../vendor/fonts/merriweather-latin-900-normal.woff2") format("woff2");
}

/* 2. Tokens */
:root {
    --blue: #0a6fde;
    /* primary action */
    --blue-dark: #0858b5;
    --blue-bar: #0a7ce6;
    /* top announcement bar */
    --navy: #0b2a55;
    /* headings */
    --ink: #2a3a52;
    /* body text */
    --muted: #64748b;
    --sky: #eaf4fd;
    /* hero / soft section */
    --sky-2: #f4f9fe;
    --line: #e2eaf3;
    --white: #ffffff;
    --gold: #f5b301;
    /* from the logo – offers */
    --gold-soft: #fff6d9;
    --leaf: #1f8a4c;
    /* from the logo – in stock, savings */
    --leaf-soft: #e6f5ec;
    --red: #d92d20;
    --red-soft: #fdecea;
    --wa: #1fa855;
    /* WhatsApp */

    --font-display: "Merriweather", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --shadow-1: 0 1px 2px rgba(11, 42, 85, .06), 0 2px 8px rgba(11, 42, 85, .05);
    --shadow-2: 0 10px 30px rgba(11, 42, 85, .12);
    --header-h: 132px;

    /* Bootstrap overrides */
    --bs-primary: var(--blue);
    --bs-primary-rgb: 10, 111, 222;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 10, 111, 222;
    --bs-link-hover-color: var(--blue-dark);
    --bs-link-hover-color-rgb: 8, 88, 181;
}

/* 3. Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--navy);
    font-weight: 700;
}

.display-font {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(10, 111, 222, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    max-width: 1400px;
}

@media (min-width: 1200px) {
    .container {
        padding-left: 28px;
        padding-right: 28px;
    }
}

.text-muted-2 {
    color: var(--muted) !important;
}

main {
    min-height: 50vh;
}

/* 4. Buttons & forms */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: .6rem 1.15rem;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-lg {
    padding: .8rem 1.6rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-sm {
    padding: .4rem .8rem;
    border-radius: 8px;
}

.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-dark);
    --bs-btn-hover-border-color: var(--blue-dark);
    --bs-btn-active-bg: #064a99;
    --bs-btn-active-border-color: #064a99;
    --bs-btn-disabled-bg: #9db9db;
    --bs-btn-disabled-border-color: #9db9db;
}

.btn-outline-primary {
    --bs-btn-color: var(--blue);
    --bs-btn-border-color: #b8d5f6;
    --bs-btn-hover-bg: var(--blue);
    --bs-btn-hover-border-color: var(--blue);
    --bs-btn-active-bg: var(--blue-dark);
    --bs-btn-active-border-color: var(--blue-dark);
}

.btn-soft {
    background: var(--sky);
    color: var(--blue-dark);
    border: 1px solid transparent;
}

.btn-soft:hover {
    background: #d9eafb;
    color: var(--blue-dark);
}

.btn-whatsapp {
    background: var(--wa);
    border-color: var(--wa);
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #178a45;
    border-color: #178a45;
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: #071d3c;
    color: #fff;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #cfdbe9;
    padding: .6rem .85rem;
    color: var(--ink);
}

.form-select {
    padding-right: 2.4rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(10, 111, 222, .15);
}

.form-label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .3rem;
    font-size: .93rem;
}

.form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
}

.optional {
    font-weight: 400;
    color: var(--muted);
    font-size: .85em;
}

/* 5. Header */
.topbar {
    background: var(--blue-bar);
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 1rem;
}

.topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.topbar li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, .4);
    line-height: 1.1;
    white-space: nowrap;
}

.topbar li:first-child {
    padding-left: 0;
    border-left: 0;
}

.topbar li:last-child {
    padding-right: 0;
}

.topbar a {
    color: #fff;
}

.topbar a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

/* The header gets its shadow, and the "back to top" button appears, once the page is scrolled.
   This is a CSS scroll-driven animation, so no scroll listener is needed. Browsers without it
   keep the hairline under the header and show the button all the time. */
@supports (animation-timeline: scroll()) {
    .site-header {
        animation: header-lift linear both;
        animation-timeline: scroll(root);
        animation-range: 40px 60px;
    }

    .back-top {
        animation: back-top-in linear both;
        animation-timeline: scroll(root);
        animation-range: 680px 700px;
    }
}

@keyframes header-lift {
    to {
        box-shadow: 0 6px 22px rgba(11, 42, 85, .1);
    }
}

@keyframes back-top-in {
    from {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

.header-grid {
    display: grid;
    align-items: center;
    column-gap: 1.25rem;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search tools" "nav nav nav";
}

.header-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 0;
}

.header-logo img {
    height: 66px;
    width: auto;
    display: block;
}

.header-search {
    grid-area: search;
    position: relative;
    max-width: 640px;
    width: 100%;
    justify-self: center;
}

.header-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.main-nav {
    grid-area: nav;
    border-top: 1px solid var(--line);
}

@media (max-width: 991.98px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "burger logo tools" "search search search";
        column-gap: .5rem;
    }

    .header-logo {
        padding: .5rem 0;
    }

    .header-logo img {
        height: 44px;
    }

    .header-search {
        max-width: none;
        padding-bottom: .65rem;
    }

    .main-nav {
        display: none;
    }
}

.burger {
    grid-area: burger;
    border: 0;
    background: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.25rem;
    color: var(--navy);
}

.burger:hover {
    background: var(--sky);
}

.search-form {
    display: flex;
    border: 1.5px solid #cfdbe9;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.search-form:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(10, 111, 222, .14);
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: .62rem .95rem;
    font-size: .95rem;
    background: transparent;
    color: var(--ink);
}

.search-form button {
    border: 0;
    background: var(--blue);
    color: #fff;
    width: 50px;
    font-size: 1.05rem;
}

.search-form button:hover {
    background: var(--blue-dark);
}

.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    z-index: 1040;
    overflow: hidden;
    display: none;
}

/* shown by CSS alone: while the search box (or a suggestion) has focus and at least two characters are typed */
.header-search:focus-within:has(#siteSearch:valid:not(:placeholder-shown)) .search-suggest {
    display: block;
}

.search-suggest a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .8rem;
    color: var(--ink);
}

.search-suggest a:hover,
.search-suggest a.active {
    background: var(--sky-2);
}

.search-suggest img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex: none;
}

.search-suggest .s-name {
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    font-size: .93rem;
}

.search-suggest .s-meta {
    font-size: .8rem;
    color: var(--muted);
}

.search-suggest .s-price {
    margin-left: auto;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.search-suggest .s-all {
    justify-content: center;
    font-weight: 600;
    color: var(--blue);
    border-top: 1px solid var(--line);
}

.search-suggest .s-empty {
    padding: 1rem;
    color: var(--muted);
    text-align: center;
    font-size: .93rem;
}

.tool-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 62px;
    padding: .35rem .4rem;
    border: 0;
    background: none;
    border-radius: 10px;
    color: var(--navy);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.1;
}

.tool-btn i {
    font-size: 1.4rem;
    height: 26px;
    display: grid;
    place-items: center;
}

.tool-btn:hover {
    background: var(--sky);
    color: var(--blue-dark);
}

.tool-btn .count {
    position: absolute;
    top: 0;
    right: 10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.tool-btn .count.bump {
    animation: bump .35s ease;
}

@keyframes bump {
    40% {
        transform: scale(1.45);
    }
}

@media (max-width: 575.98px) {
    .tool-btn {
        min-width: 44px;
    }

    .tool-btn span.lbl {
        display: none;
    }

    .tool-btn .count {
        right: 2px;
    }
}

.main-nav>ul {
    list-style: none;
    margin: 0 -.7rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .15rem;
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .7rem .7rem;
    color: var(--navy);
    font-weight: 600;
    font-size: .93rem;
    white-space: nowrap;
    position: relative;
    border: 0;
    background: none;
}

.main-nav .nav-link i {
    font-size: .65rem;
    opacity: .7;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: 4px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .18s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--blue);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

.main-nav .nav-offers {
    color: #b45309;
}

.main-nav .has-menu {
    position: relative;
}

.mega {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 520px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    padding: 1rem;
    display: none;
    z-index: 1035;
}

.has-menu:hover>.mega,
.has-menu:focus-within>.mega,
.has-menu.open>.mega {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
}

.mega a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .6rem;
    border-radius: 10px;
    color: var(--navy);
    font-weight: 600;
    font-size: .93rem;
}

.mega a:hover {
    background: var(--sky);
    color: var(--blue-dark);
}

.mega a .ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sky);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: none;
}

.mega a small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: .78rem;
}

.mega .mega-all {
    margin-top: .5rem;
    padding-top: .6rem;
    border-top: 1px solid var(--line);
}

.mega .mega-all a {
    color: var(--blue);
    justify-content: space-between;
}

/* mobile menu */
.mobile-menu .offcanvas-body {
    padding: 0;
}

.mobile-menu .m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .85rem 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--navy);
    font-weight: 600;
    text-align: left;
}

.mobile-menu .m-link i.fa-chevron-down {
    font-size: .75rem;
    transition: transform .2s;
}

.mobile-menu .m-link[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-menu .m-sub a {
    display: block;
    padding: .6rem 1.1rem .6rem 2rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: var(--sky-2);
}

/* bottom bar on phones */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    background: #fff;
    border-top: 1px solid var(--line);
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a,
.mobile-bar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: .45rem 0 .4rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    border: 0;
    background: none;
    position: relative;
}

.mobile-bar i {
    font-size: 1.15rem;
}

.mobile-bar .active {
    color: var(--blue);
}

.mobile-bar .count {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: .65rem;
    display: grid;
    place-items: center;
}

@media (max-width: 767.98px) {
    .mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: 58px;
    }
}

/* 6. Hero */
.hero {
    background: linear-gradient(100deg, #f2f8ff 0%, var(--sky) 45%, #d9ecfc 100%);
    position: relative;
    overflow: hidden;
}

.hero .carousel-item {
    min-height: 400px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 400px;
    padding: 1.5rem 3.5rem 2.25rem;
}

.hero-kicker {
    font-size:14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .6rem;
}

.hero h1,
.hero .h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
    color: var(--navy);
}

.hero h1 span,
.hero .h1 span {
    display: block;
    color: var(--blue);
}

.hero p.lead {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 34em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-art {
    justify-self: center;
    width: 100%;
    max-width: 540px;
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    color: var(--navy);
    box-shadow: var(--shadow-1);
    margin: 0 14px;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    background: var(--blue);
    color: #fff;
}

.hero .carousel-indicators {
    margin-bottom: .9rem;
    gap: 6px;
}

.hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: var(--blue);
    opacity: .3;
    margin: 0;
}

.hero .carousel-indicators .active {
    opacity: 1;
    width: 26px;
    border-radius: 6px;
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem 3rem;
        gap: 1rem;
    }

    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-art {
        max-width: 360px;
        order: -1;
    }

    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        display: none;
    }
}

/* 7. Home sections */
.section {
    padding: 3rem 0;
}

.section-tight {
    padding: 1.75rem 0;
}

.section-soft {
    background: var(--sky-2);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 0;
    letter-spacing: -.01em;
}

.section-head p {
    margin: .3rem 0 0;
    color: var(--muted);
}

.link-more {
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.link-more i {
    font-size: .8em;
    transition: transform .15s;
}

.link-more:hover i {
    transform: translateX(3px);
}

.cat-strip {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: .5rem;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    color: var(--navy);
    font-weight: 600;
    text-align: center;
    font-size: .97rem;
    line-height: 1.2;
    padding: .25rem;
}

.cat-chip .ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    transition: transform .18s, box-shadow .18s;
}

.cat-chip:hover {
    color: var(--blue);
}

.cat-chip:hover .ring {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(11, 42, 85, .12);
}

@media (max-width: 991.98px) {
    .cat-strip {
        display: flex;
        overflow-x: auto;
        gap: .25rem;
        padding-bottom: .5rem;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .cat-strip::-webkit-scrollbar {
        display: none;
    }

    .cat-chip {
        flex: 0 0 92px;
        scroll-snap-align: start;
        font-size: .85rem;
    }

    .cat-chip .ring {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }
}

.t-blue {
    background: #e3f0fd;
    color: #0a6fde;
}

.t-pink {
    background: #fde7ec;
    color: #d6336c;
}

.t-green {
    background: #e2f5ea;
    color: #1f8a4c;
}

.t-orange {
    background: #fff0e0;
    color: #e8590c;
}

.t-purple {
    background: #efe8fc;
    color: #6f42c1;
}

.t-red {
    background: #fde8e6;
    color: #d92d20;
}

.t-gold {
    background: #fff5d6;
    color: #b7791f;
}

.t-teal {
    background: #dff6f3;
    color: #0c8577;
}

.t-navy {
    background: #e4eaf3;
    color: var(--navy);
}

.assure {
    background: var(--sky);
    border-radius: var(--r-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.assure-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    justify-content: center;
    position: relative;
}

.assure-item+.assure-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: #c5d9ee;
}

.assure-item i {
    font-size: 1.9rem;
    color: var(--blue);
    flex: none;
}

.assure-item strong {
    display: block;
    color: var(--navy);
    line-height: 1.25;
}

.assure-item span {
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 991.98px) {
    .assure {
        grid-template-columns: 1fr 1fr;
    }

    .assure-item {
        justify-content: flex-start;
        padding: .9rem 1rem;
    }

    .assure-item:nth-child(3)::before {
        display: none;
    }

    .assure-item i {
        font-size: 1.4rem;
    }

    .assure-item span {
        font-size: .82rem;
    }

    .assure-item strong {
        font-size: .9rem;
    }
}

.promo {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 44%;
    align-items: center;
    min-height: 230px;
    padding: 1.5rem 0 1.5rem 2.1rem;
    height: 100%;
}

.promo-blue {
    background: linear-gradient(110deg, #e6f1fc, #d3e7fa);
}

.promo-gold {
    background: linear-gradient(110deg, #fff7df, #fdecc0);
}

.promo .kick {
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    font-size: .9rem;
}

.promo h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.05;
    margin: .1rem 0 .3rem;
}

.promo-gold h3 {
    color: #7a3b0c;
}

.promo p {
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: 1.05rem;
}

.promo img {
    width: 100%;
    height: auto;
    align-self: end;
}

@media (max-width: 575.98px) {
    .promo {
        grid-template-columns: 1fr 38%;
        padding-left: 1.25rem;
        min-height: 190px;
    }

    .promo p {
        font-size: .92rem;
    }
}

.offer-band {
    background: linear-gradient(120deg, #0a5fc4, #0a7ce6 60%, #2a95f2);
    border-radius: var(--r-xl);
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.offer-band::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.offer-band h2 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin: 0;
}

.offer-band .lead-line {
    color: rgba(255, 255, 255, .88);
    margin: .35rem 0 0;
}

.offer-band .btn-light {
    color: var(--blue-dark);
    font-weight: 700;
}

.offer-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    padding: .3rem .8rem;
    border-radius: 99px;
    font-size: .88rem;
    margin-bottom: .7rem;
}

.tabs-pills {
    display: flex;
    gap: .4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.tabs-pills::-webkit-scrollbar {
    display: none;
}

.tabs-pills button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .9rem;
    padding: .42rem .95rem;
    border-radius: 99px;
    white-space: nowrap;
}

.tabs-pills button:hover {
    border-color: #b8d5f6;
    color: var(--blue);
}

.tabs-pills button.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
}

.why-item .ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex: none;
}

.why-item h3 {
    font-size: 1.08rem;
    margin: 0 0 .25rem;
}

.why-item p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 991.98px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .why-item {
        padding: 1rem;
    }
}

.bulk-cta {
    background: var(--navy);
    border-radius: var(--r-xl);
    color: #fff;
    padding: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.bulk-cta h2 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    margin: 0 0 .35rem;
}

.bulk-cta p {
    margin: 0;
    color: #c6d4e8;
    max-width: 40em;
}

/* 8. Product card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}

.product-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1399.98px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid.cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .product-grid,
    .product-grid.cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .product-grid,
    .product-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem;
    }
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-2);
    border-color: #c9ddf3;
    transform: translateY(-3px);
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--sky-2);
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

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

.badge-discount {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: .22rem .55rem;
    border-radius: 7px;
}

.badge-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: .72rem;
    padding: .2rem .55rem;
    border-radius: 7px;
}

.badge-tag.tag-best {
    background: var(--gold);
    color: var(--navy);
}

.wish-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--muted);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-1);
    transition: color .15s, transform .15s;
}

.wish-btn:hover {
    color: var(--red);
    transform: scale(1.08);
}

/* saved state = aria-pressed="true": red heart, solid icon, other label. JS only flips that one attribute. */
.wish-btn[aria-pressed="true"] {
    color: var(--red);
}

[data-action="wishlist"][aria-pressed="true"] i {
    font-weight: 900;
}

[aria-pressed="true"]>.w-off,
[aria-pressed="false"]>.w-on {
    display: none;
}

.product-body {
    padding: .85rem .9rem .95rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: .2rem;
}

.product-name {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-name a {
    color: var(--navy);
}

.product-name a:hover {
    color: var(--blue);
}

.product-meta {
    font-size: .83rem;
    color: var(--muted);
    margin: 0 0 .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: .5rem;
    margin-bottom: .3rem;
}

.product-price .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

.product-price .mrp {
    color: var(--muted);
    text-decoration: line-through;
    font-size: .9rem;
}

.product-price .off {
    color: var(--leaf);
    font-weight: 700;
    font-size: .85rem;
}

.stock {
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .7rem;
}

.stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.stock.in {
    color: var(--leaf);
}

.stock.low {
    color: #c2590a;
}

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

.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .45rem;
}

.product-actions .btn-view {
    grid-column: 1 / -1;
}

.product-actions .btn {
    padding: .5rem .5rem;
    font-size: .9rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .product-body {
        padding: .65rem .65rem .75rem;
    }

    .product-name {
        font-size: .9rem;
    }

    .product-price .price {
        font-size: 1.05rem;
    }

    .product-actions {
        gap: .35rem;
    }

    .product-actions .qty-stepper button {
        width: 26px;
    }

    .product-actions .qty-stepper input {
        width: 26px;
    }

    .product-actions .btn {
        padding: .45rem .3rem;
        font-size: .85rem;
    }

    .offer-band {
        padding: 1.25rem .8rem;
        border-radius: var(--r-lg);
    }

    .wish-btn {
        width: 32px;
        height: 32px;
        right: 8px;
        top: 8px;
    }
}

.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #cfdbe9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 38px;
}

.qty-stepper button {
    width: 32px;
    border: 0;
    background: #fff;
    color: var(--navy);
    font-size: .8rem;
    display: grid;
    place-items: center;
}

.qty-stepper button:hover:not(:disabled) {
    background: var(--sky);
    color: var(--blue);
}

.qty-stepper button:disabled {
    color: #b6c2d2;
}

.qty-stepper input {
    width: 34px;
    border: 0;
    text-align: center;
    font-weight: 700;
    color: var(--navy);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
    flex: 1;
    min-width: 0;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-stepper.lg {
    height: 48px;
}

.qty-stepper.lg button {
    width: 44px;
    font-size: .9rem;
}

.qty-stepper.lg input {
    width: 52px;
    font-size: 1.05rem;
}

/* show whole rows only: .rows-1 / .rows-2 trim the cards that would wrap */
.product-grid.rows-1> :nth-child(n+6),
.product-grid.rows-2> :nth-child(n+11) {
    display: none;
}

@media (max-width: 1399.98px) {

    .product-grid.rows-1> :nth-child(n+5),
    .product-grid.rows-2> :nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 991.98px) {

    .product-grid.rows-1> :nth-child(n+4),
    .product-grid.rows-2> :nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 767.98px) {

    .product-grid.rows-1> :nth-child(n+4),
    .product-grid.rows-2> :nth-child(n+7) {
        display: flex;
    }

    .product-grid.rows-1> :nth-child(n+5),
    .product-grid.rows-2> :nth-child(n+7) {
        display: none;
    }
}

/* 9. Listing */
.page-head {
    background: var(--sky);
    padding: 1.4rem 0;
}

.page-head h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    margin: 0;
}

.breadcrumb {
    font-size: .88rem;
    margin-bottom: .4rem;
    --bs-breadcrumb-divider: "›";
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--blue);
}

.breadcrumb-item.active {
    color: var(--navy);
    font-weight: 600;
}

.filter-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
}

.filter-group {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
    border-bottom: 0;
}

.filter-group h3 {
    font-size: .95rem;
    margin: 0 0 .7rem;
}

.filter-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .33rem .5rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: .93rem;
}

.filter-cats a:hover {
    background: var(--sky-2);
    color: var(--blue);
}

.filter-cats a.active {
    background: var(--sky);
    color: var(--blue-dark);
    font-weight: 700;
}

.filter-cats a .n {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}

.filter-cats .parent>a {
    font-weight: 700;
    color: var(--navy);
}

.filter-cats ul {
    list-style: none;
    padding-left: .85rem;
    margin: 0 0 .4rem;
}

.filter-group .form-check {
    margin-bottom: .35rem;
    font-size: .93rem;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--sky);
    color: var(--blue-dark);
    font-weight: 600;
    font-size: .82rem;
    padding: .28rem .35rem .28rem .7rem;
    border-radius: 99px;
}

.chip button {
    border: 0;
    background: rgba(10, 111, 222, .15);
    color: inherit;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .65rem;
    display: grid;
    place-items: center;
}

.chip button:hover {
    background: var(--blue);
    color: #fff;
}

.pagination {
    gap: .3rem;
}

.pagination .page-link {
    border-radius: 10px !important;
    border-color: var(--line);
    color: var(--navy);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.pagination .active .page-link {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    border: 1.5px dashed #c9d8ea;
    border-radius: var(--r-lg);
    background: var(--sky-2);
}

.empty-state .ic {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 2rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-1);
}

.empty-state h2 {
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--muted);
    max-width: 32em;
    margin: 0 auto 1.2rem;
}

/* 10. Product details */
.gallery-main {
    background: var(--sky-2);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .75rem;
}

.gallery-thumbs button {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    border: 2px solid var(--line);
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.gallery-thumbs button.active {
    border-color: var(--blue);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    line-height: 1.2;
    margin-bottom: .4rem;
}

.pd-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem .8rem;
}

.pd-price .price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.pd-price .mrp {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.pd-price .off {
    background: var(--red-soft);
    color: var(--red);
    font-weight: 700;
    padding: .15rem .6rem;
    border-radius: 7px;
    font-size: .95rem;
}

.pd-save {
    color: var(--leaf);
    font-weight: 600;
    font-size: .95rem;
}

.pd-box {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.15rem;
}

.pd-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem;
}

.pd-facts li {
    display: flex;
    gap: .6rem;
    align-items: baseline;
}

.pd-facts i {
    color: var(--leaf);
    font-size: .85rem;
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}

.spec-table th {
    width: 38%;
    background: var(--sky-2);
    color: var(--navy);
    font-weight: 600;
}

.nav-tabs {
    border-bottom: 2px solid var(--line);
    gap: .25rem;
}

.nav-tabs .nav-link {
    border: 0;
    color: var(--muted);
    font-weight: 600;
    padding: .7rem 1rem;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--blue);
}

.nav-tabs .nav-link.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: none;
}

.mini-assure {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.mini-assure div {
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--sky-2);
    border-radius: 12px;
    padding: .7rem .4rem;
    line-height: 1.25;
}

.mini-assure i {
    display: block;
    color: var(--blue);
    font-size: 1.15rem;
    margin-bottom: .3rem;
}

/* 11. Cart & order */
.cart-line {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line .thumb {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sky-2);
    display: block;
}

.cart-line .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line .name {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    display: block;
}

.cart-line .name:hover {
    color: var(--blue);
}

.cart-line .meta {
    font-size: .85rem;
    color: var(--muted);
}

.cart-line .unit {
    font-size: .9rem;
    color: var(--ink);
}

.cart-line .unit s {
    color: var(--muted);
}

.cart-line .line-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.cart-line .line-total {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.1rem;
}

.btn-remove {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    padding: 0;
}

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

@media (max-width: 575.98px) {
    .cart-line {
        grid-template-columns: 70px 1fr;
        gap: .75rem;
    }

    .cart-line .thumb {
        width: 70px;
        height: 70px;
    }

    .cart-line .line-right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.summary-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    background: #fff;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.summary-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .32rem 0;
    font-size: .97rem;
}

.sum-row.total {
    border-top: 1.5px dashed #c9d8ea;
    margin-top: .6rem;
    padding-top: .85rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

.sum-row .save {
    color: var(--leaf);
    font-weight: 600;
}

.ship-meter {
    background: var(--sky);
    border-radius: 12px;
    padding: .75rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}

.ship-meter .bar {
    height: 7px;
    border-radius: 4px;
    background: #cfe2f7;
    margin-top: .5rem;
    overflow: hidden;
}

.ship-meter .bar i {
    display: block;
    height: 100%;
    background: var(--blue);
    border-radius: 4px;
    transition: width .3s;
}

.ship-meter.done {
    background: var(--leaf-soft);
    color: var(--leaf);
}

.ship-meter.done .bar i {
    background: var(--leaf);
}


.modal-content {
    border: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.4rem;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.4rem;
}

.modal-footer {
    border-top: 1px solid var(--line);
    padding: 1rem 1.4rem;
}

.order-mini {
    background: var(--sky-2);
    border-radius: 12px;
    padding: .8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .95rem;
}

.success-tick {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--leaf-soft);
    color: var(--leaf);
    font-size: 2.1rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
}

.order-no {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    background: var(--sky);
    border: 1.5px dashed #9cc4f1;
    border-radius: 12px;
    padding: .5rem 1rem;
    letter-spacing: .02em;
}

.order-no button {
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 1rem;
}

.wa-preview {
    background: #e9f7ee;
    border-radius: 12px;
    padding: .9rem 1rem;
    font-size: .85rem;
    white-space: pre-wrap;
    max-height: 220px;
    overflow: auto;
    color: #173b27;
    font-family: var(--font-body);
    text-align: left;
}

/* 12. Orders */
.order-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    overflow: hidden;
}

.order-card+.order-card {
    margin-top: 1rem;
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1.15rem;
    background: var(--sky-2);
    border-bottom: 1px solid var(--line);
}

.order-card-head .no {
    font-weight: 800;
    color: var(--navy);
}

.order-card-body {
    padding: 1.15rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .22rem .7rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .8rem;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.st-new {
    background: #e3f0fd;
    color: #0a6fde;
}

.st-confirmed {
    background: #e2f5ea;
    color: #1f8a4c;
}

.st-processing {
    background: #fff5d6;
    color: #9a6700;
}

.st-dispatched {
    background: #efe8fc;
    color: #6f42c1;
}

.st-delivered {
    background: #e2f5ea;
    color: #146c3a;
}

.st-cancelled {
    background: #fde8e6;
    color: #d92d20;
}

.timeline {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    padding-top: 38px;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: -50%;
    right: 50%;
    height: 3px;
    background: var(--line);
}

.timeline li:first-child::before {
    display: none;
}

.timeline li .dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--line);
    display: grid;
    place-items: center;
    font-size: .7rem;
    color: transparent;
    z-index: 1;
}

/* The order's status is written once on the card (data-status); CSS marks every step up to it as done,
   and swaps the timeline for the "cancelled" note on cancelled orders. */
:is(.order-card[data-status="New"] .timeline li:nth-child(-n+1),
    .order-card[data-status="Confirmed"] .timeline li:nth-child(-n+2),
    .order-card[data-status="Processing"] .timeline li:nth-child(-n+3),
    .order-card[data-status="Dispatched"] .timeline li:nth-child(-n+4),
    .order-card[data-status="Delivered"] .timeline li:nth-child(-n+5)) {
    color: var(--navy);
}

:is(.order-card[data-status="New"] .timeline li:nth-child(-n+1),
    .order-card[data-status="Confirmed"] .timeline li:nth-child(-n+2),
    .order-card[data-status="Processing"] .timeline li:nth-child(-n+3),
    .order-card[data-status="Dispatched"] .timeline li:nth-child(-n+4),
    .order-card[data-status="Delivered"] .timeline li:nth-child(-n+5))::before {
    background: var(--blue);
}

:is(.order-card[data-status="New"] .timeline li:nth-child(-n+1),
    .order-card[data-status="Confirmed"] .timeline li:nth-child(-n+2),
    .order-card[data-status="Processing"] .timeline li:nth-child(-n+3),
    .order-card[data-status="Dispatched"] .timeline li:nth-child(-n+4),
    .order-card[data-status="Delivered"] .timeline li:nth-child(-n+5)) .dot {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.order-card[data-status="Cancelled"] :is(.timeline, [data-f="wa"]),
.order-card:not([data-status="Cancelled"]) [data-f="cancelled"] {
    display: none;
}

.order-card :is([data-f="cEmailRow"], [data-f="cAddressRow"], [data-f="cNoteRow"]):has(span:empty) {
    display: none;
}

.order-items {
    width: 100%;
}

.order-items td {
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: .95rem;
}

.order-items tr:last-child td {
    border-bottom: 0;
}

.order-items img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: .75rem;
}

/* 13. Info pages */
.info-nav {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: .5rem;
    background: #fff;
}

.info-nav a {
    display: block;
    padding: .55rem .8rem;
    border-radius: 10px;
    color: var(--navy);
    font-weight: 600;
    font-size: .95rem;
}

/* the link of the section in the address bar (#faq, #returns…) is highlighted with :target; "About us" when there is none */
.info-nav a:hover,
body:has(#about:target) .info-nav a[href="#about"],
body:has(#faq:target) .info-nav a[href="#faq"],
body:has(#shipping:target) .info-nav a[href="#shipping"],
body:has(#returns:target) .info-nav a[href="#returns"],
body:has(#privacy:target) .info-nav a[href="#privacy"],
body:has(#terms:target) .info-nav a[href="#terms"],
body:not(:has(.info-section:target)) .info-nav a[href="#about"] {
    background: var(--sky);
    color: var(--blue-dark);
}

.info-section {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    max-width: 46rem;
}

.info-section:last-child {
    border-bottom: 0;
}

.info-section h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.info-section h3 {
    font-size: 1.05rem;
    margin-top: 1.4rem;
}

.accordion-item {
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: .6rem;
}

.accordion-button {
    font-weight: 600;
    color: var(--navy);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--sky);
    color: var(--blue-dark);
}

.contact-tile {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    background: #fff;
}

.contact-tile .ic {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex: none;
}

.contact-tile h3 {
    font-size: 1rem;
    margin: 0 0 .15rem;
}

.contact-tile p,
.contact-tile a {
    margin: 0;
    color: var(--ink);
    word-break: break-word;
}

.map-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--sky-2);
    line-height: 0;
}

.map-card iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

@media (max-width: 575.98px) {
    .map-card iframe {
        height: 300px;
    }
}

/* 14. Footer */
.site-footer {
    background: var(--navy);
    color: #c6d4e8;
    margin-top: 3.5rem;
    font-size: .95rem;
}

.site-footer .foot-main {
    padding: 3rem 0 2rem;
}

.foot-logo {
    background: #fff;
    border-radius: 14px;
    padding: .55rem .9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.foot-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.site-footer a {
    color: #c6d4e8;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.foot-contact li {
    display: flex;
    gap: .7rem;
    align-items: baseline;
}

.foot-contact i {
    color: #7db7f5;
    width: 16px;
    text-align: center;
    flex: none;
}

.social {
    display: flex;
    gap: .5rem;
    margin-top: 1.1rem;
}

.social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none !important;
    transition: background .15s, transform .15s;
}

.social a:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1rem 0;
    font-size: .87rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    flex-wrap: wrap;
}

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    font-size: 1.7rem;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(31, 168, 85, .4);
    z-index: 1020;
    transition: transform .15s;
}

.wa-float:hover {
    color: #fff;
    transform: scale(1.07);
}

@media (max-width: 767.98px) {
    .wa-float {
        bottom: 72px;
        right: 14px;
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }
}

/* 15. Utilities */
.toast-stack {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 1090;
    display: grid;
    gap: .6rem;
    width: min(360px, calc(100vw - 36px));
}

.b-toast {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--leaf);
    border-radius: 12px;
    padding: .75rem .9rem;
    box-shadow: var(--shadow-2);
    animation: toast-in .25s ease;
    font-size: .93rem;
}

.b-toast.info {
    border-left-color: var(--blue);
}

.b-toast.warn {
    border-left-color: var(--gold);
}

.b-toast.error {
    border-left-color: var(--red);
}

.b-toast img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex: none;
}

.b-toast .t-body {
    flex: 1;
    min-width: 0;
}

.b-toast .t-body strong {
    display: block;
    color: var(--navy);
    line-height: 1.25;
}

.b-toast .t-body span {
    color: var(--muted);
    font-size: .85rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b-toast a {
    font-weight: 700;
    white-space: nowrap;
}

.b-toast.out {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .25s, transform .25s;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.card-soft {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    padding: 1.25rem;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-1);
    z-index: 1019;
    display: grid;
    place-items: center;
}

.back-top:hover {
    color: var(--navy);
}

@media (max-width: 767.98px) {
    .back-top {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *:not(.site-header):not(.back-top),
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {

    .topbar,
    .site-header,
    .site-footer,
    .mobile-bar,
    .wa-float,
    .back-top,
    .no-print {
        display: none !important;
    }

    body {
        padding: 0;
    }
}

@media (max-width: 359.98px) {
    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-actions .qty-stepper {
        width: 100%;
    }
}

.b-toast[hidden] {
    display: none;
}

#suggestList:empty+.s-all {
    border-top: 0;
}

/* 16. Show / hide decided by CSS instead of JS
   A list filled by JS (.js-list) hides while it has no items, and the message placed right after it
   (.when-empty) shows only then. body.ready is set once the page script has filled the page, so the
   "empty" message cannot flash while the page loads. Empty price / badge parts hide themselves. */
.js-list:empty {
    display: none;
}

.js-list:not(:empty)+.when-empty,
body:not(.ready) .when-empty {
    display: none;
}

.badge-discount:empty,
.badge-tag:empty,
.mrp:empty,
.off:empty,
.pd-facts:empty {
    display: none;
}

button:disabled>.lbl-add,
button:not(:disabled)>.lbl-out {
    display: none;
}

#pagerWrap:not(:has(.page-num + .page-num)) {
    display: none;
}

/* one page = no page numbers */
#wishBar:has(~ .js-list:empty),
#trackSummary:has(+ .js-list:empty) {
    display: none;
}

#relatedSection:has(#gridRelated:empty),
.gallery-thumbs:not(:has(button + button)) {
    display: none;
}

#pdSave:has(#pdSaveAmt:empty),
#pdSave:not(:has(#pdSaveAmt:empty))+#pdTax,
#pdBox:has(#pdAdd:disabled) #pdBuy {
    display: none;
}

/* cart page: empty / filled / order placed */
#cartRoot:has(#cartLines:empty) #cartFilled,
#cartRoot:has(#cartLines:not(:empty)) #cartEmpty,
body:not(.ready) #cartEmpty,
#cartRoot[data-state="placed"]> :not(#cartPlaced),
#cartRoot:not([data-state="placed"])>#cartPlaced {
    display: none;
}

.cart-line s:empty,
.cart-line [data-f="max"]:empty,
#rowDiscount:has(#sumDiscount:empty),
#sumSaveLine:has(#sumSave:empty) {
    display: none;
}

#orderModal:not([data-step="done"]) #orderDone,
#orderModal[data-step="done"] #orderForm {
    display: none;
}

/* order popup: form, then "done" */
#toastImg[src=""],
#toastLink:empty {
    display: none;
}
