/* ============================================================
   TLBS Default Theme — theme.css
   ============================================================ */

:root {
    --color-primary:   #3b82f6;
    --color-secondary: #1e40af;
    --color-accent:    #f59e0b;
    --color-text:      #111827;
    --color-bg:        #ffffff;
    --font-primary:    'Fredoka', sans-serif;
    --font-heading:    'Fredoka', sans-serif;
    --border-radius:   8px;
    /* ─── Typography ─────────────────────────────── */
    --font-body:    'Fredoka', sans-serif;
    --size-body:    1rem;
    --weight-body:  400;
    --lh-body:      1.65;
    --ls-body:      normal;
    --font-h1:      'Fredoka', sans-serif;
    --size-h1:      2.5rem;
    --weight-h1:    700;
    --lh-h1:        1.15;
    --ls-h1:        normal;
    --font-h2:      'Fredoka', sans-serif;
    --size-h2:      2rem;
    --weight-h2:    700;
    --lh-h2:        1.2;
    --ls-h2:        normal;
    --font-h3:      'Fredoka', sans-serif;
    --size-h3:      1.625rem;
    --weight-h3:    600;
    --lh-h3:        1.25;
    --ls-h3:        normal;
    --font-h4:      'Fredoka', sans-serif;
    --size-h4:      1.375rem;
    --weight-h4:    600;
    --lh-h4:        1.3;
    --ls-h4:        normal;
    --font-h5:      'Fredoka', sans-serif;
    --size-h5:      1.125rem;
    --weight-h5:    500;
    --lh-h5:        1.4;
    --ls-h5:        normal;
    --font-h6:      'Fredoka', sans-serif;
    --size-h6:      1rem;
    --weight-h6:    500;
    --lh-h6:        1.4;
    --ls-h6:        normal;
}

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

body {
    font-family: var(--font-body, var(--font-primary));
    font-size:   var(--size-body, 1rem);
    font-weight: var(--weight-body, 400);
    line-height: var(--lh-body, 1.65);
    letter-spacing: var(--ls-body, normal);
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
}

h1 { font-family: var(--font-h1, var(--font-heading)); font-size: var(--size-h1, 2.5rem);   font-weight: var(--weight-h1, 700); line-height: var(--lh-h1, 1.15); letter-spacing: var(--ls-h1, normal); }
h2 { font-family: var(--font-h2, var(--font-heading)); font-size: var(--size-h2, 2rem);     font-weight: var(--weight-h2, 700); line-height: var(--lh-h2, 1.2);  letter-spacing: var(--ls-h2, normal); }
h3 { font-family: var(--font-h3, var(--font-heading)); font-size: var(--size-h3, 1.625rem); font-weight: var(--weight-h3, 600); line-height: var(--lh-h3, 1.25); letter-spacing: var(--ls-h3, normal); }
h4 { font-family: var(--font-h4, var(--font-heading)); font-size: var(--size-h4, 1.375rem); font-weight: var(--weight-h4, 600); line-height: var(--lh-h4, 1.3);  letter-spacing: var(--ls-h4, normal); }
h5 { font-family: var(--font-h5, var(--font-heading)); font-size: var(--size-h5, 1.125rem); font-weight: var(--weight-h5, 500); line-height: var(--lh-h5, 1.4);  letter-spacing: var(--ls-h5, normal); }
h6 { font-family: var(--font-h6, var(--font-heading)); font-size: var(--size-h6, 1rem);     font-weight: var(--weight-h6, 500); line-height: var(--lh-h6, 1.4);  letter-spacing: var(--ls-h6, normal); }

a { color: var(--color-primary); }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1010;
    box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

