/**
 * mobile-home.css — Attiredom
 * Mobile-optimised homepage layout.
 * Loaded via home.php only. All rules inside @media (max-width: 768px).
 * Desktop styles are 100% untouched.
 */

/* ─────────────────────────────────────────────────────────────
   MOBILE HERO SLIDER — portrait cover images, centered CTA
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Section height on mobile */
    .lh-section {
        min-height: 65vh !important;
    }

    /* Each slide: cover fit using portrait mobile image set via JS */
    .lh-hero-slide {
        background-size: cover !important;
        background-position: center center !important;
    }

    /* Slide 1 overlay — top-bottom vignette for text readability */
    .lh-hs-overlay-left {
        background: linear-gradient(
            to bottom,
            rgba(8, 3, 6, 0.76) 0%,
            rgba(8, 3, 6, 0.55) 55%,
            rgba(8, 3, 6, 0.82) 100%
        ) !important;
    }

    /* Default overlay for slides 2-5 — subtle dark vignette */
    .lh-hs-overlay:not(.lh-hs-overlay-left) {
        background: rgba(8, 3, 6, 0.42) !important;
    }

    /* Hide prev/next arrows — swipe instead */
    .lh-hs-arrow { display: none !important; }

    /* Dots */
    .lh-hs-dots { bottom: 0.85rem !important; }

    /* Shop Now button on image-only slides */
    .lh-hs-shopbtn {
        font-size: 0.88rem !important;
        padding: 0.9rem 2rem !important;
        letter-spacing: 0.09em !important;
    }

    /* ── Slide 1: hide ALL text — only Shop Now button at bottom-left ── */
    .lh-badge,
    .lh-title,
    .lh-title-accent,
    .lh-desc,
    .lh-stats,
    .lh-stat,
    .lh-stat-div,
    .lh-btn-secondary { display: none !important; }

    /* Hero wrapper ONLY — scoped to hero section so featured section is unaffected */
    .lh-section .lh-wrapper {
        position: absolute !important;
        bottom: 3.5rem !important;
        left: 0 !important;
        right: auto !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Hero grid — single column, no min-height */
    .lh-section .lh-grid {
        grid-template-columns: 1fr !important;
        min-height: unset !important;
        align-items: flex-end !important;
    }

    /* Hero left col — minimal, just holds the button */
    .lh-section .lh-left {
        max-width: 100% !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 0 1.25rem !important;
    }

    /* CTA row: left-aligned, single button */
    .lh-section .lh-ctas {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Primary button — compact, bottom-left */
    .lh-btn-primary {
        padding: 0.85rem 2rem !important;
        font-size: 0.82rem !important;
        letter-spacing: 0.08em !important;
        white-space: nowrap !important;
    }

    /* Fix blink during slide transitions — hero stays above featured section */
    .lh-section {
        z-index: 2 !important;
        isolation: isolate !important;
    }
    .lh-featured-section {
        z-index: 1 !important;
        position: relative !important;
    }

    /* Slides 2-5: CTA wrap — bottom-left aligned */
    .lh-hs-cta-wrap {
        justify-content: flex-start !important;
        align-items: flex-end !important;
        padding-left: 1.25rem !important;
        padding-bottom: 3.5rem !important;
    }

    /* Hide desktop orbs & particles on mobile for perf */
    .lh-orb, .lh-particles { display: none !important; }

    /* ── Featured slider (now in .lh-featured-section below hero) ── */
    .lh-featured-section { padding-top: 0 !important; }

    .lh-slider-section {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }

    .lh-slider-title { font-size: 1.4rem !important; }

    /* Touch-scroll on mobile */
    .lh-slider-viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .lh-slider-viewport::-webkit-scrollbar { display: none !important; }

    /* Disable JS translate on mobile — native scroll handles it */
    .lh-slider-track {
        transform: none !important;
        gap: 0.75rem !important;
    }

    /* Card width ~47vw so 2 visible at a time */
    .lh-slide-card {
        flex: 0 0 47vw !important;
        max-width: 220px !important;
    }

    /* Card buttons compact */
    .lh-sc-cart, .lh-sc-buy {
        padding: 0.55rem 0.3rem !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.04em !important;
    }
    .lh-sc-body { padding: 0.7rem !important; }
    .lh-sc-name { font-size: 0.88rem !important; }
    .lh-sc-price { font-size: 0.95rem !important; margin-bottom: 0.5rem !important; }

}

/* ─────────────────────────────────────────────────────────────
   MOBILE TRUST / FEATURES STRIP — horizontal scroll
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .features-strip {
        background: rgba(26, 11, 15, 0.9) !important;
        border-top: 1px solid rgba(198,167,94,0.15) !important;
        border-bottom: 1px solid rgba(198,167,94,0.15) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0.75rem 0 !important;
    }

    .features-strip .container {
        padding: 0 !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .features-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0 !important;
        padding: 0.5rem 1rem !important;
    }
    .features-grid::-webkit-scrollbar { display: none !important; }

    .feature-item {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        border-right: 1px solid rgba(198,167,94,0.12) !important;
        white-space: nowrap !important;
    }
    .feature-item:last-child { border-right: none !important; }

    .feature-icon { font-size: 1.3rem !important; }

    .feature-text strong {
        display: block !important;
        font-size: 0.75rem !important;
        color: #F5F1E8 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    .feature-text span {
        font-size: 0.65rem !important;
        color: rgba(245,241,232,0.5) !important;
        white-space: nowrap !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE CATEGORY GRID — 2 columns, square cards
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .category-section-modern {
        padding: 2rem 0 !important;
    }

    .category-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        padding: 0 !important; /* full width — no side padding */
    }

    .category-card-modern {
        aspect-ratio: 2 / 3 !important; /* portrait — matches 1024×1536 mobile image */
        height: auto !important;
        border-radius: 0 !important; /* edge-to-edge */
    }

    .category-content-modern {
        padding: 1rem !important;
    }

    .category-content-modern h3 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .category-content-modern p {
        display: none !important;
    }

    .category-arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        margin-top: 0.4rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE PRODUCT GRID — 2 columns, Myntra-style compact cards
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .products-section-modern {
        padding: 2rem 0 !important;
    }

    .section-header {
        padding: 0 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }

    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        padding: 0 0.6rem !important;
    }

    /* Card — minimal border, dark bg */
    .product-card-wrapper {
        border-radius: 6px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
    }

    /* Image ratio — portrait apparel */
    .product-image-container {
        padding-top: 110% !important;
    }

    /* Info section — tighter */
    .product-info-section {
        padding: 0.6rem 0.65rem 0.3rem !important;
    }

    .product-category-tag {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    .product-title-modern {
        font-size: 0.82rem !important;
        margin: 0.2rem 0 0.3rem !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-rating-display { display: none !important; }

    .product-price-modern {
        font-size: 0.95rem !important;
        letter-spacing: 0 !important;
    }

    /* Action buttons — stacked, compact */
    .product-actions-row {
        flex-direction: column !important;
        gap: 0.35rem !important;
        padding: 0.4rem 0.6rem 0.6rem !important;
    }

    .btn-add-cart-modern,
    .btn-buy-now-modern {
        padding: 0.6rem !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.03em !important;
        min-height: 34px !important;
        gap: 0.25rem !important;
        justify-content: center !important;
    }

    .btn-add-cart-modern svg,
    .btn-buy-now-modern svg {
        display: none !important;  /* Hide icon on tiny cards */
    }

    /* Product badges */
    .product-badge-new,
    .product-badge-best {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.5rem !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 360px) {
    .products-grid-modern {
        gap: 0.4rem !important;
        padding: 0 0.4rem !important;
    }
    .btn-add-cart-modern,
    .btn-buy-now-modern {
        padding: 0.5rem !important;
        font-size: 0.62rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   PROMOTION SLIDES — desktop (full-width cinematic banners)
───────────────────────────────────────────────────────────── */
.promo-slides-section {
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.promo-slides-section .container {
    max-width: 1400px;
}

.promo-slides-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.promo-slide-track-wrap {
    position: relative;
}

.promo-slide-viewport {
    overflow: hidden;
    border-radius: 0;
}

.promo-slide-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Desktop: each slide = full viewport width of the container */
.promo-slide-item {
    flex: 0 0 100%;
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #1A0B0F;
    cursor: pointer;
}

.promo-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.promo-slide-item:hover img { transform: scale(1.03); }

/* Text overlay on slides */
.promo-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 3, 6, 0.75) 0%,
        rgba(8, 3, 6, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
    z-index: 2;
}

.promo-slide-content {
    max-width: 480px;
}

.promo-slide-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C6A75E;
    border: 1px solid rgba(198,167,94,0.45);
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.promo-slide-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    color: #F5F1E8;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.promo-slide-desc {
    font-size: 0.9rem;
    color: rgba(245,241,232,0.7);
    margin: 0 0 1.4rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    max-width: 360px;
}

.promo-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    background: #C6A75E;
    color: #0E0E0E;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.promo-slide-cta:hover {
    background: #D4B86A;
    box-shadow: 0 8px 24px rgba(198,167,94,0.4);
    transform: translateY(-1px);
    color: #0E0E0E;
}

/* Navigation dots */
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(198,167,94,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: unset;
    transition: all 0.25s ease;
}
.promo-dot.active {
    background: #C6A75E;
    width: 24px;
    border-radius: 4px;
}

/* Arrow buttons */
.promo-arrow-prev,
.promo-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(14,14,14,0.7);
    border: 1px solid rgba(198,167,94,0.35);
    color: #C6A75E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.22s;
    min-height: unset;
    padding: 0;
}
.promo-arrow-prev { left: 1rem; }
.promo-arrow-next { right: 1rem; }
.promo-arrow-prev:hover,
.promo-arrow-next:hover {
    background: #C6A75E;
    color: #0E0E0E;
}

/* ─────────────────────────────────────────────────────────────
   PROMOTION SLIDES — mobile overrides
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .promo-slides-section {
        padding: 1.5rem 0 !important;
    }

    .promo-slides-section .container {
        padding: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .promo-slides-header {
        padding: 0 0.75rem !important;
        margin-bottom: 0.85rem !important;
    }

    /* Each slide — taller portrait on mobile */
    .promo-slide-item {
        height: 240px !important;
        flex: 0 0 100% !important;
    }

    /* Text overlay — bottom positioned on mobile */
    .promo-slide-overlay {
        background: linear-gradient(
            to top,
            rgba(8, 3, 6, 0.9) 0%,
            rgba(8, 3, 6, 0.6) 50%,
            rgba(8, 3, 6, 0.2) 100%
        ) !important;
        align-items: flex-end !important;
        padding: 1.25rem 1rem !important;
    }

    .promo-slide-content {
        max-width: 100% !important;
    }

    .promo-slide-tag {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.65rem !important;
        margin-bottom: 0.45rem !important;
    }

    .promo-slide-title {
        font-size: clamp(1.2rem, 5.5vw, 1.6rem) !important;
        margin-bottom: 0.4rem !important;
    }

    .promo-slide-desc {
        display: none !important;   /* Too much text on small cards */
    }

    .promo-slide-cta {
        padding: 0.55rem 1.2rem !important;
        font-size: 0.7rem !important;
    }

    /* Hide arrows on mobile — swipe instead */
    .promo-arrow-prev,
    .promo-arrow-next { display: none !important; }

    /* Touch-scroll on mobile */
    .promo-slide-viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .promo-slide-viewport::-webkit-scrollbar { display: none !important; }

    .promo-slide-track {
        transform: none !important;
        gap: 0 !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE TESTIMONIALS — single column scroll
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .testimonials-section {
        padding: 2rem 0 !important;
    }

    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        padding: 0 0.75rem !important;
    }

    .testimonial-card {
        padding: 1.1rem !important;
    }

    .testimonial-text {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE NEWSLETTER — stacked layout
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .newsletter-section-improved {
        padding: 2rem 0 !important;
    }

    .newsletter-content-wrapper {
        padding: 1.5rem 1.25rem !important;
        border-radius: 10px !important;
    }

    .newsletter-heading {
        font-size: 1.5rem !important;
    }

    .newsletter-description {
        font-size: 0.85rem !important;
    }

    .input-group-newsletter {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    .newsletter-input-improved,
    .newsletter-btn-improved {
        width: 100% !important;
        border-radius: 0 !important;
    }

    .newsletter-btn-improved {
        justify-content: center !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL MOBILE SECTION HEADER
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .section-title {
        font-size: 1.35rem !important;
        letter-spacing: 0.03em !important;
    }

    .section-subtitle {
        font-size: 0.8rem !important;
        margin-top: 0.2rem !important;
    }

    .section-link {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
        margin-left: 1rem !important;
    }

    .bestsellers-bg { padding: 2rem 0 !important; }
}
