main {
    background-color: var(--gb-page-bg, #FBF9F5);
}

.tp-product-card {
    background: var(--white-color);
}

.header.style-7 {
    position: relative;
    z-index: 15100;
}

.header.style-7 .header-middle {
    position: relative;
    z-index: 15200;
    overflow: visible;
}

.header.style-7 .sticky-content-wrapper {
    position: relative;
    z-index: 15100;
    overflow: visible;
}

.header.style-7 .header-bottom {
    padding: 0;
    background: var(--section-secondary, var(--secondary-color));
    position: relative;
    z-index: 15100;
    overflow: visible;
}

.header.style-7 .header-bottom.sticky-content.fixed {
    z-index: 15100 !important;
}

.header.style-7 .header-bottom .inner-wrap,
.header.style-7 .sticky-content-wrapper,
.header.style-7 .sticky-header {
    overflow: visible;
}

.header.style-7 .header-bottom .menu > li > a:not(.menu-title) {
    color: rgba(255, 255, 255, 0.92) !important;
}

.header.style-7 .menu > li.active > a:not(.menu-title),
.header.style-7 .menu > li:hover > a:not(.menu-title) {
    color: var(--section-primary, var(--primary-color)) !important;
}

.header.style-7 .header-bottom .menu li > .submenu,
.header.style-7 .header-bottom .menu li .megamenu {
    z-index: 15110 !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (min-width: 992px) {
    .header.style-7 .header-middle,
    .header.style-7 .header-middle .container,
    .header.style-7 .header-right,
    .header.style-7 .sticky-content-wrapper,
    .header.style-7 .header-bottom,
    .header.style-7 .header-bottom .container,
    .header.style-7 .header-bottom .inner-wrap {
        overflow: visible !important;
    }

    .header.style-7 .header-bottom .main-nav {
        overflow: visible !important;
    }

    .header.style-7 .header-bottom .menu li > .submenu,
    .header.style-7 .header-bottom .menu li .megamenu {
        top: 100% !important;
        left: 0 !important;
        transform: none !important;
        margin-top: 0 !important;
        min-width: 220px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    }

    .header.style-7 .header-bottom .menu li:hover > .submenu,
    .header.style-7 .header-bottom .menu li.show > .submenu {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.header.style-7 .header-bottom .main-nav {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.brand-section.style-3 .swiper-slide.brand-card img {
    max-width: 124px;
    height: 88px;
    object-fit: contain;
}

.brand-section.style-3 .swiper-slide.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #eee;
    background: var(--white-color);
    border-radius: 8px;
    padding: 8px;
    height: auto;
}

.brand-section.style-3 .swiper-slide.brand-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-slider-3 .swiper-pagination {
    position: relative;
    margin-top: 12px;
}

.brand-slider-3 .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.brand-section-compact {
    padding: 8px 0 !important;
}

.brand-section-compact .section-head {
    margin-bottom: 8px;
}

.brand-section-compact .section-head .title {
    font-size: 1rem;
}

.brand-section-compact .brands-wrapper {
    padding: 8px 0;
}

.footer.style-3 {
    background-color: var(--white-color);
}

.footer.style-3 .footer-newsletter input {
    background: #FBF9F5;
}

.footer.style-3 .footer-social li a {
    background: #FBF9F5;
}

.combo-saving {
    background: var(--success-color);
    color: var(--white-color);
}

.logo img {
    max-width: 170px;
    max-height: 48px;
}

.section-padding {
    padding: 16px 0;
}

.section-head {
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

.testimonial-style-1 .testimonial-card {
    background: var(--white-color);
}

.product.style-6 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 100%;
}

/* Compact product cards — home sliders + grids */
.product.style-6 .product-media {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 0;
}

.product.style-6 .product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product.style-6 .product-details {
    padding-top: 8px;
}

.product.style-6 .product-name {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product.style-6 .product-card-action {
    margin-top: 8px;
}

/* Just for you + row grids — mobile 2 | tablet 3 | desktop 4 */
.recommended_product_section.row > .product-wrap,
.product-grid-responsive.row > .product-wrap,
.product-grid-responsive.row > .product-item,
.product-grid-responsive.row > * {
    margin-bottom: 12px;
}

.recommended_product_section.row.cols-2 > .product-wrap,
.product-grid-responsive.row.cols-2 > .product-wrap,
.product-grid-responsive.row.cols-2 > .product-item,
.product-grid-responsive.row.cols-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
}

@media (min-width: 768px) {
    .recommended_product_section.row.cols-md-3 > .product-wrap,
    .product-grid-responsive.row.cols-md-3 > .product-wrap,
    .product-grid-responsive.row.cols-md-3 > .product-item,
    .product-grid-responsive.row.cols-md-3 > * {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        width: 33.3333%;
    }
}

@media (min-width: 992px) {
    .recommended_product_section.row.cols-lg-4 > .product-wrap,
    .product-grid-responsive.row.cols-lg-4 > .product-wrap,
    .product-grid-responsive.row.cols-lg-4 > .product-item,
    .product-grid-responsive.row.cols-lg-4 > * {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
    }
}

/* Unified product list grid — all home sections + shop */
.gb-product-grid,
.product-wrapper.category-product-all,
.tp-product-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .gb-product-grid,
    .product-wrapper.category-product-all,
    .tp-product-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .gb-product-grid,
    .product-wrapper.category-product-all,
    .tp-product-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}

.gb-product-grid__item,
.gb-product-grid > .product-wrap,
.product-wrapper.category-product-all > .product-wrap,
.tp-product-wrapper > .tp-product-card,
.tp-product-wrapper > .gb-product-grid__item {
    min-width: 0;
}

.gb-home-product-section .section-head {
    margin-bottom: 16px;
}

.combo-section-inner .gb-product-grid {
    margin-top: 0;
}

/* Product sliders + combo — mobile 2 | tablet 3 | desktop 4 */
.product-slider.style-4 .swiper.product-deals-wrapper,
.combo-slider-wrapper.swiper {
    overflow: hidden;
}

.product-slider.style-4 .swiper-wrapper,
.combo-slider-wrapper .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.product-slider.style-4 .swiper-slide.product-wrap,
.combo-slider-wrapper .swiper-slide {
    flex-shrink: 0;
    margin-bottom: 0;
    height: auto;
}

.tp-product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

.tp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header.style-7 .h-flash-btn {
    display: none;
}

.sticky-footer.style-1 {
    padding: 1rem 4rem;
}

@media (max-width: 479px) {
    .sticky-footer.style-1 {
        padding: 0.9rem 1rem;
    }

    .logo img {
        max-height: 32px;
    }

    .category.style-3 .category-img img,
    .category.style-3 .category-img {
        width: 100px !important;
        height: 100px !important;
    }
}

@media only screen and (max-width: 767px) {
    .header.style-7 .header-middle {
        padding: 10px 0;
    }

    .category-section-head {
        margin-bottom: 16px;
        text-align: center;
    }

    .category-section-head h3 {
        font-size: 18px;
        margin-bottom: 0;
    }
}

.combo-section-inner {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color) 12%, white),
        color-mix(in srgb, var(--primary-color) 4%, white)
    );
    padding: 40px;
    border-radius: 16px;
}

