/* Top bar unified with center coupon */
.top-bar-unified {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 11px 0;
    font-size: 16px;
}

.top-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
}

.top-bar-left {
    display: flex;
    gap: 18px;
    flex: 0 1 auto;
    max-width: 42%;
}

.top-bar-left span,
.top-bar-left-compact span {
    color: #1F2937;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.top-bar-left i,
.top-bar-left-compact i {
    color: #F9A825;
    margin-right: 5px;
    font-size: 16px;
}

.top-bar-left small {
    color: #6B7280;
    font-weight: 500;
    font-size: 13px;
}

.top-bar-coupon-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    height: 36px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 2px dashed #F9A825;
    border-radius: 50px;
    padding: 0 16px;
    overflow: hidden;
}

.top-coupon-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .4s;
    white-space: nowrap;
    pointer-events: none;
}

.top-coupon-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.top-coupon-slide i { color: #FF6F00; font-size: 16px; }
.top-coupon-slide .tc-code {
    color: #FF6F00;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
}

.top-coupon-slide .tc-save {
    background: #FF6F00;
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.top-bar-right {
    display: flex;
    gap: 16px;
    flex: 0 1 auto;
    justify-content: flex-end;
    max-width: 38%;
}

.top-contact-link {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-contact-link i { color: #F9A825; font-size: 15px; }

/* Header v2 — logo | search+promo | icons (side) */
.header-main-flex-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.header-mid-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-user-actions-side {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 991px) {
    .header-main-flex-v2 {
        flex-wrap: nowrap;
    }
    .header-mid-block { display: none; }
    .header-user-actions-side {
        gap: 2px;
    }
    .hua-icon-only-md .hua-label { display: none !important; }
    .hua-icon-only-md .hua-icon { margin: 0; }
    .hua-cart .cart-amount { display: none; }
}

/* Flash promo — full header row height */
.site-header {
    overflow: visible;
    z-index: 1030;
}

.header-promo-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    background: linear-gradient(90deg, #111, #2d2d2d);
    border: 2px solid #F9A825;
    border-radius: 12px;
}

.header-promo-tall {
    align-self: stretch;
    min-height: 52px;
    height: auto;
    width: clamp(220px, 32vw, 400px);
    max-width: none;
    padding: 5px 16px;
    margin: 0;
}

.header-promo-strip:hover {
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(249, 168, 37, .35);
}

.header-promo-img {
    height: 100%;
    max-height: 46px;
    width: auto;
    max-width: 160px;
    min-width: 60px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.header-promo-tall .header-promo-text {
    max-width: 120px;
    font-size: 13px;
}

.header-promo-icon {
    color: #F9A825;
    font-size: 1.1rem;
}

.header-promo-text {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.header-promo-timer {
    font-size: 11px;
    font-weight: 800;
    background: #F9A825;
    color: #111;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.header-promo-strip-mobile {
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
    height: 44px;
    justify-content: center;
}

.header-promo-strip-mobile .header-promo-text { max-width: none; }

.header-mobile-block {
    padding: 0 0 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Trust strip — horizontal scroll mobile */
.trust-strip-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 2px 4px;
}

.trust-strip-scroll::-webkit-scrollbar { display: none; }

.trust-scroll-track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding-bottom: 2px;
}

.trust-strip-scroll .trust-lite-card {
    flex: 0 0 auto;
    min-width: 148px;
    max-width: 168px;
    padding: 10px 12px;
}

.trust-strip-scroll .trust-lite-card strong { font-size: 12px; }
.trust-strip-scroll .trust-lite-card span { font-size: 10px; }
.trust-strip-scroll .trust-lite-card i { font-size: 1.25rem; }

/* Desktop header row: search | promo | icons */
.header-desktop-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0;
    min-height: 58px;
    overflow: visible;
}

.header-desktop-row .header-search-form {
    position: relative;
    z-index: 50;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-desktop-row .header-search-box {
    min-height: 50px;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.header-search-grow {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.header-desktop-row .header-user-actions {
    flex-shrink: 0;
    margin-left: 0;
}

/* Mobile header */
.header-mobile-wrap {
    border-bottom: 1px solid #f0f0f0;
}

.header-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 6px;
    gap: 8px;
}

.header-user-actions-compact {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header-user-actions-compact .hua-item {
    padding: 4px 6px;
    min-width: 40px;
}

.cart-amount-mobile {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #FF6F00;
    line-height: 1;
    text-align: center;
}

.header-mobile-search-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
}

.header-promo-strip-mob {
    flex-shrink: 0;
    width: 72px;
    height: 44px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
}

.header-promo-strip-mob .header-promo-img {
    max-width: 100%;
    height: 28px;
    object-fit: contain;
}

.header-promo-strip-mob .header-promo-timer {
    font-size: 9px;
    padding: 2px 4px;
}

/* Trust — mobile scroll only / desktop grid only */
.trust-mobile-only { display: block; }
.trust-desktop-only { display: none; }

@media (min-width: 992px) {
    .trust-mobile-only { display: none !important; }
    .trust-desktop-only {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

    .trust-lite-card {
        min-width: 0;
        overflow: hidden;
    }

    .trust-lite-card strong,
    .trust-lite-card span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Header compact search */
.header-main-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-search-compact {
    flex: 1;
    max-width: 420px;
    min-width: 140px;
}

@media (min-width: 1200px) {
    .header-search-compact { max-width: 380px; }
}

.header-search-compact .header-search-box input {
    padding: 10px 6px;
    font-size: 13px;
}

.header-search-compact .header-search-box button {
    width: 38px;
    height: 38px;
}

/* Nav — no scrollbar, no gap under All Categories */
.header-nav-bar {
    background: #1F2937;
    margin: 0;
    padding: 0;
    line-height: 1;
    border-top: none;
}

.site-header + .trust-strip-lite,
.header-nav-bar {
    margin-top: 0;
}

.header-nav-inner {
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: 52px;
}

.header-cat-dropdown {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.header-cat-dropdown .dropdown-menu {
    margin-top: 0;
}

.nav-links-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.header-menu-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
    transition: transform .3s ease;
}

.header-menu-links li { flex-shrink: 0; }

.header-menu-links a {
    color: #fff;
    text-decoration: none;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-menu-links a:hover { color: #F9A825; }
.header-menu-links a i { font-size: 1.2rem; }

.nav-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    border: none;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .2s;
}

.nav-scroll-btn:hover { background: #F9A825; color: #111; }
.nav-scroll-prev { border-right: 1px solid rgba(255,255,255,.1); }
.nav-scroll-next { border-left: 1px solid rgba(255,255,255,.1); }

.btn-all-categories {
    flex-shrink: 0;
    background: #F9A825;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 0 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    height: 100%;
    min-height: 52px;
    align-self: stretch;
}

@media (min-width: 992px) {
    .btn-all-categories {
        padding: 0 22px;
        font-size: 15px;
    }
    .btn-cat-label { display: inline; }
}

@media (max-width: 991px) {
    .btn-cat-label { font-size: 13px; }
    .btn-cat-chevron { font-size: 12px; }
}

/* Trust lite colorful */
.trust-strip-lite {
    background: #FAFAFA;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

/* grid layout only via .trust-desktop-only media query above */

.trust-lite-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid;
    background: #fff;
}

.trust-lite-card i { font-size: 1.4rem; flex-shrink: 0; }
.trust-lite-card strong { display: block; font-size: 13px; font-weight: 800; color: #111; }
.trust-lite-card span { font-size: 11px; color: #6B7280; font-weight: 500; }

.tl-delivery { border-color: #FFE082; background: #FFFDE7; }
.tl-delivery i { color: #F9A825; }
.tl-secure { border-color: #90CAF9; background: #E3F2FD; }
.tl-secure i { color: #1976D2; }
.tl-returns { border-color: #A5D6A7; background: #E8F5E9; }
.tl-returns i { color: #388E3C; }
.tl-genuine { border-color: #FFCC80; background: #FFF3E0; }
.tl-genuine i { color: #E65100; }
.tl-support { border-color: #CE93D8; background: #F3E5F5; }
.tl-support i { color: #7B1FA2; }

/* Flash sale instant cart btn */
.flash-sale-section .btn-add-cart {
    background: linear-gradient(135deg, #F9A825, #FF6F00) !important;
    font-weight: 800 !important;
    transition: transform .15s !important;
}

.flash-sale-section .btn-add-cart.adding {
    opacity: .7;
    pointer-events: none;
}

.flash-sale-section .btn-add-cart.added {
    background: #10B981 !important;
}

/* Cart toast */
.cart-toast-popup {
    position: fixed;
    top: 120px;
    right: 16px;
    z-index: 9999;
    background: #fff;
    border: 2px solid #10B981;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    transform: translateX(120%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    max-width: 280px;
}

.cart-toast-popup.show { transform: translateX(0); }
.cart-toast-popup i { font-size: 28px; color: #10B981; }
.cart-toast-popup strong { display: block; font-size: 14px; }
.cart-toast-popup span { font-size: 12px; color: #6B7280; }

/* Footer v2 */
.site-footer-v2 {
    background: #111827;
    color: #9CA3AF;
    margin-top: 48px;
    position: relative;
}

.footer-top-accent {
    height: 4px;
    background: linear-gradient(90deg, #F9A825, #FFB300, #FF6F00, #F9A825);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; }
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-logo-link-v2 {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    max-width: 320px;
    transition: background .2s, border-color .2s;
}

.footer-logo-link-v2:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(249, 168, 37, .35);
}

.footer-logo-img-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.footer-logo-img-wrap .footer-logo-img,
.footer-logo-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-logo-link .brand-mark {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.footer-logo-link strong {
    display: block;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.footer-logo-link em {
    font-style: normal;
    font-size: 12px;
    color: #fbbf24;
    font-weight: 600;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #374151;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background .2s, transform .2s;
}

.footer-social a:hover {
    background: #F9A825;
    color: #111;
    transform: translateY(-2px);
}

.footer-pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-pay-badges span {
    font-size: 11px;
    font-weight: 700;
    background: #1F2937;
    border: 1px solid #374151;
    padding: 6px 10px;
    border-radius: 8px;
    color: #D1D5DB;
}

.footer-col h6 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.footer-col a:hover { color: #F9A825; }

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-newsletter-form input {
    flex: 1;
    border: 1px solid #374151;
    background: #1F2937;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.footer-newsletter-form button {
    border: none;
    background: #F9A825;
    color: #111;
    font-weight: 800;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.footer-address p {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer-address i { color: #F9A825; flex-shrink: 0; margin-top: 2px; }

.footer-bottom-v2 {
    border-top: 1px solid #374151;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 600;
}

.footer-legal a:hover { color: #F9A825; }

/* Mobile — compact app-style footer */
@media (max-width: 991.98px) {
    .site-footer-v2 {
        margin-top: 20px;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 16px 0 12px;
    }

    .footer-brand-col {
        padding-bottom: 12px;
        border-bottom: 1px solid #374151;
        margin-bottom: 8px;
    }

    .footer-desc {
        font-size: 12px;
        margin-bottom: 12px;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .footer-pay-badges {
        display: none;
    }

    .footer-col:not(.footer-brand-col):not(.footer-newsletter-col) {
        display: none;
    }

    .footer-newsletter-col {
        padding-top: 4px;
    }

    .footer-newsletter-col h6 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-newsletter-col > p.small {
        display: none;
    }

    .footer-newsletter-form {
        flex-direction: row;
        margin-bottom: 10px;
    }

    .footer-newsletter-form input {
        font-size: 13px;
        padding: 10px 12px;
    }

    .footer-newsletter-form button {
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .footer-address {
        font-size: 11px;
    }

    .footer-address p {
        margin-bottom: 6px;
    }

    .footer-bottom-v2 {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 0 8px;
        font-size: 11px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .footer-legal a {
        font-size: 11px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Shop category enhanced */
.shop-cat-section {
    background: linear-gradient(180deg, #FAFAFA 0%, #fff 100%);
    padding: 28px 0 36px;
}

.cat-card-ref {
    min-height: 120px;
    box-shadow: 0 4px 20px rgba(249, 168, 37, .12);
    border: 2px solid #FFE082;
}

.cat-card-ref.has-thumb {
    border-color: #F9A825;
}

.cat-card-ref.has-thumb .cat-card-ref-bg {
    opacity: 0.42;
}

.cat-card-ref.has-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,.35) 100%);
    z-index: 1;
    pointer-events: none;
}

.cat-card-ref:hover {
    border-color: #F9A825;
    box-shadow: 0 12px 32px rgba(249, 168, 37, .22);
}

.cat-card-ref.has-thumb:hover .cat-card-ref-bg {
    opacity: 0.55;
}

/* Mobile credit-card horizontal */
@media (max-width: 991px) {
    .shop-cat-swiper .swiper-slide {
        width: 85% !important;
        max-width: 320px !important;
    }

    .shop-cat-swiper .cat-card-ref {
        min-height: 108px;
        padding: 14px 16px;
        border-radius: 16px;
        border: 2px solid #FFD54F;
        display: flex;
        align-items: stretch;
    }

    .shop-cat-swiper .cat-card-ref-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .shop-cat-swiper .cat-card-ref-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .shop-cat-swiper .cat-card-ref-text {
        flex: 1;
        min-width: 0;
    }

    .shop-cat-swiper .cat-card-ref-text h4 {
        font-size: 16px;
        font-weight: 800;
    }

    .shop-cat-swiper .cat-card-ref-go {
        position: static;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }

    .shop-cat-swiper .cat-card-ref.has-thumb::after {
        background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 55%, rgba(255,255,255,.2) 100%);
    }

    .shop-cat-swiper .cat-card-ref.has-thumb .cat-card-ref-bg {
        opacity: 0.5;
        background-position: right center;
    }
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
}
