/* ============================================================
   HOME PAGE — MASTER STYLESHEET
   File: astra-child/home-page-style.css
   Enqueued via functions.php
   ============================================================ */


/* ============================================================
   1. RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
}


/* ============================================================
   2. SECTION WRAPPERS — Desktop default
   ============================================================ */
.section-pc-multiple-categories {
    width: 100%;
    background: white;
    padding: 0rem 10rem;
    box-sizing: border-box;
}

.section-pc-deals {
    width: 100%;
    background: white;
    padding: 1rem 10rem 4rem 10rem;
    box-sizing: border-box;
}

.section-image-slider {
    width: 100%;
    background: #FFF7EA;
    padding: 2rem 15rem;
    box-sizing: border-box;
}


/* ============================================================
   3. CAROUSEL / BANNER SLIDER (Flickity)
   ============================================================ */

/* Hide cells before Flickity initializes */
.carousel-cell:not(:first-child) {
    display: none;
}

/* Show all cells after Flickity initializes */
.flickity-enabled .carousel-cell {
    display: block;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-cell {
    width: 100%;
}

.carousel-cell img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide Flickity prev/next arrows */
.carousel .flickity-button {
    display: none !important;
}


/* ============================================================
   4. DM HERO SLIDER — Wrapper & Track
   ============================================================ */
.dm-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(90deg, #13022b 0%, #0d001f 25%, #000000 50%, #0d001f 75%, #0d011f 100%);
}

.dm-slides-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(.25, 1, .5, 1);
    align-items: flex-start;
}

.dm-slide {
    min-width: 100%;
    box-sizing: border-box;
}


/* ============================================================
   5. DM HERO SLIDER — Slide Type: Full Banner
   ============================================================ */
