/* =====================================================================
   Ghorer-Bazar style theme  — style.css er por load hobe
   File: public/frontEnd/css/ghorer-theme.css
   Rong bodlate nicher 3 ta variable edit korun.
   ===================================================================== */
:root {
    --gb-nav-bg: #0f3d2e;          /* menu bar er dark rong */
    --gb-accent: var(--primary);   /* button / arrow er rong (admin theme color) */
    --gb-page-bg: #f6f6f3;         /* home page er halka background */
}

/* ---------- Full width container (dui pashe faka nei, shudhu halka gap) ---------- */
html body .container,
html body .product-detail-page .container,
html body .auth-page .auth-header-inner,
html body .header-category-bar .header-category-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;   /* 0 korle ekdom edge e lagbe */
    padding-right: 20px !important;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    html body .container,
    html body .product-detail-page .container,
    html body .header-category-bar .header-category-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ---------- Top utility bar lukano ---------- */
html body .utility-topbar { display: none !important; }

/* ---------- Header ---------- */
html body .site-header { background: #fff; border-bottom: 1px solid #eee; }
html body .header-call-us { display: none !important; }

html body .header-actions { gap: 4px; }
html body .gb-action,
html body .header-actions .cart-btn,
html body .header-action-auth.gb-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    height: auto;
    padding: 4px 12px;
    color: #1f2933;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    background: transparent;
    border-radius: 8px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}
html body .gb-action i { font-size: 22px; }
html body .gb-action span,
html body .gb-label { font-size: 13px; font-weight: 500; }
html body .gb-action:hover,
html body .header-actions .cart-btn:hover { color: var(--primary); background: transparent; }

html body .header-cart-icon { width: 24px; height: 24px; }
html body .header-action-cart .cart-count {
    top: -2px;
    right: 6px;
    background: var(--gb-accent);
}
html body .gb-action-track { order: 1; }
html body .header-action-auth.gb-action { order: 2; }
html body .header-actions .cart-wrap { order: 3; }

@media (min-width: 901px) {
    html body .header-inner { padding-top: 16px; padding-bottom: 16px; gap: 28px; }
    html body .logo img { height: 58px; }

    html body .header-search,
    html body .mobile-search {
        max-width: 560px;
        background: #f3f3f1;
        border: 1px solid #ececea;
        border-radius: 10px;
        height: 46px;
    }
    html body .header-search:focus-within,
    html body .mobile-search:focus-within {
        background: #fff;
        border-color: var(--primary);
    }
    html body .header-search .search-submit,
    html body .mobile-search .search-submit {
        background: transparent;
        color: #1f2933;
        width: 48px;
        border-radius: 0 10px 10px 0;
    }
    html body .header-search .search-submit:hover,
    html body .mobile-search .search-submit:hover {
        background: transparent;
        color: var(--primary);
    }

    /* ---------- Dark category/menu bar ---------- */
    html body .header-category-bar {
        background: var(--gb-nav-bg) !important;
        border-bottom: 0 !important;
    }
    html body .header-category-row { min-height: 50px; }

    /* "All Categories" button lukano — Ghorerbazar er moto shudhu category link */
    html body .all-cat-wrap { display: none !important; }

    /* Category link gulo menu bar er MAJHKHANE theke shuru hobe.
       auto margin: jayga thakle majhkhane, beshi hole bam theke scroll (arrow diye). */
    html body .header-category-inner > :first-child { margin-left: auto !important; }
    html body .header-category-inner > :last-child  { margin-right: auto !important; }

    html body .header-cat-link {
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 0 16px !important;
        min-height: 50px;
    }
    html body .header-cat-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    html body .header-cat-link.active {
        color: #fff !important;
        border-bottom-color: var(--gb-accent);
    }
    html body .header-cat-chevron { color: rgba(255, 255, 255, 0.85); }
    html body .header-cat-arrow {
        background: rgba(255, 255, 255, 0.16);
        border-color: transparent;
        color: #fff;
        box-shadow: none;
    }
}
@media (max-width: 900px) {
    html body .gb-action-track,
    html body .gb-label { display: none !important; }
}