/* ── header-split ── nav left, logo center, icons right */
.header-split .site-header {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
.split-nav {
    display: flex;
    align-items: center;
    min-height: 64px;
    gap: 8px;
}
.split-nav-left {
    flex: 1;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.split-nav-logo {
    flex: 0 0 auto;
    margin: 0 20px;
}
.split-nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}
.header-split .site-header .nav-link          { color: var(--color-text) !important; font-weight: 500; }
.header-split .site-header .nav-link:hover,
.header-split .site-header .nav-link.active   { color: var(--color-primary) !important; }
.header-split .site-header .navbar-brand      { color: var(--color-primary); }
.header-split .site-header .site-name         { color: var(--color-primary); }
.header-split .site-header .btn-icon          { color: var(--color-text); }
.header-split .site-header .btn-icon:hover    { background: rgba(0,0,0,.06); }
.header-split .site-header .search-input      { background: #f3f4f6; border-color: #e5e7eb; color: var(--color-text); }
.header-split .site-header .search-input::placeholder { color: #9ca3af; }
.header-split .site-header .search-form .btn-icon { color: #6b7280; }
.split-toggle                                 { background: none; border: none; cursor: pointer; }
.header-split .split-toggle                   { color: var(--color-text); }
@media (max-width: 991.98px) {
    .split-nav-logo { flex: 1; text-align: center; margin: 0; }
    .split-nav-right .search-form { display: none !important; }
}

/* ── header-transparent ── over hero, no bg */
.header-transparent .site-header {
    background: transparent;
    position: absolute;
    width: 100%;
    box-shadow: none;
}

/* ── header-centered ── logo center | actions right | nav below */
.header-centered .site-header {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
.centered-top {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}
.centered-top-left {
    flex: 1;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
}
.centered-logo      { flex: 0 0 auto; margin: 0; }
.centered-top-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}
.header-centered .site-header .navbar-brand  { color: var(--color-primary); }
.header-centered .site-header .site-name     { color: var(--color-primary); }
.header-centered .site-header .nav-link      { color: var(--color-text) !important; font-weight: 500; padding: 8px 14px; }
.header-centered .site-header .nav-link:hover,
.header-centered .site-header .nav-link.active { color: var(--color-primary) !important; }
.header-centered .site-header .btn-icon      { color: var(--color-text); }
.header-centered .site-header .btn-icon:hover { background: rgba(0,0,0,.06); }
.header-centered .site-header .search-input  { background: #f3f4f6; border-color: #e5e7eb; color: var(--color-text); }
.header-centered .site-header .search-input::placeholder { color: #9ca3af; }
.header-centered .site-header .search-form .btn-icon { color: #6b7280; }
@media (max-width: 991.98px) {
    .centered-top-left  { display: none !important; }
    .centered-top-right { display: none !important; }
    .centered-logo      { flex: 1; text-align: center; }
}

/* ── header-dark ── very dark background */
.header-dark .site-header {
    background: #0f172a;
    box-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ── header-minimal ── white with primary-color bottom border */
.header-minimal .site-header {
    background: #fff;
    box-shadow: none;
    border-bottom: 3px solid var(--color-primary);
}
.header-minimal .site-header .nav-link          { color: var(--color-text) !important; }
.header-minimal .site-header .nav-link:hover,
.header-minimal .site-header .nav-link.active   { color: var(--color-primary) !important; }
.header-minimal .site-header .site-name         { color: var(--color-primary); }
.header-minimal .site-header .navbar-brand      { color: var(--color-primary); }
.header-minimal .site-header .btn-icon          { color: var(--color-text); }
.header-minimal .site-header .btn-icon:hover    { background: rgba(0,0,0,.06); }
.header-minimal .site-header .search-input      { background: #f9fafb; border-color: #e5e7eb; color: var(--color-text); }
.header-minimal .site-header .search-input::placeholder { color: #9ca3af; }
.header-minimal .site-header .search-form .btn-icon { color: #6b7280; }
.header-minimal .site-header .navbar-toggler    { filter: invert(1); }

/* ── header-glass ── frosted glass */
.header-glass .site-header {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 16px rgba(0,0,0,.07);
    border-bottom: 1px solid rgba(255,255,255,.5);
}
.header-glass .site-header .nav-link          { color: var(--color-text) !important; }
.header-glass .site-header .nav-link:hover,
.header-glass .site-header .nav-link.active   { color: var(--color-primary) !important; }
.header-glass .site-header .site-name         { color: var(--color-primary); }
.header-glass .site-header .navbar-brand      { color: var(--color-primary); }
.header-glass .site-header .btn-icon          { color: var(--color-text); }
.header-glass .site-header .btn-icon:hover    { background: rgba(0,0,0,.07); }
.header-glass .site-header .search-input      { background: rgba(255,255,255,.5); border-color: rgba(0,0,0,.15); color: var(--color-text); }
.header-glass .site-header .search-input::placeholder { color: #9ca3af; }
.header-glass .site-header .search-form .btn-icon { color: #6b7280; }
.header-glass .site-header .navbar-toggler    { filter: invert(.8); }

.site-header .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.site-header .site-name { color: #fff; }

.site-header .nav-link { color: rgba(255,255,255,.88) !important; font-weight: 500; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff !important; }

.btn-icon {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--border-radius);
    position: relative;
    transition: background .15s;
    text-decoration: none;
}
.btn-icon:hover { background: rgba(0,0,0,.06); }
/* White icons only inside the default (primary-bg) header */
.site-header .btn-icon       { color: #fff; }
.site-header .btn-icon:hover { background: rgba(255,255,255,.15); }

.cart-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Default (neutral) — for any context outside the header */
.search-form { position: relative; }
.search-input {
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: var(--color-text);
    padding: 6px 36px 6px 14px;
    font-size: .875rem;
    width: 220px;
    transition: .2s;
}
.search-input::placeholder { color: #9ca3af; }
.search-input:focus { outline: none; background: #fff; width: 260px; border-color: var(--color-primary); }
/* Override for default primary-bg header */
.site-header .search-input {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
}
.site-header .search-input::placeholder { color: rgba(255,255,255,.6); }
.site-header .search-input:focus        { background: rgba(255,255,255,.25); border-color: transparent; }
.search-form .btn-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1rem; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary-theme {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-theme:hover { background: var(--color-secondary); color: #fff; }
.btn-primary-theme:active { transform: scale(.98); }

.btn-outline-theme {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 9999px;
    padding: 9px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-theme:hover { background: var(--color-primary); color: #fff; }

/* ─── Product Card ──────────────────────────────────────────── */
.product-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f9fafb;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #d1d5db; font-size: 2.5rem;
}

.product-card-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: var(--color-accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.product-card-badge-oos {
    background: #4b5563;
}
.product-card-oos .product-card-img img { opacity: .6; }

/* ── Add-to-cart overlay ── */
.product-card-atc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    background: linear-gradient(to top, rgba(0,0,0,.38) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 3;
}
.product-card:hover .product-card-atc-overlay { opacity: 1; }
/* Touch devices: show on .touched class set by JS */
.product-card.touched .product-card-atc-overlay { opacity: 1; }

.product-card-atc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    transition: background .15s, color .15s, transform .12s;
    white-space: nowrap;
}
.product-card-atc-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}
.product-card-atc-btn:active { transform: scale(.96); }

.product-card-atc-btn-oos {
    background: #4b5563;
    color: #fff;
    cursor: default;
}
.product-card-atc-btn-oos:hover { background: #4b5563; color: #fff; transform: none; }

/* ── Card body ── */
.product-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }

.product-card-cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 4px;
    opacity: .85;
}
.product-card-cat:hover { opacity: 1; text-decoration: underline; }

.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-card-title {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 6px;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.3;
}
.product-card-title:hover { color: var(--color-primary); }
.product-card-price { font-weight: 700; font-size: 1rem; color: var(--color-primary); margin-top: auto; }
.product-card-price-sale { color: #dc2626; }
.product-card-price-original { font-size: .85rem; color: #9ca3af; text-decoration: line-through; margin-left: 6px; }

.product-card-footer { padding: 0 14px 14px; }

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ─── Pagination extras ─────────────────────────────────────── */
.pagination-jump { flex-wrap: wrap; }
.pagination-jump input[type="number"]::-webkit-outer-spin-button,
.pagination-jump input[type="number"]::-webkit-inner-spin-button { opacity: 1; }

/* Infinite-scroll mode: hide the classic numbered pager + "jump to page"
   field immediately at paint time via CSS — no flash of the wrong controls
   while waiting for JS to run. .pagination-jump carries Bootstrap's
   .d-flex (display:flex!important), so this needs !important too to win.
   A <noscript> block in the pagination partial re-reveals both for visitors
   without JS, since infinite scroll can't function at all without it. */
.product-pagination--infinite #paginationList,
.product-pagination--infinite .pagination-jump {
    display: none !important;
}

.infinite-scroll-sentinel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity .15s;
}
.infinite-scroll-sentinel.is-loading { opacity: 1; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-section h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.hero-section p { font-size: 1.2rem; opacity: .9; margin-bottom: 32px; }

/* ─── Section titles ────────────────────────────────────────── */
.section-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: #6b7280; margin-bottom: 32px; }

/* ─── Delivery checker ──────────────────────────────────────── */
.delivery-checker {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.delivery-checker-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: none;
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}
.delivery-checker-toggle:hover { background: #eff6ff; color: var(--color-primary); }
.delivery-checker-toggle .bi-truck { color: var(--color-primary); font-size: 1rem; }
.delivery-checker-chevron { margin-left: auto; font-size: .75rem; transition: transform .2s; }

.delivery-checker-body { padding: 14px; border-top: 1px solid #e5e7eb; background: #fff; }
.delivery-zip-input { font-size: .9rem; }

.delivery-rates-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.delivery-rate-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: .875rem;
}
.delivery-rate-icon { color: var(--color-primary); margin-top: 2px; flex-shrink: 0; }
.delivery-rate-name { font-weight: 600; color: var(--color-primary); }
.delivery-rate-desc { color: #6b7280; font-size: .8rem; margin-top: 2px; }
.delivery-rate-price { font-weight: 700; font-size: .95rem; color: var(--color-primary); white-space: nowrap; flex-shrink: 0; }
.delivery-rate-error { color: #ef4444; font-size: .875rem; padding: 8px 0; }
.delivery-zip-note { font-size: .78rem; color: #9ca3af; margin-bottom: 0; }
.delivery-zip-note .bi-geo-alt-fill { color: var(--color-primary); }
.delivery-change-zip {
    background: none; border: none; padding: 0;
    color: var(--color-primary); font-size: .78rem;
    cursor: pointer; text-decoration: underline;
    margin-left: 6px;
}
.delivery-change-zip:hover { color: var(--color-secondary); }

/* ─── Category tree section ─────────────────────────────────── */
.cat-tree-section { border-top: 1px solid #e5e7eb; padding-top: 40px; }
.cat-tree-grid {
    columns: 4;
    column-gap: 16px;
}
.cat-tree-card {
    break-inside: avoid;
    margin-bottom: 16px;
}
@media (max-width: 1199px) { .cat-tree-grid { columns: 3; } }
@media (max-width: 767px)  { .cat-tree-grid { columns: 2; } }
@media (max-width: 479px)  { .cat-tree-grid { columns: 1; } }
.cat-tree-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 14px 16px;
    display: inline-block;
    width: 100%;
}
.cat-tree-root {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color .15s;
}
.cat-tree-root:hover { color: var(--color-primary); }
.cat-tree-root--label { cursor: default; color: var(--color-text); }
.cat-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-tree-children li a {
    font-size: .85rem;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .15s;
}
.cat-tree-children li a::before {
    content: '\2192';
    font-size: .75rem;
    color: var(--color-primary);
    flex-shrink: 0;
}
.cat-tree-children li a:hover { color: var(--color-primary); }

/* ─── Related products carousel ─────────────────────────────── */
.related-products-section { padding-bottom: 20px; }
.related-carousel-btn {
    width: 40px; height: 40px; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.related-carousel-btn.carousel-control-prev { left: -20px; }
.related-carousel-btn.carousel-control-next { right: -20px; }
.related-carousel-indicators {
    position: static; margin-top: 14px; justify-content: center;
}
.related-carousel-indicators button {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d1d5db; border: none; opacity: 1; margin: 0 4px;
}
.related-carousel-indicators button.active { background: var(--color-primary); }

/* ─── Breadcrumb ────────────────────────────────────────────── */
.site-breadcrumb { padding: 14px 0; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: .85rem; }
.site-breadcrumb .breadcrumb-item a { color: var(--color-primary); text-decoration: none; }
.site-breadcrumb .breadcrumb-item.active { color: #6b7280; }

/* ─── Shop filters sidebar ──────────────────────────────────── */
.filter-widget { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--border-radius); padding: 20px; margin-bottom: 20px; }
.filter-title { font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .9rem; cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--color-primary); }

/* ─── Product Gallery (Amazon style) ───────────────────────── */
.gallery-thumbs-strip {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.gallery-thumbs-strip::-webkit-scrollbar { width: 4px; }
.gallery-thumbs-strip::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.gallery-thumb {
    width: 68px; height: 68px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s;
}
.gallery-thumb:hover { border-color: var(--color-primary); }
.gallery-thumb.active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }

.gallery-main-wrap {
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: zoom-in;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
    transform-origin: center center;
    will-change: transform;
    display: block;
}
.gallery-placeholder {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #d1d5db;
    font-size: 4rem;
}

/* Lightbox */
.gallery-lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: galFadeIn .15s ease;
}
.gallery-lightbox-overlay img {
    max-width: 92vw; max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    cursor: default;
}
.gallery-lightbox-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 2.4rem;
    background: none; border: none;
    cursor: pointer; line-height: 1;
    opacity: .8;
    transition: opacity .15s;
}
.gallery-lightbox-close:hover { opacity: 1; }
@keyframes galFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Mobile: thumbs row below main image */
@media (max-width: 575px) {
    .product-gallery { flex-direction: column !important; }
    .gallery-thumbs-strip {
        width: 100% !important;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .gallery-thumb { width: 60px; height: 60px; }
}

.product-price { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.product-price-sale { color: #9ca3af; text-decoration: line-through; font-size: 1.2rem; }
.product-badge-sale { background: var(--color-accent); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: .8rem; font-weight: 700; }

/* ─── Product attribute / variation selectors ─────────────────── */
.product-attr-label { font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.product-attr-select { max-width: 280px; }

/* Swatches (color / image squares) */
.product-attr-swatches { display: flex; flex-wrap: wrap; gap: 40px; }
.attr-swatch-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; }
.attr-swatch-btn {
    width: 80px; height: 80px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    display: block;
    transition: border-color .15s, box-shadow .15s;
    flex-shrink: 0;
}
.attr-swatch-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attr-swatch-color { display: block; width: 100%; height: 100%; }
.attr-swatch-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: .85rem; font-weight: 700; text-transform: uppercase;
    color: #6b7280; background: #f3f4f6;
}
.attr-swatch-btn:hover { border-color: var(--color-primary); }
.attr-swatch-btn.selected { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.attr-swatch-text { font-size: .75rem; color: #6b7280; text-align: center; line-height: 1.2; }

@media (max-width: 767.98px) {
    .product-attr-swatches { gap: 24px; }
    .attr-swatch-wrap { width: 64px; }
    .attr-swatch-btn { width: 64px; height: 64px; }
    .attr-swatch-fallback { font-size: .75rem; }
}
@media (max-width: 479.98px) {
    .product-attr-swatches { gap: 16px; }
    .attr-swatch-wrap { width: 52px; }
    .attr-swatch-btn { width: 52px; height: 52px; border-radius: 6px; }
    .attr-swatch-fallback { font-size: .68rem; }
    .attr-swatch-text { font-size: .68rem; }
}

/* Button picker (e.g. sizes) */
.product-attr-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.attr-picker-btn {
    min-width: 42px;
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    background: #fff;
    font-size: .875rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.attr-picker-btn:hover { border-color: var(--color-primary); }
.attr-picker-btn.selected { border-color: var(--color-primary); color: var(--color-primary); background: #eff6ff; }

/* Radio labels */
.product-attr-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.attr-radio-label {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: .875rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.attr-radio-input { margin: 0; }
.attr-radio-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }

/* ─── Cart ──────────────────────────────────────────────────── */
.cart-table { width: 100%; }
.cart-table th { padding: 10px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; border-bottom: 1px solid #e5e7eb; }
.cart-table td { padding: 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid #e5e7eb; border-radius: var(--border-radius); width: fit-content; }
.qty-input {
    width: 52px;
    text-align: center;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    background: transparent;
    outline: none;
    padding: 4px 0;
    -moz-appearance: textfield;
}
/* Hide native browser spinner on number inputs used as qty */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 32px; height: 32px; border: none; background: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-input { width: 40px; text-align: center; border: none; font-size: .9rem; outline: none; }

/* ─── Order summary box ─────────────────────────────────────── */
.order-summary { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--border-radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid #e5e7eb; padding-top: 12px; margin-top: 6px; }

/* ─── Checkout form ─────────────────────────────────────────── */
.checkout-section { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--border-radius); padding: 24px; margin-bottom: 24px; }
.checkout-section-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }

/* ─── Checkout: delivery method cards ──────────────────────────
   2-column grid of selectable cards (name → image → price). The
   native radio is kept for accessibility/keyboard use but visually
   hidden; selection state is a plain .selected class toggled by
   selectShipping() in checkout/index.php. ─────────────────────── */
.delivery-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 479.98px) { .delivery-method-grid { grid-template-columns: 1fr; } }

.delivery-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--border-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.delivery-method-card:hover { border-color: #cbd5e1; }
.delivery-method-card:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.delivery-method-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 4px 14px rgba(0,0,0,.10);
}

.delivery-method-radio { position: absolute; top: 10px; left: 10px; opacity: 0; pointer-events: none; }

.delivery-method-check {
    position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: .7rem;
    align-items: center;
    justify-content: center;
    display: none;
}
.delivery-method-card.selected .delivery-method-check { display: flex; }

.delivery-method-name { font-weight: 600; font-size: .9rem; }

.delivery-method-image { display: flex; align-items: center; justify-content: center; height: 110px; }
.delivery-method-img { max-height: 110px; max-width: 170px; object-fit: contain; }
.delivery-method-img-placeholder {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}

.delivery-method-price { font-weight: 700; font-size: .95rem; color: var(--color-primary); }

/* ─── Checkout trust badges ─────────────────────────────────── */
.trust-badges { border-top: 1px solid #e5e7eb; padding-top: 10px; }
.trust-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #6b7280; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 20px; padding: 4px 10px; }
.trust-badge i { color: var(--color-primary); font-size: .85rem; }

/* ─── Checkout payment method icons ─────────────────────────── */
.payment-method-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.payment-method-icons-img { max-height: 24px; }
.card-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #fff; line-height: 1; white-space: nowrap; }
.card-badge-visa { background: #1a1f71; }
.card-badge-amex { background: #2e77bc; }
.card-badge-discover { background: #f68121; color: #1f2937; }
.card-badge-mastercard { background: #fff; border: 1px solid #e5e7eb; padding: 0 8px; }
.mc-circle { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.mc-circle-1 { background: #eb001b; }
.mc-circle-2 { background: #f79e1b; margin-left: -5px; opacity: .85; }
.card-badge-paypal { background: #fff; border: 1px solid #e5e7eb; color: #003087; font-style: italic; }
.card-badge-paypal b { color: #009cde; }
.payment-method-pill-label { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; background: #f3f4f6; color: #374151; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer { background: #111827; color: #d1d5db; margin-top: 60px; }
.footer-brand { color: #fff; font-family: var(--font-heading); font-weight: 700; }
.footer-heading { color: #9ca3af; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-link { color: #9ca3af; text-decoration: none; display: block; padding: 3px 0; font-size: .9rem; }
.footer-link:hover { color: #fff; }
.footer-hours { color: #9ca3af; font-size: .9rem; margin-bottom: 12px; }
.footer-phone-number { font-weight: 700; font-size: 1.05rem; }
.footer-phone-number a { color: #fff; text-decoration: none; }
.footer-phone-number a:hover { color: var(--color-primary, #3b82f6); }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    color: #fff; font-size: 1.1rem; text-decoration: none;
    transition: opacity .15s ease;
}
.footer-social-link:hover { opacity: .85; }
.footer-social-fb { background: #1877f2; }
.footer-social-x  { background: #1da1f2; }
.footer-bottom { border-top: 1px solid #374151; padding: 16px 0; }

/* ─── Alerts / Toast ────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ─── Cart Sidebar ──────────────────────────────────────────── */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.cart-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,.14);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
    color: #111827;
}
.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #6b7280;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.cart-sidebar-close:hover { background: #f3f4f6; color: #111827; }

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.cart-sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 1rem;
    padding: 40px 20px;
}
.cart-sidebar-empty i { font-size: 3.5rem; }

.cart-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    animation: sidebarItemIn .25s ease;
}
.cart-sidebar-item:last-child { border-bottom: none; }

@keyframes sidebarItemIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cart-sidebar-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f9fafb;
}
.cart-sidebar-item-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
}

.cart-sidebar-item-info {
    flex: 1;
    min-width: 0;
}
.cart-sidebar-item-name {
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-sidebar-item-options {
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-sidebar-item-price {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 8px;
}
.cart-sidebar-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: fit-content;
}
.cart-sidebar-item-qty .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background .15s;
    border-radius: 6px;
}
.cart-sidebar-item-qty .qty-btn:hover { background: #f3f4f6; }
.cart-sidebar-item-qty .qty-val {
    padding: 0 8px;
    font-size: .85rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.cart-sidebar-item-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}
.cart-sidebar-item-remove:hover { color: #ef4444; background: #fef2f2; }

.cart-sidebar-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    flex-shrink: 0;
    background: #fff;
}
.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 14px;
}
.cart-sidebar-total strong { font-size: 1.2rem; color: var(--color-primary); }

body.cart-sidebar-open { overflow: hidden; }

@media (max-width: 480px) {
    .cart-sidebar { width: 100vw; }
}

/* ── Short description (renders WYSIWYG HTML) ───────────────── */
.short-desc {
    color: var(--color-text-muted, #6b7280);
    font-size: .95rem;
    line-height: 1.6;
}
.short-desc p { margin-bottom: .4em; }
.short-desc p:last-child { margin-bottom: 0; }
.short-desc ul, .short-desc ol { padding-left: 1.4em; margin-bottom: .4em; }

/* ═══════════════════════════════════════════════════════════════
   Admin Toolbar  (visible only to logged-in admins)
   ═══════════════════════════════════════════════════════════════ */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: stretch;
    z-index: 10000;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.admin-bar-left,
.admin-bar-right {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}
.admin-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-bar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    background: #0f172a;
    transition: background .15s;
}
.admin-bar-brand:hover { background: #1e40af; color: #fff; }
.admin-bar-brand-text { display: none; }
@media (min-width: 640px) { .admin-bar-brand-text { display: inline; } }

.admin-bar-sep {
    width: 1px;
    background: rgba(255,255,255,.1);
    margin: 6px 0;
}
.admin-bar-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.admin-bar-link span { display: none; }
@media (min-width: 900px) { .admin-bar-link span { display: inline; } }
.admin-bar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-bar-link.admin-bar-logout { color: #f87171; }
.admin-bar-link.admin-bar-logout:hover { color: #fff; background: #dc2626; }

.admin-bar-context-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    color: #f0abfc;
    text-decoration: none;
    border: 1px solid rgba(240,171,252,.35);
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .03em;
    transition: background .15s, color .15s;
}
.admin-bar-context-link:hover {
    background: rgba(240,171,252,.15);
    color: #fff;
    border-color: rgba(240,171,252,.6);
}

.admin-bar-user {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    color: #94a3b8;
    white-space: nowrap;
    font-size: 11px;
}
.admin-bar-user i { color: #60a5fa; }

/* Push page content down when admin bar is visible */
body.has-admin-bar { padding-top: 32px; }
body.has-admin-bar .site-header { top: 32px; }
body.has-admin-bar .bh-row-nav  { top: 32px; }

/* The .site-header { top: 32px } rule above assumes position:sticky (the
   base style), where `top` is a sticky anchor. The balloon header instead
   sets .site-header to position:relative, where `top` shifts the element
   visually WITHOUT reserving that extra space for following siblings —
   .bh-row-nav (next in the DOM) ends up positioned 32px higher than the
   now-shifted .site-header, so its top edge is covered by .site-header's
   higher z-index. body.has-admin-bar's own padding-top already reserves
   the correct space for a non-sticky .site-header, so no extra shift is
   needed here at all. */
body.has-admin-bar.header-balloon .site-header { top: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   Mega Dropdown — layout: mega_categories
   ───────────────────────────────────────────────────────────────────────────── */

/* Header is the positioning context for the mega drop.
   It is already position:sticky so absolute children are anchored to it. */
.site-header { overflow: visible; }

/* The <li> must be position:static so the dropdown escapes it and
   positions relative to .site-header instead. */
.mega-nav-item { position: static !important; }

.mega-dropdown {
    /* Absolute, anchored to .site-header (sticky positioned parent)
       Centered horizontally below the trigger link, sized to content */
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    width: max-content !important;
    max-width: min(92vw, 1100px) !important;
    min-width: 320px !important;
    /* Override Bootstrap/Popper — centering */
    transform: translateX(-50%) translateY(0) !important;
    border-radius: 0 0 16px 16px !important;
    border: none !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    z-index: 1050;
}
.mega-dropdown.show {
    animation: megaDropIn .18s ease both;
}
@keyframes megaDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Inner flex container: columns on left, banners on right */
.mega-inner {
    display: flex;
    gap: 0;
    padding: 28px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Column groups ── */
.mega-columns {
    display: flex;
    flex: 1;
    gap: 32px;
    flex-wrap: wrap;
}

.mega-col {
    min-width: 140px;
}

.mega-col-title {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary, #e5e7eb);
}

.mega-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Individual category item: circle thumb + label */
.mega-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text, #111827);
    font-size: .88rem;
    transition: background .13s;
    white-space: nowrap;
}
.mega-cat-item:hover {
    background: var(--color-bg, #f3f4f6);
    color: var(--color-primary, #3b82f6);
}

.mega-cat-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}
.mega-cat-thumb-placeholder {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    flex-shrink: 0;
}

/* ── Banner images (right side) — 2-column grid, pairs per row ── */
.mega-banners {
    display: grid;
    grid-template-columns: repeat(2, 220px);
    gap: 10px;
    align-content: start;
    flex-shrink: 0;
    padding-left: 28px;
   /* border-left: 1px solid #f3f4f6; */
}

.mega-banner-item {
    display: block;
    text-decoration: none;
    color: var(--color-text, #111827);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.mega-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.mega-banner-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}
.mega-banner-img-placeholder {
    width: 220px;
    height: 220px;
    background: #f3f4f6;
    border-radius: 10px 10px 0 0;
}

.mega-banner-label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    text-align: center;
    padding: 5px 6px 4px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

/* Optional large horizontal banner — spans both banner columns */
.mega-banner-item--wide {
    grid-column: span 2;
}
.mega-banner-item--wide .mega-banner-img,
.mega-banner-item--wide .mega-banner-img-placeholder {
    width: 100%;
    height: 180px;
}

/* ── Responsive: hide mega on mobile, fall back to standard dropdown ── */
@media (max-width: 991.98px) {
    .mega-dropdown { display: none !important; }
}

/* ============================================================
   Category Carousel Block
   ============================================================ */
.block-category-carousel {
    padding: 60px 0;
}

.cc-header {
    text-align: center;
    margin-bottom: 32px;
}

.cc-heading {
    margin: 0 0 8px;
}

.cc-subheading {
    color: #6b7280;
    margin: 0;
    font-size: .95rem;
}

/* Outer wrapper — positions the scroll track + arrow buttons */
.cc-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Scrollable track */
.cc-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* Firefox */
    padding: 12px 4px;
    flex: 1;
    min-width: 0;
}
.cc-track::-webkit-scrollbar { display: none; }

/* Individual slide */
.cc-slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    width: 160px;
    transition: transform .2s ease;
}
.cc-slide:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
}

/* Circular background container */
.cc-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: box-shadow .2s ease;
}
.cc-slide:hover .cc-circle {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Category thumbnail inside the circle */
.cc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Fallback icon when no image is set */
.cc-no-img-icon {
    font-size: 3rem;
    color: #9ca3af;
}

/* Category name */
.cc-label {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 4px;
}

/* Product count */
.cc-count {
    font-size: .75rem;
    color: #6b7280;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Navigation arrows */
.cc-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text);
    transition: background .15s, border-color .15s, opacity .2s;
    z-index: 2;
}
.cc-arrow:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.cc-arrow-prev { margin-right: 8px; }
.cc-arrow-next { margin-left:  8px; }

/* Responsive — stack to two rows, wider circles on large screens */
@media (max-width: 575.98px) {
    .cc-circle { width: 110px; height: 110px; }
    .cc-slide  { width: 120px; }
    .cc-arrow  { width: 32px; height: 32px; font-size: .85rem; }
}
@media (min-width: 1200px) {
    .cc-circle { width: 160px; height: 160px; }
    .cc-slide  { width: 180px; }
}

/* ============================================================
   Recently Viewed Products Block
   ============================================================ */
.block-recently-viewed {
    padding: 60px 0;
}

.rv-header {
    text-align: center;
    margin-bottom: 32px;
}

.rv-heading {
    margin: 0 0 8px;
}

.rv-subheading {
    color: #6b7280;
    margin: 0;
    font-size: .95rem;
}

/* Responsive grid driven by --rv-cols CSS variable (set inline) */
.rv-grid {
    display: grid;
    grid-template-columns: repeat(var(--rv-cols, 4), 1fr);
    gap: 20px;
}

/* Bootstrap doesn't ship d-md-grid — add it here */
@media (min-width: 768px) {
    .d-md-grid { display: grid !important; }
}

/* Empty state */
.rv-empty {
    color: #9ca3af;
    text-align: center;
    padding: 24px 0;
    font-size: .9rem;
}

/* Responsive breakpoints (desktop only — mobile uses carousel) */
@media (max-width: 1099.98px) {
    .rv-grid { --rv-cols: 3; }
}

/* Product cards inside the mobile recently-viewed carousel */
.block-recently-viewed .d-md-none .product-card {
    font-size: .78rem;
}
.block-recently-viewed .d-md-none .product-card-img {
    border-radius: 8px;
}
.block-recently-viewed .d-md-none .product-card-title {
    font-size: .78rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.block-recently-viewed .d-md-none .product-card-price {
    font-size: .8rem;
}

/* =========================================================
   Block: Featured Collections Carousel
   ========================================================= */
.block-featured-carousel {
    padding: 56px 0;
    background: #fff;
    overflow: hidden;
}
.fcar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.fcar-header {
    text-align: center;
    margin-bottom: 40px;
}
.fcar-heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
    letter-spacing: -.02em;
}
.fcar-subheading {
    font-size: clamp(.875rem, 1.5vw, 1.05rem);
    color: #6b7280;
    margin: 0;
}
.fcar-title-link { color: inherit; text-decoration: none; }
.fcar-title-link:hover { color: inherit; text-decoration: none; }

/* Carousel wrapper */
.fcar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Viewport — clips the sliding track */
.fcar-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* Scrollable track */
.fcar-track {
    display: flex;
    gap: 24px;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Individual slide — width set by JS */
.fcar-slide {
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Image area */
.fcar-img-link {
    display: block;
    text-decoration: none;
}
.fcar-img-wrap {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}
/* Card shape modifiers */
.fcar-img-wrap--rounded { border-radius: 12px; }
.fcar-img-wrap--square  { border-radius: 0; }
.fcar-img-wrap--circle  { border-radius: 50%; aspect-ratio: 1 / 1; }
.fcar-img-wrap--oval    { border-radius: 50% / 40%; aspect-ratio: 4 / 5; }
.fcar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.fcar-img-wrap:hover .fcar-img {
    transform: scale(1.04);
}

/* Caption */
.fcar-caption {
    padding: 14px 4px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.fcar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.fcar-cta {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.fcar-cta:hover {
    color: #111827;
}

/* Navigation arrows */
.fcar-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, opacity .2s;
    padding: 0;
}
.fcar-arrow:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Responsive */
@media (max-width: 767.98px) {
    .fcar-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* =========================================================
   Block: Hero Banner
   ========================================================= */
.block-hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 1;
}

/* Each slide */
.hb-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hb-slide--active {
    display: flex;
    align-items: center;
}

/* Dark overlay */
.hb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    pointer-events: none;
}

/* Content wrapper — controls horizontal position */
.hb-content-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    padding: 80px 140px;
}
.hb-pos--left   { justify-content: flex-start; }
.hb-pos--center { justify-content: center; }
.hb-pos--right  { justify-content: flex-end; }

/* Content box */
.hb-content {
    max-width: 560px;
    width: 100%;
}
.hb-align--left   { text-align: left; }
.hb-align--center { text-align: center; }
.hb-align--right  { text-align: right; }

/* Title */
.hb-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -.02em;
}

/* Description */
.hb-desc {
    font-size: clamp(.9rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,.9);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hb-desc p { margin: 0 0 .75em; }
.hb-desc p:last-child { margin-bottom: 0; }

/* CTA button */
.hb-cta-wrap { margin-top: 8px; }
.hb-align--center .hb-cta-wrap { display: flex; justify-content: center; }
.hb-align--right  .hb-cta-wrap { display: flex; justify-content: flex-end; }

.hb-cta {
    display: inline-block;
    background: #fff;
    color: #111827;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: 2px solid #fff;
    border-radius: 9999px;
    transition: background .2s, color .2s;
}
.hb-cta:hover {
    background: transparent;
    color: #fff;
}

/* Navigation arrows */
.hb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    padding: 0;
}
.hb-arrow:hover { background: rgba(255,255,255,.3); border-color: #fff; }
.hb-prev { left: 20px; }
.hb-next { right: 20px; }

/* Dot indicators */
.hb-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.hb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.hb-dot--active,
.hb-dot:hover {
    background: #fff;
    border-color: #fff;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hb-slide       { min-height: 320px; }
    .hb-content-wrap { padding: 48px 24px; }
    .hb-arrow       { width: 38px; height: 38px; font-size: 1.4rem; }
    .hb-prev        { left: 10px; }
    .hb-next        { right: 10px; }
}
@media (max-width: 479.98px) {
    .hb-slide       { min-height: 260px; }
    .hb-content-wrap { padding: 36px 16px; }
    .hb-content     { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   BALLOON HEADER  (header_style = balloon)
   ═══════════════════════════════════════════════════════════════════ */
.header-balloon .site-header { padding: 0; position: relative; box-shadow: none; }

.bh-wrap {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Row base ── */
.bh-row {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── CSS Grid: logo column spans both rows ── */
.bh-top-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "tl  logo  tr"
        "bl  logo  br";
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.bh-tl { grid-area: tl; display: flex; align-items: center; padding: 8px 20px 6px 0; border-bottom: 1px solid #f3f4f6; }
.bh-tr { grid-area: tr; display: flex; align-items: center; justify-content: flex-end; padding: 8px 0 6px 20px; border-bottom: 1px solid #f3f4f6; }
.bh-bl { grid-area: bl; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 20px 8px 0; }
.bh-br { grid-area: br; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0 8px 20px; }

/* Logo column — spans both grid rows, full height, centred */
.bh-logo-col {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}

/* Logo inside balloon header */
.bh-logo-link { display: block; line-height: 0; }
.bh-logo-link img { height: 145px; width: auto; object-fit: contain; }
.bh-logo-link .site-name { font-size: 1.6rem; font-weight: 700; color: #111; text-decoration: none; }

/* ── Search box ── */
.bh-search-wrap { position: relative; width: 100%; max-width: 520px; }

.bh-search-inner {
    display: flex;
    align-items: stretch;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bh-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: .9rem;
    color: #111;
    background: #fff;
    min-width: 0;
    height: 40px;
}
.bh-search-input::placeholder { color: #9ca3af; }

.bh-search-btn {
    border: none;
    background: #3b82f6;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: background .15s;
    flex-shrink: 0;
    height: 44px;
}
.bh-search-btn:hover { background: #2563eb; }

/* Live results dropdown */
.bh-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}
.bh-search-results.open { display: block; }

.bh-sr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}
.bh-sr-item:last-child { border-bottom: none; }
.bh-sr-item:hover { background: #f5f3ff; }

.bh-sr-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
}
.bh-sr-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

.bh-sr-info { display: flex; flex-direction: column; min-width: 0; }
.bh-sr-name { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-sr-price { font-size: .8rem; color: #6b7280; }
.bh-sr-empty { padding: 12px 16px; color: #9ca3af; font-size: .875rem; }

/* ── Top links (row 1 right) ── */
.bh-top-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bh-top-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: .8rem;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.bh-top-link:hover { color: #3b82f6; background: #eff6ff; }
.bh-top-link i { font-size: 1rem; flex-shrink: 0; }

/* Left: login | separator | phone | socials (bh-bl) */

/* ── Login / Account button ── */
.bh-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    padding: 0;
    white-space: nowrap;
}
.bh-user-btn:hover .bh-user-icon { border-color: #111; }
.bh-user-btn:hover .bh-user-name { color: #111; }

.bh-user-icon {
    width: 46px;
    height: 46px;
    border: 1.5px solid #c4c4c4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #111;
    transition: border-color .15s;
}

.bh-user-name {
    font-size: .9rem;
    font-weight: 500;
    color: #111;
    transition: color .15s;
}

/* ── Vertical separator ── */
.bh-sep {
    width: 1px;
    height: 38px;
    background: #d1d5db;
    flex-shrink: 0;
    margin: 0 14px;
}

/* ── Phone button ── */
.bh-phone-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
}

.bh-phone-icon {
    font-size: 1.9rem;
    color: #111;
    flex-shrink: 0;
    line-height: 1;
}

.bh-phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.bh-phone-label  { font-size: .78rem; color: #6b7280; font-weight: 400; }
.bh-phone-number { font-size: 1rem;   color: #111;    font-weight: 700; }

/* ── Social icons — dark rounded squares ── */
.bh-socials { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.bh-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1f2937;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .15s;
    border: none;
}
.bh-social-link:hover  { background: #111; color: #fff; }
.bh-social-ig:hover    { background: #c13584; color: #fff; }
.bh-social-fb:hover    { background: #1877f2; color: #fff; }

/* Right: delivery + cart (bh-br) */

.bh-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-delivery-icon { font-size: 1.6rem; color: #374151; flex-shrink: 0; }

.bh-delivery-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.bh-delivery-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #374151; }
.bh-delivery-date  { font-size: .95rem; font-weight: 400; color: #111; }
.bh-delivery-countdown { font-size: .82rem; color: #d63384; font-weight: 500; margin-top: 1px; }

.bh-divider-v {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.bh-cart-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #111;
    transition: color .15s;
    position: relative;
}
.bh-cart-btn:hover { color: #3b82f6; }

.bh-cart-icon-wrap { position: relative; font-size: 1.4rem; line-height: 1; }

.bh-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    background: #3b82f6;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.bh-cart-label { font-size: .72rem; color: #6b7280; }

/* ── Row 3: Category nav bar ── */
.bh-row-nav {
    border-top: 1px solid #f0f0f0;
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.bh-cat-nav { width: 100%; display: flex; justify-content: center; }

.bh-cat-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}
.bh-cat-list::-webkit-scrollbar { display: none; }

.bh-cat-list .nav-item > .nav-link {
    padding: 12px 18px;
    font-size: .85rem;
    font-weight: 600;
    color: #000 !important;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    transition: color .15s, border-bottom-color .15s;
    border-bottom: 2px solid transparent;
    letter-spacing: .01em;
}
.bh-cat-list .nav-item > .nav-link:hover,
.bh-cat-list .nav-item > .nav-link.active { color: #000 !important; border-bottom-color: #000; }

.bh-cat-list .dropdown-menu { border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.1); border: 1px solid #e5e7eb; }

/* ── Mobile compact icon row (account / contact / menu) ──────────────────
   Sits where the login/phone/socials row is on desktop; replaces the old
   standalone hamburger bar so the header doesn't carry an extra row on
   small screens. Hidden ≥992px (desktop uses .bh-bl-desktop instead). */
.bh-mobile-quicklinks {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 6px 0;
}
.bh-mq-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 4px 6px;
    color: #111;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
.bh-mq-item i { font-size: 1.35rem; line-height: 1; }

/* ── Mobile nav accordion (#bhMobileNav) ──────────────────────────────────
   Separate markup from the desktop dropdown/mega menu on purpose — see the
   comment above $_hMobileNavItems in layout.php for why. */
.mobile-nav-list { list-style: none; margin: 0; padding: 4px 0; border-top: 1px solid #f0f0f0; }
.mobile-nav-item { border-bottom: 1px solid #f3f4f6; }

.mobile-nav-link,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #000 !important;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
}
.mobile-nav-toggle i { font-size: .8rem; color: #9ca3af; transition: transform .2s ease; flex-shrink: 0; }
.mobile-nav-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.mobile-nav-sublist { list-style: none; margin: 0; padding: 2px 0 10px; background: #f9fafb; }
.mobile-nav-sublist li a {
    display: block;
    padding: 9px 20px 9px 34px;
    color: #374151;
    text-decoration: none;
    font-size: .85rem;
}
.mobile-nav-sublist li a:active { color: #000; }
.mobile-nav-subheader {
    padding: 10px 20px 4px 34px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af;
}

/* ── Responsive: unify tablet + phone into one compact mobile header ──── */
@media (max-width: 991.98px) {
    .bh-row-nav { display: none !important; }

    .bh-top-grid {
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo tl" "bl bl";
        row-gap: 0;
        padding: 0 14px;
    }
    .bh-logo-col { grid-area: logo; border: none; padding: 8px 14px 8px 0; justify-content: flex-start; }
    .bh-logo-link img { max-height: 100px; }
    .bh-tl { grid-area: tl; border-bottom: none; padding: 8px 0; min-width: 0; }
    .bh-search-wrap { max-width: 100%; min-width: 0; }
    .bh-search-input { font-size: .85rem; }
    .bh-tr { display: none; }
    .bh-br { display: none; }

    .bh-bl { grid-area: bl; padding: 0; border-top: 1px solid #f3f4f6; min-width: 0; }
    .bh-bl-desktop { display: none !important; }
    .bh-mobile-quicklinks { display: flex; }
}

.shop-filters-offcanvas { width: min(92vw, 380px); }
.shop-filters-offcanvas .offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1rem .9rem;
}
.shop-filters-offcanvas .offcanvas-body {
    background: #f8fafc;
    padding: 1rem;
}
.shop-filters-offcanvas .card { border-radius: 14px; }

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 -8px 28px rgba(15,23,42,.08);
    backdrop-filter: blur(14px);
}

.mobile-bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #334155;
    text-decoration: none;
    background: transparent;
    border: none;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 4px 0;
}

.mobile-bottom-nav__item i {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-bottom-nav__item--center {
    flex: 0 0 auto;
    margin-top: -30px;
    padding: 0;
}

.mobile-bottom-nav__bubble {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid rgba(59,130,246,.18);
    box-shadow: 0 14px 26px rgba(59,130,246,.16), 0 4px 10px rgba(15,23,42,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #1d4ed8;
}

.mobile-bottom-nav__bubble i {
    font-size: 1.6rem;
}

.mobile-bottom-nav__bubble-text {
    max-width: 70px;
    font-size: .62rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    letter-spacing: .01em;
}

.mobile-search-modal .modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
}

.mobile-search-form .form-control,
.mobile-search-form .btn {
    min-height: 54px;
}

.mobile-search-results {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 14px;
    max-height: min(52vh, 420px);
}
.mobile-search-results:not(.open) {
    display: none;
}

.category-desc-collapsed .category-desc-full {
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.category-desc-collapsed .category-desc-full.show {
    max-height: 1000px;
    opacity: 1;
}

.category-desc-button-wrap {
    text-align: center;
    margin-top: 1rem;
}

.category-desc-toggle {
    color: var(--color-primary, #3b82f6);
    padding: 0;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
    display: inline-block;
}
.category-desc-toggle:hover {
    color: var(--color-secondary, #1e40af);
    text-decoration: underline;
}
.category-desc-toggle::after {
    content: ' ▼';
    font-size: .75em;
    margin-left: 4px;
    transition: transform .3s ease;
    display: inline-block;
}
.category-desc-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.shop-cat-widget { display: grid; gap: 6px; }
.shop-cat-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}
.shop-cat-list,
.shop-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-cat-item {
    list-style: none;
}
.shop-cat-item::marker,
.shop-cat-children::marker,
.shop-cat-list::marker {
    content: '';
}
.shop-cat-children {
    display: none;
    margin-left: 8px;
    border-left: 1px dashed #dbe3ee;
    padding-left: 8px;
}
.shop-cat-children.is-open { display: block; }
.shop-cat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}
.shop-cat-link {
    flex: 1;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.2;
    font-size: .93rem;
}
.shop-cat-item.is-active > .shop-cat-row .shop-cat-link { color: #111; font-weight: 700; }
.shop-cat-badge {
    font-size: .68rem;
    color: #475569;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0;
}
.shop-cat-toggle,
.shop-cat-spacer {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.shop-cat-spacer { display: inline-block; }
.shop-cat-toggle {
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.shop-cat-toggle i { font-size: .8rem; }
.shop-cat-toggle:hover { background: #f8fafc; color: #334155; }
.shop-cat-toggle.is-open { transform: rotate(90deg); }

@media (max-width: 991.98px) {
    .shop-cat-widget {
        gap: 8px;
    }
    .shop-cat-row {
        gap: 8px;
        padding: 7px 0;
    }
    .shop-cat-toggle,
    .shop-cat-spacer {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
    .shop-cat-toggle {
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475569;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    }
    .shop-cat-toggle i {
        font-size: .75rem;
    }
    .shop-cat-toggle.is-open {
        transform: rotate(90deg);
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }
    .shop-cat-toggle:hover {
        background: #eff6ff;
        color: #2563eb;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   Highlighted nav menu items (admin-configurable per item — see the
   Navigation menu editor). Colors are applied inline by layout.php since
   several header styles color .nav-link with !important; shape/shadow only
   is handled here.
   ───────────────────────────────────────────────────────────────────────── */
.nav-link--highlighted {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.06);
    padding: 8px 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.10);
    transition: box-shadow .2s ease, transform .15s ease, background-color .2s ease, color .2s ease;
}
.nav-link--highlighted:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.16);
    transform: translateY(-1px);
}
.bh-cat-list .nav-item > .nav-link.nav-link--highlighted,
.bh-mobile-nav .nav-link--highlighted {
    border-bottom-color: transparent !important;
}
/* Collapsed / mobile menus render full-width rows — show the highlight as a
   compact chip instead of stretching the pill edge-to-edge. */
.collapse .nav-link--highlighted,
.bh-mobile-nav .nav-link--highlighted {
    margin: 3px 20px;
}
