/*
 * ============================================================
 *  Customer Store Design System — 2026
 *  Palette: Deep navy + Vibrant orange accent + clean whites
 * ============================================================
 */

:root {
    /* --- brand accent --- */
    --cs-accent:         #f97316;   /* orange-500  */
    --cs-accent-dark:    #ea580c;   /* orange-600  */
    --cs-accent-light:   #fff7ed;   /* orange-50   */
    --cs-accent-glow:    rgba(249,115,22,.18);

    /* --- second accent (highlight/badge) --- */
    --cs-red:            #ef4444;
    --cs-red-dark:       #dc2626;
    --cs-red-light:      #fef2f2;

    /* --- navy / dark --- */
    --cs-navy:           #0f172a;   /* slate-900   */
    --cs-navy-mid:       #1e293b;   /* slate-800   */
    --cs-navy-light:     #334155;   /* slate-700   */

    /* --- neutrals --- */
    --cs-body-bg:        #f8fafc;
    --cs-card-bg:        #ffffff;
    --cs-border:         #e2e8f0;
    --cs-text-main:      #1e293b;
    --cs-text-muted:     #64748b;
    --cs-text-light:     #94a3b8;

    /* --- success / info --- */
    --cs-success:        #10b981;
    --cs-info:           #38bdf8;

    /* --- radii / transitions --- */
    --cs-radius:         .6rem;
    --cs-radius-sm:      .4rem;
    --cs-transition:     .22s ease;
}

/* ====================
   GLOBAL
   ==================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background-color: var(--cs-body-bg) !important;
    color: var(--cs-text-main) !important;
}

/* ====================
   HEADER
   ==================== */
.header {
    background: var(--cs-card-bg) !important;
    box-shadow: 0 1px 16px rgba(15,23,42,.08) !important;
    margin: 0 !important;
    top: 0 !important;
    position: sticky !important;
}

