/*
Theme Name: banglanest-child
Theme URI: https://banglanest.com/
Description: Lightweight custom Astra child theme for BanglaNest WooCommerce.
Author: BanglaNest
Author URI: https://banglanest.com/
Template: astra
Version: 2.7.1
Text Domain: banglanest-astra-child
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
    --bn-accent: #b9551b;          /* terracotta buttons */
    --bn-accent-dark: #9b4513;
    --bn-hot: #e0301e;             /* badges, Deals, cart count */
    --bn-new: #1f74e8;
    --bn-ink: #1c1a18;
    --bn-ink-2: #3a3530;
    --bn-muted: #77706a;
    --bn-line: #ece6df;
    --bn-bg: #fcfaf7;
    --bn-cream: #f6f1eb;
    --bn-card-media: #f3f1ee;
    --bn-green: #13261e;
    --bn-star: #f5a524;
    --bn-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --bn-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bn-hand: "Caveat", "Segoe Print", cursive;
    --bn-radius: 10px;
}

/* =========================================================
   Base + Astra overrides
   ========================================================= */
body.bn-site {
    margin: 0;
    background: var(--bn-bg);
    color: var(--bn-ink);
    font-family: var(--bn-sans);
    -webkit-font-smoothing: antialiased;
}

.bn-site a { color: inherit; text-decoration: none; }
.bn-site a:hover { color: var(--bn-accent); }
.bn-site svg { display: block; }

/* Full-bleed homepage inside Astra's container */
.bn-front .site-content > .ast-container,
.bn-front #content > .ast-container {
    max-width: none;
    padding: 0;
    display: block;
}
.bn-front #primary,
.bn-front .site-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    border: 0;
}
.bn-front.ast-separate-container,
.bn-front .site-content { background: var(--bn-bg); }

.bn-container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */
.bn-main-header {
    background: #fff;
    border-bottom: 1px solid var(--bn-line);
}

.bn-header-inner {
    min-height: 84px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
}

.bn-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.bn-logo-mark { width: 40px; height: 40px; color: var(--bn-accent); }
.bn-logo-mark svg { width: 100%; height: 100%; }
.bn-logo-text { display: flex; flex-direction: column; line-height: 1; }
.bn-logo-text strong {
    font-family: var(--bn-sans);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--bn-ink);
}
.bn-logo-text small {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--bn-ink-2);
    letter-spacing: .01em;
}
.bn-site .bn-logo:hover { color: inherit; }

.bn-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.bn-site .bn-search input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 56px 0 24px;
    border: 1px solid #ddd8d2;
    border-radius: 999px;
    background: #fff;
    font: 400 14px var(--bn-sans);
    color: var(--bn-ink);
    box-shadow: 0 1px 2px rgba(28,26,24,.04);
    outline: none;
}
.bn-site .bn-search input[type="search"]:focus { border-color: var(--bn-accent); }
.bn-site .bn-search input::placeholder { color: #8a837c; }
.bn-site .bn-search button {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bn-ink);
    display: grid; place-items: center;
    cursor: pointer;
}
.bn-search button svg { width: 21px; height: 21px; }

.bn-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bn-header-action {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    font-size: 13.5px;
    color: var(--bn-ink-2);
    border-left: 1px solid var(--bn-line);
}
.bn-header-action:first-child { border-left: 0; }
.bn-header-action svg { width: 22px; height: 22px; color: var(--bn-ink); }
.bn-cart-link { position: relative; padding-right: 6px; }
.bn-cart-link svg { width: 28px; height: 28px; }
.bn-cart-count {
    position: absolute;
    top: -9px; right: -4px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bn-hot);
    color: #fff;
    font-size: 11px; font-weight: 700;
    line-height: 19px; text-align: center;
}