/* ---------- Home page background ---------- */
html body .app-main { background: var(--gb-page-bg); }

/* ---------- Hero: slider (left) + side banner (right) ---------- */
html body .hero-banner { margin-top: 20px; margin-bottom: 0; }
html body .gb-hero-grid.has-side {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}
html body .gb-hero-grid .hero-slider { border-radius: 0; }
html body .gb-hero-grid .hero-img { border-radius: 0; }
html body .gb-hero-side {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: #fff;
}
html body .gb-hero-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 900px) {
    html body .gb-hero-grid.has-side { grid-template-columns: 1fr; gap: 10px; }
    html body .gb-hero-side { min-height: 0; }
    html body .gb-hero-side img { position: static; height: auto; }
}

/* ---------- Section titles (centered) ---------- */
html body .gb-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #1f2933;
    margin: 0 0 22px;
    line-height: 1.3;
}
html body .new-books-head,
html body .section-head {
    position: relative;
    display: flex;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
}
html body .new-books-head h2,
html body .section-head h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1f2933;
    text-align: center;
    text-transform: none;
}
html body .new-books-viewall,
html body .section-head .btn-view-all {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}
html body .product-section { padding: 30px 0 8px; }

/* Category-wise product section: category nam BAM (left) corner e, "সব দেখুন" link dan e */
html body .product-section .new-books-head {
    justify-content: space-between;
    align-items: center;
}
html body .product-section .new-books-head h2 {
    text-align: left;
    font-size: 24px;
}
html body .product-section .new-books-viewall {
    position: static;
    transform: none;
}

/* ---------- Featured categories ---------- */
html body .home-cat-row { background: transparent; padding: 34px 0 10px; }
html body .home-cat-row-track { gap: 16px; padding: 4px 2px 8px; }
html body .home-cat-card {
    flex: 0 0 calc((100% - 7 * 16px) / 8);
    width: calc((100% - 7 * 16px) / 8);
    min-width: 120px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}
html body .home-cat-card-img {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
html body .home-cat-card:hover .home-cat-card-img {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}
html body .home-cat-card-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2933;
}
html body .home-cat-nav {
    width: 34px;
    height: 34px;
    background: var(--gb-accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    top: 40%;
}
html body .home-cat-nav:hover { background: var(--gb-accent); color: #fff; filter: brightness(0.92); }
html body .home-cat-prev { left: -4px; }
html body .home-cat-next { right: -4px; }

/* ---------- Product card ---------- */
html body .product-card {
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
html body .product-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}
html body .product-thumb { background: #fff; border-radius: 14px 14px 0 0; }
html body .product-thumb img { border-radius: 0; padding: 10px; }
html body .deal-badge {
    left: auto;
    right: 10px;
    top: 10px;
    border-radius: 6px;
    padding: 3px 8px;
}
html body .product-title { font-weight: 600; min-height: 38px; }
html body .product-price { font-size: 16px; font-weight: 700; }
html body .btn-order,
html body .btn-cart { border-radius: 8px; }

/* ---------- Mobile: home category row stays original (5x2 grid) ---------- */
@media (max-width: 900px) {
    html body .home-cat-card { flex: none !important; width: auto !important; min-width: 0 !important; }
    html body .home-cat-card-img { padding: 0; box-shadow: none; border-radius: 14px; }
    html body .gb-section-title { font-size: 20px; margin-bottom: 12px; }
    html body .new-books-head h2,
    html body .section-head h2 { font-size: 22px; }
}


/* =====================================================================
   Product details page — Ghorer-Bazar style
   ===================================================================== */
html body .product-detail-page { background: var(--gb-page-bg) !important; padding: 12px 0 50px !important; }

html body .product-detail-page .breadcrumb {
    margin: 0 0 14px !important;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}
html body .product-detail-page .breadcrumb a { color: #4b5563; }
html body .product-detail-page .breadcrumb a:hover { color: var(--primary); }

/* White rounded card: gallery (left) + info (right) */
html body .product-detail-page .product-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr) !important;
    gap: 40px !important;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---- Gallery: vertical thumbnails (left) + main image ---- */
html body .product-detail-page .product-gallery {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}
html body .product-detail-page .gallery-main {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1 / 1;
    height: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}
html body .product-detail-page .gallery-thumbs-wrap {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    align-self: stretch;
    margin: 0;
    display: block;
}
html body .product-detail-page .gallery-thumbs {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
html body .product-detail-page .gallery-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
}
html body .product-detail-page .gallery-thumb.active {
    border-color: var(--gb-accent);
    box-shadow: 0 0 0 1px var(--gb-accent) inset;
}
html body .product-detail-page .gallery-thumbs-nav { display: none !important; }

/* ---- Info ---- */
html body .product-detail-page .product-detail-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.25;
    color: #1f2933;
    margin: 0 0 10px;
}
html body .product-detail-page .pd-meta-row { margin-bottom: 8px; }
html body .product-detail-page .pd-price-label { display: none !important; }
html body .product-detail-page .product-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
}
html body .product-detail-page .product-detail-price #newPrice {
    font-size: 32px;
    font-weight: 700;
    color: var(--gb-accent);
    line-height: 1.1;
}
html body .product-detail-page .product-detail-price del { color: #9ca3af; font-size: 18px; }

/* Quantity */
html body .product-detail-page .pd-qty-cart-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 16px;
}
html body .product-detail-page .pd-qty-cart-row .pd-qty-label {
    font-size: 15px;
    font-weight: 500;
    color: #1f2933;
}