.top-header {
    background: var(--cs-navy) !important;
    border-bottom: none !important;
    color: #94a3b8 !important;
    font-size: .75rem !important;
}
.top-header a { color: #94a3b8 !important; }
.top-header a:hover { color: var(--cs-accent) !important; }

/* category nav bar */
.top-nav {
    background: var(--cs-card-bg) !important;
    border-bottom: 1px solid var(--cs-border) !important;
}

/* --- search (navy-aware) --- */
.search-wrapper {
    min-width: 360px !important;
    max-width: 560px !important;
}
.search-box {
    background-color: var(--cs-body-bg) !important;
    border: 1px solid var(--cs-border) !important;
    border-radius: 2rem !important;
    transition: box-shadow var(--cs-transition), border-color var(--cs-transition), background var(--cs-transition) !important;
}
.top-header .search-box {
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(255, 255, 255, .2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
.top-header .search-textbox .search-icon { color: #cbd5e1 !important; }
.top-header .search-textbox input {
    background: transparent !important;
    color: #f8fafc !important;
}
.top-header .search-textbox input::placeholder { color: #94a3b8 !important; }
.search-box-active,
.top-header .search-box-active {
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
    border-color: var(--cs-accent) !important;
}
.search-textbox input {
    background: transparent !important;
}
.top-header .search-submit-btn {
    background: var(--cs-accent) !important;
    color: #fff !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset !important;
}
.top-header .search-submit-btn:hover {
    background: var(--cs-accent-dark) !important;
}
.top-header .search-suggest,
.top-header .search-result {
    background: #fff !important;
    border: 1px solid var(--cs-border) !important;
    border-radius: var(--cs-radius) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .2) !important;
}
.top-header .search-result-title .search-result-type,
.top-header .search-result-footer a {
    color: var(--cs-accent) !important;
}
.top-header .search-result-item:hover,
.top-header .search-result-item.is-active {
    background: var(--cs-accent-light) !important;
}

/* --- user icon button (authenticated) --- */
.profile-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--cs-border) !important;
    color: var(--cs-text-main) !important;
    font-size: 1rem !important;
    transition: all var(--cs-transition) !important;
    padding: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
}
.top-header .profile-button {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}
.profile-button i { color: var(--cs-navy-mid) !important; }
.top-header .profile-button i { color: #e2e8f0 !important; }
.profile-button .header-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.profile-button.has-avatar {
    padding: 0 !important;
    overflow: hidden !important;
}
.profile-button:hover,
.profile-button:focus {
    border-color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
    color: var(--cs-accent) !important;
    box-shadow: 0 2px 10px var(--cs-accent-glow) !important;
    outline: none !important;
}
.top-header .profile-button:hover,
.top-header .profile-button:focus {
    background: rgba(249, 115, 22, .2) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}
.profile-button:hover i,
.profile-button:focus i { color: var(--cs-accent) !important; }
.top-header .profile-button:hover i,
.top-header .profile-button:focus i { color: #fff !important; }
.profile-button.has-avatar:hover,
.profile-button.has-avatar:focus {
    background: #fff !important;
}
.top-header .profile-button.has-avatar:hover,
.top-header .profile-button.has-avatar:focus {
    background: rgba(255, 255, 255, .12) !important;
}

/* --- auth btn (guest) --- */
.auth-header-btn {
    border-color: var(--cs-border) !important;
    border-radius: 2rem !important;
    color: var(--cs-text-main) !important;
    transition: all var(--cs-transition) !important;
    background: #fff !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
    font-weight: 700 !important;
    padding: .4rem .9rem !important;
}
.top-header .auth-header-btn {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    color: #f1f5f9 !important;
    box-shadow: none !important;
}
.auth-header-btn i { color: var(--cs-accent) !important; }
.top-header .auth-header-btn i { color: var(--cs-accent) !important; }
.auth-header-btn:hover,
.auth-header-btn:focus {
    border-color: var(--cs-accent) !important;
    color: var(--cs-accent) !important;
    background-color: var(--cs-accent-light) !important;
    box-shadow: 0 2px 10px var(--cs-accent-glow) !important;
}
.top-header .auth-header-btn:hover,
.top-header .auth-header-btn:focus {
    background: rgba(249, 115, 22, .22) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}
.top-header .auth-header-btn:hover i,
.top-header .auth-header-btn:focus i { color: #fff !important; }

/* --- user dropdown panel --- */
.header-user-dropdown {
    min-width: 11.5rem !important;
    max-width: 15rem !important;
    border-radius: .65rem !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.14) !important;
    border: 1px solid var(--cs-border) !important;
    overflow: auto !important;
    background: #fff !important;
    padding: .2rem 0 !important;
}

.header-user-link {
    display: flex !important;
    align-items: center !important;
    gap: .45rem !important;
    padding: .48rem .75rem !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: var(--cs-text-main) !important;
    text-decoration: none !important;
    transition: background var(--cs-transition), color var(--cs-transition) !important;
}
.header-user-link i {
    width: 1.3rem !important;
    text-align: center !important;
    font-size: .95rem !important;
    color: var(--cs-text-muted) !important;
    transition: color var(--cs-transition) !important;
}
.header-user-link:hover,
.header-user-link:focus {
    background: var(--cs-accent-light) !important;
    color: var(--cs-accent-dark) !important;
}
.header-user-link:hover i,
.header-user-link:focus i { color: var(--cs-accent) !important; }

/* logout link special color */
.header-user-link:last-child {
    color: var(--cs-red) !important;
}
.header-user-link:last-child i { color: var(--cs-red) !important; }
.header-user-link:last-child:hover {
    background: var(--cs-red-light) !important;
    color: var(--cs-red-dark) !important;
}

.header-user-divider {
    height: 1px !important;
    margin: .3rem 0 !important;
    background: var(--cs-border) !important;
}

/* --- cart button --- */
.top-header .header-cart.border-start {
    border-color: rgba(255, 255, 255, .18) !important;
}

.header-cart-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--cs-border) !important;
    color: var(--cs-text-main) !important;
    font-size: 1rem !important;
    position: relative !important;
    transition: all var(--cs-transition) !important;
    padding: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
}
.top-header .header-cart-link {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    box-shadow: none !important;
}
.header-cart-link i { color: var(--cs-navy-mid) !important; font-size: 1rem !important; }
.top-header .header-cart-link i { color: #e2e8f0 !important; }
.header-cart:hover .header-cart-link,
.header-cart-link:hover,
.header-cart-link:focus {
    border-color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
    box-shadow: 0 2px 10px var(--cs-accent-glow) !important;
    outline: none !important;
}
.top-header .header-cart:hover .header-cart-link,
.top-header .header-cart-link:hover,
.top-header .header-cart-link:focus {
    background: rgba(249, 115, 22, .22) !important;
    border-color: var(--cs-accent) !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}
.header-cart.is-open .header-cart-link,
.header-cart.is-open .header-cart-link:hover {
    border-color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
}
.top-header .header-cart.is-open .header-cart-link {
    background: rgba(249, 115, 22, .22) !important;
    border-color: var(--cs-accent) !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}
.header-cart:hover .header-cart-link i,
.header-cart-link:hover i { color: var(--cs-accent) !important; }
.top-header .header-cart:hover .header-cart-link i,
.top-header .header-cart-link:hover i,
.top-header .header-cart-link:focus i,
.top-header .header-cart.is-open .header-cart-link i { color: #fff !important; }

/* cart count badge */
.header-cart-count {
    position: absolute !important;
    top: -.15rem !important;
    inset-inline-start: -.1rem !important;
    transform: none !important;
    background: var(--cs-accent) !important;
    color: #fff !important;
    font-size: .62rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    line-height: 1.05rem !important;
    padding: 0 .28rem !important;
    font-weight: 800 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .18) !important;
}
.top-header .header-cart-count {
    border-color: var(--cs-navy) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35) !important;
}
.header-cart-count.is-empty {
    background: #64748b !important;
}

/* --- cart dropdown panel --- */
.header-cart-dropdown {
    background: #fff !important;
    border-radius: .85rem !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .18) !important;
    border: 1px solid var(--cs-border) !important;
    overflow: hidden !important;
    width: 21.25rem !important;
    max-width: min(21.25rem, calc(100vw - 1.5rem)) !important;
    font-size: .78rem !important;
}
.header-cart-dropdown.header-panel-ported:not(.header-panel-sheet) {
    width: 21.25rem !important;
    max-width: min(21.25rem, calc(100vw - 1.5rem)) !important;
}
.header-cart-dropdown.header-panel-sheet {
    width: auto !important;
    max-width: none !important;
    overflow: auto !important;
}
.header-user-dropdown {
    min-width: 11.5rem !important;
}
.header-user-link {
    padding: .48rem .75rem !important;
    font-size: .78rem !important;
}

.header-cart-dropdown__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    padding: .7rem .85rem !important;
    background: linear-gradient(135deg, #fff7ed, #f8fafc) !important;
    border-bottom: 1px solid var(--cs-border) !important;
}

.header-cart-dropdown__title {
    display: inline-flex !important;
    align-items: center !important;
    gap: .55rem !important;
    min-width: 0 !important;
}

.header-cart-dropdown__title > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.85rem !important;
    height: 1.85rem !important;
    border-radius: .65rem !important;
    background: #fff !important;
    color: var(--cs-accent) !important;
    border: 1px solid #fed7aa !important;
    flex-shrink: 0 !important;
}

.header-cart-dropdown__title strong {
    display: block !important;
    font-size: .84rem !important;
    color: var(--cs-navy) !important;
    line-height: 1.2 !important;
}

.header-cart-dropdown__title span {
    display: block !important;
    font-size: .72rem !important;
    color: var(--cs-text-muted) !important;
    font-weight: 600 !important;
}

.header-cart-dropdown .header-cart-view-link {
    color: var(--cs-accent) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: .76rem !important;
    white-space: nowrap !important;
    transition: color var(--cs-transition) !important;
}
.header-cart-dropdown .header-cart-view-link:hover {
    color: var(--cs-accent-dark) !important;
}

.header-cart-dropdown-body {
    padding: .35rem 0 !important;
    max-height: min(18rem, 42vh) !important;
    overflow: auto !important;
}

/* cart item row */
.header-cart-dropdown-body-item {
    display: grid !important;
    grid-template-columns: 3rem minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .65rem !important;
    padding: .55rem .85rem !important;
    border-bottom: 1px solid var(--cs-border) !important;
    transition: background var(--cs-transition) !important;
}
.header-cart-dropdown-body-item:hover {
    background: #f8fafc !important;
}
.header-cart-dropdown-body-item:last-of-type {
    border-bottom: none !important;
}