@media screen and (max-width: 767px) {
    .combo-section-inner {
        padding: 16px;
    }
}

.cart-dropdown.cart-offcanvas .dropdown-box {
    z-index: 101010101;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.cart-dropdown.cart-offcanvas.opened .dropdown-box {
    transform: translateX(0) !important;
}

.mobile-menu-wrapper .mobile-menu-container {
    transition: transform 0.15s ease !important;
}

.mobile-menu-wrapper .mobile-menu-overlay {
    transition: opacity 0.12s ease !important;
}

/* Product card qty + remove */
.gb-product-grid .product[class*="card-"] .quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gb-product-grid .product[class*="card-"] .gb-card-remove-btn {
    border: none;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1;
    border-radius: 6px;
}

.gb-product-grid .product[class*="card-"] .gb-card-remove-btn:hover {
    background: #fee2e2;
}

.noUi-connect { background: var(--primary-color); height: 6px; }
.noUi-target { border-radius: 4px; border: 1px solid #ddd; box-shadow: none; background: #eee; height: 6px; }
.noUi-handle { border-radius: 50%; width: 20px !important; height: 20px !important; top: -8px !important; box-shadow: 0 2px 6px rgba(0,0,0,.2); border: 2px solid #007cba; background: #fff; cursor: grab; }
.noUi-handle:after, .noUi-handle:before { display: none; }
.noUi-horizontal { height: 6px; }

#scroll-top.show {
    bottom: 85px;
}

.hidden {
    display: none !important;
}

/* Live search dropdown */
.search-form-main { position: relative; }
.live_search_box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
    max-height: 360px;
    overflow-y: auto;
}
.live_search_box li { margin: 0; }
.live-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    text-decoration: none;
    color: inherit;
}
.live-search-item:hover { background: #f9fafb; }
.live-search-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.live-search-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-search-text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-search-text small { color: var(--primary-color); font-weight: 700; }

.mobile-header-search { padding: 0 0 10px; }

/* More menu */
.header-menu-btn { position: relative; z-index: 15210; }
.header.style-7 .header-middle { overflow: visible; }
.header.style-7 .header-middle .container { overflow: visible; }
.header.style-7 .header-right { position: relative; z-index: 15210; overflow: visible; }
.header-menu-btn:hover .submenu,
.header-menu-btn:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.header-menu-btn .submenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-height: none;
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 15220;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s ease;
    pointer-events: none;
}
.header-menu-btn .submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.header-menu-btn .submenu li a img { width: 18px; height: 18px; object-fit: contain; }
.header-menu-btn .submenu li a:hover { background: #f3f4f6; color: var(--primary-color); }

/* Shop collection filters mobile */
@media (max-width: 991px) {
    .shop-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 290px;
        z-index: 9999;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .shop-sidebar.sidebar-open { transform: translateX(0); }
    .shop-sidebar .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }
    .shop-sidebar.sidebar-open .sidebar-overlay { display: block; }
    .product-item.product-col { margin-bottom: 12px; }
    .toolbox.sticky-toolbox { flex-wrap: wrap; gap: 8px; }
}

@media (min-width: 992px) {
    .header.style-7 .h-flash-btn { display: inline-flex; }

    .tp-product-card {
        flex-direction: column;
        align-items: stretch;
        height: 100%;
    }

    .tp-product-img {
        width: 100%;
        min-width: 0;
    }

    .tp-product-content {
        padding: 12px;
    }

    .tp-product-title {
        font-size: 16px;
    }

    .tp-product-action {
        margin-top: 16px;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tp-product-title {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .fixed-add-to-cart { bottom: 72px; }
    .header.style-7 .header-right .header-action-label { display: none !important; }
    .checkout-inner .row { flex-direction: column-reverse; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .meta-mode-cards { grid-template-columns: 1fr; }

    .tp-product-card {
        flex-direction: column;
    }

    .tp-product-content {
        padding: 8px;
    }

    .tp-product-title {
        font-size: 12px;
    }

    .tp-product-action {
        margin-top: 8px;
    }

    .product.style-6 {
        padding: 6px;
    }

    .product.style-6 .product-name {
        font-size: 12px;
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 479px) {
    .admin-stat-grid { grid-template-columns: 1fr; }
    .product-wrapper.category-product-all .row.cols-2 > * { flex: 0 0 50%; max-width: 50%; }
}

/* CMS preview bar */
.cms-preview-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #f48721;
    color: #041f1e;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

/* Header variants */
.header.style-1 .header-middle .container {
    justify-content: center;
}

.header.style-1 .header-left {
    position: absolute;
    left: 15px;
}

.header.style-5 {
    background: var(--section-secondary, var(--secondary-color));
}

.header.style-5 .header-middle,
.header.style-5 .header-bottom {
    background: var(--section-secondary, var(--secondary-color));
}

.header.style-5 .menu > li > a {
    color: #fff;
}

/* Footer variants */
.footer.style-1 .footer-top .row {
    justify-content: center;
    text-align: center;
}

.footer.style-1 .footer-widget {
    margin-bottom: 20px;
}

.footer.style-2 .footer-top .row {
    justify-content: center;
    text-align: center;
}

.footer.style-2 .footer-widget-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.footer.style-2 .footer-widget-list li {
    display: inline;
}

/* Product card compact */
.gb-product-card-compact .product.style-6 .product-media img {
    max-height: 140px;
    object-fit: contain;
}

.gb-product-grid--compact {
    gap: 10px;
}

/* Testimonial variants */
.gb-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .gb-testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-style-2 .testimonial-card {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
}

.gb-testimonial-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.testimonial-style-cards .testimonial-card {
    background: #f9fafb;
    border-left: 4px solid var(--primary-color, #f48721);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
}

/* Button square variant */
.gb-btn-square {
    border-radius: 4px !important;
}

/* Category grid style 2 on home */
.gb-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .gb-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .gb-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.hero.style-7 .intro-slide-wrapper.col-lg-12 .intro-slide img {
    width: 100%;
}

/* Shop / collection page — live site layout */
.shop-collection-page .shop-breadcrumb {
    margin-top: 8px;
}

.shop-collection-page .shop-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.shop-collection-page .page-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--title-color);
}

.shop-collection-page .shop-price-widget {
    padding: 10px 6px 16px;
}

.shop-collection-page .shop-price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.shop-collection-page .shop-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-collection-page .shop-filter-list li {
    position: relative;
    list-style: none;
}

.shop-collection-page .filter-item-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    padding: 6px 0;
    margin: 0;
}

.shop-collection-page .toolbox-right .form-control {
    min-width: 170px;
    font-size: 13px;
    height: 40px;
}

.shop-collection-page .product-wrapper.category-product-all {
    margin-top: 16px;
}

.shop-collection-page .product-wrapper.category-product-all .product-item {
    min-width: 0;
}

/* Collection sidebar — live shop layout */
.shop-collection-page .shop-sidebar .sidebar-content {
    padding: 12px 16px 24px;
}

.shop-collection-page .shop-sidebar.sticky-sidebar-wrapper {
    align-self: flex-start;
}

@media (min-width: 992px) {
    .shop-collection-page .shop-sidebar.sticky-sidebar-wrapper {
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 100px);
    }

    .shop-collection-page .shop-sidebar.sidebar-fixed .sidebar-content.scrollable {
        max-height: calc(100vh - 100px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 991px) {
    .shop-collection-page .shop-sidebar .sidebar-content.scrollable {
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-top: 48px;
    }
}

.shop-collection-page .shop-sidebar .sidebar-content.scrollable::-webkit-scrollbar {
    width: 6px;
}

.shop-collection-page .shop-sidebar .sidebar-content.scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 999px;
}

.shop-collection-page .shop-sidebar .sidebar-content.scrollable:hover::-webkit-scrollbar-thumb {
    background: #aaa;
}

.shop-collection-page .shop-sidebar .widget {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    padding-bottom: 4px;
}

.shop-collection-page .shop-sidebar .widget-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
    padding: 12px 0 10px;
}

.shop-collection-page .shop-sidebar .widget-title label {
    margin: 0;
    cursor: default;
}

.shop-collection-page .shop-reset-filters .shop-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 12px;
}