/* Action buttons: 2 x 2 grid */
html body .product-detail-page .pd-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}
html body .product-detail-page .pd-action-grid > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0;
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    transition: filter 0.15s, transform 0.15s;
}
html body .product-detail-page .pd-action-grid > a:hover { filter: brightness(0.93); transform: translateY(-1px); }
html body .product-detail-page .pd-btn-add-cart { background: var(--gb-accent) !important; }
html body .product-detail-page .pd-order-now-btn { background: var(--gb-nav-bg) !important; }
html body .product-detail-page .pd-wa-btn { background: #16a34a !important; }
html body .product-detail-page .pd-call-order { background: #1e3a8a !important; }
html body .product-detail-page .pd-action-grid.no-wa .pd-call-order { grid-column: 1 / -1; }

html body .product-detail-page .pd-action-msgs {
    position: relative;
    min-height: 22px;
    margin: 6px 0 4px;
}
html body .product-detail-page .pd-action-msgs .pd-action-success {
    position: absolute;
    inset: 0;
    margin: 0;
    text-align: center;
}

/* Brand + Vendor shop name (side by side) */
html body .product-detail-page .pd-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: 12px 0 4px;
}
html body .product-detail-page .pd-brand-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 6px 14px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 15px;
    text-decoration: none;
}
html body .product-detail-page .pd-brand-box span { color: #4b5563; }
html body .product-detail-page .pd-brand-box strong { font-weight: 600; }
html body .product-detail-page .pd-brand-box img {
    height: 34px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
html body .product-detail-page .pd-vendor-box i { color: var(--gb-accent); }
html body .product-detail-page .pd-vendor-box:hover { border-color: var(--gb-accent); }
html body .product-detail-page .pd-vendor-box:hover strong { color: var(--gb-accent); }

/* Delivery/contact panel — niche full-width, 2 box */
html body .product-detail-page .pd-side-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ---- Tabs: pill style ---- */
html body .product-detail-page .pd-tabs-section {
    margin-top: 24px;
    border-top: 0;
}
html body .product-detail-page .pd-tabs-nav {
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 0;
    border-radius: 10px;
}
html body .product-detail-page .pd-tab {
    padding: 12px 22px !important;
    border-radius: 6px;
    background: #f1f2f4;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
}
html body .product-detail-page .pd-tab:first-child { padding-left: 22px !important; }
html body .product-detail-page .pd-tab.is-active { background: var(--gb-accent); color: #fff; }
html body .product-detail-page .pd-tab.is-active::after { display: none; }
html body .product-detail-page .pd-tab-panel {
    margin-top: 14px;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
    html body .product-detail-page .product-detail {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 14px;
    }
    html body .product-detail-page .product-gallery { grid-template-columns: 1fr; gap: 10px; }
    html body .product-detail-page .gallery-main { grid-column: 1; grid-row: 1; }
    html body .product-detail-page .gallery-thumbs-wrap {
        grid-column: 1;
        grid-row: 2;
        height: 76px;
        align-self: auto;
    }
    html body .product-detail-page .gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    html body .product-detail-page .gallery-thumb { flex: 0 0 70px; width: 70px; height: 70px; }
    html body .product-detail-page .product-detail-title { font-size: 22px; }
    html body .product-detail-page .product-detail-price #newPrice { font-size: 26px; }
    html body .product-detail-page .pd-side-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    html body .product-detail-page .pd-action-grid { gap: 8px; }
    html body .product-detail-page .pd-action-grid > a { font-size: 13px; padding: 0 6px; }
}


/* =====================================================================
   Floating cart button + Side cart drawer (Ghorer-Bazar style)
   ===================================================================== */

/* Purono hover mini-cart dropdown bondho (drawer eta replace kore) */
html body .cart-dropdown { display: none !important; }

/* ---- Floating button: orange upor (icon + "0 Items"), shada niche (total) ---- */
html body .floating-side-cart {
    top: 50%;
    right: 0;
    width: 74px;
    min-width: 74px;
    padding: 0;
    gap: 0;
    background: transparent;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.18);
    animation: none !important;
    transform: translateY(-50%);
    cursor: pointer;
}
html body .floating-side-cart:hover {
    background: transparent;
    transform: translateY(-50%);
    filter: brightness(0.97);
}
html body .floating-side-cart > i {
    width: 100%;
    padding: 12px 0 4px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 22px;
    text-align: center;
}
html body .floating-side-cart-count {
    width: 100%;
    padding: 0 0 10px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
html body .floating-side-cart-total {
    display: block;
    width: 100%;
    padding: 8px 4px;
    background: #fff;
    color: var(--gb-accent);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 900px) {
    html body .floating-side-cart { width: 62px; min-width: 62px; }
    html body .floating-side-cart-total { font-size: 12px; }
}

/* ---- Drawer ---- */
body.sc-open { overflow: hidden; }

.sc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10040;
}
.sc-overlay.is-open { opacity: 1; visibility: visible; }

.sc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: #f6f6f3;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10050;
}
.sc-drawer.is-open { transform: translateX(0); }

.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1f2933;
}
.sc-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
}
.sc-close:hover { color: var(--gb-accent); }

