/* Ghorer Bazar premium header — scoped to .header--ghorerbazar / #mobile-header-ghorerbazar */

.header--ghorerbazar,
#mobile-header-ghorerbazar {
    --gb-header-bg: #ffffff;
    --gb-header-border: #eef2f7;
    --gb-search-bg: #f8fafc;
    --gb-search-border: #e2e8f0;
    --gb-search-border-hover: #cbd5e1;
    --gb-accent: #f97316;
    --gb-icon: #0f172a;
    --gb-text: #334155;
    --gb-placeholder: #94a3b8;
    --gb-header-h: 84px;
    --gb-header-h-mobile: 70px;
    --gb-search-w: 520px;
    --gb-nav-gap: 28px;
    font-family: 'Inter', 'Lato', sans-serif;
}

.header--ghorerbazar {
    background: var(--gb-header-bg);
    border-bottom: 1px solid var(--gb-header-border);
}

.header--ghorerbazar .gb-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--gb-header-h);
    min-height: var(--gb-header-h);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header--ghorerbazar .gb-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

.header--ghorerbazar .gb-logo img {
    height: 48px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

.header--ghorerbazar .gb-search {
    position: relative;
    flex: 0 1 var(--gb-search-w);
    width: 100%;
    max-width: var(--gb-search-w);
    margin: 0 auto;
}

.header--ghorerbazar .gb-search-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--gb-search-bg);
    border: 1px solid var(--gb-search-border);
    padding: 0 48px 0 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: var(--gb-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.header--ghorerbazar .gb-search-input::placeholder {
    color: var(--gb-placeholder);
}

.header--ghorerbazar .gb-search-input:hover {
    border-color: var(--gb-search-border-hover);
}

.header--ghorerbazar .gb-search-input:focus {
    border-color: var(--gb-accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.header--ghorerbazar .gb-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--gb-text);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header--ghorerbazar .gb-search-btn:hover,
.header--ghorerbazar .gb-search-btn:focus-visible {
    color: var(--gb-accent);
    outline: none;
}

.header--ghorerbazar .gb-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--gb-search-border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header--ghorerbazar .gb-nav {
    display: flex;
    align-items: center;
    gap: var(--gb-nav-gap);
    flex-shrink: 0;
}

.header--ghorerbazar .gb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: var(--gb-text);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    transition: all 0.2s ease;
}

.header--ghorerbazar .gb-nav-item i {
    font-size: 22px;
    color: var(--gb-icon);
    transition: all 0.2s ease;
}

.header--ghorerbazar .gb-nav-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gb-text);
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.header--ghorerbazar .gb-nav-item:hover,
.header--ghorerbazar .gb-nav-item:focus-visible {
    transform: scale(1.05);
    outline: none;
}

.header--ghorerbazar .gb-nav-item:hover i,
.header--ghorerbazar .gb-nav-item:focus-visible i,
.header--ghorerbazar .gb-nav-item:hover span,
.header--ghorerbazar .gb-nav-item:focus-visible span {
    color: var(--gb-accent);
}

.header--ghorerbazar .gb-nav-item--cart {
    position: relative;
}

.header--ghorerbazar .gb-nav-item--cart .cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.header--ghorerbazar .gb-nav-item--wishlist {
    position: relative;
}

.header--ghorerbazar .gb-nav-item--wishlist .header-wishlist-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

@media (min-width: 1280px) {
    .header--ghorerbazar {
        --gb-search-w: 600px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header--ghorerbazar {
        --gb-search-w: 360px;
        --gb-nav-gap: 20px;
    }

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

/* Mobile header (in DOM only when JS mounts template below 768px) */
#mobile-header-ghorerbazar {
    background: var(--gb-header-bg);
    border-bottom: 1px solid var(--gb-header-border);
    font-family: 'Inter', 'Lato', sans-serif;
}

#mobile-header-ghorerbazar .gb-mobile-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--gb-header-h-mobile);
    min-height: var(--gb-header-h-mobile);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#mobile-header-ghorerbazar .gb-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

#mobile-header-ghorerbazar .gb-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

#mobile-header-ghorerbazar .gb-mobile-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

#mobile-header-ghorerbazar .gb-mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--gb-icon);
    font-size: 22px;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

#mobile-header-ghorerbazar .gb-mobile-icon-btn:hover,
#mobile-header-ghorerbazar .gb-mobile-icon-btn:focus-visible {
    color: var(--gb-accent);
    transform: scale(1.05);
    outline: none;
}