/* Category nav */
.bn-nav {
    background: var(--bn-cream);
    border-bottom: 1px solid var(--bn-line);
    position: relative;
    z-index: 50;
}
.bn-nav-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.bn-allcats { position: relative; flex-shrink: 0; padding-right: 28px; border-right: 1px solid #e3dcd4; }
.bn-site .bn-allcats-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 0;
    background: none; border: 0;
    font: 500 14.5px var(--bn-sans);
    color: var(--bn-ink);
    cursor: pointer;
}
.bn-site .bn-allcats-btn:hover, .bn-site .bn-allcats-btn:focus { background: none; color: var(--bn-ink); }
.bn-allcats-btn svg { width: 20px; height: 20px; }
.bn-allcats-btn svg:last-child { width: 15px; height: 15px; }
.bn-allcats-menu {
    position: absolute; left: 0; top: calc(100% + 4px);
    min-width: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(28,26,24,.12);
}
.bn-allcats-menu a {
    display: flex; justify-content: space-between;
    padding: 9px 12px; border-radius: 8px;
    font-size: 14px;
}
.bn-allcats-menu a span { color: var(--bn-muted); font-size: 12px; }
.bn-allcats-menu a:hover { background: var(--bn-cream); }
.bn-allcats-menu .bn-allcats-shop { border-top: 1px solid var(--bn-line); margin-top: 4px; color: var(--bn-accent); font-weight: 600; }

.bn-nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bn-nav-links::-webkit-scrollbar { display: none; }
.bn-nav-links a { font-size: 14.5px; color: var(--bn-ink); white-space: nowrap; padding: 12px 0; }
.bn-nav-links .bn-nav-home { font-size: 13px; padding-right: 20px; border-right: 1px solid #e3dcd4; }
.bn-nav-links .bn-nav-deals { color: var(--bn-hot); font-weight: 500; position: relative; padding-right: 22px; }
.bn-nav-deals sup {
    position: absolute; top: 4px; right: -6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bn-hot); color: #fff;
    font-size: 9.5px; font-weight: 700; line-height: 1.2;
}

/* =========================================================
   Buttons
   ========================================================= */