.sc-body { flex: 1; overflow-y: auto; padding: 16px 16px 4px; }

.sc-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sc-item.is-busy { opacity: 0.55; pointer-events: none; }
.sc-thumb {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.sc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-info { flex: 1; min-width: 0; }
.sc-name {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
    color: #1f2933;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-name:hover { color: var(--gb-accent); }
.sc-qtyrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; flex-wrap: wrap; }
.sc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.sc-qty button {
    width: 24px;
    height: 24px;
    border: 0;
    background: #fff;
    font-size: 15px;
    line-height: 1;
    color: #1f2933;
    cursor: pointer;
}
.sc-qty button:hover { background: #f3f4f6; }
.sc-qty span { min-width: 24px; text-align: center; font-size: 13px; color: #1f2933; }
.sc-rm {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    padding: 0 4px;
}
.sc-rm:hover { color: #dc2626; }
.sc-empty { padding: 70px 10px; text-align: center; color: #9ca3af; }
.sc-empty i { display: block; margin-bottom: 10px; font-size: 40px; color: #d1d5db; }

/* You May Also Like */
.sc-related { padding: 14px 24px 12px; background: #fff; border-top: 1px solid #eee; }
.sc-related[hidden] { display: none; }
.sc-rel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sc-rel-head h4 { margin: 0; font-size: 18px; font-weight: 700; color: #1f2933; }
.sc-rel-nav { display: flex; gap: 8px; }
.sc-rel-nav button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--gb-accent);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.sc-rel-nav button:hover { filter: brightness(0.92); }
.sc-rel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.sc-rel-track::-webkit-scrollbar { display: none; }
.sc-rel-card {
    flex: 0 0 92%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
}
.sc-rel-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}
.sc-rel-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-rel-info { flex: 1; min-width: 0; }
.sc-rel-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2933;
    text-decoration: none;
}
.sc-rel-price { margin: 3px 0 6px; font-size: 13px; color: #6b7280; }
.sc-rel-price del { color: #9ca3af; font-size: 12px; }
.sc-add {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border: 0;
    border-radius: 12px;
    background: var(--gb-accent);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.sc-add:disabled { opacity: 0.6; cursor: wait; }
.sc-add i { font-size: 10px; }

/* Footer */
.sc-foot { padding: 12px 24px 20px; background: #fff; }
.sc-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #1f2933;
}
.sc-total strong { font-size: 20px; font-weight: 700; }
.sc-checkout {
    display: block;
    padding: 13px;
    border-radius: 6px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.sc-checkout:hover { filter: brightness(0.93); color: #fff; }

@media (max-width: 480px) {
    .sc-drawer { width: 100%; }
    .sc-head, .sc-related, .sc-foot { padding-left: 16px; padding-right: 16px; }
}


/* =====================================================================
   Header category menu — subcategory dropdown (Ghorer-Bazar style)
   ===================================================================== */
@media (min-width: 901px) {
    html body .gb-cat-item {
        position: relative;
        display: flex;
        align-items: stretch;
        flex: 0 0 auto;
    }
    html body .gb-cat-item > .header-cat-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }
    html body .gb-cat-chevron {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.9);
        transition: transform 0.2s ease;
    }
    html body .gb-cat-item:hover > .header-cat-link,
    html body .gb-cat-item:focus-within > .header-cat-link {
        color: var(--gb-accent) !important;
        background: transparent !important;
    }
    html body .gb-cat-item:hover .gb-cat-chevron { transform: rotate(180deg); color: var(--gb-accent); }

    /* Dropdown panel */
    html body .gb-cat-dropdown {
        display: none;
        position: fixed;           /* top/left JS set kore */
        min-width: 215px;
        padding: 8px 0;
        background: #fff;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
        z-index: 1300;
    }
    html body .gb-cat-item:hover > .gb-cat-dropdown,
    html body .gb-cat-item:focus-within > .gb-cat-dropdown { display: block; }

    html body .gb-cat-sub { position: relative; }
    html body .gb-cat-sublink {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 20px;
        font-size: 15px;
        color: #4b5563;
        text-decoration: none;
        white-space: nowrap;
    }
    html body .gb-cat-sublink i { font-size: 10px; color: #9ca3af; }
    html body .gb-cat-sub:hover > .gb-cat-sublink {
        background: var(--gb-page-bg);
        color: var(--gb-accent);
    }
    html body .gb-cat-sub:hover > .gb-cat-sublink i { color: var(--gb-accent); }

    /* Child category flyout (ডান পাশে) */
    html body .gb-cat-flyout {
        display: none;
        position: absolute;
        top: -8px;
        left: 100%;
        min-width: 210px;
        padding: 8px 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    }
    html body .gb-cat-sub.has-child:hover > .gb-cat-flyout { display: block; }
    html body .gb-cat-flyout a {
        display: block;
        padding: 9px 20px;
        font-size: 14px;
        color: #4b5563;
        text-decoration: none;
        white-space: nowrap;
    }
    html body .gb-cat-flyout a:hover { background: var(--gb-page-bg); color: var(--gb-accent); }
}