#mobile-header-ghorerbazar .gb-mobile-icon-btn .cart-count,
#mobile-header-ghorerbazar .gb-mobile-icon-btn .header-wishlist-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

body.layout-header-ghorerbazar #desktop-header {
    display: none !important;
}

body:not(.layout-header-ghorerbazar) #ghorerbazar-header-group {
    display: none !important;
}

@media (min-width: 768px) {
    body.layout-header-ghorerbazar #ghorerbazar-header-group:not([hidden]) {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    body.layout-header-ghorerbazar #ghorerbazar-header-group {
        display: none !important;
    }
}

/* Sticky header stack (main header + category bar) */
.gb-header-group {
    background: var(--gb-header-bg, #ffffff);
}

#ghorerbazar-header-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

body.layout-header-ghorerbazar #desktop-category-sidebar {
    display: none !important;
}

/* Category navigation bar */
#ghorerbazar-header-group .category-navbar,
#ghorerbazar-category-nav {
    --gb-brand-orange: #F7941D;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: #062B2B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', 'Lato', sans-serif;
}

@media (min-width: 1025px) {
    #ghorerbazar-header-group .category-navbar,
    #ghorerbazar-category-nav {
        overflow: hidden;
    }
}

#ghorerbazar-header-group .category-menu,
#ghorerbazar-category-nav .category-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 1280px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 24px;
    list-style: none;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1024px) {
    #ghorerbazar-header-group .category-menu,
    #ghorerbazar-category-nav .category-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    #ghorerbazar-header-group .category-menu::-webkit-scrollbar,
    #ghorerbazar-category-nav .category-menu::-webkit-scrollbar {
        display: none;
    }
}

#ghorerbazar-header-group .category-menu li,
#ghorerbazar-category-nav .category-menu li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    height: 100%;
}

#ghorerbazar-header-group .category-menu__item--has-dropdown,
#ghorerbazar-category-nav .category-menu__item--has-dropdown {
    position: relative;
}

#ghorerbazar-header-group .category-menu a.category-menu__link,
#ghorerbazar-category-nav .category-menu a.category-menu__link {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

#ghorerbazar-header-group .category-menu a.category-menu__link::after,
#ghorerbazar-category-nav .category-menu a.category-menu__link::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 2px;
    background: var(--gb-brand-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

#ghorerbazar-header-group .category-menu a.category-menu__link:hover,
#ghorerbazar-header-group .category-menu a.category-menu__link:focus-visible,
#ghorerbazar-category-nav .category-menu a.category-menu__link:hover,
#ghorerbazar-category-nav .category-menu a.category-menu__link:focus-visible {
    color: var(--gb-brand-orange);
    outline: none;
}

#ghorerbazar-header-group .category-menu a.category-menu__link:hover::after,
#ghorerbazar-header-group .category-menu a.category-menu__link:focus-visible::after,
#ghorerbazar-category-nav .category-menu a.category-menu__link:hover::after,
#ghorerbazar-category-nav .category-menu a.category-menu__link:focus-visible::after {
    transform: scaleX(1);
}

#ghorerbazar-header-group .category-menu a.category-menu__link.is-active,
#ghorerbazar-category-nav .category-menu a.category-menu__link.is-active {
    color: var(--gb-brand-orange);
    border-bottom: 2px solid var(--gb-brand-orange);
}

#ghorerbazar-header-group .category-menu a.category-menu__link.is-active::after,
#ghorerbazar-category-nav .category-menu a.category-menu__link.is-active::after {
    display: none;
}

#ghorerbazar-header-group .category-menu__chevron,
#ghorerbazar-category-nav .category-menu__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