.dm-slide-banner {
    position: relative;
    width: 100%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.dm-slide-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.dm-banner-desktop {
    display: block;
}

.dm-banner-mobile {
    display: none;
}

.dm-slide-banner-wrap {
    line-height: 0;
    font-size: 0;
}

.dm-slide-banner-wrap .dm-slide-content {
    padding: 0;
    min-height: 0;
}


/* ============================================================
   6. DM HERO SLIDER — Slide Type: Content + Image(s)
   ============================================================ */
.dm-slide-content {
    display: flex;
    align-items: center;
    padding: 60px 80px;
    gap: 40px;
    min-height: 420px;
}

.dm-slide-left {
    flex: 1.1;
}

.dm-slide-right {
    flex: .9;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
}

.dm-slide-left h1 {
    font-size: 38px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -.5px;
}

.dm-slide-left h2 {
    font-size: 36px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #F7B500;
    margin: 0 0 20px 0;
}

.dm-slide-left p {
    font-size: 17px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #fdfdfd;
    max-width: 600px;
    margin: 0 0 28px 0;
}


/* ============================================================
   7. DM HERO SLIDER — Image Cards
   ============================================================ */
.dm-img-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.dm-img-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dm-img-card img:hover {
    transform: translateY(-5px);
}

.dm-img-btn {
    display: block;
    width: 50%;
    background: #F7B500;
    color: #111827;
    border: none;
    padding: 11px 8px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(247, 181, 0, .25);
    text-decoration: none;
    white-space: nowrap;
}

.dm-img-btn:hover {
    background: #fbbf24;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 181, 0, .35);
}


/* ============================================================
   8. DM HERO SLIDER — Ribbons
   ============================================================ */
.dm-ribbons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dm-ribbon {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.dm-ribbon.expired {
    background: #fff;
    color: red;
    text-decoration: line-through;
}

.dm-ribbon.running {
    border: 3px dashed #0ac30a;
    background: #fff;
    color: #26a308;
}

.dm-ribbon.running::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1d7a06;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #2e8107;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: .5; transform: scale(.8); }
    100% { opacity: 1; transform: scale(1); }
}

.dm-ribbon.coming-soon {
    background: #fff;
    color: #000;
    border: 1px dashed rgba(148, 163, 184, .4);
}

.dm-ribbon.highlight {
    background: #fff;
    color: red;
    font-size: 18px;
    border: 2px dashed red;
}


/* ============================================================
   9. DM HERO SLIDER — CTA Row & Button
   ============================================================ */
.dm-cta-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.dm-btn {
    background: #F7B500;
    color: #111827;
    border: none;
    padding: 13px 26px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(247, 181, 0, .25);
}

.dm-btn:hover {
    background: #fbbf24;
    color: black;
    transform: translateY(-2px);
}


/* ============================================================
   10. DM HERO SLIDER — Countdown Timer
   ============================================================ */
.dm-timer {
    margin-top: 1rem;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dm-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dm-timer-box {
    background: #ff000c;
    border: 2px dashed #f0f0f0;
    padding: 0 14px;
    border-radius: 30%;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    min-width: 50px;
    text-align: center;
}

.dm-timer-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   11. DM HERO SLIDER — Dots & Arrows Navigation
   ============================================================ */
.dm-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dm-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dm-dot.active {
    background: #F7B500;
    width: 36px;
}

.dm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.dm-arrow.prev { left: 20px; }
.dm-arrow.next { right: 20px; }

.dm-arrow:hover,
.dm-arrow:focus {
    background: transparent;
    color: white;
    outline: none;
}


/* ============================================================
   12. SEO CONTENT SECTION
   ============================================================ */
.dealmirror-section {
    padding: 50px 100px;
    line-height: 1.7;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    background: #000;
}

.dealmirror-content {
    max-height: 550px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    max-width: 900px;
    margin: 0 auto;
}

.dealmirror-content.expanded {
    max-height: 10000px;
}

.dealmirror-fade {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #000);
}

.dealmirror-content.expanded .dealmirror-fade {
    display: none;
}

.dealmirror-content > h1,
.dealmirror-content > h2,
.dealmirror-content > h3,
.dealmirror-content > p {
    font-family: 'DM Sans', sans-serif;
    color: white;
}

.dealmirror-toggle {
    cursor: pointer;
    color: #4da6ff;
    font-weight: 500;
    text-align: center;
    font-size: 18px;
    max-width: 1200px;
    margin: 25px auto 0 auto;
}

.dealmirror-section h1 { font-size: 32px; margin-top: 0; }
.dealmirror-section h2 { font-size: 24px; margin-top: 30px; }
.dealmirror-section h3 { font-size: 18px; margin-top: 20px; }
.dealmirror-section p  { margin: 10px 0; }
.dealmirror-section ul { padding-left: 20px; }


/* ============================================================
   13. RESPONSIVE — Tablet (max 1200px)
   ============================================================ */
@media (max-width: 1200px) {
    .section-pc-multiple-categories { padding: 0rem 4rem; }
    .section-pc-deals               { padding: 1rem 4rem 3rem 4rem; }
    .section-image-slider           { padding: 2rem 4rem; }
}


/* ============================================================
   14. RESPONSIVE — Tablet Small (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .section-pc-multiple-categories { padding: 0rem 2rem; }
    .section-pc-deals               { padding: 1rem 2rem 3rem 2rem; }
    .section-image-slider           { padding: 2rem 2rem; }

    .dm-slide-content {
        padding: 50px 40px 70px 40px;
    }

    .dm-slide-left h1 { font-size: 32px; }
    .dm-slide-left h2 { font-size: 28px; }
}


/* ============================================================
   15. RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .section-pc-multiple-categories { padding: 0rem 0.75rem; }
    .section-pc-deals               { padding: 0.5rem 0.75rem 2rem 0.75rem; }
    .section-image-slider           { padding: 1.5rem 0.75rem; }

    /* Categories slick arrows */
    .pc-category-section .slick-prev { left: 0 !important; }
    .pc-category-section .slick-next { right: 0 !important; }

    /* Product cards in category slider */
    .pc-category-product { padding: 5px !important; }

    /* Deal grid — 2 columns */
    .pc-deal-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    /* Category header */
    .pc-category-header { flex-wrap: wrap; gap: 6px; }
    .pc-category-title  { font-size: 20px !important; }

    /* Hero slider banner: swap desktop → mobile */
    .dm-banner-desktop { display: none !important; }
    .dm-banner-mobile  { display: block; }

    /* Hero slider content slides */
    .dm-slide-content {
        flex-direction: column;
        padding: 40px 20px 70px 20px;
        text-align: center;
    }

    .dm-slide-left  { order: 2; }
    .dm-slide-right { order: 1; width: 100%; }

    .dm-ribbons,
    .dm-cta-row { justify-content: center; }

    .dm-slide-left p { margin: 0 auto 28px auto; }

    /* SEO section */
    .dealmirror-section { padding: 10px 50px; }
}

/* Hide mobile banner on screens wider than 480px */
@media (min-width: 480px) {
    .dm-banner-mobile { display: none !important; }
}


/* ============================================================
   16. RESPONSIVE — Small Mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .section-pc-multiple-categories { padding: 0rem 0.5rem; }
    .section-pc-deals               { padding: 0.5rem 0.5rem 1.5rem 0.5rem; }
    .section-image-slider           { padding: 1rem 0.5rem; }

    /* Deal grid — 1 column */
    .pc-deal-section {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .dm-slide-left h1  { font-size: 26px; }
    .dm-slide-left h2  { font-size: 20px; }
    .dm-timer-box      { font-size: 18px; min-width: 42px; }
    .dm-img-btn        { font-size: 12px; padding: 9px 6px; }
}