.header-cart-item__media {
    display: block !important;
    width: 3rem !important;
    height: 3rem !important;
    border-radius: .7rem !important;
    overflow: hidden !important;
    border: 1px solid var(--cs-border) !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}
.header-cart-item__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.header-cart-item__content {
    min-width: 0 !important;
}

.header-cart-item__name {
    display: block !important;
    color: var(--cs-navy) !important;
    font-weight: 800 !important;
    font-size: .8rem !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.header-cart-item__name:hover {
    color: var(--cs-accent) !important;
}

.header-cart-item__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .35rem .6rem !important;
    margin-top: .3rem !important;
}

.header-cart-item__qty {
    display: inline-flex !important;
    align-items: center !important;
    padding: .12rem .45rem !important;
    border-radius: 999px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: var(--cs-accent-dark) !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    direction: rtl !important;
}

.header-cart-item__price {
    color: var(--cs-text-main) !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
}
.header-cart-item__price small {
    font-size: .65rem !important;
    font-weight: 600 !important;
    color: var(--cs-text-muted) !important;
    margin-right: .15rem !important;
}

.header-cart-item__remove-form {
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-cart-item__remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.15rem !important;
    height: 2.15rem !important;
    min-width: 2.15rem !important;
    border-radius: .7rem !important;
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    text-decoration: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}
.header-cart-item__remove i {
    font-size: .82rem !important;
}
.header-cart-item__remove:hover,
.header-cart-item__remove:focus-visible {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

.header-cart-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: .35rem !important;
    padding: 1.15rem .9rem 1.25rem !important;
    text-align: center !important;
    color: var(--cs-text-muted) !important;
}
.header-cart-empty__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.6rem !important;
    height: 2.6rem !important;
    border-radius: 999px !important;
    background: #fff7ed !important;
    color: var(--cs-accent) !important;
    margin-bottom: .2rem !important;
}
.header-cart-empty strong {
    color: var(--cs-navy) !important;
    font-size: .86rem !important;
}
.header-cart-empty p {
    margin: 0 !important;
    font-size: .74rem !important;
    line-height: 1.6 !important;
}
.header-cart-empty__link {
    margin-top: .35rem !important;
    color: var(--cs-accent) !important;
    font-weight: 800 !important;
    font-size: .76rem !important;
    text-decoration: none !important;
}
.header-cart-empty__link:hover {
    color: var(--cs-accent-dark) !important;
}

/* cart footer */
.header-cart-dropdown-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    background: #f8fafc !important;
    border-top: 1px solid var(--cs-border) !important;
    padding: .8rem .85rem !important;
    font-size: .8rem !important;
}
.header-cart-dropdown-footer__pay {
    min-width: 0 !important;
}
.header-cart-dropdown-footer .header-cart-pay-label {
    display: block !important;
    color: var(--cs-text-muted) !important;
    font-size: .7rem !important;
    margin-bottom: .15rem !important;
}
.header-cart-dropdown-footer .header-cart-pay-amount {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: .22rem !important;
    color: var(--cs-navy) !important;
    font-weight: 800 !important;
    font-size: .92rem !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
}
.header-cart-dropdown-footer .header-cart-pay-amount .header-cart-pay-unit,
.header-cart-dropdown-footer .header-cart-pay-amount small {
    font-size: .68rem !important;
    font-weight: 600 !important;
    color: var(--cs-text-muted) !important;
    margin: 0 !important;
}
.header-cart-dropdown-footer .header-cart-pay-tax-note {
    display: block !important;
    margin-top: .12rem !important;
    font-size: .62rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #94a3b8 !important;
    letter-spacing: 0 !important;
}
.header-cart-checkout-btn,
.header-cart-dropdown-footer .btn-danger {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    border-radius: 999px !important;
    font-size: .78rem !important;
    padding: .45rem .95rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--cs-accent-glow) !important;
}
.header-cart-checkout-btn:hover,
.header-cart-dropdown-footer .btn-danger:hover {
    background: var(--cs-accent-dark) !important;
    border-color: var(--cs-accent-dark) !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, .35) !important;
    color: #fff !important;
}

/* cart badge legacy */
.header-cart .badge {
    background: var(--cs-accent) !important;
    color: #fff !important;
}

/* --- sale banner (phase 4) --- */
.sale-banner {
    --sale-bg: #c0392b;
    --sale-fg: #ffffff;
    position: relative;
    overflow: hidden;
    background: var(--sale-bg);
    color: var(--sale-fg);
    max-height: 16rem;
    transition: none;
}
.store-header.is-compact .sale-banner:not([hidden]):not(.is-dismissed) {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
}
.store-header.is-compact .sale-banner:not([hidden]):not(.is-dismissed) .sale-banner-inner {
    padding-top: 0;
    padding-bottom: 0;
}
.sale-banner.is-hiding {
    animation: saleBannerOut .22s ease both;
}
.sale-banner[hidden],
.sale-banner.is-dismissed[hidden] {
    display: none !important;
}
.sale-banner::before,
.sale-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
    z-index: 0;
}
.sale-banner::before {
    left: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
}
.sale-banner::after {
    right: -20px;
    bottom: -30px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, .06);
}
.sale-banner-glitter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.sale-banner-spark {
    position: absolute;
    top: -10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 6px 1px rgba(255, 255, 255, .85),
        0 0 1px rgba(255, 236, 170, .9);
    opacity: 0;
    animation-name: saleGlitterFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
.sale-banner-spark--2 {
    width: 4px;
    height: 4px;
    background: #ffe9a8;
    box-shadow: 0 0 7px 1px rgba(255, 220, 120, .9);
}
.sale-banner-spark--3 {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: #fff6d6;
    box-shadow: 0 0 8px 1px rgba(255, 255, 255, .75);
}
@keyframes saleGlitterFall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    8% { opacity: .95; }
    70% { opacity: .75; }
    100% {
        transform: translate3d(12px, 170px, 0) rotate(200deg);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sale-banner-glitter { display: none; }
    .sale-banner.is-hiding { animation: none; }
}
.sale-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: .85rem 0;
    position: relative;
    z-index: 1;
    min-height: 3.1rem;
}
.sale-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .55rem;
    width: 100%;
    max-width: 56rem;
    padding-inline: 2.75rem;
    min-width: 0;
}
.sale-banner-headline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .65rem 1.15rem;
    direction: ltr;
    width: 100%;
}
.sale-banner-copy {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 .95rem;
    row-gap: .35rem;
    min-width: 0;
    width: auto;
    max-width: 100%;
    direction: rtl;
}
.sale-banner-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    background: rgba(255, 255, 255, .22);
    color: var(--sale-fg);
    border: 1px solid rgba(255, 255, 255, .35);
}
.sale-banner-title {
    display: inline;
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.45;
    margin: 0;
}
.sale-banner-subtitle {
    display: inline;
    opacity: .9;
    font-size: .86rem;
    line-height: 1.5;
    margin: 0;
}
.sale-banner-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: .28rem;
    flex-wrap: nowrap;
    direction: ltr;
    margin-inline-end: .15rem;
}
.sale-banner-countdown__unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.35rem;
    padding: .18rem .35rem;
    border-radius: .45rem;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    line-height: 1.15;
}
.sale-banner-countdown__unit strong {
    font-size: .88rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.sale-banner-countdown__unit small {
    font-size: .62rem;
    opacity: .82;
    font-weight: 600;
}
.sale-banner-countdown__sep {
    font-weight: 800;
    opacity: .65;
    margin-bottom: .55rem;
}
.sale-banner-actions {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: .55rem;
    z-index: 2;
}
.sale-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none !important;
    color: var(--sale-fg) !important;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    padding: .28rem .85rem;
    font-size: .8rem;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}