.shop-collection-page .shop-reset-filters .shop-reset-btn.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

.shop-collection-page .shop-reset-filters .shop-reset-btn:not(.btn-outline) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.shop-collection-page .shop-filter-list .filter-item-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.shop-collection-page .shop-filter-list .filter-item-label {
    position: static !important;
    right: auto !important;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    text-align: left;
}

.shop-collection-page .shop-filter-list .filter-item-row:hover .filter-item-label {
    color: var(--primary-color);
}

.shop-collection-page .toolbox.sticky-toolbox {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.shop-collection-page .toolbox .w-icon-category,
.shop-collection-page .toolbox .w-icon-grid,
.shop-collection-page .toolbox .fas {
    font-size: 16px;
    margin-right: 6px;
}

.shop-collection-page .toolbox-layout .btn-layout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
}

.shop-collection-page .toolbox-layout .btn-layout.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, white);
}

@media (max-width: 767px) {
    .brand-section.style-3 .swiper-slide.brand-card img {
        max-width: 100px;
        height: 80px;
    }
}

/* Price range slider — collection sidebar */
.shop-collection-page .shop-price-widget {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 12px 18px !important;
}

.shop-collection-page .price-range-slider {
    height: 6px;
    margin: 8px 8px 4px !important;
}

.shop-collection-page .noUi-target {
    border: none !important;
    background: #e8e8e8 !important;
    box-shadow: none !important;
    height: 6px !important;
    border-radius: 999px !important;
}

.shop-collection-page .noUi-connect {
    background: var(--primary-color) !important;
}

.shop-collection-page .noUi-handle {
    width: 20px !important;
    height: 20px !important;
    top: -7px !important;
    right: -10px !important;
    border: 2px solid #fff !important;
    background: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    border-radius: 50% !important;
    cursor: grab;
}

.shop-collection-page .noUi-handle:before,
.shop-collection-page .noUi-handle:after {
    display: none !important;
}

/* Category / subcategory filter tree */
.shop-collection-page .shop-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.shop-category-tree {
    padding: 4px 0 10px;
}

.shop-cat-group {
    margin-bottom: 4px;
}

.shop-cat-group:not(.is-open) .shop-cat-children {
    display: none;
}

.shop-cat-parent {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    color: #333;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.shop-cat-parent.shop-cat-all {
    margin-bottom: 6px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.shop-cat-parent:hover,
.shop-cat-parent.active {
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    color: var(--primary-color);
}

.shop-cat-parent.shop-cat-all.active {
    border-color: color-mix(in srgb, var(--primary-color) 35%, white);
    background: color-mix(in srgb, var(--primary-color) 12%, white);
}

.shop-cat-children {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0 0 0 14px;
    border-left: 2px solid #f0f0f0;
}

.shop-cat-children li a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
}

.shop-cat-children li a:hover,
.shop-cat-children li a.active {
    color: var(--primary-color);
    background: #fff8f2;
    font-weight: 600;
}

/* Product details page */
.product-single .product-qty-form {
    flex-wrap: wrap;
    gap: 12px !important;
}

.product-single .product-qty-form .input-group {
    position: relative;
    min-width: 130px;
}

.product-single .quantity__value_details {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e5e5;
    background: #f7f7f7 !important;
    z-index: 2;
}

.product-single .quantity__value_details i {
    font-size: 12px;
    pointer-events: none;
}

.product-single .pd-action-order-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.product-single .pd-action-order-btns .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.product-details-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.product-details-action-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    padding: 10px 12px;
}

/* Cart sidebar */
.cart-dropdown .sidebar-cart-header.cart-header {
    border-bottom: 1px solid #eee;
}

.cart-dropdown .sidebar-cart-header .btn-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-dropdown .sb-product-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
}

.cart-dropdown .quantity__box .quantity__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font-weight: 600;
}

/* Checkout */
.checkout-payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.phone-group {
    position: relative;
}

.phone-group .shipPhoneCode {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    z-index: 2;
}

@media (max-width: 991px) {
    .shop-collection-page .shop-sidebar {
        border-radius: 0;
        border: none;
    }

    .product-single .pd-action-order-btns,
    .product-details-action-group {
        grid-template-columns: 1fr;
    }

    .fixed-add-to-cart {
        bottom: 72px;
    }
}