.bn-site .bn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    font: 600 15px var(--bn-sans);
    line-height: 1;
    transition: background .15s, color .15s, border-color .15s;
}
.bn-btn svg { width: 17px; height: 17px; }
.bn-site .bn-btn-primary { background: var(--bn-accent); color: #fff; }
.bn-site .bn-btn-primary:hover { background: var(--bn-accent-dark); color: #fff; }
.bn-site .bn-btn-outline { border-color: var(--bn-accent); color: var(--bn-ink); background: rgba(255,255,255,.35); }
.bn-site .bn-btn-outline:hover { background: var(--bn-accent); color: #fff; }
.bn-site .bn-btn-light { background: #fff; color: var(--bn-ink); }
.bn-site .bn-btn-light:hover { background: var(--bn-cream); color: var(--bn-ink); }
.bn-site .bn-btn-dark { background: var(--bn-green); color: #fff; min-height: 40px; font-size: 13.5px; padding: 0 20px; }
.bn-site .bn-btn-dark:hover { background: #000; color: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.bn-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f6f1ec 0%, #f1e9e0 45%, #e7d8c8 100%);
    min-height: 540px;
    display: flex;
}
.bn-hero-media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 52%;
    background-size: cover;
    background-position: 25% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
}
.bn-hero-note {
    position: absolute; top: 34px; right: 4%;
    margin: 0;
    font: 500 30px/1.05 var(--bn-hand);
    color: #fff;
    transform: rotate(-8deg);
    max-width: 200px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.bn-hero-note svg { width: 34px; height: 34px; margin: 6px auto 0; }

.bn-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 44px;
}
.bn-hero-copy { max-width: 540px; }
.bn-site .bn-hero h1 {
    margin: 0 0 22px;
    font: 400 clamp(42px, 5.6vw, 72px)/1.02 var(--bn-serif);
    color: var(--bn-ink);
    letter-spacing: -.01em;
}
.bn-hero p {
    margin: 0 0 32px;
    font-size: 19px; line-height: 1.5;
    color: var(--bn-ink-2);
    max-width: 500px;
}
.bn-buttons { display: flex; flex-wrap: wrap; gap: 22px; }
.bn-buttons .bn-btn { white-space: nowrap; min-height: 52px; padding: 0 30px; font-size: 16px; }

.bn-hero-trust {
    display: flex;
    gap: 26px;
    margin-top: 54px;
}
.bn-trust-item { display: flex; align-items: center; gap: 12px; }
.bn-trust-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--bn-ink); }
.bn-trust-item small { display: block; font-size: 11.5px; color: var(--bn-muted); margin-top: 2px; }
.bn-hero-trust .bn-trust-icon { width: 30px; height: 30px; color: var(--bn-ink); flex-shrink: 0; }
.bn-trust-icon svg { width: 100%; height: 100%; }

/* =========================================================
   Sections
   ========================================================= */
.bn-section { padding: 46px 0 26px; }

.bn-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.bn-site .bn-section-head h2 {
    margin: 0 0 6px;
    font: 400 clamp(28px, 3vw, 38px)/1.1 var(--bn-serif);
    color: var(--bn-ink);
}
.bn-section-head p { margin: 0; font-size: 14.5px; color: var(--bn-muted); }
.bn-site .bn-view-all {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500;
    color: var(--bn-accent);
    white-space: nowrap;
}
.bn-view-all svg { width: 15px; height: 15px; }

/* Categories */
.bn-categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
}
.bn-category { display: block; text-align: center; }
.bn-category-image {
    display: block;
    aspect-ratio: 1.05 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bn-card-media);
    box-shadow: 0 1px 3px rgba(28,26,24,.06);
}
.bn-category-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.bn-category:hover .bn-category-image img { transform: scale(1.05); }
.bn-category-name {
    display: block;
    margin-top: 14px;
    font: 400 17px/1.2 var(--bn-serif);
    color: var(--bn-ink);
}
.bn-category-count { display: block; margin-top: 4px; font-size: 12px; color: var(--bn-muted); }
.bn-site .bn-category:hover .bn-category-name { color: var(--bn-accent); }

