/* =====================================================================
   GB THEME — Ghorer Bazar style home / header / footer
   Load AFTER style.css.  Everything is scoped under  body.gb-theme
   Accent colour = site's --primary (admin theme colour), so brand colour
   still comes from Admin → Theme.
   ===================================================================== */

body.gb-theme {
    --gb-accent: var(--primary);
    --gb-accent-rgb: var(--primary-rgb);
    --gb-dark: #071b22;
    --gb-bg: #faf9f7;
    --gb-line: #e8e5df;
    --gb-text: #1b1b1b;
    --gb-muted: #6c6c6c;
    --gb-green: #1e9e5a;
    --gb-cont: 1292px;
    background: var(--gb-bg);
    color: var(--gb-text);
}

/* narrower container only for header / home / footer */
body.gb-theme .site-header .container,
body.gb-theme .gb-home .container,
body.gb-theme .gb-footer .container,
body.gb-theme .features-bar .container {
    width: min(var(--gb-cont), 94%);
}

/* ============================== HEADER ============================== */
body.gb-theme .utility-topbar { display: none !important; }

body.gb-theme .site-header {
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 1px 0 var(--gb-line);
}

body.gb-theme .gb-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 54px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #222;
    background: transparent;
    border: 0;
    padding: 4px 6px;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: color .2s;
}
body.gb-theme .gb-act i { font-size: 22px; line-height: 1; }
body.gb-theme .gb-act:hover { color: var(--gb-accent); }

/* cart (existing anchor) -> same look as other actions */
body.gb-theme .header-actions .cart-btn,
body.gb-theme .header-action-cart {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #222 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 6px !important;
    min-width: 54px;
    position: relative;
}
body.gb-theme .header-action-cart:hover { color: var(--gb-accent) !important; }
body.gb-theme .header-cart-icon { width: 24px; height: 24px; }
body.gb-theme .gb-act-label { font-size: 12.5px; line-height: 1.2; }
body.gb-theme .header-action-cart .cart-count {
    top: -2px;
    right: 6px;
    width: 18px;
    height: 18px;
    font-size: 10.5px;
    background: var(--gb-accent);
    color: #fff;
    border: 0;
}

body.gb-theme .header-action-auth {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: transparent !important;
    border: 0 !important;
    color: #222 !important;
    padding: 4px 6px !important;
    min-width: 54px;
    font-size: 12.5px;
}
body.gb-theme .header-action-auth i { font-size: 22px; }
body.gb-theme .header-action-auth:hover { color: var(--gb-accent) !important; }
body.gb-theme .header-call-us { display: none !important; }

/* More dropdown */
body.gb-theme .gb-more { position: relative; }
body.gb-theme .gb-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--gb-line);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s;
    z-index: 600;
}
body.gb-theme .gb-more.is-open .gb-more-menu { opacity: 1; visibility: visible; transform: none; }
body.gb-theme .gb-more-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
}
body.gb-theme .gb-more-menu a i { width: 18px; text-align: center; color: var(--gb-accent); }
body.gb-theme .gb-more-menu a:hover { background: rgba(var(--gb-accent-rgb), .08); }

@media (min-width: 901px) {
    body.gb-theme .header-inner { padding: 16px 0; gap: 28px; }
    body.gb-theme .logo img { height: 56px; }
    body.gb-theme .header-search,
    body.gb-theme .mobile-search {
        background: #f2f1ee;
        border: 0 !important;
        border-radius: 12px;
        height: 48px;
        max-width: 560px;
        margin: 0 auto 0 0;
        min-width: 280px;
        overflow: visible;
    }
    body.gb-theme .header-search input,
    body.gb-theme .mobile-search input { padding: 0 16px; font-size: 15px; }
    body.gb-theme .header-search .search-submit,
    body.gb-theme .mobile-search .search-submit {
        background: transparent;
        color: #222;
        width: 52px;
        font-size: 18px;
        border-radius: 0 12px 12px 0;
    }
    body.gb-theme .header-search .search-submit:hover { color: var(--gb-accent); background: transparent; }
    body.gb-theme .header-actions { gap: 10px; }
}