.sale-banner-cta:hover,
.sale-banner-cta:focus-visible {
    background: rgba(255, 255, 255, .28);
    color: var(--sale-fg) !important;
    outline: 2px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}
.sale-banner-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--sale-fg);
    opacity: .85;
    cursor: pointer;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
}
.sale-banner-dismiss:hover,
.sale-banner-dismiss:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, .14);
    outline: 2px solid rgba(255, 255, 255, .55);
    outline-offset: 2px;
}
@keyframes saleBannerOut {
    from { opacity: 1; max-height: 16rem; }
    to { opacity: 0; max-height: 0; }
}
@media (max-width: 575.98px) {
    .sale-banner-content { padding-inline: 2.25rem; gap: .55rem; }
    .sale-banner-copy { gap: 0 .7rem; row-gap: .3rem; }
    .sale-banner-title { font-size: .9rem; }
    .sale-banner-subtitle { font-size: .8rem; }
    .sale-banner-countdown__unit { min-width: 2rem; padding: .12rem .25rem; }
    .sale-banner-countdown__unit strong { font-size: .78rem; }
}

/* --- nav items --- */
.super-navbar-item {
    color: var(--cs-text-main) !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color var(--cs-transition) !important;
}
.super-navbar-item:hover,
.super-navbar-item.is-open,
.super-navbar-item:focus-within {
    border-bottom-color: var(--cs-accent) !important;
}
.super-navbar-item-toggle {
    color: inherit !important;
}
.super-navbar-item-toggle:focus-visible {
    outline: 2px solid var(--cs-accent) !important;
    outline-offset: 3px !important;
}
.navbar-item > a {
    color: var(--cs-text-main) !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color var(--cs-transition) !important;
}
.navbar-item > a:hover {
    border-bottom-color: var(--cs-accent) !important;
    color: var(--cs-accent) !important;
}

.navbar-item.has-submenu {
    position: relative;
}
.navbar-item .navbar-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 11rem;
    background: #fff;
    border: 1px solid var(--cs-border, rgba(0,0,0,.08));
    box-shadow: 0 8px 20px rgba(15,23,42,.1);
    z-index: 40;
    padding: .35rem 0;
}
.navbar-item.has-submenu:hover > .navbar-submenu,
.navbar-item.has-submenu:focus-within > .navbar-submenu {
    display: block;
}
.navbar-item .navbar-submenu a {
    display: block;
    padding: .45rem .85rem;
    color: var(--cs-text-main, #333);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.navbar-item .navbar-submenu a:hover {
    background: #f7f7f7;
    color: var(--cs-accent, #ff253a);
}

/* --- mega menu dropdown --- */
.sublist-wrapper {
    background: #fff !important;
    border: 1px solid var(--cs-border) !important;
    box-shadow: 0 8px 32px rgba(15,23,42,.12) !important;
    border-radius: var(--cs-radius) !important;
}
.sublist-item-toggle {
    border-right: 2px solid transparent !important;
    color: var(--cs-text-main) !important;
    border-radius: var(--cs-radius-sm) !important;
    font-size: .82rem !important;
}
.sublist-item-toggle:hover,
.sublist-item-active > .sublist-item-toggle {
    color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
    border-right-color: var(--cs-accent) !important;
    font-weight: 700 !important;
}
.sublist-item-sublist {
    background: #fff !important;
}
.sub-category {
    color: var(--cs-text-main) !important;
    font-weight: 700 !important;
    padding: .35rem .1rem !important;
    transition: color var(--cs-transition) !important;
}
.sub-category:hover { color: var(--cs-accent) !important; }
.sub-sub-category {
    color: #475569 !important;
    font-weight: 600 !important;
}
.sub-sub-category:hover,
.sub-sub-category:focus-visible { color: var(--cs-accent) !important; }
.sub-category:focus-visible { color: var(--cs-accent) !important; }

/* dropdown profile */
.header-user-dropdown {
    border-radius: var(--cs-radius) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.12) !important;
    border: 1px solid var(--cs-border) !important;
}
.header-user-link:hover,
.header-user-link:focus {
    background-color: var(--cs-accent-light) !important;
    color: var(--cs-accent) !important;
}

/* --- header icons area separator --- */
.header-cart.border-start {
    border-color: var(--cs-border) !important;
}

/* ====================
   SLIDESHOW DOTS
   ==================== */
#slideshow .owl-dots button.owl-dot span {
    background: rgba(255,255,255,.5) !important;
    border-radius: 50% !important;
}
#slideshow .owl-dots button.owl-dot.active span {
    background: var(--cs-accent) !important;
    width: 1.6rem !important;
    border-radius: 1rem !important;
}

