/* ============================================
   KOLAS Deals Hero — Optimized & Clean
   ============================================ */

.deals-hero {
    --deals-hero-text: #ffffff;
    --deals-hero-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: var(--deals-hero-radius);
    padding: 50px 0;
    background: #401C7B center/cover no-repeat;
    background-image: image-set(url("../images/deals-hero-banner.webp") type("image/webp"));
    background-image: url("../images/deals-hero-banner.webp");
    color: var(--deals-hero-text);
    gap: 30px;
    isolation: isolate;
}

.deals-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    width: 100%;
}

.deals-hero__title {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -1.28px;
    color: #fff;
}

.deals-hero__subtitle {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-size: clamp(18px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.28px;
    color: #fff;
}

.deals-hero__divider {
    width: min(800px, 90%);
    height: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 8px auto 4px;
}

.deals-hero__text {
    margin: 0;
    max-width: 1000px;
    font-family: "Work Sans", sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #fff;
    text-align: center;
    font-weight: 400;
    line-height: 2em;
    letter-spacing: -0.5px;
}

/* Decorative Images */
.deals-hero__deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}

.deals-hero__deco img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Base decorative styles */
.deals-hero__deco--left {
    left: -160px;
    bottom: -160px;
    width: 350px;
    display: none;
}

.deals-hero__deco--left img {
    width: 350px;
    aspect-ratio: 668 / 678;
}

.deals-hero__deco--right {
    bottom: -18%;
    width: 35%;
    height: 100%;
    right: -26%;
}

.deals-hero__deco--right img {
    object-fit: cover;
    height: 100%;
}

.deals-hero__deco--pet {
    left: 0;
    bottom: 0;
    width: 286px;
    text-align: center;
}

.deals-hero__deco--pet img {
    width: 286px;
    aspect-ratio: 358 / 345;
}



/* ============================================
   DPN Section & Slider
   ============================================ */

.dpn-section {
    margin: 0 auto 80px;
    max-width: 1300px;
    padding: 0 20px;
    box-sizing: border-box;
}

.dpn-header {
    text-align: center;
    margin-bottom: 36px;
}

.dpn-title {
    color: #401C7B;
    font-family: "Work Sans", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.28px;
    margin: 0 0 12px;
}

.dpn-subtitle {
    color: #7C7494;
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 28.9px;
    margin: 0;
}

.dpn-no-deals {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-family: Inter, sans-serif;
}

/* Slider */
.dpn-slider-outer {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.dpn-arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 50%;
}

.dpn-arrow:hover {
    transform: scale(1.08);
    background-color: #fff;
}

.dpn-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.dpn-arrow svg {
    display: block;
    width: 55px;
    height: 55px;
}

.dpn-slider-track-wrap {
    flex: 1;
    overflow: hidden;
}

.dpn-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.dpn-slider-track.dpn-dragging {
    cursor: grabbing;
    transition: none;
}

.dpn-card-wrap {
    flex: 0 0 calc((100% - 75px) / 4);
    min-width: 0;
}

.dpn-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.10);
    background: #FFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    -webkit-user-drag: none;
}

.dpn-card:hover {
    box-shadow: 0 8px 30px 0 rgba(109, 40, 217, 0.12);
    transform: translateY(-2px);
}

.dpn-card__image-box {
    display: flex;
    height: 220px;
    justify-content: center;
    align-items: center;
    background-image: url("../images/deals/deal-box-bg.webp");
    background-size: cover;
    background-position: center;
    background-color: #f9f0ff;
    flex-shrink: 0;
}

.dpn-card__img {
    max-height: 180px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    -webkit-user-drag: none;
    pointer-events: none;
}

.dpn-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex: 1;
}

.dpn-card__brand {
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 100%;
    width: fit-content;
    border-radius: 100px;
    padding: 5px 12px;
    background: linear-gradient(103.96deg, #10B981 0%, #059669 100%);
    box-shadow: 0 2px 12px 0 #10B9814D;
}

.dpn-card__title {
    color: #1A1035;
    font-family: "Work Sans", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 22.1px;
    margin: 0;
}

.dpn-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}

.dpn-card__offer-price {
    color: #059669;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: normal;
}

.dpn-card__original-price {
    color: #F25C94;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: normal;
    text-decoration: none;
    margin: 0;
}

.dpn-card__badge-pct {
    color: #1A1035;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.dpn-card__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    margin-top: auto;
    border-radius: 74px;
    background: linear-gradient(99deg, #6F44B6 0%, #280F50 100%);
    box-shadow: 0 2px 12px 0 rgba(233, 30, 140, 0.15);
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: opacity 0.2s ease;
}

.dpn-card:hover .dpn-card__btn {
    opacity: 0.88;
}

.dpn-card__btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}


