/* GRSAV v4 — Reference header + mobile */
.grsav-container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .grsav-container { max-width: 1380px; }
}

body.grsav-app {
    background: #fff;
    overflow-x: hidden;
    padding-bottom: 88px;
}

@media (min-width: 992px) {
    body.grsav-app { padding-bottom: 0; }
}

/* Top utility */
.top-utility-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    padding: 8px 0;
}

.top-utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-utility-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-utility-left span,
.top-utility-right a {
    color: #374151;
    font-weight: 500;
}

.top-utility-left i,
.top-utility-right i {
    color: #F9A825;
    margin-right: 4px;
}

.top-utility-left small { color: #6B7280; font-weight: 400; }

.top-utility-right {
    display: flex;
    gap: 20px;
}

.top-utility-right a {
    text-decoration: none;
    font-weight: 600;
}

/* Coupon strip — rotating */
.coupon-strip {
    background: linear-gradient(90deg, #FF6F00, #F9A825, #FFB300, #F9A825);
    background-size: 300% 100%;
    animation: couponGlow 6s ease infinite;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

@keyframes couponGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.coupon-strip-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.coupon-strip-track {
    display: flex;
    gap: 32px;
    width: max-content;
    will-change: transform;
}

.coupon-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111827;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.coupon-strip-item .c-code { color: #FF6F00; font-size: 14px; letter-spacing: .04em; }
.coupon-strip-item .c-off { color: #111827; }
.coupon-strip-item .c-min { color: #6B7280; font-weight: 500; font-size: 12px; }

/* Header main row */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    z-index: 1030;
}

.header-main-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-main-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

@media (max-width: 991px) {
    .header-main-grid {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .header-user-actions { grid-column: 1 / -1; justify-content: center; }
    .header-search-form { display: none; }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 168, 37, .25);
    overflow: hidden;
    padding: 4px;
}

.brand-mark-logo .brand-mark-img,
.brand-mark-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-wordmark strong {
    display: block;
    color: #FF6F00;
    font-size: 1.35rem;
    line-height: 1.1;
}

.brand-wordmark em {
    font-style: normal;
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

/* Search in header */
.header-search-form {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.header-search-box {
    display: flex;
    align-items: center;
    border: 2px solid #F9A825;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 168, 37, .15), 0 4px 16px rgba(249, 168, 37, .12);
    overflow: visible;
    padding-left: 4px;
    position: relative;
    z-index: 2;
}

.header-search-box > i.bi-search:first-child {
    padding: 0 12px;
    color: #9CA3AF;
    font-size: 1.1rem;
}

.header-search-box input {
    flex: 1;
    border: none;
    padding: 12px 8px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    background: transparent;
}

.header-search-box button {
    width: 44px;
    height: 44px;
    margin: 3px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9A825, #FF6F00);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
}

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

.header-mobile-search .header-search-form { display: block !important; }

/* User actions */
.header-user-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hua-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #111827;
    padding: 4px 10px;
    min-width: 56px;
}

.hua-icon {
    position: relative;
    font-size: 1.45rem;
    color: #374151;
    line-height: 1;
}

.hua-icon b {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #FF6F00;
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.hua-label {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
}

.hua-label small { display: block; font-weight: 500; color: #6B7280; font-size: 10px; }

.cart-amount {
    display: block;
    color: #FF6F00 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
}

/* Nav bar */
/* Nav bar — see top-bar-footer.css */

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

.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: 6px;
}

.header-menu-links a:hover { color: #F9A825; }

.header-menu-links a i { font-size: 1rem; }

.dropdown-menu-categories {
    border-radius: 12px;
    padding: 8px;
    min-width: 240px;
}

/* Mobile cats */
.header-mobile-cats {
    padding: 8px 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.mcat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 32px;
    scrollbar-width: none;
}

.mcat-scroll::-webkit-scrollbar { display: none; }

.mcat-pill {
    flex-shrink: 0;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #FFE082;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}

.mcat-pill i { color: #FF6F00; margin-right: 4px; }

.mcat-all { background: #F9A825; color: #fff; border-color: #F9A825; }
.mcat-all i { color: #fff; }

.mcat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #F9A825;
    color: #fff;
    font-size: 14px;
}

.mcat-prev { left: 8px; }
.mcat-next { right: 8px; }

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

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.trust-strip-item {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    min-width: 140px;
}

@media (min-width: 992px) {
    .trust-strip-item { flex: 1; border-right: 1px solid #E5E7EB; }
    .trust-strip-item:last-child { border-right: none; }
}

.trust-strip-item i {
    font-size: 1.5rem;
    color: #F9A825;
}

.trust-strip-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.trust-strip-item span {
    font-size: 11px;
    color: #6B7280;
}

/* Hero — natural fit, no crop */
.hero-fit {
    padding: 12px 0 16px;
}

.hero-wrap {
    padding-left: 10px;
    padding-right: 10px;
}

.hero-swiper-fit {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.hero-swiper-fit .swiper-slide {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: unset !important;
    max-height: none !important;
}

.hero-slide-fit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF8E1;
}

.hero-img-natural {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-img-natural { max-height: 220px; }
}

.hero-fallback-banner {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    width: 100%;
}

.hero-title-ref {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-title-ref span { color: #FF6F00; }

.hero-checks {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0;
}

.hero-checks i { color: #F9A825; margin-right: 6px; }

.hero-swiper-fit .swiper-button-next,
.hero-swiper-fit .swiper-button-prev,
.hero-nav-btn {
    background: rgba(249, 168, 37, .28) !important;
    backdrop-filter: blur(8px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, .55);
    box-shadow: 0 2px 12px rgba(249, 168, 37, .2);
}

.hero-swiper-fit .swiper-button-next:after,
.hero-swiper-fit .swiper-button-prev:after {
    font-size: 17px;
    font-weight: 800;
}

.hero-swiper-fit .swiper-button-next:after,
.hero-swiper-fit .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 800;
}

/* Category cards — reference white + mobile debit card */
.shop-cat-section {
    padding: 20px 0 28px;
    background: #FAFAFA;
}

.section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #111827;
}

.shop-cat-mobile {
    position: relative;
    padding: 0 36px;
}

.sc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #F9A825;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.sc-prev { left: 0; }
.sc-next { right: 0; }

.shop-cat-swiper .swiper-slide { width: 72%; max-width: 280px; height: auto; }

.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (min-width: 992px) {
    .shop-cat-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

.cat-card-ref {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    min-height: 110px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #E8E8E8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}

.cat-card-ref:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(249, 168, 37, .2);
    border-color: #FFD54F;
}

.cat-card-ref-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-card-ref-icon {
    width: 44px;
    height: 44px;
    background: #FFF8E1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #F9A825;
    margin-bottom: 10px;
}

.cat-card-ref-text h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
}

.cat-card-ref-text p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    font-weight: 500;
}

.cat-card-ref-go {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #F9A825;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Mobile debit-card style */
@media (max-width: 991px) {
    .shop-cat-swiper .cat-card-ref {
        min-height: 130px;
        border-radius: 18px;
        background: linear-gradient(135deg, #fff 0%, #FFFDE7 100%);
        border: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
        padding: 20px;
    }

    .shop-cat-swiper .cat-card-ref::before {
        content: '';
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 28px;
        background: linear-gradient(135deg, #FFD54F, #FFB300);
        border-radius: 6px;
        opacity: .35;
    }

    .shop-cat-swiper .cat-card-ref-icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(145deg, #F9A825, #FF6F00);
        color: #fff;
        font-size: 1.5rem;
    }

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

.cat-card-ref-bg {
    position: absolute;
    inset: 0;
    background-image: var(--cat-thumb);
    background-size: cover;
    background-position: center right;
    opacity: .35;
    z-index: 0;
}

.cat-card-ref.has-thumb .cat-card-ref-inner {
    z-index: 2;
}

/* Flash sale */
.flash-sale-section {
    padding: 20px 0 28px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    margin-bottom: 8px;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.flash-sale-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-banner-mini {
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.flash-sale-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.flash-sale-title i { color: #F9A825; }

.flash-sale-timer {
    color: #FFB300;
    font-size: 13px;
    font-weight: 600;
}

.btn-flash-view {
    background: #F9A825;
    color: #111;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
}

.flash-product-swiper .swiper-slide {
    width: 160px;
}

@media (min-width: 576px) {
    .flash-product-swiper .swiper-slide { width: 200px; }
}

.flash-slide .product-card {
    border: 2px solid #F9A825;
}

.flash-slide .product-badge,
.flash-slide .badge-sale {
    animation: flashPulse 1s ease infinite;
}

@keyframes flashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Promo banners */
.home-promo-banners { padding: 16px 0; }

.promo-banner-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.promo-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 200px;
}

.section-panel-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px 12px;
    margin-left: auto;
    margin-right: auto;
}

.section-bestsellers-bg {
    background: linear-gradient(180deg, #FFF8E1, #fff);
}

/* Product grid mobile */
@media (max-width: 575px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-info { padding: 10px !important; }
    .product-name { font-size: 13px !important; }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-results.active { display: block; z-index: 2000; }

.search-no-result {
    padding: 14px 16px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f0f0f0;
}

.grsav-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    font-weight: 600;
}