/* owl nav arrows */
.light-owl-nav .owl-nav .owl-prev,
.light-owl-nav .owl-nav .owl-next {
    background: rgba(255,255,255,.85) !important;
    border-radius: var(--cs-radius-sm) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
    color: var(--cs-navy) !important;
}
.light-owl-nav .owl-nav .owl-prev:hover,
.light-owl-nav .owl-nav .owl-next:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
}

/* ====================
   SECTION HEADERS
   ==================== */
.content-header { border-bottom: 1px solid var(--cs-border) !important; }
.content-header-title span {
    border-bottom: 2px solid var(--cs-accent) !important;
    color: var(--cs-text-main) !important;
}

/* ====================
   PRODUCT CARDS
   ==================== */
.product {
    border-radius: var(--cs-radius) !important;
    border: 1px solid var(--cs-border) !important;
    background: var(--cs-card-bg) !important;
    transition: box-shadow var(--cs-transition), transform var(--cs-transition) !important;
    overflow: hidden;
}
.product:hover {
    box-shadow: 0 8px 28px rgba(15,23,42,.12) !important;
    transform: translateY(-3px);
}

.product-discount-amount {
    background: var(--cs-red) !important;
    border-radius: var(--cs-radius-sm) !important;
    font-weight: 700 !important;
}

/* product action buttons */
.product-add-to-cart a,
.product-add-to-favorite a {
    background: rgba(255,255,255,.9) !important;
    border-radius: var(--cs-radius-sm) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.12) !important;
    transition: all var(--cs-transition) !important;
    color: var(--cs-text-muted) !important;
}
.product-add-to-cart-active,
.product-add-to-cart a:hover,
.product-add-to-favorite-active,
.product-add-to-favorite a:hover {
    background: var(--cs-accent) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px var(--cs-accent-glow) !important;
}

/* pagination */
.main-product-wrapper .page-link {
    border-radius: var(--cs-radius-sm) !important;
    border: 1px solid var(--cs-border) !important;
    color: var(--cs-text-main) !important;
    background: var(--cs-card-bg) !important;
}
.main-product-wrapper .active .page-link {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
}
.main-product-wrapper .page-link:hover {
    background: var(--cs-accent-light) !important;
    border-color: var(--cs-accent) !important;
    color: var(--cs-accent-dark) !important;
}

/* ====================
   BUTTONS (global)
   ==================== */
.btn-primary {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
    border-radius: var(--cs-radius-sm) !important;
}
.btn-primary:hover {
    background: var(--cs-accent-dark) !important;
    border-color: var(--cs-accent-dark) !important;
    box-shadow: 0 4px 12px var(--cs-accent-glow) !important;
}
.btn-danger {
    background: var(--cs-red) !important;
    border-color: var(--cs-red) !important;
    border-radius: var(--cs-radius-sm) !important;
}
.btn-danger:hover {
    background: var(--cs-red-dark) !important;
    border-color: var(--cs-red-dark) !important;
}
.btn-outline-primary {
    border-color: var(--cs-accent) !important;
    color: var(--cs-accent) !important;
    border-radius: var(--cs-radius-sm) !important;
}
.btn-outline-primary:hover {
    background: var(--cs-accent) !important;
    color: #fff !important;
}
.btn-success {
    background: var(--cs-success) !important;
    border-color: var(--cs-success) !important;
    border-radius: var(--cs-radius-sm) !important;
}
.btn-info {
    background: var(--cs-info) !important;
    border-color: var(--cs-info) !important;
    color: var(--cs-navy) !important;
    border-radius: var(--cs-radius-sm) !important;
}

/* ====================
   FORMS
   ==================== */
.form-control,
.form-select {
    border-radius: var(--cs-radius-sm) !important;
    border-color: var(--cs-border) !important;
    font-size: .85rem !important;
    transition: border-color var(--cs-transition), box-shadow var(--cs-transition) !important;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--cs-accent) !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}

/* ====================
   ALERTS / TOASTS
   ==================== */
.alert-success  { background: #d1fae5 !important; color: #065f46 !important; border: none !important; border-radius: var(--cs-radius) !important; }
.alert-danger   { background: #fee2e2 !important; color: #991b1b !important; border: none !important; border-radius: var(--cs-radius) !important; }
.alert-warning  { background: #fef3c7 !important; color: #92400e !important; border: none !important; border-radius: var(--cs-radius) !important; }
.alert-info     { background: #e0f2fe !important; color: #075985 !important; border: none !important; border-radius: var(--cs-radius) !important; }

.toast {
    border-radius: var(--cs-radius) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
    border: none !important;
}
.toast-header {
    background: var(--cs-navy-mid) !important;
    color: #fff !important;
    border-radius: var(--cs-radius) var(--cs-radius) 0 0 !important;
    border: none !important;
}

.toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .92;
    margin: 0 !important;
    margin-inline-start: auto !important;
}

/* ====================
   FOOTER
   ==================== */
.footer,
.store-footer {
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(249, 115, 22, 0.16), transparent 55%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%) !important;
    color: var(--cs-text-light) !important;
    border-top: none !important;
    margin-top: 2rem;
    padding: 0;
}

.store-footer__inner {
    padding-block: 2rem 1.25rem;
}

.store-footer__trust {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-footer__trust-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.65rem 0.55rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.store-footer__trust-item:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(249, 115, 22, 0.28);
    transform: translateY(-2px);
}

.store-footer__trust-icon {
    flex-shrink: 0;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.14);
    color: #fdba74;
    font-size: 1rem;
}

.store-footer__trust-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.store-footer__trust-copy strong {
    display: block;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.store-footer__trust-copy span {
    display: block;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.72rem;
    line-height: 1.45;
}

.store-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 2fr;
    gap: 1.25rem 1.35rem;
    padding-bottom: 0.85rem;
    align-items: start;
}

.store-footer__nav-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.15rem;
    min-width: 0;
}

.store-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
}

.store-footer__logo img {
    display: block;
    max-height: 2.5rem;
    width: auto;
    filter: brightness(1.05);
}

.store-footer__intro {
    margin: 0 0 1rem;
    max-width: 26rem;
    color: rgba(226, 232, 240, 0.78) !important;
    font-size: 0.84rem;
    line-height: 1.85;
}