@media (max-width: 575px) {
    .shop-collection-page .toolbox-right .form-control {
        min-width: 140px;
        font-size: 12px;
    }

    .product-single .product-qty-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Login pages (shop + admin) ── */
.gb-auth-page {
    padding: 48px 16px 64px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent 55%),
        radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--secondary-color) 8%, transparent), transparent 50%),
        #fbf9f5;
}

.gb-auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 12px 40px rgba(4, 31, 30, 0.08);
    padding: 32px 28px;
}

.gb-auth-card-head {
    text-align: center;
    margin-bottom: 28px;
}

.gb-auth-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.gb-auth-logo img {
    max-height: 52px;
    max-width: 200px;
    object-fit: contain;
}

.gb-auth-card-head h1,
.gb-admin-auth-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.gb-auth-card-head p,
.gb-admin-auth-card-head p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.gb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gb-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.gb-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gb-auth-input-wrap i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.gb-auth-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.gb-auth-input-wrap input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.gb-auth-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

.gb-auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    user-select: none;
}

.gb-auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.gb-auth-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.gb-auth-submit:hover:not(:disabled) {
    background: color-mix(in srgb, var(--primary-color) 88%, #000);
    transform: translateY(-1px);
}

.gb-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gb-auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.gb-auth-footer p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #6b7280;
}

.gb-auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.gb-auth-footer a:hover {
    text-decoration: underline;
}

.gb-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color) !important;
    text-decoration: none !important;
}

.gb-auth-back:hover {
    color: var(--primary-color) !important;
}

/* Admin login — split layout */
.gb-admin-auth {
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    background: var(--secondary-color);
}

.gb-admin-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gb-admin-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background:
        linear-gradient(145deg, var(--secondary-color) 0%, #0a3533 50%, #041f1e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gb-admin-auth-brand::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.gb-admin-auth-brand-inner {
    position: relative;
    max-width: 380px;
}

.gb-admin-auth-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
    color: #ffd4a8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.gb-admin-auth-brand h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
}

.gb-admin-auth-brand p {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.gb-admin-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gb-admin-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.gb-admin-auth-features i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 14px;
}

.gb-admin-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f5f6f8;
}

.gb-admin-auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.gb-admin-auth-card-head {
    margin-bottom: 28px;
}

.gb-admin-auth-footer {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 991px) {
    .gb-admin-auth-shell {
        grid-template-columns: 1fr;
    }

    .gb-admin-auth-brand {
        padding: 32px 24px;
        min-height: auto;
    }

    .gb-admin-auth-brand-inner {
        max-width: 100%;
        text-align: center;
    }

    .gb-admin-auth-features {
        align-items: center;
    }

    .gb-admin-auth-main {
        padding: 32px 16px 48px;
    }

    .gb-auth-page {
        padding: 32px 12px 80px;
        min-height: auto;
    }

    .gb-auth-card {
        padding: 24px 20px;
    }
}

/* ══════════════════════════════════════════
   Site-wide overflow control
   ══════════════════════════════════════════ */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body.admin-shell {
    overflow-x: hidden;
    overflow-y: auto;
}

body.cms-studio-page {
    overflow: hidden;
}

#app {
    overflow-x: clip;
    max-width: 100%;
}

body.admin-shell #app {
    width: 100%;
    max-width: 100%;
}

.page-wrapper {
    overflow-x: clip;
    max-width: 100%;
}

.page-wrapper > .header {
    overflow: visible !important;
}

.main {
    overflow-x: hidden;
}

