/*
 * Kamayo Online - Festive Picks Section
 * File: public_html/assets/css/home/festive-section.css
 *
 * This CSS is isolated for festive homepage section only.
 * It does not change hero, product cards, mini cart, cart logic, or bundle logic.
 */

.km-festive-section {
    width: 100%;
    margin: 18px auto;
    padding: 18px 16px 20px;
    border: 1px solid rgba(249, 168, 37, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 153, 51, 0.10), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(19, 136, 8, 0.10), transparent 34%),
        linear-gradient(135deg, #fffdf7 0%, #ffffff 52%, #f2fff7 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.km-festive-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.km-festive-head h2 {
    margin: 0;
    color: #061329;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.km-festive-head p {
    margin: 6px 0 0;
    color: #526176;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.km-festive-top-btn,
.km-festive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.km-festive-top-btn {
    color: #08751f;
    border: 1px solid rgba(16, 185, 80, 0.25);
    background: rgba(255, 255, 255, 0.78);
}

.km-festive-btn {
    color: #9a3d00;
    border: 1px solid rgba(255, 132, 0, 0.35);
    background: #fff8ef;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.km-festive-top-btn:hover,
.km-festive-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.km-festive-wrap {
    display: grid;
    gap: 16px;
}

/* 1 festival: make it a premium featured banner, not a tiny product card */
.km-festive-section--single .km-festive-wrap {
    grid-template-columns: minmax(0, 1fr);
}

.km-festive-section--single .km-festive-card {
    max-width: 760px;
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(290px, 1.25fr) minmax(240px, 0.75fr);
    margin: 0;
}

.km-festive-section--single .km-festive-image-link {
    aspect-ratio: 16 / 9;
    min-height: 235px;
}

.km-festive-section--single .km-festive-content {
    padding: 22px 22px 20px;
}

.km-festive-section--single .km-festive-content h3 {
    font-size: 24px;
}

.km-festive-section--single .km-festive-content p {
    font-size: 15px;
}

/* 2 festivals */
.km-festive-section--two .km-festive-wrap {
    grid-template-columns: repeat(2, minmax(0, 390px));
}

/* 3+ festivals */
.km-festive-section--grid .km-festive-wrap {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}

.km-festive-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 148, 44, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.km-festive-image-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff7ed;
}

.km-festive-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
}

.km-festive-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #16a34a);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.km-festive-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 14px 14px;
}

.km-festive-copy h3 {
    margin: 0;
    color: #071225;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.km-festive-copy p {
    margin: 10px 0 0;
    color: #526176;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.km-festive-meta {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #08751f;
    background: rgba(22, 163, 74, 0.09);
    font-size: 12px;
    font-weight: 900;
}

.km-festive-btn {
    width: fit-content;
    min-width: 142px;
}

/* Tablet */
@media (max-width: 900px) {
    .km-festive-section {
        padding: 16px 12px 18px;
        border-radius: 20px;
    }

    .km-festive-section--single .km-festive-card {
        max-width: 100%;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .km-festive-section--single .km-festive-image-link {
        min-height: 0;
    }

    .km-festive-section--single .km-festive-content {
        padding: 16px;
    }

    .km-festive-section--single .km-festive-content h3 {
        font-size: 20px;
    }

    .km-festive-section--two .km-festive-wrap,
    .km-festive-section--grid .km-festive-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: customer-friendly horizontal cards */
@media (max-width: 640px) {
    .km-festive-section {
        margin: 14px auto;
        padding: 14px 10px 16px;
        border-radius: 18px;
    }

    .km-festive-head {
        align-items: center;
        margin-bottom: 12px;
    }

    .km-festive-head h2 {
        font-size: 20px;
    }

    .km-festive-head p {
        font-size: 12px;
    }

    .km-festive-top-btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .km-festive-wrap {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding: 2px 2px 8px;
        -webkit-overflow-scrolling: touch;
    }

    .km-festive-wrap::-webkit-scrollbar {
        height: 0;
    }

    .km-festive-card,
    .km-festive-section--single .km-festive-card {
        flex: 0 0 min(88vw, 390px);
        display: block;
        max-width: none;
        min-height: 0;
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .km-festive-image-link,
    .km-festive-section--single .km-festive-image-link {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .km-festive-content,
    .km-festive-section--single .km-festive-content {
        padding: 12px;
        gap: 12px;
    }

    .km-festive-copy h3,
    .km-festive-section--single .km-festive-content h3 {
        font-size: 16px;
    }

    .km-festive-copy p,
    .km-festive-section--single .km-festive-content p {
        margin-top: 7px;
        font-size: 12px;
    }

    .km-festive-btn {
        width: 100%;
        min-height: 38px;
        font-size: 12px;
    }

    .km-festive-badge {
        top: 8px;
        left: 8px;
        min-height: 24px;
        padding: 0 9px;
        font-size: 10px;
    }
}


/* KAMAYO APP MOBILE FORCE v20260502 */
html.km-mobile-device .km-festive-section{
    margin:14px auto!important;
    padding:14px 10px 16px!important;
    border-radius:18px!important;
}

html.km-mobile-device .km-festive-head{
    align-items:center!important;
    margin-bottom:12px!important;
}

html.km-mobile-device .km-festive-head h2{
    font-size:20px!important;
}

html.km-mobile-device .km-festive-head p{
    font-size:12px!important;
}

html.km-mobile-device .km-festive-wrap{
    display:flex!important;
    gap:12px!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
    scroll-snap-type:x mandatory!important;
    padding:2px 2px 8px!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
}

html.km-mobile-device .km-festive-wrap::-webkit-scrollbar{
    display:none!important;
}

html.km-mobile-device .km-festive-card,
html.km-mobile-device .km-festive-section--single .km-festive-card{
    flex:0 0 min(88vw,390px)!important;
    display:block!important;
    max-width:none!important;
    min-height:0!important;
    scroll-snap-align:start!important;
    border-radius:16px!important;
}

html.km-mobile-device .km-festive-image-link,
html.km-mobile-device .km-festive-section--single .km-festive-image-link{
    aspect-ratio:16/9!important;
    min-height:0!important;
}

html.km-mobile-device .km-festive-content,
html.km-mobile-device .km-festive-section--single .km-festive-content{
    padding:12px!important;
    gap:12px!important;
}

html.km-mobile-device .km-festive-copy h3,
html.km-mobile-device .km-festive-section--single .km-festive-content h3{
    font-size:16px!important;
}

html.km-mobile-device .km-festive-copy p,
html.km-mobile-device .km-festive-section--single .km-festive-content p{
    margin-top:7px!important;
    font-size:12px!important;
}

html.km-mobile-device .km-festive-btn{
    width:100%!important;
    min-height:38px!important;
    font-size:12px!important;
}

@media (pointer:coarse){
    .km-festive-wrap{display:flex!important;overflow-x:auto!important;}
    .km-festive-card,.km-festive-section--single .km-festive-card{flex:0 0 min(88vw,390px)!important;}
}