.store-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.store-footer__social-link,
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.store-footer__social-link:hover,
.store-footer__social-link:focus-visible,
.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: #fff !important;
    transform: translateY(-2px);
    outline: none;
}

.store-footer__social-link--instagram:hover,
.store-footer__social-link--instagram:focus-visible {
    background: #E4405F !important;
    border-color: #E4405F;
}

.store-footer__social-link--telegram:hover,
.store-footer__social-link--telegram:focus-visible {
    background: #229ED9 !important;
    border-color: #229ED9;
}

.store-footer__social-link--whatsapp:hover,
.store-footer__social-link--whatsapp:focus-visible {
    background: #25D366 !important;
    border-color: #25D366;
}

.store-footer__social-link--twitter:hover,
.store-footer__social-link--twitter:focus-visible {
    background: #1DA1F2 !important;
    border-color: #1DA1F2;
}

.store-footer__social-link--linkedin:hover,
.store-footer__social-link--linkedin:focus-visible {
    background: #0A66C2 !important;
    border-color: #0A66C2;
}

.store-footer__social-link.has-custom-hover:hover,
.store-footer__social-link.has-custom-hover:focus-visible {
    background: var(--social-hover, #64748b) !important;
    border-color: var(--social-hover, #64748b);
}

.store-footer__social-svg,
.store-footer__social-img {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    object-fit: contain;
}

.store-footer__social-svg {
    fill: currentColor;
}

.store-footer__heading {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.store-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.store-footer__links a,
.footer a {
    color: rgba(226, 232, 240, 0.78) !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    line-height: 1.5;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.store-footer__links a:hover,
.store-footer__links a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
    color: var(--cs-accent) !important;
    outline: none;
}

.store-footer__links a:hover,
.store-footer__links a:focus-visible {
    padding-inline-start: 0.2rem;
}

.store-footer__links-child a {
    font-size: 0.8rem;
    opacity: 0.92;
    padding-inline-start: 0.65rem;
}

.store-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store-footer__bar-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.store-footer__bar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    min-width: 0;
}

.store-footer__channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.28);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.store-footer__channel-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.68rem;
    opacity: 0.82;
}

.store-footer__channel-link:hover,
.store-footer__channel-link:focus-visible {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.store-footer__copy-brand {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
}

.store-footer__copy,
.footer-intro {
    margin: 0;
    color: rgba(226, 232, 240, 0.68) !important;
    font-size: 0.78rem;
    line-height: 1.6;
}

.store-footer__support-row {
    display: contents;
}

.store-footer__support-nav {
    min-width: 0;
}

.store-footer__badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.85rem;
}

.store-footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.store-footer__badge:hover,
a.store-footer__badge:focus-visible {
    transform: translateY(-2px);
    opacity: 0.92;
    outline: none;
    box-shadow: none;
}

.store-footer__badge img {
    display: block;
    width: clamp(3.35rem, 4.2vw, 4.25rem);
    height: clamp(3.35rem, 4.2vw, 4.25rem);
    object-fit: contain;
    border-radius: 0.4rem;
}

.store-back-top {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 1.25rem;
    right: auto;
    left: auto;
    z-index: 9999;
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(145deg, var(--cs-accent-dark), var(--cs-accent));
    color: #fff;
    box-shadow: 0 10px 24px var(--cs-accent-glow);
    opacity: 0;
    transform: translateY(0.75rem);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-back-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.store-back-top:hover,
.store-back-top:focus-visible {
    background: linear-gradient(145deg, var(--cs-accent), var(--cs-accent-dark));
    box-shadow: 0 14px 28px var(--cs-accent-glow);
    transform: translateY(-2px);
    outline: none;
}

@media (max-width: 991.98px) {
    .store-footer__trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 1rem;
        padding-bottom: 0.85rem;
    }

    .store-footer__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding-bottom: 0.65rem;
    }

    .store-footer__brand {
        grid-column: auto;
    }

    .store-footer__intro {
        margin-bottom: 0.65rem;
        font-size: 0.8rem;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .store-footer__logo {
        margin-bottom: 0.45rem;
    }

    .store-footer__social {
        gap: 0.4rem;
    }

    .store-footer__nav-pair {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 0.85rem;
    }

    .store-footer__heading {
        margin-bottom: 0.45rem;
        font-size: 0.9rem;
    }

    .store-footer__links {
        gap: 0.3rem;
    }

    .store-footer__links a {
        font-size: 0.8rem;
    }

    .store-footer__badges {
        justify-content: center;
        margin: 0 0 0.65rem;
        gap: 0.45rem;
    }
}

@media (max-width: 767.98px) {
    .store-footer__inner {
        padding-block: 1.15rem 0.85rem;
    }

    .store-footer__trust {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.75rem;
    }

    .store-footer__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .store-footer__nav-pair {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem 0.6rem;
    }

    .store-footer__badge {
        padding: 0;
        border: 0;
        border-radius: 0.4rem;
        box-shadow: none;
        overflow: hidden;
    }

    .store-footer__badge img {
        width: 3.35rem;
        height: 3.35rem;
        border-radius: 0.4rem;
    }

    .store-footer__bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0.75rem;
        padding-bottom: calc(2.85rem + env(safe-area-inset-bottom, 0px));
    }

    .store-footer__bar-copy {
        align-items: center;
        width: 100%;
    }

    .store-footer__bar-meta {
        justify-content: center;
    }

    .store-footer__copy-brand,
    .store-footer__copy {
        max-width: calc(100% - 2.75rem);
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575.98px) {
    .store-footer__trust {
        grid-template-columns: 1fr;
    }

    .store-back-top {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        inset-inline-end: 0.9rem;
        width: 2.6rem;
        height: 2.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-footer__trust-item,
    .store-footer__social-link,
    .footer-social-link,
    .store-footer__links a,
    .store-back-top {
        transition: none !important;
        transform: none !important;
    }
}

.footer hr { border-color: rgba(255,255,255,.08) !important; }
.footer-shop-features-item { color: var(--cs-text-light) !important; }
.footer-shop-features {
    border-bottom-color: rgba(255,255,255,.08) !important;
}

/* ====================
   BREADCRUMB
   ==================== */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    font-size: .78rem !important;
}
.breadcrumb-item a { color: var(--cs-accent) !important; }
.breadcrumb-item.active { color: var(--cs-text-muted) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--cs-text-muted) !important; }

