/* ================================================================
   INDEX / HOMEPAGE — Web/Desktop CSS
   ================================================================ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg-color, #f5f5f5);
    color: var(--text-color, #1a1a2e);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 62px;
}
@media(min-width:768px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Container ── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }
@media(min-width:640px)  { .container { padding: 0 24px; } }
@media(min-width:1024px) { .container { padding: 0 32px; } }

/* ── Section Header ── */
.sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sh-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 800;
    color: var(--text-color, #1a1a2e);
}
.sh-link {
    font-size: .82rem; font-weight: 700;
    color: var(--primary-color, #3498db);
    display: flex; align-items: center; gap: 4px;
}
.sh-link:hover { opacity: .8; }
.sh-link i { font-size: .72rem; }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: clamp(180px, 34vw, 340px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--header-top-bg, #1a2940), var(--primary-color, #2980b9));
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.hero-body {
    position: relative; z-index: 2;
    padding: 28px 20px;
    max-width: 560px;
}
@media(min-width:640px) { .hero-body { padding: 36px 40px; } }
@media(min-width:1024px) { .hero-body { padding: 44px 56px; } }
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: #fff; padding: 5px 14px; border-radius: 20px;
    font-size: .74rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    margin-bottom: 14px; border: 1px solid rgba(255,255,255,.25);
}
.hero-tag i { font-size: .68rem; }
.hero-h1 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 2.4rem);
    font-weight: 900; color: #fff; line-height: 1.1;
    letter-spacing: -.5px; margin-bottom: 8px;
}
.hero-sub {
    font-size: clamp(.82rem, 1.8vw, .95rem);
    color: rgba(255,255,255,.82);
    line-height: 1.55; margin-bottom: 18px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hbtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 50px;
    font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: .9rem;
    cursor: pointer; transition: .2s; text-decoration: none;
}
.hbtn-primary { background: #fff; color: var(--primary-color, #3498db); }
.hbtn-primary:hover { background: #f0f0f0; transform: translateY(-1px); }
.hbtn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.hbtn-ghost:hover { background: rgba(255,255,255,.22); }
.hbtn i { font-size: .8rem; }

/* Hero decorative shape */
.hero-shape {
    position: absolute; right: -40px; bottom: -40px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.04); z-index: 1;
}

/* ── Sections ── */
.section { padding: 36px 0; }
@media(min-width:640px) { .section { padding: 52px 0; } }
.section-no-top { padding-top: 0 !important; }

/* ── Continuous scroll wrapper ── */
.scroll-track {
    overflow-x: auto; position: relative;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-track.auto-scroll { overflow: hidden; }
.scroll-track.auto-scroll::before,
.scroll-track.auto-scroll::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 3; pointer-events: none;
}
.scroll-track.auto-scroll::before { left: 0; background: linear-gradient(to right, var(--bg-color, #f5f5f5), transparent); }
.scroll-track.auto-scroll::after { right: 0; background: linear-gradient(to left, var(--bg-color, #f5f5f5), transparent); }
.scroll-inner {
    display: flex; gap: 14px; width: max-content;
}
.scroll-track.auto-scroll .scroll-inner {
    animation: marquee var(--scroll-dur, 25s) linear infinite;
}
.scroll-track:hover .scroll-inner { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Category Cards ── */
.cat-item {
    flex-shrink: 0; width: 150px; display: block;
    border-radius: 14px; overflow: hidden; position: relative;
    aspect-ratio: 3/4; text-decoration: none; cursor: pointer;
    background: #f5f5f5; border: 1px solid var(--border-color, #f0f0f0);
    transition: transform .25s, box-shadow .25s;
}
@media(min-width:640px) { .cat-item { width: 180px; } }
@media(min-width:1024px) { .cat-item { width: 210px; } }
.cat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.cat-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-item:hover img { transform: scale(1.05); }
.cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
    display: flex; align-items: flex-end; padding: 12px 10px;
}
.cat-name {
    font-family: 'Nunito Sans', sans-serif; font-size: .84rem; font-weight: 700;
    color: #fff; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
@media(min-width:640px) { .cat-name { font-size: .92rem; } }

/* ── Featured Grid ── */
.feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media(min-width:640px) { .feat-grid { grid-template-columns: repeat(4,1fr); gap: 16px; } }
.feat-card {
    display: block; border-radius: 16px; overflow: hidden;
    position: relative; aspect-ratio: 3/4; text-decoration: none;
}
.feat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat-card:hover img { transform: scale(1.05); }
.feat-ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px;
}
.feat-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary-color); color: #fff;
    padding: 3px 10px; border-radius: 20px;
    font-size: .66rem; font-weight: 800;
}
.feat-name {
    font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: .88rem;
    color: #fff; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feat-price {
    font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 1rem;
    color: #fff; display: flex; align-items: center; gap: 8px;
}
.feat-off { background: #e74c3c; padding: 2px 7px; border-radius: 10px; font-size: .66rem; }

/* ── Product Scroll Cards ── */
.pcard {
    flex-shrink: 0; width: 160px;
    background: var(--card-bg, #fff); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-color, #f0f0f0);
    transition: transform .25s, box-shadow .25s; position: relative;
}
@media(min-width:640px) { .pcard { width: 200px; } }
@media(min-width:1024px) { .pcard { width: 230px; } }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }
.pcard-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f8f8f8; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-disc {
    position: absolute; top: 9px; left: 9px;
    background: #e74c3c; color: #fff;
    padding: 2px 9px; border-radius: 20px;
    font-size: .66rem; font-weight: 800;
}
.pcard-wl {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; font-size: .92rem; color: #ccc;
    transition: .2s; z-index: 2;
}
.pcard-wl:hover { transform: scale(1.15); }
.pcard-wl.active { color: #e74c3c; }
.pcard-body { padding: 12px; }
@media(min-width:640px) { .pcard-body { padding: 14px; } }
.pcard-name {
    font-family: 'Nunito Sans', sans-serif; font-size: .88rem; font-weight: 700;
    color: var(--text-color, #1a1a2e);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.35; margin-bottom: 7px;
}
.pcard-prices { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-now { font-family: 'Nunito Sans', sans-serif; font-size: 1rem; font-weight: 800; color: var(--primary-color, #3498db); }
.pc-old { font-size: .78rem; color: #aaa; text-decoration: line-through; }
.pcard-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 9px; background: var(--primary-color, #3498db); color: #fff;
    border-radius: 10px; font-size: .82rem; font-weight: 700; text-decoration: none;
    font-family: 'Nunito Sans', sans-serif; transition: opacity .2s;
}
.pcard-btn:hover { opacity: .88; color: #fff; }
.pcard-btn i { font-size: .8rem; }

/* ── Recently Viewed ── */
.rv-card { flex-shrink: 0; width: 140px; text-decoration: none; color: inherit; }
@media(min-width:640px) { .rv-card { width: 165px; } }
.rv-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 12px; border: 1px solid #f0f0f0;
}
.rv-name {
    font-size: .74rem; font-weight: 600; margin-top: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--text-color, #333); line-height: 1.35;
    font-family: 'Nunito Sans', sans-serif;
}
.rv-price {
    font-family: 'Nunito Sans', sans-serif; font-size: .84rem;
    font-weight: 800; color: var(--primary-color); margin-top: 3px;
}

/* ── WhatsApp Float ── */
.wa-float {
    position: fixed; bottom: 74px; right: 16px; z-index: 800;
    background: #25d366; color: #fff;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
@media(min-width:768px) {
    .wa-float {
        bottom: 28px; right: 24px;
        width: auto; height: auto; border-radius: 50px;
        padding: 12px 20px; font-size: .88rem; gap: 8px;
    }
}
.wa-txt {
    display: none;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

/* ── Promo Strip ── */
.promo-strip {
    background: linear-gradient(135deg, var(--primary-color, #3498db), var(--primary-dark, #2176ae));
    border-radius: 16px; padding: 28px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; margin-bottom: 8px;
}
.promo-text h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800; color: #fff; margin-bottom: 4px;
}
.promo-text p { font-size: .84rem; color: rgba(255,255,255,.82); }
.promo-btn {
    background: #fff; color: var(--primary-color, #3498db);
    padding: 11px 24px; border-radius: 50px;
    font-weight: 700; font-size: .88rem; white-space: nowrap;
    text-decoration: none; font-family: 'Nunito Sans', sans-serif;
    transition: .2s; flex-shrink: 0;
}
.promo-btn:hover { background: #f0f0f0; }

/* ── Trust Badges ── */
.trust-bar { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 12px; }
@media(min-width:640px) { .trust-bar { grid-template-columns: repeat(4,1fr); } }
.trust-item {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #eee);
    border-radius: 12px; padding: 14px 12px; text-align: center;
}
.trust-icon { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 6px; }
.trust-label {
    font-size: .74rem; font-weight: 700;
    color: var(--text-color, #333);
    font-family: 'Nunito Sans', sans-serif;
}
.trust-sub { font-size: .68rem; color: #aaa; margin-top: 2px; }
