/* ============================================================================
   App-style home page — makes the website home match the Flutter app UI:
   light-grey page background with white, rounded "card" sections, gradient
   accent-bar headers, rounded category circles, a floating hero banner, and
   app-style product tiles. Everything is scoped to body.page-home so no other
   page is affected. Colours are the Neptch brand (blue #1E3A8A + teal #14B8A6).
   ========================================================================== */

body.page-home {
    background: #F1F5F9;
}

/* ── Card sections ──────────────────────────────────────────────────────────
   The category strip + brand strip (section.mt-3 > .container) and every
   product section (section.wrapper) become floating white cards. */
body.page-home section.mt-3 > .container,
body.page-home section.wrapper {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 5px 14px rgba(2, 6, 23, 0.05);
    margin-top: 14px;
    margin-bottom: 14px;
    padding-top: 16px;
    padding-bottom: 20px;
}

/* Product sections sit inside .main-content; give them breathing room. */
body.page-home section.container.main-content {
    background: transparent;
}
body.page-home section.wrapper {
    padding-left: 16px;
    padding-right: 16px;
}

/* ── Section headers: gradient accent bar (matches the app) ─────────────────*/
body.page-home .default_heading .section-title,
body.page-home .featured-section-title h3 {
    position: relative;
    padding-left: 14px;
    font-weight: 700;
    color: #0F172A;
}
body.page-home .default_heading .section-title::before,
body.page-home .featured-section-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2563EB, #14B8A6);
}
body.page-home .title-sm,
body.page-home .featured-section-title h6 {
    color: #64748B !important;
}

/* ── Hero banner: floating rounded card with soft shadow ────────────────────*/
body.page-home section.slider {
    margin-top: 14px;
}
body.page-home section.slider .slide-img img {
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.12);
}

/* ── Category & brand circles (app uses circular tiles) ─────────────────────*/
body.page-home .swiper-slide-category a img {
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.page-home .swiper-slide-category a:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.15);
}
body.page-home .swiper-slide-category h6 {
    color: #334155;
    font-weight: 500;
    margin-top: 8px;
}

/* ── Product tiles: rounded image tile + clean title/price (app card look) ──*/
body.page-home .project.item figure {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(2, 6, 23, 0.05);
    padding: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
body.page-home .project.item:hover figure {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.12);
}
body.page-home .project.item figure img {
    border-radius: 10px;
}
body.page-home .project.item .post-title a {
    color: #0F172A;
    font-weight: 500;
}
body.page-home .project.item .post-title a:hover {
    color: #1E3A8A;
}
/* Current price = brand blue & bold; original (struck) price stays muted. */
body.page-home .project.item .price #price {
    color: #1E3A8A;
    font-weight: 700;
}

/* ── Offer banners: round the corners to match the card language ────────────*/
body.page-home .offer-image {
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(2, 6, 23, 0.06);
}

/* ── New Arrivals: continuous auto-looping product marquee (app-style) ───────
   The track holds the product list twice and slides from 0 → -50%, so it loops
   seamlessly forever. Cards use margin-right (not gap) so both halves are the
   exact same width and the wrap is invisible. */
body.page-home .app-newarrivals .app-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
body.page-home .app-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: app-marquee-scroll 45s linear infinite;
}
body.page-home .app-marquee:hover .app-marquee-track {
    animation-play-state: paused;
}
@keyframes app-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

body.page-home .app-na-card {
    flex: 0 0 auto;
    width: 160px;
    margin-right: 14px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(2, 6, 23, 0.05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
body.page-home .app-na-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.12);
}
body.page-home .app-na-img {
    position: relative;
    height: 150px;
    background: #F8FAFC;
}
body.page-home .app-na-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
body.page-home .app-na-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    padding: 3px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563EB, #14B8A6);
}
body.page-home .app-na-body {
    padding: 8px 10px 12px;
    border-top: 1px solid #F1F5F9;
}
body.page-home .app-na-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.page-home .app-na-price .app-na-now {
    color: #1E3A8A;
    font-weight: 700;
    font-size: 14px;
}
body.page-home .app-na-price .app-na-old {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 11px;
    margin-left: 5px;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    body.page-home .app-marquee-track { animation: none; }
    body.page-home .app-marquee { overflow-x: auto; }
}