/* Promo banners */
.bn-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 26px 0 10px;
}
.bn-promo {
    position: relative;
    min-height: 290px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.bn-promo-dark { background: var(--bn-green); color: #fff; }
.bn-promo-light { background: #f1ece5; }
.bn-promo-img {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 56%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.bn-promo-copy { position: relative; padding: 36px 48px; max-width: 360px; }
.bn-site .bn-promo h3 {
    margin: 0 0 14px;
    font: 400 clamp(26px, 2.6vw, 36px)/1.05 var(--bn-serif);
    color: inherit;
}
.bn-promo p { margin: 0 0 24px; font-size: 14.5px; line-height: 1.5; opacity: .92; }
.bn-promo-light h3, .bn-promo-light p { color: var(--bn-ink); }

/* =========================================================
   Trending + product cards
   ========================================================= */
.bn-trending { padding-top: 34px; }
.bn-trending .bn-section-head { align-items: center; }
.bn-tabs-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bn-tabs {
    display: flex; gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bn-tabs::-webkit-scrollbar { display: none; }
.bn-site .bn-tabs button {
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--bn-ink-2);
    font: 500 12.5px var(--bn-sans);
    white-space: nowrap;
    cursor: pointer;
}
.bn-site .bn-tabs button:hover { background: var(--bn-cream); color: var(--bn-ink); }
.bn-site .bn-tabs button.is-active { background: var(--bn-ink); color: #fff; }
.bn-arrows { display: flex; gap: 6px; flex-shrink: 0; }
.bn-site .bn-arrows button {
    width: 32px; height: 32px;
    padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--bn-line);
    border-radius: 6px;
    background: #fff;
    color: var(--bn-ink);
    cursor: pointer;
}
.bn-site .bn-arrows button:hover { border-color: var(--bn-ink); background: #fff; color: var(--bn-ink); }
.bn-arrows svg { width: 16px; height: 16px; }

.bn-products {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 18px) / 5);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 10px;
}
.bn-products::-webkit-scrollbar { display: none; }
.bn-product[hidden] { display: none; }

.bn-product {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efebe6;
    border-radius: var(--bn-radius);
    padding: 8px;
    transition: box-shadow .2s, transform .2s;
}
.bn-product:hover { box-shadow: 0 12px 28px rgba(28,26,24,.08); transform: translateY(-2px); }

.bn-product-media {
    position: relative;
    aspect-ratio: 1.25 / 1;
    border-radius: 8px;
    background: var(--bn-card-media);
    overflow: hidden;
}
.bn-product-image { display: block; width: 100%; height: 100%; }
.bn-product-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 6px;
}

.bn-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 700; line-height: 1.35;
    color: #fff;
}
.bn-badge-sale, .bn-badge-best { background: var(--bn-hot); }
.bn-badge-best { font-size: 10px; padding: 4px 8px; }
.bn-badge-new { background: var(--bn-new); }

.bn-site .bn-wish {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 34px; height: 34px;
    padding: 0;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #6f6963;
    cursor: pointer;
}
.bn-site .bn-wish:hover, .bn-site .bn-wish:focus { background: #fff; color: var(--bn-hot); }
.bn-wish svg { width: 18px; height: 18px; }
.bn-wish.is-on { color: var(--bn-hot); }
.bn-wish.is-on svg path { fill: currentColor; }

.bn-product-body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 4px; }
.bn-site .bn-product-title {
    font-size: 13.5px; font-weight: 500; line-height: 1.35;
    color: var(--bn-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.bn-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bn-stars {
    position: relative;
    display: inline-block;
    font-size: 14px; line-height: 1;
    letter-spacing: 2px;
    color: #e5e0da;
}
.bn-stars::before { content: "★★★★★"; }
.bn-stars span {
    position: absolute; top: 0; left: 0;
    overflow: hidden; white-space: nowrap;
    color: var(--bn-star);
}
.bn-stars span::before { content: "★★★★★"; }
.bn-rating-count { font-size: 12px; color: var(--bn-muted); }

.bn-price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
    margin-top: 8px;
}
.bn-price strong { font-size: 18px; font-weight: 700; color: var(--bn-ink); }
.bn-price strong.is-sale { color: #8e1d12; }
.bn-price del { font-size: 13px; color: #8f8983; }
.bn-price .bn-cur { font-weight: 700; }

.bn-site .bn-product .bn-add-cart {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px;
    margin-top: 16px;
    padding: 0 12px;
    border: 1.5px solid #2a2622;
    border-radius: 6px;
    background: #fff;
    color: var(--bn-ink);
    font: 500 13.5px var(--bn-sans);
    line-height: 1;
    box-shadow: none;
}
.bn-site .bn-product .bn-add-cart:hover { background: var(--bn-ink); color: #fff; border-color: var(--bn-ink); }
.bn-add-cart svg { width: 17px; height: 17px; }
.bn-product .bn-add-cart.loading { opacity: .6; }
.bn-product .bn-add-cart.added::after { display: none; }
.bn-product .added_to_cart { display: none !important; }
.bn-product-body > .bn-add-cart { margin-top: auto; }
.bn-price + .bn-add-cart { margin-top: 16px; }

.bn-empty { padding: 20px 0; color: var(--bn-muted); }

/* =========================================================
   Upgrade banner
   ========================================================= */
.bn-upgrade {
    position: relative;
    margin-top: 34px;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, #f8f1e9 0%, #f3e6d8 100%);
}
.bn-upgrade-media {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 66%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}
.bn-upgrade-inner { position: relative; padding: 36px 0; }
.bn-site .bn-upgrade h2 {
    margin: 0 0 14px;
    font: 400 clamp(32px, 3.6vw, 46px)/1.02 var(--bn-serif);
    color: var(--bn-ink);
}
.bn-upgrade p { margin: 0 0 22px; font-size: 16px; line-height: 1.45; color: var(--bn-ink-2); }

/* =========================================================
   Trust bar + footer
   ========================================================= */
.bn-trust-bar { background: #fbfaf9; border-bottom: 1px solid var(--bn-line); }
.bn-trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 0;
}
.bn-trust-bar .bn-trust-item { justify-content: center; gap: 18px; padding: 4px 12px; border-left: 1px solid var(--bn-line); }
.bn-trust-bar .bn-trust-item:first-child { border-left: 0; }
.bn-trust-bar .bn-trust-icon { width: 38px; height: 38px; color: var(--bn-ink); }
.bn-trust-bar .bn-trust-shield .bn-trust-icon { color: var(--bn-accent); }
.bn-trust-bar strong { font-size: 15px; }
.bn-trust-bar small { font-size: 13.5px; margin-top: 3px; }

.bn-footer { background: #1d1a17; color: #c9c1b8; padding: 56px 0 24px; font-size: 14px; }
.bn-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.bn-footer-brand p { margin: 16px 0 0; max-width: 320px; line-height: 1.6; }
.bn-logo-light .bn-logo-text strong { color: #fff; }
.bn-logo-light .bn-logo-text small { color: #b3aaa0; }
.bn-logo-light .bn-logo-mark { color: #e07a3a; }
.bn-site .bn-footer h4 { margin: 0 0 14px; font: 600 14px var(--bn-sans); color: #fff; letter-spacing: .02em; }
.bn-footer ul { list-style: none; margin: 0; padding: 0; }
.bn-footer li { margin: 0 0 9px; }
.bn-site .bn-footer a:hover { color: #fff; }
.bn-footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12.5px; color: #8f877e;
}

/* =========================================================
   WooCommerce pages — match the palette
   ========================================================= */
.bn-site .woocommerce a.button,
.bn-site .woocommerce button.button,
.bn-site .woocommerce input.button,
.bn-site .woocommerce #respond input#submit,
.bn-site .woocommerce a.button.alt,
.bn-site .woocommerce button.button.alt {
    background: var(--bn-accent);
    color: #fff;
    border-radius: 6px;
}
.bn-site .woocommerce a.button:hover,
.bn-site .woocommerce button.button:hover,
.bn-site .woocommerce button.button.alt:hover { background: var(--bn-accent-dark); color: #fff; }
.bn-site .woocommerce span.onsale { background: var(--bn-hot); }
.bn-site .woocommerce .price ins,
.bn-site .woocommerce .price { color: var(--bn-ink); }
.bn-site .woocommerce .star-rating span::before { color: var(--bn-star); }
.bn-site .entry-title,
.bn-site .woocommerce-products-header__title,
.bn-site .product_title { font-family: var(--bn-serif); font-weight: 400; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .bn-header-inner { gap: 24px; }
    .bn-header-action { padding: 0 12px; }
    .bn-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
    .bn-products { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
    .bn-hero-trust { gap: 22px; flex-wrap: wrap; }
}

@media (max-width: 960px) {
    .bn-hide-sm { display: none; }
    .bn-header-inner { gap: 18px; min-height: 72px; }
    .bn-header-action span:not(.bn-cart-count) { display: none; }

    .bn-nav-links { justify-content: flex-start; }

    .bn-hero { min-height: 0; flex-direction: column; background: #f3ebe2; }
    .bn-hero-media {
        position: relative;
        width: 100%;
        height: 300px;
        order: -1;
        background-position: 80% center;
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    }
    .bn-hero-note { font-size: 24px; top: 18px; }
    .bn-hero-inner { padding: 8px 0 36px; }
    .bn-hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

    .bn-promo-grid { grid-template-columns: 1fr; }
    .bn-products { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }

    .bn-trending .bn-section-head { flex-direction: column; align-items: stretch; }
    .bn-tabs-wrap { justify-content: space-between; }

    .bn-upgrade { flex-direction: column; align-items: stretch; }
    .bn-upgrade-media {
        position: relative; width: 100%; height: 220px; order: -1;
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    }
    .bn-upgrade-inner { padding: 4px 0 36px; }

    .bn-trust-bar-inner { grid-template-columns: 1fr 1fr; gap: 20px 0; }
    .bn-trust-bar .bn-trust-item { justify-content: flex-start; border-left: 0; }
    .bn-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .bn-container { width: calc(100% - 32px); }
    .bn-logo-mark { width: 34px; height: 34px; }
    .bn-logo-text strong { font-size: 20px; }
    .bn-logo-text small { font-size: 10px; }
    .bn-header-action { padding: 0 8px; }
    .bn-header-inner { flex-wrap: wrap; gap: 12px 16px; padding: 14px 0; min-height: 0; }
    .bn-search { order: 3; flex-basis: 100%; max-width: none; }
    .bn-header-actions { margin-left: auto; }

    .bn-nav-inner { gap: 16px; }
    .bn-allcats { padding-right: 14px; }
    .bn-allcats-btn span { display: none; }

    .bn-hero-media { height: 240px; }
    .bn-hero p { font-size: 16px; margin-bottom: 24px; }
    .bn-buttons { gap: 12px; }
    .bn-buttons .bn-btn { flex: 1; padding: 0 14px; font-size: 15px; min-height: 48px; }
    .bn-hero-trust small { font-size: 11px; }

    .bn-section { padding: 36px 0 18px; }
    .bn-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bn-categories {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 30%;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    .bn-categories::-webkit-scrollbar { display: none; }
    .bn-category-name { font-size: 15px; margin-top: 10px; }

    .bn-promo { min-height: 0; flex-direction: column; align-items: stretch; }
    .bn-promo-img {
        position: relative; width: 100%; height: 190px; order: -1;
        -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
    }
    .bn-promo-copy { padding: 0 24px 28px; max-width: none; }

    .bn-products { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
    .bn-arrows { display: none; }
    .bn-price strong { font-size: 16px; }
    .bn-site .bn-product .bn-add-cart { font-size: 12.5px; min-height: 38px; }

    .bn-trust-bar-inner { grid-template-columns: 1fr; gap: 14px; }
    .bn-trust-bar .bn-trust-item { padding: 0; }
    .bn-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Quantity deal tag in cart / mini-cart */
.bn-deal-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fdecea;
    color: #b42318;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.bn-site .woocommerce-cart-form del,
.bn-site .woocommerce-mini-cart del { color: #9a938c; font-weight: 400; margin-right: 2px; }


/* Header between tablet and small laptop: icons only, so the search keeps its room */
.bn-search { min-width: 200px; }
@media (max-width: 1180px) and (min-width: 961px) {
    .bn-header-action span:not(.bn-cart-count) { display: none; }
    .bn-header-action { padding: 0 10px; }
    .bn-logo-text small { display: none; }
}
@media (max-width: 960px) {
    .bn-search { min-width: 0; }
}

/* WooCommerce notices ("… has been added to your cart") */
.bn-site .woocommerce-message,
.bn-site .woocommerce-info,
.bn-site .woocommerce-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 22px;
    padding: 14px 18px 14px 46px;
    border: 1px solid #ece3d8 !important;
    border-left: 3px solid var(--bn-accent) !important;
    border-radius: 10px;
    background: var(--bn-cream) !important;
    color: var(--bn-ink-2) !important;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}
.bn-site .woocommerce-message::before,
.bn-site .woocommerce-info::before { color: var(--bn-accent) !important; top: 50% !important; transform: translateY(-50%); left: 16px !important; }
.bn-site .woocommerce-error { border-left-color: var(--bn-hot) !important; }
.bn-site .woocommerce-error::before { color: var(--bn-hot) !important; }
.bn-site .woocommerce-message .button,
.bn-site .woocommerce-info .button {
    order: 2;
    float: none !important;
    margin: 0 !important;
    padding: 9px 16px !important;
    border-radius: 6px !important;
    background: var(--bn-ink) !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
.bn-site .woocommerce-message .button:hover { background: #000 !important; }
.woocommerce-cart .woocommerce-notices-wrapper { max-width: 700px; margin: 0 auto; }

/* Uploaded logo image */
.bn-logo.bn-logo-img { display: inline-flex; align-items: center; line-height: 0; }
.bn-logo.bn-logo-img img { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.bn-footer .bn-logo.bn-logo-img img { height: 48px; }
@media (max-width: 960px) { .bn-logo.bn-logo-img img { height: 42px; max-width: 180px; } }
@media (max-width: 640px) { .bn-logo.bn-logo-img img { height: 36px; max-width: 150px; } }

/* Nav: Shop first, categories after; current page underlined */
.bn-nav-links { justify-content: flex-start; gap: 34px; }
.bn-nav-links .bn-nav-shop { font-weight: 600; color: var(--bn-accent); }
.bn-nav-links a.is-current { color: var(--bn-accent); box-shadow: inset 0 -2px 0 var(--bn-accent); }
@media (max-width: 1180px) { .bn-nav-links { gap: 24px; } }

/* Footer trust bar: 15px below the page content on every page */
.bn-site .site-content,
.bn-site .site-content > .ast-container { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.bn-site #primary,
.bn-site .content-area,
.bn-site .site-main,
.bn-site.single-product #primary,
.bn-site.woocommerce-cart #primary,
.bn-site.woocommerce-checkout #primary,
.bn-site.post-type-archive-product #primary,
.bn-site.tax-product_cat #primary { margin-bottom: 15px !important; padding-bottom: 0 !important; }
.bn-site .ast-woocommerce-container,
.bn-site .ast-article-single,
.bn-site article.page { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.bn-site .entry-content > :last-child,
.bn-site .woocommerce > :last-child,
.bn-site ul.products { margin-bottom: 0 !important; }
.bn-site nav.woocommerce-pagination { margin: 15px 0 0 !important; }
.bn-site .woocommerce-pagination ul { margin: 0 !important; }
.bn-site .bn-trust-bar { margin-top: 0 !important; }
/* Homepage ends with the full-width banner — no gap there */
.bn-front #primary { margin-bottom: 0 !important; }

/* =========================================================
   Mobile fixes (v2.6.5)
   ========================================================= */
/* Footer: header logo shown white on the dark footer (unless a footer logo is uploaded) */
.bn-footer .bn-logo-auto-light.bn-logo-img img { filter: brightness(0) invert(1); }
/* Astra's own footer bar ("Powered by Astra") — the theme footer replaces it */
#colophon.site-footer, .ast-small-footer { display: none !important; }

@media (max-width: 768px) {
    /* Nothing may push the page sideways */
    html, body { overflow-x: clip; max-width: 100%; }
    /* Astra's blue "back to top" square */
    #ast-scroll-top, .ast-scroll-top-icon { display: none !important; }
    /* Category menu: fade at the right edge so it reads as scrollable */
    .bn-nav-links {
        -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
                mask-image: linear-gradient(90deg, #000 82%, transparent);
        padding-right: 28px;
    }
}
@media (max-width: 640px) {
    /* Hero hand-written note fully inside the photo */
    .bn-hero-note { top: 30px; right: 5%; font-size: 21px; max-width: 150px; }
}

/* v2.6.7: logo centred on phones, account + cart stay on the right */
@media (max-width: 640px) {
    .bn-header-inner { position: relative; justify-content: center; }
    .bn-header-inner > .bn-logo { margin: 0 auto; max-width: calc(100% - 180px); }
    .bn-header-actions {
        position: absolute;
        top: 14px; right: 0;
        height: 36px;
        margin: 0;
        display: flex; align-items: center;
    }
    .bn-header-actions .bn-header-action { padding: 0 6px; }
}