/* dark category bar */
body.gb-theme .header-category-bar {
    background: var(--gb-dark) !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.gb-theme .header-category-bar .all-cat-btn {
    background: var(--gb-accent) !important;
    color: #fff !important;
    border-radius: 0 !important;
}
body.gb-theme .header-category-bar .header-cat-link,
body.gb-theme .header-category-bar .header-cat-link span {
    color: #fff !important;
    font-weight: 500;
    font-size: 15.5px;
}
body.gb-theme .header-category-bar .header-cat-link:hover,
body.gb-theme .header-category-bar .header-cat-link.active {
    background: transparent !important;
    color: var(--gb-accent) !important;
}
body.gb-theme .header-category-bar .header-cat-chevron { color: #fff; }
body.gb-theme .header-category-bar .header-cat-dropdown a { color: #222 !important; }
body.gb-theme .header-category-bar .header-cat-dropdown a:hover { color: var(--gb-accent) !important; }

/* ===================== CART DRAWER (slide from right) ===================== */
body.gb-theme .gb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 2050;
}
body.gb-theme .gb-overlay.is-open { opacity: 1; visibility: visible; }

body.gb-theme .cart-dropdown {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: min(400px, 92vw) !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    transform: translateX(108%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1) !important;
    z-index: 2100 !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}
body.gb-theme .cart-dropdown::before,
body.gb-theme .cart-dropdown::after { display: none !important; }
body.gb-theme .cart-dropdown.is-open { transform: none !important; }
body.gb-theme .cart-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gb-line);
}
body.gb-theme .cart-dropdown-title { font-weight: 700; letter-spacing: .3px; }
body.gb-theme .gb-cart-close {
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
body.gb-theme .cart-dropdown-body { flex: 1; max-height: none !important; overflow-y: auto; padding: 12px 16px; }
body.gb-theme .cart-dropdown-foot { padding: 14px 16px 18px; border-top: 1px solid var(--gb-line); }
body.gb-theme .mini-cart-checkout {
    background: var(--gb-accent) !important;
    color: #fff !important;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

/* floating side cart (right middle) — items + total */
body.gb-theme .floating-side-cart {
    background: var(--gb-accent);
    border-radius: 10px 0 0 10px;
    padding: 12px 10px 0;
    gap: 2px;
    animation: none;
    overflow: hidden;
    min-width: 70px;
}
body.gb-theme .floating-side-cart:hover { background: var(--gb-accent); filter: brightness(.95); transform: translateY(-50%); }
body.gb-theme .floating-side-cart-total {
    display: block;
    margin: 6px -10px 0;
    padding: 7px 10px;
    background: #fff;
    color: var(--gb-accent);
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    width: calc(100% + 20px);
}

/* back to top */
body.gb-theme .gb-top {
    position: fixed;
    right: 22px;
    bottom: 104px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gb-accent);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(var(--gb-accent-rgb), .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all .3s;
    z-index: 880;
}
body.gb-theme .gb-top.is-show { opacity: 1; visibility: visible; transform: none; }

/* =============================== HOME =============================== */
body.gb-theme .gb-home { padding-bottom: 30px; }
body.gb-theme .gb-home section { background: transparent; }

/* hero */
body.gb-theme .gb-hero { margin-top: 20px; }
body.gb-theme .gb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 20px;
}
body.gb-theme .gb-hero .hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 2.5 / 1;
    background: #eee;
}
body.gb-theme .gb-hero .hero-track { height: 100%; }
body.gb-theme .gb-hero .hero-slide { height: 100%; }
body.gb-theme .gb-hero .hero-slide a { display: block; height: 100%; }
body.gb-theme .gb-hero .hero-img { width: 100%; height: 100%; object-fit: cover; }
body.gb-theme .gb-hero .hero-nav {
    background: #fff;
    color: var(--gb-accent);
    border-radius: 0;
    width: 40px;
    height: 54px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
body.gb-theme .gb-hero .hero-dot { background: rgba(255, 255, 255, .55); }
body.gb-theme .gb-hero .hero-dot.active { background: var(--gb-accent); }
body.gb-theme .gb-hero-side {
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #eee;
}
body.gb-theme .gb-hero-side img { width: 100%; height: 100%; object-fit: cover; }

/* section titles */
body.gb-theme .gb-title {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    margin: 38px 0 22px;
    color: #1b1b1b;
}
body.gb-theme .gb-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 12px;
    margin: 36px 0 20px;
    border-bottom: 1px solid var(--gb-line);
}
body.gb-theme .gb-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 3px;
    background: var(--gb-accent);
}
body.gb-theme .gb-head h2 { font-size: 22px; font-weight: 700; margin: 0; color: #1b1b1b; }
body.gb-theme .gb-viewall {
    color: var(--gb-accent);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
body.gb-theme .gb-head-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* featured categories */
body.gb-theme .gb-cats { position: relative; padding: 0 34px; }
body.gb-theme .gb-cats-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
body.gb-theme .gb-cats-track::-webkit-scrollbar { display: none; }
body.gb-theme .gb-cat {
    flex: 0 0 25%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 6px;
    color: #222;
    text-align: center;
}
body.gb-theme .gb-cat-img {
    width: 142px;
    height: 142px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
body.gb-theme .gb-cat-img img { width: 100%; height: 100%; object-fit: cover; }
body.gb-theme .gb-cat-img i { font-size: 38px; color: var(--gb-accent); }
body.gb-theme .gb-cat:hover .gb-cat-img { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); }
body.gb-theme .gb-cat-name { font-size: 18px; font-weight: 500; }
body.gb-theme .gb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 0;
    background: var(--gb-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(var(--gb-accent-rgb), .35);
}
body.gb-theme .gb-arrow.gb-prev { left: 0; }
body.gb-theme .gb-arrow.gb-next { right: 0; }

/* ---- buttons used in cards ---- */
body.gb-theme .gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1.5px solid var(--gb-accent);
    transition: background .2s, color .2s, transform .15s;
    line-height: 1.2;
    white-space: nowrap;
}
body.gb-theme .gb-btn:active { transform: scale(.97); }
body.gb-theme .gb-btn-outline { background: #fff; color: var(--gb-accent); }
body.gb-theme .gb-btn-outline:hover { background: var(--gb-accent); color: #fff; }
body.gb-theme .gb-btn-solid { background: var(--gb-accent); color: #fff; }
body.gb-theme .gb-btn-solid:hover { filter: brightness(.93); }
body.gb-theme .gb-btn[disabled], body.gb-theme .gb-btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---- Top selling (big cards) ---- */
body.gb-theme .gb-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
body.gb-theme .gb-big {
    position: relative;
    display: grid;
    grid-template-columns: 45% 1fr;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 6px;
    padding: 18px 22px;
    min-height: 300px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
body.gb-theme .gb-big-img { display: flex; align-items: center; justify-content: center; }
body.gb-theme .gb-big-img img { max-height: 260px; width: auto; max-width: 100%; object-fit: contain; }
body.gb-theme .gb-big-title { font-size: 24px; font-weight: 500; line-height: 1.3; margin: 0 0 12px; }
body.gb-theme .gb-big-title a { color: #1b1b1b; }
body.gb-theme .gb-big-title a:hover { color: var(--gb-accent); }
body.gb-theme .gb-price { color: var(--gb-accent); font-weight: 700; font-size: 22px; }
body.gb-theme .gb-price del { color: #8b8b8b; font-weight: 500; font-size: .82em; margin-left: 8px; }
body.gb-theme .gb-save {
    display: inline-block;
    margin-top: 8px;
    background: #cdf3a6;
    color: #25570d;
    font-weight: 600;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 999px;
}
body.gb-theme .gb-big-btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
body.gb-theme .gb-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gb-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 0 6px 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---- Product card (home) ---- */
body.gb-theme .gb-home .product-card {
    background: #fff;
    border: 1px solid #e3e0da;
    border-radius: 3px;
    padding: 8px 8px 10px;
    position: relative;
    transition: box-shadow .25s, border-color .25s;
}
body.gb-theme .gb-home .product-card:hover { border-color: rgba(var(--gb-accent-rgb), .55); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
body.gb-theme .gb-home .product-thumb { background: #fff; aspect-ratio: 1 / 1; }
body.gb-theme .gb-home .product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
body.gb-theme .gb-home .deal-badge {
    left: auto;
    right: 6px;
    top: 6px;
    background: var(--gb-green);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    z-index: 2;
}
body.gb-theme .gb-home .product-body { padding: 8px 4px 0; display: flex; flex-direction: column; flex: 1; }
body.gb-theme .gb-home .product-title { font-size: 16px; font-weight: 500; line-height: 1.35; margin: 4px 0 8px; min-height: 43px; }
body.gb-theme .gb-home .product-title a { color: #1b1b1b; }
body.gb-theme .gb-home .product-price { color: var(--gb-accent); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
body.gb-theme .gb-home .product-price del { color: #8b8b8b; font-weight: 500; font-size: .88em; margin-left: 6px; }
body.gb-theme .gb-home .product-actions { gap: 8px; }
body.gb-theme .gb-home .gb-card-btn { width: 100%; padding: 11px 8px; }
/* "Load more" cards come from the old partial — keep them tidy */
body.gb-theme .gb-home .btn-order { background: var(--gb-accent); border-radius: 4px; font-size: 13px; }
body.gb-theme .gb-home .btn-cart { border-radius: 4px; }

/* rails (horizontal product carousels) */
body.gb-theme .gb-rail-wrap { position: relative; }
body.gb-theme .gb-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 1px 6px;
}
body.gb-theme .gb-rail::-webkit-scrollbar { display: none; }
body.gb-theme .gb-rail > .product-card {
    flex: 0 0 calc((100% - 80px) / 5);
    scroll-snap-align: start;
    min-width: 0;
}
body.gb-theme .gb-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; min-height: 12px; }
body.gb-theme .gb-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1.5px solid var(--gb-accent);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: width .25s, background .25s;
}
body.gb-theme .gb-dot.is-active { width: 22px; background: var(--gb-accent); }

/* grid (all products) */
body.gb-theme .gb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

/* brands */
body.gb-theme .gb-brand-rail > .gb-brand {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #ece9e3;
    border-radius: 4px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    transition: box-shadow .25s;
}
body.gb-theme .gb-brand:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
body.gb-theme .gb-brand img { max-height: 64px; max-width: 100%; object-fit: contain; }

/* promo banners */
body.gb-theme .gb-promo { margin: 30px 0 0; }
body.gb-theme .gb-promo a { display: block; }
body.gb-theme .gb-promo img { width: 100%; border-radius: 4px; display: block; }
body.gb-theme .gb-promo-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.gb-theme .gb-promo-rail::-webkit-scrollbar { display: none; }
body.gb-theme .gb-promo-rail a { flex: 0 0 100%; scroll-snap-align: start; }

/* timers */
body.gb-theme .gb-timer { display: inline-flex; align-items: center; gap: 6px; }
body.gb-theme .gb-timer .timer-label { font-size: 12px; font-weight: 600; color: var(--gb-muted); margin-right: 4px; }
body.gb-theme .gb-timer .timer-box {
    background: var(--gb-dark);
    color: #fff;
    border-radius: 6px;
    padding: 5px 9px;
    min-width: 46px;
    text-align: center;
    line-height: 1.1;
}
body.gb-theme .gb-timer .timer-box b { display: block; font-size: 16px; }
body.gb-theme .gb-timer .timer-box small { font-size: 9.5px; opacity: .8; }
body.gb-theme .gb-timer .timer-colon { font-weight: 700; color: var(--gb-dark); }
body.gb-theme .gb-sold { font-size: 12px; color: var(--gb-muted); margin: -4px 0 8px; }
body.gb-theme .gb-progress { height: 5px; background: #eee; border-radius: 999px; overflow: hidden; margin: 0 0 6px; }
body.gb-theme .gb-progress span { display: block; height: 100%; background: var(--gb-accent); border-radius: 999px; }

/* load more */
body.gb-theme .gb-home .section-cta { text-align: center; margin-top: 26px; }
body.gb-theme .gb-home .btn-load-more {
    background: transparent;
    border: 1.5px solid var(--gb-accent);
    color: var(--gb-accent);
    border-radius: 999px;
    padding: 13px 42px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
    font-family: inherit;
}
body.gb-theme .gb-home .btn-load-more:hover { background: var(--gb-accent); color: #fff; }

/* blog + vendors headings reuse .gb-head */
body.gb-theme .gb-home .blog-section .section-head,
body.gb-theme .gb-home .vendor-section .brand-section-head { display: none; }

/* ============================== FOOTER ============================== */
body.gb-theme .site-footer { display: none; }
body.gb-theme .gb-footer { background: var(--gb-bg); border-top: 1px solid var(--gb-line); margin-top: 40px; color: #333; }
body.gb-theme .gb-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 54px 0 34px;
}
body.gb-theme .gb-footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
body.gb-theme .gb-footer p { color: #555; line-height: 1.6; font-size: 15px; margin: 0 0 16px; max-width: 420px; }
body.gb-theme .gb-footer h4 { font-size: 19px; font-weight: 500; margin: 0 0 20px; color: #1b1b1b; }
body.gb-theme .gb-footer ul { list-style: none; margin: 0; padding: 0; }
body.gb-theme .gb-footer li { margin-bottom: 12px; }
body.gb-theme .gb-footer li a { color: #555; font-size: 15px; transition: color .2s; }
body.gb-theme .gb-footer li a:hover { color: var(--gb-accent); }
body.gb-theme .gb-contact-line { display: flex; align-items: center; gap: 12px; color: #333; font-size: 16px; margin-bottom: 14px; }
body.gb-theme .gb-contact-line i { color: #8a8a8a; width: 18px; text-align: center; }
body.gb-theme .gb-social { display: flex; gap: 12px; margin: 22px 0 0; }
body.gb-theme .gb-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(var(--gb-accent-rgb), .1);
    color: var(--gb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
body.gb-theme .gb-social a:hover { background: var(--gb-accent); color: #fff; }
body.gb-theme .gb-app h4 { font-size: 17px; margin: 26px 0 12px; font-weight: 500; }
body.gb-theme .gb-app-links { display: flex; gap: 12px; flex-wrap: wrap; }
body.gb-theme .gb-app-links img { height: 42px; width: auto; border-radius: 6px; }
body.gb-theme .gb-newsletter { display: flex; margin-top: 8px; max-width: 360px; }
body.gb-theme .gb-newsletter input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dcd9d2;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 11px 14px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
}
body.gb-theme .gb-newsletter button {
    border: 0;
    background: var(--gb-accent);
    color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 0 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
body.gb-theme .gb-footer-bottom {
    border-top: 1px solid var(--gb-line);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
}
body.gb-theme .gb-footer-bottom a { display: inline-flex; align-items: center; gap: 6px; }

/* ================================ MOBILE ================================ */
@media (max-width: 1100px) {
    body.gb-theme .gb-rail > .product-card { flex-basis: calc((100% - 60px) / 4); }
    body.gb-theme .gb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.gb-theme .gb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
    /* header — search ALWAYS visible at the top, no popup */
    body.gb-theme .site-header .container { width: 96%; }
    body.gb-theme .header-inner { flex-wrap: wrap; padding: 10px 0 8px; gap: 8px 10px; }
    body.gb-theme .logo img { height: 40px; }
    body.gb-theme .header-search,
    body.gb-theme .mobile-search {
        display: flex !important;
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        height: 44px;
        margin: 2px 0 0;
        background: #f2f1ee;
        border: 0 !important;
        border-radius: 10px;
        overflow: visible;
    }
    body.gb-theme .header-search input,
    body.gb-theme .mobile-search input { padding: 0 14px; font-size: 14.5px; }
    body.gb-theme .header-search .search-submit,
    body.gb-theme .mobile-search .search-submit {
        background: transparent;
        color: #222;
        width: 46px;
        border-radius: 0 10px 10px 0;
        font-size: 17px;
    }
    body.gb-theme .gb-act-track,
    body.gb-theme .gb-more { display: none; }
    body.gb-theme .gb-act-label { display: none; }
    body.gb-theme .header-action-cart { min-width: 0; }
    body.gb-theme .header-action-auth { display: none !important; }

    body.gb-theme .gb-hero { margin-top: 12px; }
    body.gb-theme .gb-hero-grid { grid-template-columns: 1fr; }
    body.gb-theme .gb-hero-side { display: none; }
    body.gb-theme .gb-hero .hero-slider { aspect-ratio: 1.8 / 1; border-radius: 4px; }
    body.gb-theme .gb-hero .hero-nav { width: 30px; height: 40px; }

    body.gb-theme .gb-title { font-size: 24px; margin: 26px 0 16px; }
    body.gb-theme .gb-head { margin: 28px 0 16px; }
    body.gb-theme .gb-head h2 { font-size: 19px; }
    body.gb-theme .gb-viewall { font-size: 12px; }

    body.gb-theme .gb-cats { padding: 0 20px; }
    body.gb-theme .gb-cat { flex-basis: 33.333%; }
    body.gb-theme .gb-cat-img { width: 100px; height: 100px; border-radius: 14px; }
    body.gb-theme .gb-cat-name { font-size: 16px; }
    body.gb-theme .gb-arrow { width: 30px; height: 30px; }

    body.gb-theme .gb-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.gb-theme .gb-big { grid-template-columns: 1fr; gap: 6px; padding: 12px 12px 14px; min-height: 0; text-align: left; }
    body.gb-theme .gb-big-img img { max-height: 180px; }
    body.gb-theme .gb-big-title { font-size: 16px; margin-bottom: 8px; }
    body.gb-theme .gb-price { font-size: 17px; }
    body.gb-theme .gb-big-btns { flex-direction: column; gap: 8px; margin-top: 10px; }
    body.gb-theme .gb-big-btns .gb-btn { width: 100%; padding: 9px 6px; font-size: 13px; }
    body.gb-theme .gb-ribbon { font-size: 10.5px; padding: 4px 8px; }

    body.gb-theme .gb-rail { gap: 12px; }
    body.gb-theme .gb-rail > .product-card { flex-basis: calc((100% - 12px) / 2); }
    body.gb-theme .gb-brand-rail > .gb-brand { flex-basis: calc((100% - 12px) / 2); min-height: 74px; }
    body.gb-theme .gb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.gb-theme .gb-home .product-title { font-size: 14.5px; min-height: 39px; }
    body.gb-theme .gb-home .product-price { font-size: 15.5px; }
    body.gb-theme .gb-home .gb-card-btn { font-size: 13px; padding: 10px 6px; }

    body.gb-theme .gb-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 36px 0 22px; }
    body.gb-theme .gb-footer-brand { grid-column: 1 / -1; }
    body.gb-theme .gb-footer-bottom { justify-content: center; text-align: center; padding-bottom: 90px; }

    /* cart drawer on mobile */
    body.gb-theme .cart-dropdown { display: flex !important; }

    /* orange bottom nav */
    body.gb-theme .mobile-bottom-nav {
        display: flex;
        background: var(--gb-accent);
        border: 0;
        border-radius: 0;
        max-width: none;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
        z-index: 1200;
    }
    body.gb-theme .mobile-bottom-nav a,
    body.gb-theme .mobile-bottom-nav button {
        color: #fff;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        background: transparent;
        border: 0;
        font-family: inherit;
        position: relative;
        padding: 0 4px;
        cursor: pointer;
    }
    body.gb-theme .mobile-bottom-nav a i,
    body.gb-theme .mobile-bottom-nav button i {
        width: auto;
        height: auto;
        background: transparent;
        color: #fff;
        font-size: 20px;
        border-radius: 0;
    }
    body.gb-theme .mobile-bottom-nav a.active { text-shadow: 0 0 1px #fff; }
    body.gb-theme .mobile-bottom-nav a.active i { box-shadow: none; }
    body.gb-theme .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: -4px;
        left: calc(50% + 6px);
        background: #fff;
        color: var(--gb-accent);
        font-style: normal;
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    body.gb-theme .gb-top { bottom: 150px; right: 14px; width: 40px; height: 40px; }
    body.gb-theme .floating-side-cart { min-width: 62px; }
}

@media (max-width: 560px) {
    body.gb-theme .gb-cat { flex-basis: 33.333%; }
}

@media (prefers-reduced-motion: reduce) {
    body.gb-theme * { scroll-behavior: auto !important; }
}