#ghorerbazar-header-group .category-menu a.category-menu__link:hover .category-menu__chevron,
#ghorerbazar-header-group .category-menu a.category-menu__link:focus-visible .category-menu__chevron,
#ghorerbazar-header-group .category-menu a.category-menu__link.is-active .category-menu__chevron,
#ghorerbazar-category-nav .category-menu a.category-menu__link:hover .category-menu__chevron,
#ghorerbazar-category-nav .category-menu a.category-menu__link:focus-visible .category-menu__chevron,
#ghorerbazar-category-nav .category-menu a.category-menu__link.is-active .category-menu__chevron {
    color: var(--gb-brand-orange);
}

#ghorerbazar-header-group .category-menu__dropdown,
#ghorerbazar-category-nav .category-menu__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 60;
}

#ghorerbazar-header-group .category-menu__item--has-dropdown:hover .category-menu__dropdown,
#ghorerbazar-header-group .category-menu__item--has-dropdown:focus-within .category-menu__dropdown,
#ghorerbazar-category-nav .category-menu__item--has-dropdown:hover .category-menu__dropdown,
#ghorerbazar-category-nav .category-menu__item--has-dropdown:focus-within .category-menu__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#ghorerbazar-header-group .category-menu__dropdown-link,
#ghorerbazar-category-nav .category-menu__dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

#ghorerbazar-header-group .category-menu__dropdown-link:hover,
#ghorerbazar-header-group .category-menu__dropdown-link:focus-visible,
#ghorerbazar-category-nav .category-menu__dropdown-link:hover,
#ghorerbazar-category-nav .category-menu__dropdown-link:focus-visible {
    color: var(--gb-brand-orange);
    background: #f8fafc;
    outline: none;
}

/* Ghorer Bazar homepage — Featured Categories title + Top Selling section */
#gb-featured-categories-title-desktop,
#gb-featured-categories-title-mobile,
.gb-featured-categories-title {
    font-family: 'Inter', 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    margin: 10px 0 8px;
    line-height: 1.25;
}

body.layout-header-ghorerbazar #pc-category-section {
    margin-top: 4px;
}

body.layout-header-ghorerbazar #mobile-category-section {
    margin-top: 4px;
    margin-bottom: 0;
}

body.layout-header-ghorerbazar .gb-featured-categories .category-swiper,
body.layout-header-ghorerbazar .gb-featured-categories .mobile-cat-swiper {
    padding-top: 0;
    padding-bottom: 8px;
}

.gb-featured-categories {
    position: relative;
    width: 100%;
}

.gb-featured-categories .category-swiper,
.gb-featured-categories .mobile-cat-swiper {
    padding: 0 48px;
    box-sizing: border-box;
}

.gb-featured-categories__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #F7941D;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gb-featured-categories__nav:hover,
.gb-featured-categories__nav:focus-visible {
    background: #e08519;
    outline: none;
}

.gb-featured-categories__nav--prev {
    left: 0;
}

.gb-featured-categories__nav--next {
    right: 0;
}

.gb-featured-categories__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Hide nav until Swiper initializes (prevents misplaced arrows during FOUC) */
.gb-featured-categories:not(:has(.swiper-initialized)) .gb-featured-categories__nav {
    visibility: hidden;
    pointer-events: none;
}

/* Ghorer Bazar PC Featured Categories — reference card layout */
body.layout-header-ghorerbazar .gb-featured-categories .gb-featured-category-slide {
    width: var(--cat-size-pc, 170px) !important;
    height: auto !important;
    display: flex;
    align-items: flex-start;
}

body.layout-header-ghorerbazar .gb-featured-categories .category-swiper .swiper-slide {
    height: auto !important;
    align-items: flex-start;
}

.gb-featured-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gb-featured-category-card:hover {
    transform: translateY(-2px);
}

.gb-featured-category-card__img {
    aspect-ratio: 1;
    width: 100%;
    max-width: var(--cat-size-pc, 170px);
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--cat-radius-pc, 12px);
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gb-featured-category-card__photo {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
}