.admin-theme,
.admin-shell,
.admin-main,
.admin-content {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    width: 95%;
    max-width: 95%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile menu open/close */
.mobile-menu-wrapper.gb-menu-open,
body.mmenu-active .mobile-menu-wrapper {
    visibility: visible !important;
}

.mobile-menu-wrapper.gb-menu-open .mobile-menu-container,
body.mmenu-active .mobile-menu-container {
    transform: translateX(0) !important;
}

.mobile-menu-wrapper.gb-menu-open .mobile-menu-overlay,
body.mmenu-active .mobile-menu-overlay {
    opacity: 0.5 !important;
}

.gb-mobile-menu-close {
    position: fixed;
    top: 20px;
    left: calc(296px - 48px);
    z-index: 1010112;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu-wrapper.gb-menu-open .gb-mobile-menu-close,
body.mmenu-active .gb-mobile-menu-close {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-toggle {
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    font-size: 22px;
    color: var(--secondary-color);
}

.mobile-menu-container .mobile-menu li a {
    padding: 12px 0;
    font-size: 15px;
}

.mobile-menu-container .mobile-menu ul li a {
    padding: 10px 12px;
    font-size: 14px;
    color: #555;
}

.mobile-menu li.show > ul {
    display: block !important;
}

/* Bottom nav */
.gb-bottom-nav-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sticky-footer.style-1 {
    z-index: 999;
}

/* Header */
.header.style-7 .header-middle .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header.style-7 .header-right {
    flex-wrap: nowrap;
    gap: 4px;
}

.gb-header-cart-total {
    margin-left: 4px;
    color: var(--section-primary, var(--primary-color));
    font-weight: 700;
    font-size: 12px;
}

.header.style-7 .header-right a:hover,
.header.style-7 .header-right .header-action-label {
    color: var(--section-primary, var(--primary-color));
}

.header.style-7 .header-bottom .main-nav::-webkit-scrollbar {
    display: none;
}

.header.style-7 .header-bottom .menu {
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Footer responsive */
.footer.style-3 .footer-top .row {
    row-gap: 24px;
}

.footer.style-3 .footer-widget {
    margin-bottom: 8px;
}

/* Product page */
.product-single.row {
    margin-left: 0;
    margin-right: 0;
}

.product-single .product-details {
    padding-top: 16px;
}

/* Checkout */
.checkout-inner .row {
    margin-left: 0;
    margin-right: 0;
}

.checkout-area .container {
    width: 95%;
    max-width: 95%;
}

/* Collection */
.shop-content.row {
    margin-left: 0;
    margin-right: 0;
}

.shop__product--wrapper {
    min-width: 0;
}

/* Cart drawer mobile */
@media (max-width: 991px) {
    .cart-dropdown.cart-offcanvas .dropdown-box {
        width: min(100vw, 360px) !important;
        max-width: 100vw !important;
    }

    .fixed-add-to-cart {
        display: none;
    }

    .page-content {
        padding-bottom: 80px;
    }

    .header.style-7 .header-action-label {
        display: none !important;
    }

    .header.style-7 .h-flash-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .section-head .sec-btn {
        align-self: flex-end;
    }

    .footer.style-3 .footer-top {
        padding-bottom: 32px;
    }

    .footer.style-3 .footer-contact li {
        font-size: 14px;
    }

    .gb-mobile-menu-close {
        left: auto;
        right: 16px;
        top: 16px;
    }

    .product-single .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .checkout-breadcrumbs-title {
        font-size: 1.25rem;
    }

    .checkout-alert-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .header.style-7 .logo img {
        max-width: 120px;
    }

    .sticky-footer.style-1 .sticky-link p {
        font-size: 10px;
    }

    .sticky-footer.style-1 .sticky-link i {
        font-size: 18px;
    }
}

@media (min-width: 992px) {
    body.mmenu-active .page-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ── ৫ বাটন ডিজাইন ── */
.gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border-radius: var(--gb-radius, 10px);
}
.gb-btn:hover { transform: translateY(-1px); }
.gb-btn-classic { background: var(--primary-color, #f48721); color: #fff; }
.gb-btn-pill { background: var(--primary-color); color: #fff; border-radius: 999px; padding: 10px 28px; }
.gb-btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.gb-btn-gradient { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #041f1e)); color: #fff; }
.gb-btn-minimal { background: transparent; color: var(--primary-color); padding: 8px 0; border-bottom: 2px solid var(--primary-color); border-radius: 0; }

/* Hero CMS layouts */
/* Hero — layout handled in cms-variants.css; keep image helpers only */
.gb-hero-img { width: 100%; max-width: 100%; height: auto; display: block; }
.gb-hero-img--cover { object-fit: cover; width: 100%; max-width: 100%; max-height: min(460px, 52vw); }
.gb-hero-img--contain { object-fit: contain; background: transparent; max-width: 100%; max-height: min(420px, 50vw); }
.gb-hero-img--rounded { border-radius: var(--gb-radius, 12px); object-fit: cover; max-width: 100%; }

/* Hero / banner — prevent horizontal overflow */
.hero .gb-hero-main-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.hero .gb-hero-main-wrap .gb-hero-swiper.swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero .gb-hero-main-wrap .swiper-wrapper {
    align-items: stretch;
}

.hero .gb-hero-main-wrap .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.hero .gb-hero-main-wrap .gb-hero-slide,
.hero .gb-hero-main-wrap .banner.intro-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero .gb-hero-main-wrap .gb-hero-slide-inner,
.hero .gb-hero-main-wrap .gb-hero-img-link {
    width: 100%;
    display: block;
}

.hero,
.hero .container,
.hero .intro-section,
.hero .gb-hero-row,
.hero .intro-slide-wrapper,
.hero .intro-banner-wrapper,
.gb-hero-side,
[data-cms-section="hero"] {
    max-width: 100%;
}

/* Slider must never spill outside the hero — clip any horizontal overflow. */
.hero,
[data-cms-section="hero"],
.hero .intro-section,
.hero .intro-slide-wrapper {
    overflow-x: clip;
    min-width: 0;
}

.hero .gb-hero-main-wrap,
.hero .gb-hero-main-wrap .swiper,
.hero .gb-hero-main-wrap .swiper-wrapper {
    max-width: 100%;
    min-width: 0;
}

.hero .gb-hero-row {
    margin-left: 0;
    margin-right: 0;
}

.hero .gb-hero-row > [class*="col-"] {
    max-width: 100%;
    min-width: 0;
}

.hero .banner img,
.hero .gb-hero-side img,
.intro-banner-wrapper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.hero .swiper-theme .swiper-button-prev,
.hero .swiper-theme .swiper-button-next {
    z-index: 6;
}

.hero.style-7 .swiper-theme .swiper-button-prev { left: 6px; }
.hero.style-7 .swiper-theme .swiper-button-next { right: 6px; }

.gb-hero-content-layer {
    overflow: hidden;
    pointer-events: none;
}

.gb-hero-content {
    max-width: min(520px, calc(100% - 24px));
}

/* ─── Offer banner — 5 layout variants ─── */
.gb-offer-x { max-width: 100%; overflow: hidden; }

.gb-obx {
    /* Offer banner ALWAYS follows the site theme — background = theme secondary,
       text + accents = theme primary. No custom/per-section colors. */
    --ob-bg: linear-gradient(145deg, var(--secondary-color, #041f1e), color-mix(in srgb, var(--secondary-color, #041f1e) 72%, #000));
    --ob-text: var(--primary-color, #f48721);
    --ob-accent: var(--primary-color, #f48721);
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    color: var(--ob-text);
    background: var(--ob-bg);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gb-obx:hover { transform: translateY(-3px); box-shadow: 0 34px 64px -20px rgba(0, 0, 0, 0.5); }

/* Content block (shared) */
.gb-obx__content {
    padding: 2.6rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    min-width: 0;
}
.gb-obx__tag {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    color: var(--ob-accent);
    background: color-mix(in srgb, var(--ob-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--ob-accent) 24%, transparent);
}
.gb-obx__title {
    margin: 0;
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ob-text);
}
.gb-obx__desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--ob-text) 72%, transparent);
}
.gb-obx__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 60px;
    text-decoration: none;
    cursor: pointer;
    color: var(--secondary-color, #1a0e08);
    background: var(--ob-accent);
    box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--ob-accent) 45%, transparent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gb-obx__btn:hover { transform: translateY(-3px) scale(1.02); color: var(--secondary-color, #1a0e08); }
.gb-obx__btn:active { transform: translateY(0) scale(0.98); }
.gb-obx__btn svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; transition: transform 0.3s ease; }
.gb-obx__btn:hover svg { transform: translateX(5px); }

/* Media block (shared) */
.gb-obx__media { display: block; position: relative; overflow: hidden; min-height: 240px; }
.gb-obx__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.gb-obx:hover .gb-obx__media img { transform: scale(1.04); }

/* Countdown timer on dark banner */
.gb-obx .gb-offer-timer { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 0.2rem; font-size: 0.9rem; }
.gb-obx .gb-offer-timer span {
    background: color-mix(in srgb, var(--ob-text) 14%, transparent);
    color: var(--ob-text);
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 52px;
    text-align: center;
}
.gb-obx .gb-offer-timer strong { font-size: 1.1rem; margin-right: 2px; }

/* Variant 1: Classic split (image left | text right) */
.gb-obx--style-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }

/* Variant 2: Hero overlay (full image bg + centered glass card) */
.gb-obx--style-hero { min-height: 400px; display: flex; align-items: center; justify-content: center; }
.gb-obx--style-hero .gb-obx__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.7s ease; }
.gb-obx--style-hero:hover .gb-obx__bg { transform: scale(1.04); }
.gb-obx--style-hero .gb-obx__overlay {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    padding: 2.4rem 2.8rem;
    text-align: center;
    border-radius: 22px;
    background: color-mix(in srgb, var(--secondary-color, #041f1e) 66%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--primary-color, #f48721) 22%, transparent);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}
.gb-obx--style-hero .gb-obx__content { padding: 0; align-items: center; text-align: center; }
.gb-obx--style-hero .gb-obx__tag,
.gb-obx--style-hero .gb-obx__btn { align-self: center; }
.gb-obx--style-hero .gb-offer-timer { justify-content: center; }

/* Variant 3: Reverse split (text left | image right) */
.gb-obx--style-reverse { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }

/* Variant 4: Vertical card (image top | text bottom) */
.gb-obx--style-card { display: flex; flex-direction: column; min-height: 400px; }
.gb-obx--style-card .gb-obx__media { min-height: 220px; }

/* Variant 5: Floating frame (framed image | text) */
.gb-obx--style-frame { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.gb-obx--style-frame .gb-obx__media { display: flex; align-items: center; justify-content: center; padding: 2rem; min-height: 0; }
.gb-obx__frame {
    display: block;
    width: 100%;
    max-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid color-mix(in srgb, var(--ob-accent) 35%, transparent);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}
.gb-obx--style-frame:hover .gb-obx__frame { transform: scale(1.02); }
.gb-obx__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
    .gb-obx--style-split,
    .gb-obx--style-reverse,
    .gb-obx--style-frame { grid-template-columns: 1fr; }
    .gb-obx--style-reverse .gb-obx__media { order: -1; }
    .gb-obx__content { padding: 1.8rem 1.5rem; }
    .gb-obx__media { min-height: 180px; }
    .gb-obx--style-frame .gb-obx__media { padding: 1.2rem; }
    .gb-obx--style-hero .gb-obx__overlay { padding: 1.8rem; }
    .gb-obx__btn { width: 100%; justify-content: center; }
}

/* Product cards — no site .footer background on card price/action row */
.gb-product-grid .product[class*="card-"] .gb-card-footer {
    background: transparent !important;
    background-color: transparent !important;
    font-size: inherit;
    padding: 0;
    border: none;
}

/* Uniform vertical layout in product grid (ignore horizontal demo layouts) */
.gb-product-grid .product.card-2,
.gb-product-grid .product.card-23 {
    flex-direction: column !important;
}

.gb-product-grid .product.card-2 .img,
.gb-product-grid .product.card-23 .img {
    width: 100% !important;
    min-width: unset !important;
    border-radius: inherit;
}

.gb-product-grid .product.card-2 .img {
    border-radius: 16px 16px 0 0;
}

.gb-product-grid .product.card-23 .img {
    border-radius: 16px 16px 0 0;
}

/* Uniform product card save badge — theme/CMS colors; shrink-wrap only */
.gb-product-grid .product[class*="card-"] .save-label {
    display: inline-block !important;
    width: fit-content !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: var(--gb-card-save-bg, var(--primary-color)) !important;
    box-sizing: border-box !important;
}

.gb-product-grid .product[class*="card-"] .badge {
    display: inline-block !important;
    width: fit-content !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: var(--gb-card-save-bg, var(--primary-color)) !important;
    color: #fff !important;
    box-sizing: border-box !important;
}

.gb-product-grid .product[class*="card-"] .body--center .badge {
    align-self: center !important;
}

/* Per-element color hooks */
[data-cms-section="header"] {
    --section-primary: var(--gb-el-header-primary, var(--primary-color));
    --section-secondary: var(--gb-el-header-secondary, var(--secondary-color));
}

[data-cms-section="header"] .header-bottom,
[data-cms-section="header"].header.style-5 {
    background: var(--section-secondary, var(--secondary-color));
}

[data-cms-section="category"] {
    --section-primary: var(--gb-el-category-primary, var(--primary-color));
    --section-secondary: var(--gb-el-category-secondary, var(--secondary-color));
}

[data-cms-section="footer"],
.footer {
    --section-primary: var(--gb-el-footer-primary, var(--primary-color));
    --section-secondary: var(--gb-el-footer-secondary, var(--secondary-color));
}

.gb-btn.gb-btn-classic {
    background: var(--gb-el-button-primary, var(--primary-color)) !important;
    color: var(--gb-el-button-secondary, #fff) !important;
    border-color: var(--gb-el-button-primary, var(--primary-color)) !important;
}

.section-head .sec-btn.gb-btn {
    background: var(--gb-el-button-primary, var(--primary-color)) !important;
    color: var(--gb-el-button-secondary, #fff) !important;
}

/* Home premium bar buttons — keep sec-btn layout without theme button overrides */
.section-head .sec-btn.gb-home-btn {
    background-image: none;
}

/* CMS product card surface colors (when set in Design → Product card) */
html.gb-theme-active .gb-product-grid .product[class*="card-"] {
    background-color: var(--gb-card-bg);
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .body h3,
html.gb-theme-active .gb-product-grid .product[class*="card-"] .body h3 a {
    color: var(--gb-card-text-color);
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .body p {
    color: var(--gb-card-text-color);
    opacity: 0.85;
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .price ins,
html.gb-theme-active .gb-product-grid .product[class*="card-"] .price del {
    color: var(--gb-card-text-color);
}

html.gb-theme-active .gb-product-grid .product[class*="card-"] .price del {
    opacity: 0.6;
}

/* Category + product card — hover borders always use theme / CMS element color */
html.gb-theme-active .cat-section .category-card:hover .img-wrap,
html.gb-theme-active .cat-section .category-card:hover,
html.gb-theme-active .cat-section a:hover,
html.gb-theme-active .cat-section [class*="cat-"] a:hover {
    border-color: var(--primary-color) !important;
}

html.gb-theme-active .cat-section .category-card:hover .name,
html.gb-theme-active .cat-section .category-card:hover .cat-name {
    color: var(--primary-color) !important;
}

html.gb-theme-active .cat-section .section-head h3 {
    color: var(--title-color) !important;
}

html.gb-theme-active .cat-section .section-head a,
html.gb-theme-active .cat-section .section-head a i,
html.gb-theme-active .cat-section .section-head a svg {
    color: var(--primary-color) !important;
}

html.gb-theme-active .cat-section .section-head a:hover,
html.gb-theme-active .cat-section .section-head a:hover i {
    color: var(--secondary-color) !important;
}

html.gb-theme-active .cat-section .category-card .name,
html.gb-theme-active .cat-section .category-card .cat-name,
html.gb-theme-active .cat-section [class*="cat-"] .name {
    color: var(--title-color) !important;
}

html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled)::after,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled)::after,
html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled) i,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled) i {
    color: var(--primary-color) !important;
}

html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled):hover i,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled):hover i {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

html.gb-theme-active .gb-testimonial .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .gb-testimonial .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .gb-testimonial .swiper-button-next:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .gb-testimonial .swiper-button-prev:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .gb-testimonial .swiper-button-next:not(.swiper-button-disabled)::after,
html.gb-theme-active .gb-testimonial .swiper-button-prev:not(.swiper-button-disabled)::after {
    color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html.gb-theme-active [data-cms-section="testimonial"] .gb-testimonial-title,
html.gb-theme-active [data-cms-section="testimonial"] .gb-testimonial-title span {
    color: var(--title-color) !important;
}

html.gb-theme-active [data-cms-section="testimonial"] .gb-testimonial-panel,
html.gb-theme-active .gb-testimonial .testimonial-card {
    color: var(--paragraph-color);
}

html.gb-theme-active .gb-product-grid .product[class*="card-"]:hover {
    border-color: var(--gb-el-product-card-primary, var(--primary-color, #f48721)) !important;
}

html.gb-theme-active .gb-product-grid .product.card-48:hover {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gb-el-product-card-primary, var(--primary-color, #f48721)) 18%, transparent) !important;
}

html.gb-theme-active .gb-product-grid .product.card-16:hover {
    box-shadow: 0 0 24px color-mix(in srgb, var(--gb-el-product-card-primary, var(--primary-color, #f48721)) 25%, transparent) !important;
}

/* ══════════════════════════════════════════
   Slider next/prev — theme color on hover
   ══════════════════════════════════════════ */
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled),
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled) {
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled)::after,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled)::after {
    color: var(--primary-color, #f48721);
    transition: color 0.25s ease;
}

html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):focus-visible,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):focus-visible {
    background-color: var(--primary-color, #f48721) !important;
    border-color: var(--primary-color, #f48721) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color, #f48721) 35%, transparent);
}

html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):focus-visible::after,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):focus-visible::after {
    color: #fff !important;
}

/* Category sliders — always theme */
html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled)::after,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled)::after,
html.gb-theme-active .gb-cat-glass .swiper-button-next:not(.swiper-button-disabled)::after,
html.gb-theme-active .gb-cat-glass .swiper-button-prev:not(.swiper-button-disabled)::after {
    color: var(--primary-color) !important;
}

html.gb-theme-active .cat-section .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .cat-section .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .gb-cat-glass .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .gb-cat-glass .swiper-button-prev:not(.swiper-button-disabled):hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Hero slider */
html.gb-theme-active .hero .swiper-theme .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .hero .swiper-theme .swiper-button-prev:not(.swiper-button-disabled):hover {
    background: var(--primary-color, #f48721) !important;
    color: #fff !important;
}

/* Testimonial / product sliders */
html.gb-theme-active .gb-testimonial .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .gb-testimonial .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .product-slider .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .product-slider .swiper-button-prev:not(.swiper-button-disabled):hover,
html.gb-theme-active .brand-section .swiper-button-next:not(.swiper-button-disabled):hover,
html.gb-theme-active .brand-section .swiper-button-prev:not(.swiper-button-disabled):hover {
    background-color: var(--primary-color, #f48721) !important;
    border-color: var(--primary-color, #f48721) !important;
}

html.gb-theme-active .gb-testimonial .swiper-button-next:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .gb-testimonial .swiper-button-prev:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .product-slider .swiper-button-next:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .product-slider .swiper-button-prev:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .brand-section .swiper-button-next:not(.swiper-button-disabled):hover::after,
html.gb-theme-active .brand-section .swiper-button-prev:not(.swiper-button-disabled):hover::after {
    color: #fff !important;
}

/* Active pagination dot */
html.gb-theme-active .swiper-pagination-bullet-active {
    background: var(--primary-color, #f48721) !important;
    border-color: var(--primary-color, #f48721) !important;
}

/* ══════════════════════════════════════════
   Theme-only text + hover + slider icons
   All slider nav icons (::after glyph OR <i>) always use the theme color,
   and text links turn theme-primary on hover — no stray brand colors.
   ══════════════════════════════════════════ */
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled) i,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled) i,
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled) svg,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled) svg {
    color: var(--primary-color, #f48721) !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    transition: color 0.25s ease;
}

html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):hover i,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):hover i,
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):focus-visible i,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):focus-visible i,
html.gb-theme-active .swiper-button-next:not(.swiper-button-disabled):hover svg,
html.gb-theme-active .swiper-button-prev:not(.swiper-button-disabled):hover svg {
    color: #fff !important;
}

/* Text links → theme primary on hover/focus (skip button-styled anchors) */
html.gb-theme-active a:not([class*="btn"]):not([class*="button"]):not(.gb-obx__btn):hover,
html.gb-theme-active a:not([class*="btn"]):not([class*="button"]):not(.gb-obx__btn):focus-visible {
    color: var(--primary-color, #f48721);
}

/* CMS per-section color hooks (login, checkout, product detail, category) */
[data-cms-section="login"] {
    --section-primary: var(--gb-el-login-primary, var(--primary-color));
    --section-secondary: var(--gb-el-login-secondary, var(--secondary-color));
}

[data-cms-section="checkout"] {
    --section-primary: var(--gb-el-checkout-primary, var(--primary-color));
    --section-secondary: var(--gb-el-checkout-secondary, var(--secondary-color));
}

[data-cms-section="product-detail"] {
    --section-primary: var(--gb-el-product-detail-primary, var(--primary-color));
    --section-secondary: var(--gb-el-product-detail-secondary, var(--secondary-color));
}

html.gb-theme-active [data-cms-section="login"] .gb-btn,
html.gb-theme-active [data-cms-section="login"] button.gb-li-btn,
html.gb-theme-active [data-cms-section="login"] .gb-li-submit {
    background: var(--gb-el-login-primary, var(--primary-color)) !important;
    border-color: var(--gb-el-login-primary, var(--primary-color)) !important;
    color: var(--gb-el-login-secondary, #fff) !important;
}

html.gb-theme-active [data-cms-section="login"] .gb-li-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    background: var(--gb-el-login-primary, var(--primary-color)) !important;
}

html.gb-theme-active [data-cms-section="checkout"] .gb-co-submit,
html.gb-theme-active [data-cms-section="checkout"] .gb-btn-primary {
    background: var(--gb-el-button-primary, var(--primary-color)) !important;
    border-color: var(--gb-el-button-primary, var(--primary-color)) !important;
    color: var(--gb-el-button-secondary, #fff) !important;
}

html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-add-btn,
html.gb-theme-active [data-cms-section="product-detail"] .gb-btn-primary,
html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-info__add-btn {
    background: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    border-color: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    color: var(--gb-el-product-detail-secondary, #fff) !important;
}

html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-info__buy-btn {
    border-color: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    color: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    background: transparent !important;
}

html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-info__buy-btn:hover:not(:disabled) {
    background: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    color: var(--gb-el-product-detail-secondary, #fff) !important;
}

html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-info__wa-btn {
    background: #25d366 !important;
    color: #fff !important;
}

html.gb-theme-active [data-cms-section="product-detail"] .gb-pd-info__call-btn {
    background: var(--gb-el-product-detail-primary, var(--primary-color)) !important;
    color: var(--gb-el-product-detail-secondary, #fff) !important;
}

/* ============================================================
   CMS in-preview EDIT MODE (drag / click-to-edit / colors)
   ============================================================ */
.gb-edit-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.gb-cms-editing .page-wrapper {
    padding-top: 50px;
}

.gb-edit-toolbar__badge {
    font-weight: 700;
    background: var(--primary-color, #f48721);
    color: #111;
    padding: 3px 10px;
    border-radius: 999px;
}

.gb-edit-toolbar__hint {
    opacity: 0.78;
}

.gb-edit-toolbar__colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.gb-edit-toolbar__colors-label {
    opacity: 0.7;
}

.gb-edit-toolbar__color-btn {
    background: #1f2937;
    color: #fff;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
}

.gb-edit-toolbar__color-btn:hover {
    background: #374151;
}

.gb-edit-toolbar__color-btn.is-active {
    background: var(--primary-color, #f48721);
    color: #111;
    border-color: transparent;
}

.gb-edit-toolbar__popover {
    position: fixed;
    top: 52px;
    right: 16px;
    z-index: 99995;
    width: min(320px, calc(100vw - 32px));
    background: #fff;
    color: #111;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.gb-edit-toolbar__popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

[data-cms-section="header"] .gb-elegant-header,
[data-cms-section="header"] .gb-slick-header,
[data-cms-section="header"] .gb-luxury-header,
[data-cms-section="header"] .gb-sophisticated-header {
    background: var(--section-secondary, var(--gb-el-header-secondary, #fff));
}

[data-cms-section="header"] .gb-elegant-nav-bar,
[data-cms-section="header"] .gb-sophisticated-nav-row,
[data-cms-section="header"] .gb-luxury-nav-row {
    background: var(--section-primary, var(--gb-el-header-primary, var(--primary-color)));
}

[data-cms-section="footer"] {
    background: var(--section-secondary, var(--gb-el-footer-secondary, var(--secondary-color)));
    color: var(--section-primary, var(--gb-el-footer-primary, #fff));
}

.gb-editable-block {
    position: relative;
}

body.gb-cms-editing .gb-editable-block {
    outline: 2px dashed rgba(244, 135, 33, 0.55);
    outline-offset: -3px;
    transition: outline-color 0.15s ease;
    cursor: pointer;
}

body.gb-cms-editing .gb-editable-block:hover {
    outline: 2px solid var(--primary-color, #f48721);
    background: rgba(244, 135, 33, 0.03);
}

body.gb-cms-editing .gb-editable-block.is-active {
    outline: 2px solid #2563eb;
}

.gb-editable-block.is-dragging {
    opacity: 0.5;
}

.gb-editable-block.is-drop-target {
    outline: 3px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.08);
}

.gb-editable-block__bar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.gb-editable-block__grip {
    cursor: grab;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.14);
    user-select: none;
}

.gb-editable-block__grip:active {
    cursor: grabbing;
}

.gb-editable-block__label {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.85;
    text-transform: capitalize;
}

.gb-editable-block__edit {
    background: var(--primary-color, #f48721);
    color: #111;
    border: 0;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.gb-edit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(0, 0, 0, 0.12);
    border: 0;
    cursor: default;
}

.gb-edit-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99992;
    width: 330px;
    max-width: 92vw;
    background: #fff;
    color: #111827;
    box-shadow: -10px 0 34px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    animation: gbEditSlide 0.18s ease;
}

@keyframes gbEditSlide {
    from { transform: translateX(20px); opacity: 0.4; }
    to { transform: translateX(0); opacity: 1; }
}

.gb-edit-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-transform: capitalize;
}

.gb-edit-drawer__close {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.gb-edit-drawer__body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-edit-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #374151;
}

.gb-edit-field > span {
    font-weight: 600;
}

.gb-edit-field--check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.gb-edit-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.gb-edit-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-edit-color-row input[type="color"] {
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    flex: none;
}

.gb-edit-clear {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    flex: none;
}

.gb-edit-note,
.gb-edit-empty {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.gb-edit-done {
    margin-top: 8px;
    background: #111827;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- Element-level visual editor (click any element) ---- */
body.gb-cms-editing,
body.gb-cms-editing *:not(.gb-ve-popover):not(.gb-ve-popover *) {
    cursor: crosshair;
}

body.gb-cms-editing .gb-ve-popover,
body.gb-cms-editing .gb-ve-popover * {
    cursor: default;
}

.gb-ve-outline {
    position: fixed;
    z-index: 99980;
    pointer-events: none;
    border-radius: 3px;
}

.gb-ve-outline--hover {
    outline: 2px dashed rgba(37, 99, 235, 0.7);
    outline-offset: -1px;
    background: rgba(37, 99, 235, 0.06);
}

.gb-ve-outline--sel {
    outline: 2px solid #2563eb;
    outline-offset: -1px;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.gb-ve-popover {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99993;
    width: 300px;
    max-width: 92vw;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    cursor: default;
    animation: gbEditSlide 0.16s ease;
}

.gb-ve-popover__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

.gb-ve-popover__head em {
    color: #2563eb;
    font-style: normal;
    font-weight: 600;
}

.gb-ve-popover__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-ve-popover__body textarea.gb-edit-input {
    resize: vertical;
    font-family: inherit;
}

.gb-ve-popover__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.gb-ve-popover__actions .gb-edit-done {
    margin-top: 0;
    flex: 1;
}

/* Legacy product cards + global badge shrink-wrap */
.product.style-6 .save-label,
.product.style-6 .flag-name,
.gb-product-grid .product .save-label,
.gb-product-grid .product .badge {
    display: inline-block !important;
    width: fit-content !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
}

/* Card button variants — live CMS preview must reflect selected style */
html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn[class*="gb-card-btn--"] {
    background-image: none;
}

html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn--2,
html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn--8,
html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn--15,
html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn--17,
html[data-gb-card-btn] .gb-product-grid .product[class*="card-"] .gb-card-btn--18 {
    background-color: transparent !important;
}