/* ====================
   BADGES
   ==================== */
.badge.bg-danger,
.badge.badge-danger { background: var(--cs-red) !important; }
.badge.bg-success,
.badge.badge-success { background: var(--cs-success) !important; }
.badge.bg-warning,
.badge.badge-warning { background: var(--cs-accent) !important; color: #fff !important; }
.badge.bg-primary,
.badge.badge-primary { background: var(--cs-navy-mid) !important; }

/* ====================
   PROFILE / DASHBOARD
   ==================== */
.profile-nav-item a:hover,
.profile-nav-item.is-active a {
    color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
}

/* ====================
   CART / OFFCANVAS
   ==================== */
.offcanvas.store-mobile-nav {
    z-index: 1060 !important;
    /* RTL start = right edge; round the inner (left) corners */
    border-radius: var(--cs-radius) 0 0 var(--cs-radius) !important;
    max-width: min(22rem, 92vw) !important;
}
.offcanvas-backdrop.show {
    z-index: 1055 !important;
}
.offcanvas {
    border-radius: var(--cs-radius) 0 0 var(--cs-radius) !important;
}
.offcanvas-header {
    background: var(--cs-navy) !important;
    color: #fff !important;
}
.offcanvas-header .btn-close { filter: invert(1) !important; }
.offcanvas-title .header-brand-title {
    color: #f8fafc !important;
    font-size: .95rem !important;
}

.header-mobile-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
}
.header-mobile-shortcut {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border-radius: .7rem;
    background: var(--cs-body-bg);
    border: 1px solid var(--cs-border);
    color: var(--cs-text-main) !important;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 700;
}
.header-mobile-shortcut i {
    width: 1.2rem;
    text-align: center;
    color: var(--cs-accent);
}
.header-mobile-shortcut:hover,
.header-mobile-shortcut:focus {
    border-color: var(--cs-accent);
    background: var(--cs-accent-light);
    color: var(--cs-accent-dark) !important;
}
.header-mobile-cart-count {
    margin-inline-start: auto;
    background: var(--cs-accent) !important;
}
.header-mobile-categories-label {
    font-weight: 800 !important;
    color: var(--cs-text-main) !important;
    margin-bottom: .35rem !important;
    pointer-events: none;
}

/* sticky compact polish */
.store-header.is-compact {
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14) !important;
}
.store-header.is-compact .top-header {
    border-bottom: 1px solid transparent !important;
}

@media (max-width: 575.98px) {
    .top-header .auth-header-btn-label {
        display: none;
    }
    .top-header .auth-header-btn {
        width: 2.35rem !important;
        height: 2.35rem !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

/* ====================
   LOGIN PAGE
   ==================== */
.login-box {
    border-radius: var(--cs-radius) !important;
    box-shadow: 0 8px 32px rgba(15,23,42,.12) !important;
    overflow: hidden;
}

/* ====================
   FOOTER SOCIAL LINKS (legacy hooks)
   ==================== */
.footer-link:hover {
    color: var(--cs-accent) !important;
}

/* ====================
   SWEETALERT
   ==================== */
.swal2-popup {
    border-radius: var(--cs-radius) !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
}
.swal2-confirm {
    background: var(--cs-accent) !important;
    border-radius: var(--cs-radius-sm) !important;
}

/* ====================
   CHECKOUT STEPPER + EMPTY CART
   ==================== */
.checkout-stepper {
    margin: 1rem 0 1.25rem;
}
.checkout-stepper__list {
    list-style: none;
    margin: 0;
    padding: .85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    background: var(--cs-card-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: 0 1px 10px rgba(15,23,42,.05);
}
.checkout-stepper__item {
    flex: 1 1 8rem;
    min-width: 7rem;
}
.checkout-stepper__link {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none !important;
    color: var(--cs-text-muted) !important;
    font-size: .9rem;
    font-weight: 600;
}
.checkout-stepper__link.is-disabled {
    opacity: .55;
    cursor: default;
}
.checkout-stepper__num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: .8rem;
}
.checkout-stepper__item.is-current .checkout-stepper__link,
.checkout-stepper__item.is-done .checkout-stepper__link {
    color: var(--cs-navy) !important;
}
.checkout-stepper__item.is-current .checkout-stepper__num {
    background: var(--cs-accent);
    color: #fff;
}
.checkout-stepper__item.is-done .checkout-stepper__num {
    background: var(--cs-success);
    color: #fff;
}
.cart-empty-state {
    border: 1px dashed var(--cs-border);
}
.cart-empty-state__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cs-navy);
}

/* ====================
   STORE THEME PERSONALIZER
   Accent presets + light/dim surface
   ==================== */
html[data-cs-accent="teal"] {
    --cs-accent: #0d9488;
    --cs-accent-dark: #0f766e;
    --cs-accent-light: #f0fdfa;
    --cs-accent-glow: rgba(13, 148, 136, .18);
}
html[data-cs-accent="blue"] {
    --cs-accent: #2563eb;
    --cs-accent-dark: #1d4ed8;
    --cs-accent-light: #eff6ff;
    --cs-accent-glow: rgba(37, 99, 235, .18);
}
html[data-cs-accent="rose"] {
    --cs-accent: #e11d48;
    --cs-accent-dark: #be123c;
    --cs-accent-light: #fff1f2;
    --cs-accent-glow: rgba(225, 29, 72, .18);
}
html[data-cs-accent="violet"] {
    --cs-accent: #7c3aed;
    --cs-accent-dark: #6d28d9;
    --cs-accent-light: #f5f3ff;
    --cs-accent-glow: rgba(124, 58, 237, .18);
}
html[data-cs-accent="amber"] {
    --cs-accent: #d97706;
    --cs-accent-dark: #b45309;
    --cs-accent-light: #fffbeb;
    --cs-accent-glow: rgba(217, 119, 6, .18);
}
html[data-cs-accent="slate"] {
    --cs-accent: #475569;
    --cs-accent-dark: #334155;
    --cs-accent-light: #f1f5f9;
    --cs-accent-glow: rgba(71, 85, 105, .18);
}