.gb-featured-category-card__label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav centered on icon box row (not full slide incl. label) */
body.layout-header-ghorerbazar .gb-featured-categories__nav {
    top: calc((100% - 30px) / 2);
    transform: translateY(-50%);
}

/* Cap GB featured category slides to admin sizeDesktop (--cat-size-pc) */
body.layout-header-ghorerbazar #pc-category-section .gb-featured-categories .swiper-slide {
    width: var(--cat-size-pc, 170px) !important;
}

#ghorerbazar-top-selling-desktop,
#ghorerbazar-top-selling-mobile,
.gb-top-selling {
    --gb-brand-orange: #E8751A;
    --gb-text-dark: #333333;
    max-width: 1280px;
    margin: 8px auto 24px;
    padding: 16px 16px 24px;
    box-sizing: border-box;
    font-family: 'Inter', 'Lato', sans-serif;
    background: #F7F7F7;
    border-radius: 0;
}

#ghorerbazar-top-selling-desktop .gb-top-selling__title,
#ghorerbazar-top-selling-mobile .gb-top-selling__title,
.gb-top-selling__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gb-text-dark);
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.2;
}

#ghorerbazar-top-selling-desktop .gb-top-selling__grid,
#ghorerbazar-top-selling-mobile .gb-top-selling__grid,
.gb-top-selling__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large,
#ghorerbazar-top-selling-mobile .gb-product-card-large,
.gb-product-card-large {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding: 16px 20px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(12px);
    overflow: hidden;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large.is-revealed,
#ghorerbazar-top-selling-mobile .gb-product-card-large.is-revealed,
.gb-product-card-large.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

#ghorerbazar-top-selling-desktop .gb-product-card-large:hover,
#ghorerbazar-top-selling-mobile .gb-product-card-large:hover,
.gb-product-card-large:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#ghorerbazar-top-selling-desktop .gb-product-card-large.is-revealed:hover,
#ghorerbazar-top-selling-mobile .gb-product-card-large.is-revealed:hover,
.gb-product-card-large.is-revealed:hover {
    transform: translateY(0);
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__media,
#ghorerbazar-top-selling-mobile .gb-product-card-large__media,
.gb-product-card-large__media {
    flex-shrink: 0;
    width: 42%;
    max-width: 160px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__media img,
#ghorerbazar-top-selling-mobile .gb-product-card-large__media img,
.gb-product-card-large__media img {
    width: 100%;
    max-width: 160px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__body,
#ghorerbazar-top-selling-mobile .gb-product-card-large__body,
.gb-product-card-large__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: left;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__name,
#ghorerbazar-top-selling-mobile .gb-product-card-large__name,
.gb-product-card-large__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--gb-text-dark);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__name:hover,
#ghorerbazar-top-selling-mobile .gb-product-card-large__name:hover,
.gb-product-card-large__name:hover {
    color: var(--gb-brand-orange);
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__prices,
#ghorerbazar-top-selling-mobile .gb-product-card-large__prices,
.gb-product-card-large__prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__price,
#ghorerbazar-top-selling-mobile .gb-product-card-large__price,
.gb-product-card-large__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gb-brand-orange);
    line-height: 1;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__old-price,
#ghorerbazar-top-selling-mobile .gb-product-card-large__old-price,
.gb-product-card-large__old-price {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: line-through;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__save,
#ghorerbazar-top-selling-mobile .gb-product-card-large__save,
.gb-product-card-large__save {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2E7D32;
    background: #E8F5E9;
    padding: 3px 10px;
    border-radius: 999px;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__badge,
#ghorerbazar-top-selling-mobile .gb-product-card-large__badge,
.gb-product-card-large__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 8px;
    background: #E53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0 12px 0 8px;
    box-shadow: 0 1px 4px rgba(229, 57, 53, 0.3);
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__badge i,
#ghorerbazar-top-selling-mobile .gb-product-card-large__badge i,
.gb-product-card-large__badge i {
    font-size: 10px;
}

#ghorerbazar-top-selling-desktop .gb-product-card-large__actions,
#ghorerbazar-top-selling-mobile .gb-product-card-large__actions,
.gb-product-card-large__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

#ghorerbazar-top-selling-desktop .gb-card-add-btn,
#ghorerbazar-top-selling-mobile .gb-card-add-btn,
.gb-card-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    height: var(--gb-card-add-btn-height, 38px);
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--btn-primary-bg, var(--gb-brand-orange, #E8751A));
    background: #ffffff;
    color: var(--btn-primary-bg, var(--gb-brand-orange, #E8751A));
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#ghorerbazar-top-selling-desktop .gb-card-add-btn:hover,
#ghorerbazar-top-selling-mobile .gb-card-add-btn:hover,
#ghorerbazar-top-selling-desktop .gb-card-add-btn:focus-visible,
#ghorerbazar-top-selling-mobile .gb-card-add-btn:focus-visible,
.gb-card-add-btn:hover,
.gb-card-add-btn:focus-visible {
    background: var(--btn-primary-bg, var(--gb-brand-orange, #E8751A));
    color: var(--btn-primary-text, #ffffff);
    outline: none;
}

/* Site-wide ghorerbazarCard — admin Colors → Primary Btn BG/Text */
.product-card--gb-card .gb-card-add-btn.card-order-btn {
    width: 100%;
    margin-top: 0;
    flex: none;
    height: var(--gb-card-add-btn-height, 38px);
    background: #ffffff !important;
    color: var(--btn-primary-bg, var(--gb-brand-orange, #E8751A)) !important;
    border: 1.5px solid var(--btn-primary-bg, var(--gb-brand-orange, #E8751A));
    text-transform: none;
    box-shadow: none;
    transform: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    line-height: 1.2;
}

.product-card--gb-card .gb-card-add-btn.card-order-btn i {
    flex-shrink: 0;
}

.product-card--gb-card .gb-card-add-btn.card-order-btn:hover,
.product-card--gb-card .gb-card-add-btn.card-order-btn:focus-visible {
    background: var(--btn-primary-bg, var(--gb-brand-orange, #E8751A)) !important;
    color: var(--btn-primary-text, #ffffff) !important;
}

#ghorerbazar-top-selling-desktop .gb-card-buy-btn,
#ghorerbazar-top-selling-mobile .gb-card-buy-btn,
.gb-card-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    background: var(--gb-brand-orange);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#ghorerbazar-top-selling-desktop .gb-card-buy-btn:hover,
#ghorerbazar-top-selling-mobile .gb-card-buy-btn:hover,
#ghorerbazar-top-selling-desktop .gb-card-buy-btn:focus-visible,
#ghorerbazar-top-selling-mobile .gb-card-buy-btn:focus-visible,
.gb-card-buy-btn:hover,
.gb-card-buy-btn:focus-visible {
    background: #d66a15;
    outline: none;
}

@media (max-width: 1024px) {
    #ghorerbazar-top-selling-desktop .gb-top-selling__grid,
    #ghorerbazar-top-selling-mobile .gb-top-selling__grid,
    .gb-top-selling__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #gb-featured-categories-title-desktop,
    #gb-featured-categories-title-mobile,
    .gb-featured-categories-title {
        font-size: 20px;
        margin: 8px 0 6px;
    }

    .gb-featured-categories .category-swiper,
    .gb-featured-categories .mobile-cat-swiper {
        padding: 0 40px;
    }

    .gb-featured-categories__nav {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    /* Desktop shell is hidden on mobile; keep compact horizontal fallback if shown */
    #ghorerbazar-top-selling-desktop.gb-top-selling {
        padding: 16px 12px 20px;
        margin: 8px auto 24px;
    }

    #ghorerbazar-top-selling-desktop .gb-top-selling__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    #ghorerbazar-top-selling-desktop .gb-top-selling__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large {
        flex-direction: row;
        padding: 12px 14px;
        gap: 12px;
        text-align: left;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__media {
        width: 38%;
        max-width: 120px;
        min-height: 100px;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__media img {
        max-width: 120px;
        max-height: 120px;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__body {
        align-items: flex-start;
        width: auto;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__prices {
        justify-content: flex-start;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__actions {
        flex-direction: row;
        width: 100%;
    }

    #ghorerbazar-top-selling-desktop .gb-card-add-btn,
    #ghorerbazar-top-selling-desktop .gb-card-buy-btn {
        flex: 1;
        width: auto;
        font-size: 12px;
        height: 36px;
        padding: 0 8px;
    }

    #ghorerbazar-top-selling-desktop .gb-card-add-btn {
        height: var(--gb-card-add-btn-height, 38px);
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__name {
        font-size: 15px;
    }

    #ghorerbazar-top-selling-desktop .gb-product-card-large__price {
        font-size: 20px;
    }

    /* Mobile Top Selling — 2×2 vertical cards (reference layout) */
    #ghorerbazar-top-selling-mobile.gb-top-selling {
        padding: 12px 0 16px;
        margin: 8px -4px 20px;
    }

    #ghorerbazar-top-selling-mobile .gb-top-selling__title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    #ghorerbazar-top-selling-mobile .gb-top-selling__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
        text-align: left;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__media {
        width: 100%;
        max-width: none;
        min-height: 110px;
        background: #f3f4f6;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__media img {
        max-width: 100%;
        max-height: 110px;
        margin: 0 auto;
        object-fit: contain;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__body {
        align-items: stretch;
        gap: 6px;
        flex: 1;
        width: auto;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__name {
        font-size: 13px;
        line-height: 1.3;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__prices {
        justify-content: flex-start;
        gap: 6px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__price {
        font-size: 17px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__old-price {
        font-size: 11px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__save {
        font-size: 10px;
        padding: 2px 8px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__badge {
        font-size: 10px;
        padding: 3px 8px 3px 6px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
        margin-top: 2px;
    }

    #ghorerbazar-top-selling-mobile .gb-card-add-btn,
    #ghorerbazar-top-selling-mobile .gb-card-buy-btn {
        flex: none;
        width: 100%;
        font-size: 12px;
        min-height: 44px;
        height: auto;
        padding: 8px 10px;
    }

    #ghorerbazar-top-selling-mobile .gb-card-add-btn {
        min-height: var(--gb-card-add-btn-height, 44px);
    }

    #ghorerbazar-top-selling-mobile.gb-top-selling--mobile-btns-2 .gb-card-add-btn,
    #ghorerbazar-top-selling-mobile.gb-top-selling--mobile-btns-2 .gb-card-buy-btn {
        min-height: 40px;
    }

    #ghorerbazar-top-selling-mobile.gb-top-selling--mobile-btns-2 .gb-card-add-btn {
        min-height: var(--gb-card-add-btn-height, 40px);
    }

    .category-row-swiper .swiper-slide .gb-card-add-btn,
    .category-row__mobile-grid .product-card--gb-card .gb-card-add-btn,
    .products-grid .product-card--gb-card .gb-card-add-btn {
        width: 100%;
        font-size: 12px;
        min-height: var(--gb-card-add-btn-height, 44px);
        height: auto;
        padding: 8px 10px;
        gap: 6px;
    }
}

@media (max-width: 399px) {
    #ghorerbazar-top-selling-desktop .gb-product-card-large__actions {
        flex-direction: column;
    }

    #ghorerbazar-top-selling-desktop .gb-card-add-btn,
    #ghorerbazar-top-selling-desktop .gb-card-buy-btn {
        width: 100%;
    }

    #ghorerbazar-top-selling-mobile .gb-top-selling__title {
        font-size: 20px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__name {
        font-size: 12px;
    }

    #ghorerbazar-top-selling-mobile .gb-product-card-large__price {
        font-size: 16px;
    }

    #ghorerbazar-top-selling-mobile .gb-card-add-btn,
    #ghorerbazar-top-selling-mobile .gb-card-buy-btn {
        font-size: 11px;
        padding: 8px 6px;
    }

    .category-row-swiper .swiper-slide .gb-card-add-btn,
    .category-row__mobile-grid .product-card--gb-card .gb-card-add-btn,
    .products-grid .product-card--gb-card .gb-card-add-btn {
        font-size: 11px;
        padding: 8px 6px;
    }
}