/* ============================================
   Utility Styles
   ============================================ */

.eg-subtitle {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.5px;
    color: #7C7494;
}

.eg-grid {
    margin-top: 50px;
}

.eg-section {
    padding-bottom: 100px;
}

.dpn-page {
    padding-top: 100px;
}

/* ============================================
   RESPONSIVE — 
   ============================================ */

/* Laptop / Large Tablet (≤1366px) */
@media (max-width: 1366px) {
    .deals-hero {
        min-height: 280px;
        padding: 50px 0 200px;
    }

    .deals-hero__title {
        font-size: 56px;
    }

    .deals-hero__subtitle {
        font-size: 28px;
    }

    .deals-hero__deco--left,
    .deals-hero__deco--right {
        bottom: -34%;
        width: auto;
    }

    .deals-hero__deco--left {
        left: -18%;
    }

    .deals-hero__deco--right {
        right: -18%;
    }

    .deals-hero__deco--left img,
    .deals-hero__deco--right img {
        max-width: 60%;
        width: auto;
    }

    .deals-hero__deco--pet img {
        max-width: 62%;
        width: auto;
    }
}

@media (max-width: 1280px) {
    .dpn-card-wrap {
        flex: 0 0 calc((100% - 50px) / 3);
    }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .deals-hero {
        min-height: 350px;
        justify-content: flex-start;
        padding: 40px 20px 200px;
    }

    .deals-hero__title {
        font-size: 48px;
        line-height: 1;
    }

    .deals-hero__subtitle {
        font-size: 18px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .deals-hero__text {
        font-size: 16px;
        line-height: 1.5;
        max-width: 700px;
    }

    .deals-hero__divider {
        display: none;
    }

    .deals-hero__deco--left {
        left: -16%;
        bottom: -30%;
    }

    .deals-hero__deco--right {
        right: -16%;
        bottom: -30%;
    }

    .deals-hero__deco--left img,
    .deals-hero__deco--right img {
        max-width: 45%;
        width: auto;
    }

    .deals-hero__deco--pet {
        left: 50%;
        transform: translateX(-50%) scaleX(-1);
    }

    .deals-hero__deco--pet img {
        max-width: 50%;
        width: auto;
    }
}

/* Mobile (≤991px) — Show left deco + adjust right */
@media (max-width: 991px) {
    .deals-hero__deco--left {
        display: block;
        left: -160px;
        bottom: -160px;
        width: 350px;
    }

    .deals-hero__deco--left img {
        width: 350px;
        max-width: 100%;
    }

    .deals-hero__deco--right,
    .deals-hero__deco--right img {
        width: 350px;
        max-width: 100%;
        height: auto;
    }

    .deals-hero__deco--pet {
        width: 44%;
    }
}

@media (max-width: 900px) {
    .dpn-card-wrap {
        flex: 0 0 calc((100% - 25px) / 2);
    }

    .dpn-title {
        font-size: 40px;
    }

    .dpn-arrow,
    .dpn-arrow svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 767px) {
    .deals-hero {
        min-height: 350px;
        padding: 40px 20px 180px;
    }

    .deals-hero__title {
        font-size: 40px;
        line-height: 1;
    }

    .deals-hero__subtitle {
        font-size: 18px;
    }

    .deals-hero__text {
        font-size: 14px;
        line-height: 1.45;
        max-width: 450px;
    }

    .deals-hero__deco--pet {
        transform: translateX(-50%) scaleX(-1);
    }

    .eg-section {
        padding-bottom: 50px;
    }

    .dpn-page {
        padding-top: 50px;
    }

    a.eg-card {
        display: block;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .dpn-card-wrap {
        flex: 0 0 100%;
    }

    h2.dpn-title {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .dpn-subtitle {
        font-size: 15px;
        line-height: 1.3em;
    }

    .dpn-arrow,
    .dpn-arrow svg {
        width: 40px;
        height: 40px;
    }

    .dpn-section {
        padding: 0 10px;
    }

    .dpn-slider-outer {
        gap: 6px;
    }

    .dpn-card__image-box {
        height: 170px;
    }
}

@media (max-width: 575px) {

    .deals-hero__deco--left,
    .deals-hero__deco--right {
        width: 220px !important;
        left: -100px !important;
        right: -100px !important;
        bottom: -100px !important;
    }

    .deals-hero__deco--left img,
    .deals-hero__deco--right img {
        width: 100%;
        max-width: 100%;
    }

    .deals-hero__deco--pet img {
        width: 160px;
        max-width: 50%;
    }
}