html[data-cs-surface="dim"] {
    --cs-body-bg: #e8eef5;
    --cs-card-bg: #f1f5f9;
    --cs-border: #d5dee9;
    --cs-text-main: #1a2436;
    --cs-text-muted: #5b6b7f;
    --cs-navy: #0b1220;
    --cs-navy-mid: #152033;
}

html[data-cs-surface="dim"] .top-header {
    background: #0b1220 !important;
}

html[data-cs-surface="dim"] .home-product,
html[data-cs-surface="dim"] .home-blog-card,
html[data-cs-surface="dim"] .home-banner,
html[data-cs-surface="dim"] .home-brands,
html[data-cs-surface="dim"] .catalog-panel,
html[data-cs-surface="dim"] .product-box,
html[data-cs-surface="dim"] .main-body-container,
html[data-cs-surface="dim"] .profile-card,
html[data-cs-surface="dim"] .store-page .card,
html[data-cs-surface="dim"] .store-content-card,
html[data-cs-surface="dim"] .faq-item,
html[data-cs-surface="dim"] .about-value,
html[data-cs-surface="dim"] .about-promise,
html[data-cs-surface="dim"] .contact-channels,
html[data-cs-surface="dim"] .contact-form-panel,
html[data-cs-surface="dim"] .blog-card {
    background: var(--cs-card-bg) !important;
}

.home-product__badge--offer {
    background: linear-gradient(135deg, var(--cs-accent-dark), var(--cs-accent)) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px var(--cs-accent-glow) !important;
}

/* Discount percent badges follow the active store theme accent palette. */
.store-discount-badge,
.product-sale-badge,
.home-product__badge:not(.home-product__badge--soft),
.profile-fav-card__badge,
.profile-compare-card__badge {
    background: linear-gradient(135deg, var(--cs-accent-dark), var(--cs-accent)) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px var(--cs-accent-glow) !important;
}

.header-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem .55rem;
    vertical-align: middle;
}

.header-theme {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 2;
}

.header-theme.is-open {
    z-index: 1300;
}

.header-actions:has(.header-theme.is-open) {
    position: relative;
    z-index: 1300 !important;
}

.header-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--cs-border) !important;
    color: var(--cs-text-main) !important;
    font-size: .95rem !important;
    padding: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
    transition: all var(--cs-transition) !important;
}
.top-header .header-theme-toggle {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}
.header-theme-toggle:hover,
.header-theme-toggle:focus,
.header-theme-toggle[aria-expanded="true"] {
    border-color: var(--cs-accent) !important;
    background: var(--cs-accent-light) !important;
    color: var(--cs-accent-dark) !important;
    box-shadow: 0 2px 10px var(--cs-accent-glow) !important;
    outline: none !important;
}
.top-header .header-theme-toggle:hover,
.top-header .header-theme-toggle:focus,
.top-header .header-theme-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .14) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px var(--cs-accent-glow) !important;
}

.store-theme-panel {
    position: absolute;
    top: calc(100% + .45rem);
    /* Default: open toward page center; JS may switch to fixed + clamp. */
    inset-inline-start: 0;
    inset-inline-end: auto;
    left: auto;
    right: auto;
    z-index: 1310;
    width: min(16.5rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    padding: .85rem .9rem .75rem;
    border-radius: .85rem;
    background: var(--cs-card-bg);
    border: 1px solid var(--cs-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
    text-align: right;
}

.store-theme-panel.is-fixed {
    position: fixed;
    margin: 0;
}
.store-theme-panel[hidden] {
    display: none !important;
}
.store-theme-panel__title {
    margin: 0 0 .65rem;
    font-size: .82rem;
    font-weight: 800;
    color: var(--cs-navy);
}
.store-theme-panel__label {
    margin: 0 0 .4rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--cs-text-muted);
}
.store-theme-panel__section + .store-theme-panel__section {
    margin-top: .75rem;
    padding-top: .7rem;
    border-top: 1px solid var(--cs-border);
}
.store-theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.store-theme-swatch {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
    cursor: pointer;
    padding: 0;
    transition: transform var(--cs-transition), box-shadow var(--cs-transition), border-color var(--cs-transition);
}
.store-theme-swatch:hover,
.store-theme-swatch:focus {
    transform: scale(1.08);
    outline: none;
}
.store-theme-swatch.is-active {
    border-color: var(--cs-navy);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cs-navy);
}
.store-theme-swatch[data-cs-accent-pick="orange"] { background: #f97316; }
.store-theme-swatch[data-cs-accent-pick="teal"] { background: #0d9488; }
.store-theme-swatch[data-cs-accent-pick="blue"] { background: #2563eb; }
.store-theme-swatch[data-cs-accent-pick="rose"] { background: #e11d48; }
.store-theme-swatch[data-cs-accent-pick="violet"] { background: #7c3aed; }
.store-theme-swatch[data-cs-accent-pick="amber"] { background: #d97706; }
.store-theme-swatch[data-cs-accent-pick="slate"] { background: #475569; }

.store-theme-surfaces {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}
.store-theme-surface {
    border: 1px solid var(--cs-border);
    background: #fff;
    color: var(--cs-text-main);
    border-radius: .55rem;
    font-size: .74rem;
    font-weight: 700;
    padding: .45rem .35rem;
    cursor: pointer;
    transition: all var(--cs-transition);
}
.store-theme-surface.is-active {
    border-color: var(--cs-accent);
    background: var(--cs-accent-light);
    color: var(--cs-accent-dark);
    box-shadow: 0 0 0 2px var(--cs-accent-glow);
}
.store-theme-reset {
    display: block;
    width: 100%;
    margin-top: .75rem;
    border: 0;
    background: transparent;
    color: var(--cs-text-muted);
    font-size: .72rem;
    font-weight: 700;
    padding: .35rem 0 0;
    cursor: pointer;
}
.store-theme-reset:hover {
    color: var(--cs-accent-dark);
}

@media (max-width: 767.98px) {
    .header-theme-toggle {
        width: 2.15rem !important;
        height: 2.15rem !important;
    }
    .top-header-row,
    .header-actions,
    .header-theme {
        overflow: visible;
    }
    .store-theme-panel {
        width: min(15.5rem, calc(100vw - 1.25rem));
        max-width: calc(100vw - 1.25rem);
    }
    .header-mobile-shortcut--theme {
        width: 100%;
        text-align: right;
    }
}
