/* Blazor Interactive islands only — Weiboo chrome stays in main.css. */

html, body {
    font-family: Samim, Tahoma, sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* fallback for older engines */
    overflow-x: clip;
}

/* Contain template overflow sources (.slider-div min-width: 130%, absolute nav, Swiper tracks). */
[data-weiboo-shell] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.banner.banner-4,
.banner.banner-4 > .container,
.rts-featured_products-section,
.rts-featured_products-section .container,
.rts-brands-section,
.rts-services-section {
  /*  max-width: 100%;
    overflow-x: clip;*/
}

jdp-container { z-index: 80; }

.banner.banner-4 .bannerSlider,
.rts-fiveSlide,
.rts-brandSlide1,
.rts-cmmnSlider-over {
    max-width: 100%;
    overflow: hidden;
}

/*
 * Keep profile-authored hero copy inside its half of the banner.  Demo copy was
 * short enough to mask the overlap, while real Persian titles can be much
 * longer (notably the automotive profile).
 */
@media (min-width: 769px) {
    .banner.banner-4 .product-box-large .contents {
        position: relative;
        z-index: 1;
        flex: 0 1 52%;
        width: 52%;
        max-width: 52%;
        min-width: 0;
    }

    .banner.banner-4 .product-box-large .contents .product-title,
    .banner.banner-4 .product-box-large .contents p {
        max-width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

.rts-brands-section .slider-div,
.rts-brands-section1 .slider-div,
.rts-brands-section2 .slider-div,
.header-topbar .slider-div {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* index-five side banner #3: dark plate + white type (template productbghover). */
.banner.banner-4 .product-box.product-box-medium.product-box-bg {
    background-color: #0b4ea2;
    background-image: url("../images/background/productbghover.webp");
    background-size: cover;
    background-position: center;
}

.banner.banner-4 .product-box.product-box-medium.product-box-bg .contents .pretitle {
    color: #c7c7c7;
}

/* Green eyebrow pills use the shared on-primary foreground. */
.banner.banner-4 .product-box.product-box-large .contents .pretitle,
.banner.banner-4 .product-box.product-box-medium:not(.product-box-medium2):not(.product-box-medium3) .contents .pretitle {
    color: var(--sf-color-on-primary, #fff) !important;
}

/* Every primary-green eyebrow keeps the same on-primary foreground, including
   the center poster inherited from the index-five poster composition. */
.rts-posters-section.section-5 .product-box.product-box-medium.mid .contents .pretitle {
    color: var(--sf-color-on-primary, #fff) !important;
}

/* main.css assigns a navy color directly to the banner glyph. Let the icon
   inherit the button state so the always-green next control stays legible. */
.banner.banner-4 .slider-navigation .slider-btn i {
    color: inherit !important;
}

.banner.banner-4 .slider-navigation .slider-btn.next {
    color: var(--sf-color-on-primary, #fff);
}

.banner.banner-4 .product-box.product-box-medium.product-box-bg .contents .product-title,
.banner.banner-4 .product-box.product-box-medium.product-box-bg .contents .product-title span,
.banner.banner-4 .product-box.product-box-medium.product-box-bg .contents p,
.banner.banner-4 .product-box.product-box-medium.product-box-bg .contents .go-btn {
    color: #fff;
}

/* Template sets line-height:0 on .welcome-text; restore readable copy for topbar4. */
.header-topbar .welcome-text {
    line-height: 1.4;
}

/*
 * index-five lower sticky bar:
 * - height footprint like .navbar-coupon-code
 * - menu truly centered in the bar (template visual), independent of
 *   asymmetric coupon/contact widths and RTL margin-right:auto drift
 */
.lower-navbar-sticky4 .lower-navbar4 .navbar-inner {
    position: relative;
    justify-content: space-between;
    min-height: 76px;
    overflow-x: clip;
}

.lower-navbar-sticky4 .lower-navbar4 .rts-menu {
    position: absolute;
    /* Physical center — stable in both LTR demo and RTL storefront. */
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    display: flex;
    align-items: stretch;
    transform: translateX(-50%);
    margin-inline: 0 !important;
    margin-right: 0 !important;
    z-index: 1;
}

.lower-navbar-sticky4 .lower-navbar4 .rts-menu .menus,
.lower-navbar-sticky4 .lower-navbar4 .rts-menu .nav__menu,
.lower-navbar-sticky4 .lower-navbar4 .rts-menu .nav__menu > li {
    height: 100%;
}

.lower-navbar-sticky4 .lower-navbar4 .rts-menu .nav__menu > li {
    display: flex;
    align-items: center;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code,
.lower-navbar-sticky4 .lower-navbar4 .contact-info {
    position: relative;
    z-index: 2;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code {
    flex: 0 0 auto;
    align-items: center;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code .content {
    padding-top: 0;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code .content .title,
.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code .content .code {
    white-space: nowrap;
}

.lower-navbar-sticky4 .lower-navbar4 .contact-info.ml-auto {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-inner .rts-menu .menu-item {
    /* Beat .lower-navbar … .menu-item { padding-top/bottom: 0 } for touch target. */
    padding-block: 29px;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-inner .rts-menu .dropdown-ul {
    top: 100%;
}

.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code .icon img {
    display: block;
    width: 36px;
    height: auto;
}

/* When coupon text is absent, keep icon chrome from collapsing the start column. */
.lower-navbar-sticky4 .lower-navbar4 .navbar-coupon-code:not(:has(.content)) {
    min-width: 4.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    /*
     * The template's generic `.sticky-menu .lower-navbar` rule turns the
     * desktop navigation back on below 768px.  Index five already has a full
     * mobile header, so remove the lower wrapper from mobile layout entirely;
     * this is also a safe fallback when a cached/late script adds sticky-menu.
     */
    #rtsHeader[data-testid="ssr-index-five-header"] .lower-navbar-sticky4 {
        display: none !important;
    }

    .lower-navbar-sticky4 .lower-navbar4 .rts-menu {
        position: static;
        left: auto;
        transform: none;
    }

    #rtsHeader[data-testid="ssr-index-five-header"].sf-mobile-header-sticky {
        padding-top: 89px;
    }

    #rtsHeader[data-testid="ssr-index-five-header"] .navbar-wrapper.sf-mobile-sticky-menu {
        position: fixed;
        z-index: 50;
        inset: 0 0 auto;
        width: 100%;
        background: #031424;
        box-shadow: 0 7px 18px rgb(0 0 0 / 18%);
    }

}

.navbar-part4 .cart-icon .sf-icon-button,
.navbar-part4 .cart-icon button {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    position: relative;
}

.navbar-part4 .cart-icon .wishlist-dot {
    position: absolute;
    inset-block-start: -4px;
    inset-inline-end: -8px;
}

.sf-skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: -100px;
    z-index: 10001;
    padding: .65rem 1rem;
    background: #031424;
    color: #fff;
    border-radius: 6px;
    transition: inset-block-start .2s ease;
}

.sf-skip-link:focus {
    inset-block-start: 1rem;
}

.sf-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sf-toast-host {
    position: fixed;
    inset: 1.25rem auto auto 1.25rem;
    inset-block: 1.25rem auto;
    inset-inline: 1.25rem auto;
    z-index: 12000;
    display: grid;
    gap: .75rem;
    width: min(calc(100vw - 2.5rem), 25rem);
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: inherit;
    pointer-events: none;
}

.sf-toast-host:popover-open {
    display: grid;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: inherit;
}

.sf-toast {
    --sf-toast-accent: var(--sf-color-info, #214f78);
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    align-items: center;
    gap: .75rem;
    min-height: 82px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-14px) scale(.985);
    padding: .9rem .9rem 1rem;
    /*border: 0px solid var(--sf-color-surface);*/
    /*border-inline-start: 4px solid var(--sf-toast-accent);*/
    border-radius: var(--sf-radius-md, 10px);
    background: var(--sf-color-surface, #fff);
    color: var(--sf-color-text, #0e1013);
/*    box-shadow: var(--sf-shadow-elevated, 0 18px 48px rgb(14 16 19 / 16%));*/
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: auto;
}

.sf-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.sf-toast--success {
    --sf-toast-accent: var(--sf-color-success, #83b735);
}

.sf-toast--error {
    --sf-toast-accent: var(--sf-color-danger, #c83b38);
}

.sf-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sf-toast-accent) 13%, white);
    color: var(--sf-toast-accent);
    font-size: 17px;
}

.sf-toast__content {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.sf-toast__title,
.sf-toast__message {
    display: block;
}

.sf-toast__title {
    color: var(--sf-color-text, #0e1013);
    font-size: .91rem;
    font-weight: 800;
    line-height: 1.65;
}

.sf-toast__message {
    color: var(--sf-color-muted, #697077);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.7;
}

.sf-toast__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sf-color-muted, #697077);
    transition: background-color 160ms ease, color 160ms ease;
}

.sf-toast__close:hover,
.sf-toast__close:focus-visible {
    background: var(--sf-color-surface-alt, #f6f8f3);
    color: var(--sf-color-text, #0e1013);
}

.sf-toast__close:focus-visible {
    outline: none;
    box-shadow: var(--sf-focus-ring, 0 0 0 4px rgb(131 183 53 / 24%));
}

.sf-toast__progress {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 100%;
    height: 3px;
    background: var(--sf-toast-accent);
    transform-origin: right center;
    animation: sf-toast-progress var(--sf-toast-duration, 4200ms) linear forwards;
}

.sf-toast:hover .sf-toast__progress,
.sf-toast:focus-within .sf-toast__progress {
    animation-play-state: paused;
}

@keyframes sf-toast-progress {
    to {
        transform: scaleX(0);
    }
}

/*
 * Commercial cart drawer. The mutation boundary remains Blazor/SQL; this block
 * only owns Weiboo-native presentation, motion and responsive states.
 */
.cart-bar[data-cart-owned="blazor"] {
    z-index: 120;
    inset: 0 auto 0 0;
    width: min(430px, 100vw);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #1b1d21;
    background: #fff;
    border-inline-end: 1px solid #eceef0;
    box-shadow: 24px 0 64px rgb(14 16 19 / 18%);
    transform: translateX(-102%);
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1), visibility 360ms;
}

html.sf-shell-overlay-open,
body.sf-shell-overlay-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Home does not load storefront.css. The Weiboo overlay lives in a vendor
   layer and uses the invalid pointer-events value "visible", so clicks fall
   through and the cart cannot be dismissed from the page. */
.anywere,
.anywere-home {
    inset: 0;
}

.anywere.bgshow,
.anywere-home.bgshow {
    pointer-events: auto;
    z-index: 110;
}

.cart-bar[data-cart-owned="blazor"].show {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.cart-bar[data-cart-owned="blazor"][inert] {
    pointer-events: none;
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__header {
    position: relative;
    flex: 0 0 auto;
    min-height: 96px;
    padding: 22px 26px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #eceef0;
    background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__heading {
    min-width: 0;
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #7b7f86;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__title {
    margin: 0;
    color: #111317;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}

.cart-bar[data-cart-owned="blazor"] .sf-drawer__count {
    min-width: 27px;
    height: 27px;
    padding-inline: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--theme-color, #83b735);
    font-size: 12px;
    font-weight: 800;
}

.cart-bar[data-cart-owned="blazor"] .sf-icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7e9;
    border-radius: 50%;
    color: #24272c;
    background: #fff;
    box-shadow: 0 5px 18px rgb(14 16 19 / 7%);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cart-bar[data-cart-owned="blazor"] .sf-icon-button:hover {
    color: #ee403d;
    border-color: rgb(238 64 61 / 35%);
    transform: rotate(6deg);
}

.cart-bar[data-cart-owned="blazor"] .sf-icon-button:focus-visible,
.cart-bar[data-cart-owned="blazor"] button:focus-visible,
.cart-bar[data-cart-owned="blazor"] a:focus-visible,
.product-details-popup-wrapper button:focus-visible,
.product-details-popup-wrapper a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--theme-color, #83b735) 42%, transparent);
    outline-offset: 3px;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-progress {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 3px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-progress.is-active {
    opacity: 1;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-progress span {
    width: 42%;
    height: 100%;
    display: block;
    border-radius: 99px;
    background: var(--theme-color, #83b735);
    animation: sf-cart-progress 1.1s ease-in-out infinite;
}

@keyframes sf-cart-progress {
    from { transform: translateX(250%); }
    to { transform: translateX(-140%); }
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-notice {
    margin: 14px 22px 0;
    padding: 11px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid rgb(131 183 53 / 28%);
    border-radius: 10px;
    color: #486b16;
    background: rgb(131 183 53 / 9%);
    font-size: 13px;
    line-height: 1.8;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-notice.is-error {
    color: #a22624;
    border-color: rgb(238 64 61 / 28%);
    background: rgb(238 64 61 / 8%);
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-notice i {
    margin-top: 5px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 20px 22px 8px;
    display: grid;
    align-content: start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9dddf transparent;
    list-style: none;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart::-webkit-scrollbar {
    width: 5px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #d9dddf;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__item {
    padding: 0 0 20px;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    border-bottom: 1px solid #eceef0;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__item:last-child {
    margin-bottom: 0;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__media {
    width: 88px;
    height: 104px;
    display: block;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 11px;
    background: #f6f7f5;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 280ms ease;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__item:hover .sf-mini-cart__media img {
    transform: scale(1.035);
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__content {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__heading {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__title {
    display: -webkit-box;
    overflow: hidden;
    color: #15171b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__title:hover {
    color: var(--theme-color, #83b735);
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__unit-price,
.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__variant {
    color: #777c83;
    font-size: 12px;
    line-height: 1.6;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__availability {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 5px;
    color: #b12c29;
    background: rgb(238 64 61 / 9%);
    font-size: 11px;
    font-weight: 700;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 12px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__update {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__update label {
    color: #777c83;
    font-size: 11px;
    font-weight: 600;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-qty {
    width: 58px;
    height: 36px;
    padding: 3px 7px;
    border: 1px solid #dfe2e4;
    border-radius: 7px;
    color: #17191d;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-qty:focus {
    border-color: var(--theme-color, #83b735);
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__remove {
    margin: 0;
}

.cart-bar[data-cart-owned="blazor"] .sf-danger-link {
    min-height: 36px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    color: #8c9096;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cart-bar[data-cart-owned="blazor"] .sf-danger-link:hover {
    color: #d73734;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__line-total {
    padding-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px dashed #e2e4e6;
    color: #85898f;
    font-size: 11px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__line-total strong {
    color: #30343a;
    font-size: 13px;
    font-weight: 800;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__checkout-area {
    flex: 0 0 auto;
    padding: 18px 24px 22px;
    border-top: 1px solid #e8eaec;
    background: #fff;
    box-shadow: 0 -14px 32px rgb(14 16 19 / 5%);
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #24272c;
    font-size: 15px;
    font-weight: 700;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__summary strong {
    color: var(--theme-color, #83b735);
    font-size: 20px;
    font-weight: 900;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__summary-note {
    margin: 5px 0 15px;
    color: #8a8e94;
    font-size: 11px;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__checkout-warning {
    margin: 0 0 12px;
    padding: 9px 11px;
    border-radius: 7px;
    color: #a22624;
    background: rgb(238 64 61 / 8%);
    font-size: 12px;
    line-height: 1.7;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__footer {
    display: grid;
    gap: 9px;
}

.cart-bar[data-cart-owned="blazor"] .sf-primary-button,
.cart-bar[data-cart-owned="blazor"] .sf-secondary-button,
.cart-bar[data-cart-owned="blazor"] .sf-cart-retry {
    width: 100%;
    min-height: 48px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--theme-color, #83b735);
    border-radius: 8px;
    color: #fff;
    background: var(--theme-color, #83b735);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cart-bar[data-cart-owned="blazor"] .sf-primary-button:hover,
.cart-bar[data-cart-owned="blazor"] .sf-cart-retry:hover {
    color: var(--theme-color, #83b735);
    background: #fff;
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__checkout i,
:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav i {
    transform: none !important;
}

.cart-bar[data-cart-owned="blazor"] .sf-secondary-button {
    color: #2f3338;
    border-color: #dfe2e4;
    background: #fff;
}

.cart-bar[data-cart-owned="blazor"] .sf-secondary-button:hover {
    color: var(--theme-color, #83b735);
    border-color: var(--theme-color, #83b735);
}

.cart-bar[data-cart-owned="blazor"] .sf-mini-cart__clear {
    margin: 1px 0 0;
    text-align: center;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-clear-button {
    min-height: 34px;
    padding: 4px 10px;
    border: 0;
    color: #8a8e94;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-clear-button:hover {
    color: #d73734;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-loading,
.cart-bar[data-cart-owned="blazor"] .sf-cart-error,
.cart-bar[data-cart-owned="blazor"] .sf-empty-state {
    flex: 1 1 auto;
    min-height: 0;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-loading__icon,
.cart-bar[data-cart-owned="blazor"] .sf-cart-error__icon,
.cart-bar[data-cart-owned="blazor"] .sf-empty-state__icon {
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--theme-color, #83b735);
    background: rgb(131 183 53 / 10%);
    font-size: 32px;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-error__icon {
    color: #d73734;
    background: rgb(238 64 61 / 9%);
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-loading strong,
.cart-bar[data-cart-owned="blazor"] .sf-cart-error strong,
.cart-bar[data-cart-owned="blazor"] .sf-empty-state h3 {
    margin: 0 0 9px;
    color: #1a1c20;
    font-size: 18px;
    font-weight: 850;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-loading > span:last-child,
.cart-bar[data-cart-owned="blazor"] .sf-cart-error p,
.cart-bar[data-cart-owned="blazor"] .sf-empty-state p {
    max-width: 300px;
    margin: 0 0 22px;
    color: #7d8188;
    font-size: 13px;
    line-height: 1.9;
}

.cart-bar[data-cart-owned="blazor"] .sf-cart-retry {
    width: auto;
    min-width: 148px;
}

/*
 * Quick View: scoped Swiper main gallery + thumbnails. This intentionally does
 * not use Weiboo's global .productGallerySlide selectors.
 */
.product-details-popup-wrapper {
    z-index: 110;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: clamp(14px, 3vw, 40px);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-sizing: border-box;
    transform: none;
}

.product-details-popup-wrapper.popup {
    pointer-events: auto !important;
}

.product-details-popup-wrapper .product-details-popup-section {
    width: 100%;
    max-width: 1100px;
    padding: 0;
}

.product-details-popup-wrapper .product-details-popup {
    width: 100% !important;
    height: auto !important;
    max-height: min(90vh, 820px);
    margin: 0 !important;
    padding: clamp(24px, 3vw, 38px) !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 78%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 34px 90px rgb(9 12 15 / 28%);
    pointer-events: auto !important;
    box-sizing: border-box;
}

.product-details-popup-wrapper .product-details-close-btn {
    z-index: 8;
    inset: 16px auto auto 16px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid #e4e6e8;
    background: rgb(255 255 255 / 94%) !important;
    box-shadow: 0 8px 24px rgb(14 16 19 / 10%);
}

.product-details-popup-wrapper .details-product-area {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start !important;
    gap: clamp(28px, 4vw, 54px);
}

.product-details-popup-wrapper .details-product-area .product-thumb-area {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    display: block !important;
}

.product-details-popup-wrapper .details-product-area .contents {
    min-width: 0;
    max-height: none !important;
    margin: 0;
    overflow: visible !important;
    text-align: right;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 4.65;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 42%, #fff 0, #fafbf9 56%, #f4f6f2 100%);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb {
    --sf-qv-zoom-x: 50%;
    --sf-qv-zoom-y: 50%;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: scale(1);
    transform-origin: var(--sf-qv-zoom-x) var(--sf-qv-zoom-y);
    transition: transform 220ms ease-out;
    will-change: transform;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb.is-zoomed {
    cursor: zoom-out;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb.is-zoomed img {
    /* Weiboo quick-view reference: a restrained crop, not a full magnifier. */
    transform: scale(1.45);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e4e6;
    border-radius: 50%;
    color: #25282d;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 8px 22px rgb(14 16 19 / 11%);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav:hover {
    color: #fff;
    border-color: var(--theme-color, #83b735);
    background: var(--theme-color, #83b735);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav--prev {
    right: 14px;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav--next {
    left: 14px;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__pagination {
    inset: auto 50% 13px auto !important;
    width: auto !important;
    display: flex;
    gap: 6px;
    transform: translateX(50%);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    opacity: 1;
    background: #cfd3d6;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 99px;
    background: var(--theme-color, #83b735);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__counter {
    position: absolute;
    z-index: 4;
    inset: 14px 14px auto auto;
    min-width: 50px;
    padding: 6px 9px;
    border-radius: 99px;
    color: #555a61;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 5px 15px rgb(14 16 19 / 8%);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.product-details-popup-wrapper .product-thumb-filter-group.sf-quick-view-thumbs {
    width: 100%;
    margin: 12px 0 0 !important;
    display: block !important;
    overflow: hidden;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .swiper-wrapper {
    justify-content: flex-start;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs.is-static .swiper-wrapper {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    column-gap: 12px;
    direction: rtl;
    transform: none !important;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .thumb-filter {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px;
    margin: 0 !important;
    padding: 4px;
    box-sizing: border-box;
    opacity: .62;
    overflow: hidden;
    border: 1px solid #e3e5e7;
    border-radius: 9px;
    background: #f8f9f7;
    cursor: pointer;
    transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .thumb-filter.active,
:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .thumb-filter[aria-current="true"] {
    opacity: 1;
    border-color: var(--theme-color, #83b735);
    box-shadow: 0 0 0 2px rgb(131 183 53 / 16%);
}

:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .thumb-filter img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

.product-details-popup-wrapper .product-status {
    flex-wrap: wrap;
    gap: 8px;
}

.product-details-popup-wrapper .product-catagory {
    margin: 0 !important;
    color: #4c6d18 !important;
    background: rgb(131 183 53 / 12%) !important;
}

.product-details-popup-wrapper .product-title {
    color: #15171b;
    font-size: clamp(22px, 2.1vw, 30px) !important;
    font-weight: 850;
    line-height: 1.55;
}

.product-details-popup-wrapper .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    color: var(--theme-color, #83b735) !important;
    font-size: clamp(26px, 2.5vw, 36px) !important;
    font-weight: 900;
}

.product-details-popup-wrapper .details-product-area .contents > p {
    line-height: 2;
}

.product-details-popup-wrapper .product-bottom-action {
    display: grid !important;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 22px;
}

.product-details-popup-wrapper .product-bottom-action.is-purchasable {
    grid-template-columns: 123px minmax(150px, 1fr) minmax(134px, auto) 60px;
}

.product-details-popup-wrapper .product-bottom-action.is-out-of-stock {
    grid-template-columns: minmax(150px, 1fr) 60px;
}

.product-details-popup-wrapper .product-bottom-action .cart-edit,
.product-details-popup-wrapper .sf-quick-add--popup,
.product-details-popup-wrapper .sf-wishlist-toggle--popup {
    width: auto;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    align-items: stretch;
}

.product-details-popup-wrapper .sf-quick-add--popup {
    display: flex;
}

.product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn {
    min-height: 60px;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--theme-color, #83b735);
    border-radius: 7px;
    color: #fff;
    background: var(--theme-color, #83b735);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn span,
.product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn i {
    color: inherit !important;
}

.product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn:hover {
    color: var(--theme-color, #83b735);
    background: transparent;
}

.product-details-popup-wrapper .product-bottom-action .view-btn {
    min-height: 50px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #212429;
    border-radius: 7px;
    color: #fff;
    background: #212429;
    font-weight: 800;
    text-decoration: none;
}

.product-details-popup-wrapper .product-bottom-action .view-btn:hover {
    color: #212429;
    background: transparent;
}

.product-details-popup-wrapper .product-bottom-action .cart-edit,
.product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn,
.product-details-popup-wrapper .product-bottom-action .view-btn,
.product-details-popup-wrapper .sf-wishlist-toggle--popup .wishlist-btn {
    width: 100%;
    height: 60px !important;
    margin: 0 !important;
}

.product-details-popup-wrapper .product-bottom-action .wishlist-btn,
.product-details-popup-wrapper .product-bottom-action .sf-wishlist-toggle--popup button {
    min-width: 60px;
    height: 60px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe2e4;
    border-radius: 7px;
    color: #73777e;
    background: #fff;
}

.product-details-popup-wrapper .quantity-edit {
    width: 123px;
    height: 60px;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dfe2e4;
    border-radius: 7px;
    background: #fff;
}

.product-details-popup-wrapper .quantity-edit input {
    width: 55px;
    max-width: 55px;
    padding: 0;
    border: 0;
    color: #17191d;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.product-details-popup-wrapper .quantity-edit button {
    padding: 0;
    border: 0;
    color: #b4b8bd;
    background: none;
    cursor: pointer;
}

.product-details-popup-wrapper .quantity-edit button:hover {
    color: var(--theme-color, #83b735);
}

.product-details-popup-wrapper .product-uniques {
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 1px solid #eceef0;
}

.product-details-popup-wrapper .share-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-details-popup-wrapper .share-social .platform {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #73777e;
    background: #f4f5f3;
}

.product-details-popup-wrapper .share-social .platform:hover {
    color: #fff;
    background: var(--theme-color, #83b735);
}

.product-details-popup-wrapper .sf-quick-view__status,
.product-details-popup-wrapper .sf-quick-view__empty {
    min-height: 360px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 899.98px) {
    .product-details-popup-wrapper .product-details-popup {
        max-height: 94vh;
        max-height: 94dvh;
    }

    .product-details-popup-wrapper .details-product-area {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery {
        max-height: 470px;
        aspect-ratio: 1 / .9;
    }
}

@media (max-width: 575.98px) {
    .cart-bar[data-cart-owned="blazor"] {
        width: 100%;
        border-inline-end: 0;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-drawer__header {
        min-height: 84px;
        padding: 16px 18px 14px;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-mini-cart {
        padding: 16px 16px 4px;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-mini-cart__item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-mini-cart__media {
        width: 78px;
        height: 94px;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-mini-cart__checkout-area {
        padding: 15px 18px max(17px, env(safe-area-inset-bottom));
    }

    .product-details-popup-wrapper {
        padding: 10px;
        align-items: start;
    }

    .product-details-popup-wrapper .product-details-popup {
        width: 100%;
        max-height: calc(100dvh - 20px);
        margin: 0;
        padding: 54px 16px 24px !important;
        border-radius: 14px;
    }

    .product-details-popup-wrapper .product-details-close-btn {
        inset: 10px auto auto 10px !important;
    }

    .product-details-popup-wrapper .details-product-area {
        grid-template-areas:
            "media"
            "content";
        gap: 22px;
        margin-bottom: 0;
    }

    .product-details-popup-wrapper .rts-product-details-section.product-details-popup-section .details-product-area .product-thumb-area {
        grid-area: media;
        margin: 0 !important;
    }

    .product-details-popup-wrapper .rts-product-details-section.product-details-popup-section .details-product-area .contents {
        grid-area: content;
        width: 100%;
        display: block !important;
        align-items: stretch;
        margin: 0;
        text-align: right;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery {
        width: 100% !important;
        max-height: none;
        aspect-ratio: 1 / 1.03;
    }

    .product-details-popup-wrapper .product-thumb-filter-group.sf-quick-view-thumbs {
        width: 100% !important;
        margin-top: 12px !important;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav {
        width: 40px;
        height: 40px;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav--prev {
        right: 9px;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav--next {
        left: 9px;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__pagination {
        display: flex;
    }

    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-thumbs .thumb-filter {
        width: 62px !important;
        max-width: 62px !important;
        height: 62px;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-title {
        font-size: 21px !important;
        line-height: 1.65;
        margin-bottom: 8px;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-status {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-price {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 26px !important;
        white-space: nowrap;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-price .old-price {
        font-size: 15px;
    }

    .product-details-popup-wrapper .details-product-area .contents > p {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
        line-height: 2;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-bottom-action {
        width: 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 50px;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 20px;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-bottom-action .action-item {
        margin-bottom: 0;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-bottom-action.is-purchasable {
        grid-template-columns: minmax(82px, 92px) minmax(0, 1fr) 50px;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-bottom-action.is-out-of-stock {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .product-details-popup-wrapper .product-bottom-action .cart-edit,
    .product-details-popup-wrapper .sf-quick-add--popup,
    .product-details-popup-wrapper .product-bottom-action .view-btn {
        width: 100%;
        min-width: 0;
    }

    .product-details-popup-wrapper .product-bottom-action .cart-edit,
    .product-details-popup-wrapper .sf-quick-add--popup {
        height: 50px !important;
    }

    .product-details-popup-wrapper .product-bottom-action .quantity-edit,
    .product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn,
    .product-details-popup-wrapper .product-bottom-action .view-btn {
        width: 100%;
        height: 50px !important;
    }

    .product-details-popup-wrapper .sf-quick-add--popup .addto-cart-btn {
        min-height: 50px;
        padding-inline: 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .product-details-popup-wrapper .product-bottom-action.is-purchasable .cart-edit {
        grid-column: 1;
        grid-row: 1;
    }

    .product-details-popup-wrapper .product-bottom-action.is-purchasable .sf-quick-add--popup {
        grid-column: 2;
        grid-row: 1;
    }

    .product-details-popup-wrapper .product-bottom-action.is-purchasable .view-btn {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .product-details-popup-wrapper .product-bottom-action.is-purchasable .sf-wishlist-toggle--popup {
        grid-column: 3;
        grid-row: 1;
        height: 50px;
    }

    .product-details-popup-wrapper .product-bottom-action .quantity-edit {
        padding-inline: 7px;
    }

    .product-details-popup-wrapper .product-bottom-action .quantity-edit input {
        width: 36px;
        max-width: 36px;
    }

    .product-details-popup-wrapper .product-bottom-action.is-out-of-stock .view-btn {
        grid-column: 1;
        grid-row: 1;
    }

    .product-details-popup-wrapper .product-bottom-action.is-out-of-stock .sf-wishlist-toggle--popup {
        grid-column: 2;
        grid-row: 1;
    }

    .product-details-popup-wrapper .product-bottom-action .sf-wishlist-toggle--popup .wishlist-btn {
        width: 50px !important;
        min-width: 50px;
        height: 50px !important;
        padding: 0;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .product-uniques {
        width: 100%;
        margin-bottom: 16px;
        padding-top: 16px;
        text-align: right;
    }

    .product-details-popup-wrapper .product-details-popup .details-product-area .share-social {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-bar[data-cart-owned="blazor"],
    .cart-bar[data-cart-owned="blazor"] .sf-mini-cart__media img,
    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav,
    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb img {
        transition-duration: 1ms !important;
    }

    .cart-bar[data-cart-owned="blazor"] .sf-cart-progress span {
        animation-duration: 2.5s;
    }
}

@media (hover: none), (pointer: coarse) {
    :is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery .product-thumb {
        cursor: default;
    }
}

/*
 * Featured / product cards on Weiboo-native path (storefront.css is not loaded):
 * compact title→price spacing, equal inner-nav insets, price↔cart hover swap.
 */
.rts-featured_products-section .swiper-slide {
    height: auto;
    display: flex !important;
}

.rts-featured_products-section .sf-product-carousel__viewport {
    touch-action: pan-y;
    overscroll-behavior-inline: contain;
}

.rts-featured_products-section .sf-product-carousel__viewport.swiper-initialized {
    cursor: grab;
}

.rts-featured_products-section .sf-product-carousel__viewport.swiper-initialized:active {
    cursor: grabbing;
}

/* UX5 phase 2 — commercial home composition refinements. */
.sf-deal-showcase__header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.sf-deal-showcase__navigation {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    width: auto !important;
    margin: 0 !important;
    gap: 8px;
    transform: none !important;
    pointer-events: auto;
}

.sf-deal-showcase__navigation .slider-btn {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    border: 1px solid #e0e5e9;
    border-radius: 50%;
    background: #fff;
    color: #031424;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.sf-deal-showcase__navigation .slider-btn:hover,
.sf-deal-showcase__navigation .slider-btn:focus-visible {
    border-color: var(--theme-color, #0070dc);
    background: var(--theme-color, #0070dc);
    color: #fff;
}

/* main.css keeps the deal next control permanently green. Its foreground must
   consume the same on-primary token as every other primary surface. */
.sf-deal-showcase__navigation .slider-btn.next {
    border-color: var(--sf-color-primary, #83B735);
    background: var(--sf-color-primary, #83B735);
    color: var(--sf-color-on-primary, #fff) !important;
}

.sf-deal-showcase__navigation .slider-btn.next i {
    color: inherit !important;
}

.sf-deal-showcase .product-price .old-price {
    color: #8b959e;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.rts-featured_products-section.section-5 {
    padding-bottom: clamp(52px, 5vw, 76px) !important;
}

.rts-posters-section.section-5 {
    padding-top: 12px !important;
}

.rts-posters-section .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    margin: 0;
}

.rts-posters-section .row > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

@media (max-width: 1199px) {
    .rts-posters-section .row {
        grid-template-columns: 1fr;
    }
}

.rts-featured_products-section .sf-product-carousel__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
    margin-top: 0;
    direction: rtl;
}

.rts-featured_products-section .sf-product-carousel__pagination .swiper-pagination-bullet {
    appearance: none;
    width: 9px;
    height: 9px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--theme-color, #83b735);
    opacity: .25;
    cursor: pointer;
    transition: width 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.rts-featured_products-section .sf-product-carousel__pagination .swiper-pagination-bullet:hover,
.rts-featured_products-section .sf-product-carousel__pagination .swiper-pagination-bullet:focus-visible {
    opacity: .7;
}

.rts-featured_products-section .sf-product-carousel__pagination .swiper-pagination-bullet:focus-visible {
    outline: 3px solid rgba(131, 183, 53, .24);
    outline-offset: 3px;
}

.rts-featured_products-section .sf-product-carousel__pagination .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--theme-color, #83b735);
    box-shadow: 0 0 0 3px rgba(131, 183, 53, .12);
    opacity: 1;
}

.sf-deal-showcase .side-box .contents {
    padding-inline: 0 !important;
}

.sf-deal-showcase__side-add {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 12px;
}

.sf-deal-showcase .side-box .contents .sf-deal-showcase__side-add .cart-btn {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 148px;
    min-height: 44px;
    margin: 0;
    padding: 0 17px !important;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--theme-color, #00a046);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 160, 70, .16);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.sf-deal-showcase .side-box .contents .sf-deal-showcase__side-add .cart-btn:hover,
.sf-deal-showcase .side-box .contents .sf-deal-showcase__side-add .cart-btn:focus-visible {
    filter: brightness(.94);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 160, 70, .22);
}

.sf-deal-showcase .side-box .contents .sf-deal-showcase__side-add .cart-btn span,
.sf-deal-showcase .side-box .contents .sf-deal-showcase__side-add .cart-btn i {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.rts-best-catagory-section .catagory-card {
    min-height: 350px;
    overflow: hidden;
    background: #fff;
}

.rts-best-catagory-section .catagory-card .contents {
    position: relative;
    z-index: 2;
}

.rts-best-catagory-section .catagory-card .contents .all-btn {
    margin-bottom: 20px;
}

.rts-best-catagory-section .catagory-card .sf-category-emblem {
    right: auto;
    bottom: -42px;
    left: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 178px;
    height: 178px;
    border: 1px solid rgba(0, 112, 220, 0.12);
    border-radius: 50%;
    background: linear-gradient(145deg, #f8fbff 0%, #eaf4ff 100%);
    color: var(--theme-color, #0070dc);
    transform: none;
    pointer-events: none;
}

.rts-best-catagory-section .catagory-card:nth-child(2n) .sf-category-emblem {
    border-color: rgba(0, 160, 70, 0.14);
    background: linear-gradient(145deg, #f8fdf9 0%, #e5f7ed 100%);
    color: #009b45;
}

.rts-best-catagory-section .catagory-card .sf-category-emblem i {
    position: absolute;
    top: 45px;
    right: 45px;
    font-size: 26px;
    opacity: 0.38;
}

.rts-best-catagory-section .catagory-card .sf-category-emblem span {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.82;
}

.rts-brands-section2[data-testid="ssr-home-brands"] {
    padding: 68px 0 52px;
}

.rts-brands-section2[data-testid="ssr-home-brands"] .brands-section-inner {
    padding: 28px 0 0 !important;
}

.footer-4[data-testid="ssr-index-five-footer"] {
    padding-top: 0;
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-inner {
    margin: 0;
    padding: 72px 0 46px;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) repeat(2, minmax(160px, 0.72fr));
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.sf-footer-grid.has-newsletter {
    grid-template-columns: minmax(270px, 1.25fr) repeat(2, minmax(150px, 0.65fr)) minmax(260px, 1fr);
    gap: clamp(24px, 3vw, 46px);
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-widget {
    min-width: 0;
    margin: 0;
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-box-widget {
    padding: 34px;
    border: 1px solid #102a40;
    border-radius: 10px;
    background: #06192a;
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 190px;
    min-height: 58px;
    margin-bottom: 22px;
    padding: 5px 5px;
    border-radius: 7px;
    /*background: #fff;*/
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-logo img {
    width: auto;
    max-width: 160px;
    height: 42px;
    object-fit: contain;
}

.footer-4[data-testid="ssr-index-five-footer"] .widget-text,
.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-contact,
.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-consent {
    color: #aeb9c4;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-about .widget-text {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #173047;
    font-size: 14px;
    line-height: 2;
}

.footer-4[data-testid="ssr-index-five-footer"] .quick-contact {
    display: grid;
    gap: 12px;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-contact {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    line-height: 1.65;
}

.footer-4[data-testid="ssr-index-five-footer"] a.sf-footer-contact:hover {
    color: #fff;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-contact i {
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #102b41;
    color: var(--theme-color, #83b735);
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-contact > span {
    color: inherit !important;
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-widget-title {
    margin: 10px 0 28px;
    color: #fff;
    font-size: 18px;
}

.footer-4[data-testid="ssr-index-five-footer"] .widget-list-item {
    margin-bottom: 8px;
}

.footer-4[data-testid="ssr-index-five-footer"] .widget-list-item a {
    color: #aeb9c4;
    font-size: 14px;
    line-height: 2;
}

.footer-4[data-testid="ssr-index-five-footer"] .widget-list-item a:hover,
.footer-4[data-testid="ssr-index-five-footer"] .widget-list-item a:focus-visible,
.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-consent a {
    color: #fff;
}

.footer-4[data-testid="ssr-index-five-footer"] .newsletter-form {
    display: grid;
    grid-template-columns: 1fr 48px;
    overflow: hidden;
    border: 1px solid #17344d;
    border-radius: 7px;
    background: #06192a;
}

.footer-4[data-testid="ssr-index-five-footer"] .newsletter-form input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    color: #fff;
}

.footer-4[data-testid="ssr-index-five-footer"] .newsletter-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--theme-color, #83b735);
    color: #031424;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.8;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 5px;
}

.footer-4[data-testid="ssr-index-five-footer"] .footer-bottom-area {
    border-top: 1px solid #173047;
    background: #03111e;
}

.footer-4[data-testid="ssr-index-five-footer"] .copyright {
    color: #d5dce2;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #173047;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #d5dce2;
    background: #102b41;
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-socials a:hover,
.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-socials a:focus-visible {
    color: #fff;
    background: var(--theme-color, #83b735);
}

.footer-4[data-testid="ssr-index-five-footer"] .sf-footer-trustbar {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 128px;
    margin: 0 0 42px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 10px;
    background: var(--theme-color, #83b735);
}

.sf-footer-trustbar__intro {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.sf-footer-trustbar__intro > i {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--theme-color, #83b735);
    background: #fff;
    font-size: 22px;
}

.sf-footer-trustbar__intro h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 18px;
}

.sf-footer-trustbar__intro p {
    margin: 0;
    color: rgb(255 255 255 / 82%);
    font-size: 12px;
}

.sf-footer-trustbar__items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sf-footer-trustbar__empty {
    min-height: 76px;
    max-width: 330px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed rgb(255 255 255 / 72%);
    border-radius: 9px;
    color: #fff;
    background: rgb(3 17 30 / 10%);
    font-size: 12px;
    line-height: 1.8;
}

.sf-footer-trustbar__empty i {
    font-size: 22px;
}

.sf-footer-trust-badge {
    width: 92px;
    height: 92px;
    padding: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 66%);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 20px rgb(3 17 30 / 12%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sf-footer-trust-badge:hover,
.sf-footer-trust-badge:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgb(3 17 30 / 20%);
}

.sf-footer-trust-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

html.sf-newsletter-open,
body.sf-newsletter-open {
    overflow: hidden;
}

.sf-newsletter-popup__backdrop {
    position: fixed;
    z-index: 998;
    inset: 0;
    opacity: 0;
    background: rgb(3 13 22 / 72%);
    backdrop-filter: blur(3px);
    transition: opacity 220ms ease;
}

.sf-newsletter-popup__backdrop.show {
    opacity: 1;
}

.sf-newsletter-popup__backdrop[hidden],
.sf-newsletter-popup[hidden] {
    display: none !important;
}

.rts-newsletter-popup.sf-newsletter-popup {
    z-index: 999;
    top: 50%;
    right: 50%;
    width: min(620px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid rgb(14 16 19 / 8%);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgb(3 13 22 / 28%);
    transform: translate(50%, -46%) scale(.97);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.rts-newsletter-popup.sf-newsletter-popup.popup {
    transform: translate(50%, -50%) scale(1);
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner {
    padding: 52px 54px 38px;
    text-align: center;
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-close-btn {
    top: 16px;
    right: auto;
    left: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid #e7e9eb;
    border-radius: 50%;
    color: #1f2227;
    background: #fff;
    box-shadow: 0 7px 20px rgb(14 16 19 / 8%);
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-close-btn:hover i {
    color: var(--theme-color, #83b735);
}

.sf-newsletter-popup__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--theme-color, #83b735);
    box-shadow: 0 12px 30px rgb(131 183 53 / 25%);
    font-size: 25px;
}

.sf-newsletter-popup__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-color, #83b735);
    font-size: 13px;
    font-weight: 800;
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner .newsletter-heading {
    margin-bottom: 8px;
    color: #11141a;
    font-size: clamp(25px, 4vw, 32px);
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner > p {
    max-width: 470px;
    margin: 0 auto 24px;
    color: #6d7178;
    line-height: 1.9;
}

.sf-newsletter-popup__field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: #2b2f34;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.sf-newsletter-honeypot {
    position: absolute !important;
    inset-inline-start: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sf-newsletter-popup__input {
    height: 58px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #e0e3e5;
    border-radius: 8px;
    background: #fff;
}

.sf-newsletter-popup__input i {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e7e9eb;
    color: var(--theme-color, #83b735);
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner .sf-newsletter-popup__input input {
    height: 100%;
    padding: 0 16px;
    border: 0;
    color: #1d2025;
    background: transparent;
    text-align: left;
}

.sf-newsletter-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    color: #656a71;
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
}

.sf-newsletter-popup__consent input {
    flex: 0 0 auto;
    width: 17px !important;
    height: 17px;
    margin-top: 4px;
    padding: 0 !important;
    accent-color: var(--theme-color, #83b735);
}

.sf-newsletter-popup__consent a {
    color: #4f7419;
    text-decoration: underline;
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner .subscribe-btn {
    min-height: 56px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--theme-color, #83b735);
    color: #fff;
    background: var(--theme-color, #83b735);
    font-weight: 800;
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner .subscribe-btn:hover {
    color: var(--theme-color, #83b735);
    background: #fff;
}

.rts-newsletter-popup.sf-newsletter-popup .newsletter-inner .sf-newsletter-popup__note {
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #858990;
    font-size: 11px;
}

@media (max-width: 1199px) {
    .sf-footer-grid,
    .sf-footer-grid.has-newsletter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-4[data-testid="ssr-index-five-footer"] .sf-footer-trustbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sf-footer-trustbar__items {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .banner.banner-4 .bannerSlider .swiper-slide {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }

    .banner.banner-4 .product-box-large {
        box-sizing: border-box;
        width: calc(100% - 10px);
        height: 540px;
        min-height: 540px;
        padding: 26px 24px;
        overflow: hidden;
    }

    .banner.banner-4 .product-box-large .product-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 220px;
        margin: 0 auto 24px;
    }

    .banner.banner-4 .product-box-large .product-thumb img {
        width: auto;
        max-width: 82%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    .banner.banner-4 .product-box-large .contents {
        box-sizing: border-box;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: center;
    }

    .banner.banner-4 .product-box-large .contents .product-title,
    .banner.banner-4 .product-box-large .contents p {
        max-width: 100%;
        margin-inline: 0;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .banner.banner-4 .product-box-large .contents .product-title {
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.45;
    }

    .sf-deal-showcase .section-header {
        align-items: flex-start;
        gap: 18px;
    }

    .sf-deal-showcase__header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rts-best-catagory-section .catagory-card {
        min-height: 330px;
    }

    .rts-featured_products-section.section-5 {
        padding-bottom: 46px !important;
    }

    .rts-posters-section.section-5 {
        padding-top: 8px !important;
    }

    .rts-brands-section2[data-testid="ssr-home-brands"] {
        padding: 52px 0 38px;
        text-align: center;
    }

    .rts-brands-section2[data-testid="ssr-home-brands"] .brands-section-inner {
        padding-top: 20px !important;
    }

    .footer-4[data-testid="ssr-index-five-footer"] .footer-inner {
        padding: 54px 0 34px;
    }
}

@media (max-width: 640px) {
    .banner.banner-4 > .container > .row,
    .rts-services-section > .container > .row {
        margin-inline: 0;
    }

    .banner.banner-4 > .container > .row > [class*="col-"],
    .rts-services-section > .container > .row > [class*="col-"] {
        padding-inline: 0;
    }

    .banner.banner-4 .product-box-large {
        width: 100%;
        margin-inline: 0;
    }

    .sf-footer-grid,
    .sf-footer-grid.has-newsletter {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .footer-4[data-testid="ssr-index-five-footer"] .footer-widget-title {
        margin-top: 0;
    }

    .footer-4[data-testid="ssr-index-five-footer"] .footer-box-widget {
        padding: 26px 22px;
    }

    .footer-4[data-testid="ssr-index-five-footer"] .sf-footer-trustbar {
        margin-bottom: 28px;
        padding: 22px 18px;
    }

    .sf-footer-trustbar__items {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sf-footer-trust-badge {
        width: 82px;
        height: 82px;
    }

    .rts-newsletter-popup.sf-newsletter-popup {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .rts-newsletter-popup.sf-newsletter-popup .newsletter-inner {
        padding: 52px 20px 28px;
    }

    .rts-newsletter-popup.sf-newsletter-popup .newsletter-close-btn {
        top: 10px;
        right: auto;
        left: 10px;
    }
}

.sf-product-carousel__controls {
    display: grid;
    grid-template-columns: 42px minmax(80px, 1fr) 42px;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    margin: 18px auto 0;
}

.rts-featured_products-section .sf-product-carousel__controls .pagination-area {
    height: 42px;
    min-width: 0;
    align-items: center;
}

.sf-product-carousel__button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    background: #fff;
    color: #0e1013;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sf-product-carousel__button:hover,
.sf-product-carousel__button:focus-visible {
    border-color: var(--theme-color, #0070dc);
    background: var(--theme-color, #0070dc);
    color: #fff;
}

.sf-product-carousel__button:focus-visible {
    outline: 3px solid rgba(0, 112, 220, 0.22);
    outline-offset: 2px;
}

.sf-product-carousel__button.swiper-button-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.sf-product-carousel__button::after {
    content: none !important;
}

.rts-featured_products-section .product-item.sf-product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Prefer natural height over Bootstrap h-100 stretch (avoids dead space under price) */
    height: auto !important;
}

.rts-featured_products-section .sf-product-card__visual {
    position: relative;
    flex: 0 0 auto;
}

.rts-featured_products-section .product-image {
    margin-bottom: 8px;
}

.rts-featured_products-section .bottom-content {
    /* Keep title and price stacked tightly — do not flex-grow a gap between them */
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding-top: 0;
    margin-top: 0;
}

.rts-featured_products-section .product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 0 !important;
    /* no reserved 2-line box — 1-line titles stay compact */
}

.rts-featured_products-section .action-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Keep actions above image + inner nav so eye/wishlist receive clicks */
.rts-featured_products-section .product-actions {
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 20;
    pointer-events: auto;
}

.rts-featured_products-section .product-actions .product-action {
    pointer-events: auto;
    cursor: pointer;
    border: 0;
}

.rts-featured_products-section .product-item:focus-within .product-actions {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767.98px) {
    .rts-featured_products-section .product-actions {
        top: 12px;
        left: 12px;
        visibility: visible;
        opacity: 1;
        transform: none;
    }
}

/*
 * Inner image nav: equal physical inset from both edges (RTL-safe).
 * Avoid flex space-between + swiper-button-prev { margin-left } asymmetry.
 */
.rts-featured_products-section .image-slider-variations .slider-buttons {
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    z-index: 5;
    display: block;
    box-sizing: border-box;
    pointer-events: none;
}

.rts-featured_products-section .element-item2:hover .slider-buttons,
.rts-featured_products-section .element-item2:focus-within .slider-buttons {
    transform: translateY(-50%) scale(1);
    visibility: visible;
    opacity: 1;
}

.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn,
.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn.swiper-button-prev,
.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn.swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    inset-block: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0e1013 !important;
    cursor: pointer;
    pointer-events: auto;
}

.rts-featured_products-section .image-slider-variations .slider-buttons .button-prev,
.rts-featured_products-section .image-slider-variations .slider-buttons .button-prev.swiper-button-prev {
    left: 10px !important;
    right: auto !important;
}

.rts-featured_products-section .image-slider-variations .slider-buttons .button-next,
.rts-featured_products-section .image-slider-variations .slider-buttons .button-next.swiper-button-next {
    right: 10px !important;
    left: auto !important;
}

.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn::after,
.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn.swiper-button-prev::after,
.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn.swiper-button-next::after {
    content: none !important;
    display: none !important;
}

.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn i {
    font-size: 12px !important;
    line-height: 1 !important;
    color: #0e1013 !important;
}

.rts-featured_products-section .product-image.image-slider-variations {
    touch-action: pan-y;
}

/* The retained index-two brand strip must stay optically centered on narrow screens. */
.rts-brands-section2 .rts-brandSlide1 .swiper-slide,
.rts-brands-section2 .rts-brandSlide1 .brand-front {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rts-brands-section2 .rts-brandSlide1 .brand-front {
    width: 100%;
    min-height: 80px;
}

.rts-brands-section2 .rts-brandSlide1 .brand-front img {
    display: block;
    max-width: 100%;
    height: 80px;
    margin-inline: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .sf-product-carousel__controls {
        grid-template-columns: 38px minmax(72px, 1fr) 38px;
        gap: 8px;
        max-width: 300px;
        margin-top: 12px;
    }

    .sf-product-carousel__button {
        width: 38px;
        height: 38px;
    }

    .rts-brands-section2 .recent-products-header {
        text-align: center;
    }
}

@media (hover: none) {
    .rts-featured_products-section .image-slider-variations .slider-buttons {
        visibility: visible;
        opacity: 1;
    }
}

/* Price + old-price sit together; hover swaps to add-to-cart without bleed */
.sf-product-card .product-price .old-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: inherit;
}

.sf-product-card .action-wrap {
    position: relative;
    display: block;
    height: 28px;
    max-height: 28px;
    overflow: hidden;
    line-height: 28px;
    background: #fff;
}

.sf-product-card .action-wrap .product-price,
.sf-product-card .action-wrap .sf-quick-add--inline {
    position: absolute;
    inset-inline: 0;
    top: 0;
    display: block;
    margin: 0;
    padding: 0;
    background: #fff !important;
    line-height: 28px;
    height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 450ms ease, opacity 200ms ease;
    transform: translateY(0);
}

.sf-product-card .action-wrap .sf-quick-add--inline {
    transform: translateY(100%);
}

.sf-product-card:hover .action-wrap .product-price,
.sf-product-card:focus-within .action-wrap .product-price {
    transform: translateY(-100%) !important;
    opacity: 0;
    pointer-events: none;
}

.sf-product-card:hover .action-wrap .sf-quick-add--inline,
.sf-product-card:focus-within .action-wrap .sf-quick-add--inline {
    transform: translateY(0);
    opacity: 1;
}

/* Defeat main.css translate on nested .addto-cart (wrapper already moves). */
.sf-product-card .action-wrap .addto-cart,
.sf-product-card:hover .action-wrap .addto-cart {
    transform: none !important;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    height: 28px;
    padding: 0;
    border: 0;
    background: #fff !important;
    color: #0070dc;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
    box-shadow: none !important;
}

/*
 * index-five banner-4: stretch side banners to the main hero’s natural height.
 * Do NOT force height:100% on .bannerSlider / .swiper-wrapper / .swiper-slide —
 * that circular dependency collapses Swiper after init (flash → blank).
 */
@media (min-width: 1200px) {
    .banner.banner-4 > .container > .row {
        align-items: stretch;
    }

    .banner.banner-4 .col-xl-8 {
        min-width: 0;
    }

    .banner.banner-4 .col-xl-4 {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .banner.banner-4 .bannerSlider {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100%;
    }

    .banner.banner-4 .product-box-large {
       /* min-height: 520px;
        margin-left: 0;*/
        box-sizing: border-box;
        height:100%;
    }

    /* Keep nav arrows inside the hero (template uses right: -6px which can widen the page). */
    .banner.banner-4 .slider-navigation .slider-btn.prev,
    .banner.banner-4 .slider-navigation .slider-btn.next {
        right: 0;
    }

    .banner.banner-4 .col-xl-4 > .row {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        height: 100%;
        margin: 0;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    .banner.banner-4 .col-xl-4 > .row > [class*="col-"] {
        flex: 1 1 0;
        display: flex;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .banner.banner-4 .col-xl-4 .product-box-medium {
        flex: 1 1 0;
        width: 100%;
        margin-bottom: 15px;
        min-height: 0;
        box-sizing: border-box;
    }

    .banner.banner-4 .col-xl-4 > .row > [class*="col-"]:last-child .product-box-medium {
        margin-bottom: 0;
    }
}

/* Service cards: keep full 1px borders (no parent clip / no adjacent overlap). */
.rts-services-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    overflow: visible;
}

.rts-services-section [class*="col-"] {
    overflow: visible;
}

.rts-services-section .service-item {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #fff;
    background-clip: padding-box;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    /* Avoid sub-pixel border loss against white page when zoomed/scrolled. */
    box-shadow: inset 0 0 0 1px rgba(223, 229, 236, 0.35);
}

/* Index-five deal showcase, bound to real product data and scoped controls. */
.sf-deal-showcase__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--sf-color-primary);
    color: var(--sf-color-text);
    font-size: 13px;
    font-weight: 700;
}

.sf-deal-showcase__viewport {
    max-width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior-inline: contain;
}

.sf-deal-showcase__viewport.swiper-initialized {
    cursor: grab;
}

.sf-deal-showcase__viewport.swiper-initialized:active {
    cursor: grabbing;
}

.sf-deal-showcase .deal-box-inner,
.sf-deal-showcase .deal-product,
.sf-deal-showcase .product-area,
.sf-deal-showcase .detail-product,
.sf-deal-showcase .detail-product .contents {
    min-width: 0;
}

.sf-deal-showcase .deal-product {
    flex: 1 1 auto;
    padding: 24px 32px;
    padding-inline-end: 48px;
    background: #fff;
}

.sf-deal-showcase .filter-buttons {
    flex: 0 0 82px;
    gap: 12px;
}

.sf-deal-showcase .filter-buttons .filter-btn {
    width: 82px;
    height: 82px;
    margin: 0;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 7px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sf-deal-showcase .filter-buttons .filter-btn:hover,
.sf-deal-showcase .filter-buttons .filter-btn:focus-visible,
.sf-deal-showcase .filter-buttons .filter-btn.active {
    border-color: var(--theme-color, #0070dc);
    box-shadow: 0 8px 22px rgba(3, 20, 36, .1);
}

.sf-deal-showcase .filter-buttons .filter-btn:focus-visible {
    outline: 3px solid rgba(0, 112, 220, .2);
    outline-offset: 2px;
}

.sf-deal-showcase .filter-buttons .filter-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sf-deal-showcase .product-area {
    flex: 1 1 auto;
}

.sf-deal-showcase .detail-product {
    justify-content: space-between;
    height: 460px;
}

.sf-deal-showcase .detail-product .product-thumb {
    flex: 0 1 42%;
    max-width: 360px;
    margin: 0 30px;
}

.sf-deal-showcase .detail-product .product-thumb img,
.sf-deal-showcase .side-box .product-thumb img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: contain;
}

.sf-deal-showcase .detail-product .contents {
    flex: 1 1 300px;
}

.sf-deal-showcase__discount {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #eaf7ee;
    color: #0f8a3d;
    font-size: 13px;
    font-weight: 700;
}

.sf-deal-showcase .detail-product .contents .product-title {
    max-width: 360px;
    margin-bottom: 20px;
}

.sf-deal-showcase .detail-product .contents .product-title a,
.sf-deal-showcase .side-box .product-title a {
    color: inherit;
}

.sf-deal-showcase .detail-product .contents .product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    font-size: clamp(24px, 2.3vw, 38px);
    line-height: 1.4;
}

.sf-deal-showcase .detail-product .contents .product-price .old-price {
    margin: 0;
    font-size: 18px;
}

.sf-deal-showcase .product-buttons {
    flex-wrap: wrap;
    gap: 10px;
}

.sf-deal-showcase .detail-product .select-option-btn {
    width: auto;
    min-width: 170px;
    margin: 0;
    gap: 7px;
    border-color: var(--theme-color, #0070dc);
    background: var(--theme-color, #0070dc);
    color: #fff;
}

.sf-deal-showcase .detail-product .wishlist-btn,
.sf-deal-showcase .detail-product .exchange-btn {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
}

.sf-deal-showcase .detail-product .sf-deal-showcase__wishlist {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-deal-showcase .detail-product .sf-deal-showcase__wishlist .wishlist-btn,
.sf-deal-showcase .detail-product .product-buttons > .wishlist-btn,
.sf-deal-showcase .detail-product .product-details-popup-btn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sf-color-border, #e3e8de);
    border-radius: var(--sf-radius-sm, 7px);
    background: var(--sf-color-surface, #fff);
    color: var(--sf-color-text, #0e1013);
    box-shadow: var(--sf-shadow-control, 0 9px 22px rgb(14 16 19 / 8%));
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-deal-showcase .detail-product .sf-deal-showcase__wishlist .wishlist-btn:hover,
.sf-deal-showcase .detail-product .sf-deal-showcase__wishlist .wishlist-btn:focus-visible,
.sf-deal-showcase .detail-product .product-buttons > .wishlist-btn:hover,
.sf-deal-showcase .detail-product .product-buttons > .wishlist-btn:focus-visible,
.sf-deal-showcase .detail-product .product-details-popup-btn:hover,
.sf-deal-showcase .detail-product .product-details-popup-btn:focus-visible {
    border-color: var(--sf-color-primary, #83B735);
    color: var(--sf-color-primary, #83B735);
    box-shadow: var(--sf-focus-ring, 0 0 0 4px rgb(131 183 53 / 24%));
}

.sf-deal-showcase .side-box {
    flex: 0 0 min(29%, 390px);
    min-width: 0;
    overflow: hidden;
}

.sf-deal-showcase .side-box .product {
    display: flex;
    flex-direction: column;
    /* Match the 460px main card plus its 24px insets and 1px borders. */
    height: 510px;
    padding: 20px 30px;
    overflow: hidden;
    background: #fbfcfe;
}

.sf-deal-showcase .side-box .product-thumb {
    flex: 0 0 240px;
    height: 240px;
}

.sf-deal-showcase .side-box .contents {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding-inline-end: 58px;
}

.sf-deal-showcase .side-box .contents .product-title {
    min-height: 40px;
}

.sf-deal-showcase__navigation {
    pointer-events: none;
}

.sf-deal-showcase__navigation .slider-btn {
    pointer-events: auto;
}

.sf-deal-showcase__navigation .slider-btn::after {
    content: none;
}

@media (max-width: 1200px) {
    .sf-deal-showcase .side-box {
        flex-basis: auto;
    }

    .sf-deal-showcase .side-box .product {
        height: auto;
        min-height: 280px;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .sf-deal-showcase .side-box .product-thumb {
        flex: 0 1 320px;
        height: 230px;
        margin: 0;
    }

    .sf-deal-showcase .side-box .contents {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .sf-deal-showcase .section-header .flex-wrapper {
        align-items: flex-start;
    }

    .sf-deal-showcase__status {
        margin: 8px 0 0;
    }

    .sf-deal-showcase .deal-product {
        padding: 24px 18px !important;
    }

    .sf-deal-showcase .filter-buttons {
        width: 100%;
        flex: 0 0 auto;
        justify-content: center;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 3px;
        scrollbar-width: none;
    }

    .sf-deal-showcase .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .sf-deal-showcase .filter-buttons .filter-btn {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }

    .sf-deal-showcase .detail-product {
        align-items: center !important;
        height: auto;
        min-height: 0;
    }

    .sf-deal-showcase .detail-product .product-thumb {
        width: min(100%, 340px);
        margin: 0 auto 24px;
    }

    .sf-deal-showcase .detail-product .contents {
        width: 100%;
        padding: 0 !important;
        text-align: center;
    }

    .sf-deal-showcase .detail-product .contents .product-title {
        max-width: none;
    }

    .sf-deal-showcase .detail-product .rating-stars-group,
    .sf-deal-showcase .detail-product .product-price,
    .sf-deal-showcase .product-buttons {
        justify-content: center;
    }

    .sf-deal-showcase .side-box .product {
        flex-direction: column;
        text-align: center;
    }

    .sf-deal-showcase .side-box .product-thumb {
        width: min(100%, 300px);
        flex-basis: auto;
    }

    .sf-deal-showcase .side-box .contents {
        width: 100%;
        padding-inline: 0 58px;
        text-align: start;
    }

    .sf-deal-showcase__navigation {
        position: static !important;
        width: max-content;
        margin: 18px auto 0;
        transform: none !important;
    }
}

/*
 * UX design-system contract: all storefront CTA, navigation and feedback
 * controls derive their visual signature from variables/variable1.css.
 */
.sf-storefront-cta,
.sf-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--sf-control-height, 48px);
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--sf-radius-sm, 7px);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    transition: transform 180ms ease, background-color 180ms ease,
        border-color 180ms ease, box-shadow 180ms ease;
}

.sf-storefront-cta--primary,
.sf-primary-button {
    border-color: var(--sf-color-primary, #83B735) !important;
    background: var(--sf-color-primary, #83B735) !important;
    color: var(--sf-color-on-primary, #fff) !important;
    box-shadow: var(--sf-shadow-control, 0 9px 22px rgb(73 105 29 / 18%));
}

.sf-storefront-cta--primary span,
.sf-storefront-cta--primary i,
.sf-primary-button span,
.sf-primary-button i {
    color: inherit !important;
}

.sf-storefront-cta--primary:hover,
.sf-storefront-cta--primary:focus-visible,
.sf-primary-button:hover,
.sf-primary-button:focus-visible {
    border-color: var(--sf-color-primary-hover, #6f9f2d) !important;
    background: var(--sf-color-primary-hover, #6f9f2d) !important;
    color: var(--sf-color-on-primary, #fff) !important;
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgb(73 105 29 / 24%);
}

.sf-storefront-cta:focus-visible,
.sf-primary-button:focus-visible,
.sf-carousel-button:focus-visible {
    outline: none;
    box-shadow: var(--sf-focus-ring, 0 0 0 4px rgb(131 183 53 / 24%));
}

.sf-storefront-cta:disabled,
.sf-storefront-cta[aria-disabled="true"],
.sf-primary-button:disabled,
.sf-primary-button[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Header theme controls share the exact primary green and on-primary foreground. */
.navbar-part4 .navbar-search-area .select .select-styled,
.navbar-part4 .navbar-select-area .select .select-styled {
    background: var(--sf-color-primary, #83B735) !important;
    color: var(--sf-color-on-primary, #fff) !important;
}

.navbar-part4 .navbar-search-area .select .select-styled::after,
.navbar-part4 .navbar-select-area .select .select-styled::after {
    border-color: var(--sf-color-on-primary, #fff) transparent transparent transparent !important;
}

.navbar-part4 .select-options {
    border-color: var(--sf-color-border, #e3e8de);
    background: var(--sf-color-surface, #fff);
    box-shadow: var(--sf-shadow-elevated, 0 18px 48px rgb(14 16 19 / 16%));
}

.navbar-part4 .select-options li {
    color: var(--sf-color-text, #0e1013) !important;
}

.navbar-part4 .select-options li:hover,
.navbar-part4 .select-options li.is-selected {
    background: var(--sf-color-primary, #83B735) !important;
    color: var(--sf-color-on-primary, #fff) !important;
}

/* Product-card commerce action uses the storefront primary, never error red. */
.sf-product-card .action-wrap .addto-cart,
.sf-product-card:hover .action-wrap .addto-cart,
.sf-product-card .action-wrap .addto-cart i,
.sf-product-card:hover .action-wrap .addto-cart i {
    color: var(--sf-color-primary, #83B735) !important;
}

.sf-product-card .action-wrap .addto-cart:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgb(131 183 53 / 20%) !important;
}

/* One CTA signature for the main and selected deal cards. */
.sf-deal-showcase .detail-product .sf-storefront-cta,
.sf-deal-showcase .side-box .contents .sf-storefront-cta {
    position: static !important;
    inset: auto !important;
    width: auto;
    min-width: 172px !important;
    height: var(--sf-control-height, 48px) !important;
    min-height: var(--sf-control-height, 48px);
    margin: 0;
    padding-inline: 20px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-sizing: border-box;
}

.sf-deal-showcase .side-box .contents {
    padding-inline: 0 !important;
    text-align: center;
}

.sf-deal-showcase .side-box .contents .product-price,
.sf-deal-showcase__side-add {
    justify-content: center;
}

.sf-deal-showcase__side-add {
    width: 100%;
}

/* Featured products and brands share page-at-a-time carousel controls. */
.sf-carousel-controls {
    display: grid;
    grid-template-columns: 42px minmax(80px, 1fr) 42px;
    align-items: center;
    gap: 12px;
    width: min(100%, 360px);
    margin: 20px auto 0;
}

.sf-carousel-controls[hidden] {
    display: none !important;
}

.sf-carousel-controls .pagination-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 42px;
}

.sf-carousel-button {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0;
    border: 1px solid var(--sf-color-border, #e3e8de);
    border-radius: var(--sf-radius-sm, 7px);
    background: var(--sf-color-surface, #fff);
    color: var(--sf-color-text, #0e1013);
    transition: background-color 180ms ease, border-color 180ms ease,
        color 180ms ease, box-shadow 180ms ease;
}

.sf-carousel-button::after {
    content: none !important;
}

/* main.css rotates horizontal RTL glyphs globally; scoped carousel controls
   own their semantic direction and therefore render the source icon as-is. */
.sf-carousel-button i,
.rts-featured_products-section .image-slider-variations .slider-buttons .slider-btn i,
:is(.product-details-popup-wrapper, .sf-product-gallery) .sf-quick-view-gallery__nav i {
    transform: none !important;
}

.sf-carousel-button i {
    color: inherit !important;
}

.sf-carousel-button:hover,
.sf-carousel-button:focus-visible {
    border-color: var(--sf-color-primary, #83B735);
    background: var(--sf-color-primary, #83B735);
    color: var(--sf-color-on-primary, #fff);
}

.sf-carousel-button.swiper-button-disabled {
    opacity: .42;
    cursor: not-allowed;
}

.sf-carousel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
    direction: rtl;
}

.sf-carousel-pagination .swiper-pagination-bullet {
    appearance: none;
    width: 9px;
    height: 9px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: var(--sf-radius-pill, 999px);
    background: var(--sf-color-primary, #83b735);
    opacity: .25;
    cursor: pointer;
    transition: width 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.sf-carousel-pagination .swiper-pagination-bullet:hover,
.sf-carousel-pagination .swiper-pagination-bullet:focus-visible {
    opacity: .72;
}

.sf-carousel-pagination .swiper-pagination-bullet:focus-visible {
    outline: 3px solid rgb(131 183 53 / 24%);
    outline-offset: 3px;
}

.sf-carousel-pagination .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--sf-color-primary, #83b735);
    box-shadow: 0 0 0 3px rgb(131 183 53 / 12%);
    opacity: 1;
}

.sf-brand-carousel .brands-section-inner {
    overflow: visible;
}

.sf-brand-carousel .slider-div {
    overflow: hidden;
}

.sf-brand-carousel .brand-front {
    border-radius: var(--sf-radius-sm, 7px);
}

.sf-brand-carousel .brand-front:focus-visible {
    outline: none;
    box-shadow: var(--sf-focus-ring, 0 0 0 4px rgb(131 183 53 / 24%));
}

/* The four index-five header actions share one measurable rhythm. Template
   margins previously compounded inside cart/search wrappers and produced four
   different hit-area widths. */
.navbar-part4 .sf-header-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 40px;
    align-items: center;
    justify-content: end;
    gap: 6px;
}

.navbar-part4 .sf-header-actions > .search-part,
.navbar-part4 .sf-header-actions > .action-item,
.navbar-part4 .sf-header-actions > .account {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0;
}

.navbar-part4 .sf-header-actions .search-icon,
.navbar-part4 .sf-header-actions .cart-nav,
.navbar-part4 .sf-header-actions .cart-icon,
.navbar-part4 .sf-header-actions .sf-cart-trigger-host,
.navbar-part4 .sf-header-actions .sf-icon-button,
.navbar-part4 .sf-header-actions .favourite-icon,
.navbar-part4 .sf-header-actions .favourite-icon a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0;
}

@media (max-width: 576px) {
    .navbar-part4 .sf-header-actions {
        grid-auto-columns: 36px;
        gap: 4px;
    }

    .navbar-part4 .sf-header-actions > .search-part,
    .navbar-part4 .sf-header-actions > .action-item,
    .navbar-part4 .sf-header-actions > .account {
        width: 36px;
        height: 36px;
    }
}

/* Preloader and footer controls use the same primary/on-primary pair. */
#weiboo-load .cart_preloader {
    color: var(--sf-color-primary, #83b735) !important;
}

#weiboo-load .cart__track {
    stroke: rgb(14 16 19 / 10%);
}

.footer-4[data-testid="ssr-index-five-footer"] .newsletter-form button {
    background: var(--sf-color-primary, #83B735);
    color: var(--sf-color-on-primary, #fff);
}

.footer-4[data-testid="ssr-index-five-footer"] .newsletter-form button i {
    color: inherit;
}

@media (max-width: 576px) {
    .sf-toast-host {
        inset-block-start: .75rem;
        inset-inline: .75rem;
        width: auto;
    }

    .sf-toast {
        grid-template-columns: 38px minmax(0, 1fr) 32px;
        min-height: 76px;
        padding: .75rem .75rem .9rem;
    }

    .sf-toast__icon {
        width: 38px;
        height: 38px;
    }

    .sf-deal-showcase .side-box .contents .sf-storefront-cta {
        width: min(100%, 210px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-toast,
    .sf-storefront-cta,
    .sf-primary-button,
    .sf-carousel-button {
        transition-duration: 1ms !important;
    }

    .sf-toast__progress {
        animation: none;
    }
}

/* Home layout rhythm. Bootstrap's column padding is intentionally reset in the
   Weiboo bundle, so relying on row gutters makes adjacent cards share an edge.
   These grids own their spacing explicitly and stay independent of vendor reset
   order on both direct loads and enhanced navigation. */
.sf-home > .section-gap {
    padding-block: clamp(44px, 4.5vw, 68px);
}

.sf-home .section-header.section-header4 {
    margin-block-end: clamp(28px, 3vw, 42px);
}

.rts-services-section .row,
.rts-best-catagory-section .row,
.rts-feeds-section2 .row {
    display: grid;
    margin: 0;
    column-gap: clamp(16px, 1.8vw, 24px);
    row-gap: clamp(16px, 1.8vw, 24px);
}

.rts-services-section .row,
.rts-best-catagory-section .row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rts-feeds-section2 .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rts-services-section .row > [class*="col-"],
.rts-best-catagory-section .row > [class*="col-"],
.rts-feeds-section2 .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.rts-services-section .service-item {
    height: 100%;
    min-height: 126px;
    margin: 0 !important;
    padding: 24px;
    border-color: var(--sf-color-border, #e3e8de);
    box-shadow: 0 10px 28px rgb(14 16 19 / 4%);
}

.rts-best-catagory-section {
    margin-block-end: 0 !important;
}

.rts-best-catagory-section .catagory-card {
    height: 100%;
    min-height: 350px;
    box-shadow: 0 12px 30px rgb(14 16 19 / 4%);
}

.rts-feeds-section2 .feed-item {
    display: flex;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    margin: 0 !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgb(14 16 19 / 4%);
}

.rts-feeds-section2 .feed-item .feed-image {
    aspect-ratio: 3 / 2;
    margin: 0 0 26px;
    background: #f5f7f8;
}

.rts-feeds-section2 .feed-item .feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rts-feeds-section2 .feed-item .contents {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 28px 30px;
}

.rts-feeds-section2 .feed-item .author {
    margin-block-start: auto;
    padding-block-start: 22px;
}

/*
 * Storefront media contract:
 * - product cards preserve the entire device with a stable 4:3 reservoir;
 * - promotion slots use a deliberate 16:9 crop rather than inheriting the
 *   template's transparent-product thumbnail constraints.
 *
 * The latter matters for real product photographs: Weiboo's original
 * `.product-thumb` is intentionally tiny because its demo assets are cut-out
 * PNGs. Applying it to photographs creates the miniature, uneven banners seen
 * in the storefront.
 */
.rts-featured_products-section .sf-product-card__image--contained {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: #f4f7fa;
}

.rts-featured_products-section .sf-product-card__image--contained :is(.swiper, .swiper-wrapper, .swiper-slide),
.rts-featured_products-section .sf-product-card__image--contained .image-vari {
    width: 100%;
    height: 100%;
}

.rts-featured_products-section .sf-product-card__image--contained .image-vari {
    display: grid;
    place-items: center;
}

.rts-featured_products-section .sf-product-card__image--contained img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.banner.banner-4 .sf-promotion-card .contents,
.rts-posters-section .sf-promotion-card .contents {
    min-width: 0;
}

.banner.banner-4 .sf-promotion-card--hero .sf-promotion-media {
    display: block;
    flex: 0 1 48%;
    width: 48%;
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e9eef3;
}

.banner.banner-4 .sf-promotion-card--side .sf-promotion-media {
    display: block;
    flex: 0 0 clamp(112px, 34%, 178px);
    width: clamp(112px, 34%, 178px);
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #e9eef3;
}

@media (min-width: 1200px) {
    /* Three side promotions share the hero height; give their photography a
       deliberate visual role instead of the template's tiny thumbnail. */
    .banner.banner-4 .sf-promotion-card--side {
        padding: 24px 28px;
    }

    .banner.banner-4 .sf-promotion-card--side .sf-promotion-media {
        flex-basis: clamp(152px, 44%, 210px);
        width: clamp(152px, 44%, 210px);
    }
}

.rts-posters-section .sf-promotion-card {
    min-height: 240px;
    overflow: hidden;
}

.rts-posters-section .sf-promotion-card--poster .sf-promotion-media {
    display: block;
    flex: 0 0 clamp(128px, 40%, 280px);
    width: clamp(128px, 40%, 280px);
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #e9eef3;
}

:is(.banner.banner-4, .rts-posters-section) .sf-promotion-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1199px) {
    .rts-services-section .row,
    .rts-best-catagory-section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rts-feeds-section2 .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .banner.banner-4 .sf-promotion-card--hero .sf-promotion-media {
        flex-basis: auto;
        width: min(100%, 580px);
        margin: 0 auto 24px;
    }

    .banner.banner-4 .sf-promotion-card--side .sf-promotion-media,
    .rts-posters-section .sf-promotion-card--poster .sf-promotion-media {
        flex-basis: clamp(108px, 38%, 178px);
        width: clamp(108px, 38%, 178px);
    }

    .sf-home > .section-gap {
        padding-block: 34px;
    }

    .rts-services-section .row,
    .rts-best-catagory-section .row,
    .rts-feeds-section2 .row {
        grid-template-columns: minmax(0, 1fr);
    }

    .rts-services-section .service-item {
        min-height: 112px;
        padding: 20px;
    }

    .rts-best-catagory-section .catagory-card {
        min-height: 320px;
    }
}



