/*
 * 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;}
}

/* KAMAYO UI REFRESH v20260701 - festive campaign cards */
.km-festive-section{
    margin-top:18px!important;
    margin-bottom:18px!important;
    padding:18px!important;
    border:1px solid rgba(234,88,12,.14)!important;
    border-radius:24px!important;
    background:
        linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,247,237,.96) 54%,rgba(240,253,244,.92))!important;
    box-shadow:0 18px 46px rgba(15,23,42,.08)!important;
}

.km-festive-head{
    margin-bottom:14px!important;
}

.km-festive-head h2{
    color:#0f172a!important;
    font-size:clamp(20px,2.2vw,28px)!important;
    line-height:1.05!important;
    letter-spacing:0!important;
}

.km-festive-head p{
    color:#566579!important;
    font-size:13.5px!important;
    font-weight:750!important;
}

.km-festive-top-btn{
    min-height:38px!important;
    border-color:rgba(234,88,12,.22)!important;
    background:#ffffff!important;
    color:#c2410c!important;
    box-shadow:0 8px 18px rgba(15,23,42,.06)!important;
}

.km-festive-wrap{
    gap:16px!important;
}

.km-festive-card{
    border-radius:22px!important;
    border-color:rgba(234,88,12,.16)!important;
    box-shadow:0 16px 34px rgba(15,23,42,.10)!important;
    transition:transform .18s ease,box-shadow .18s ease;
}

@media (hover:hover){
    .km-festive-card:hover{
        transform:translateY(-2px);
        box-shadow:0 22px 46px rgba(15,23,42,.13)!important;
    }
}

.km-festive-image-link{
    background:#fff7ed!important;
}

.km-festive-image-link::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:58%;
    background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.46));
    pointer-events:none;
}

.km-festive-badge{
    top:12px!important;
    left:12px!important;
    min-height:28px!important;
    padding:0 12px!important;
    background:#ffffff!important;
    color:#c2410c!important;
    box-shadow:0 10px 22px rgba(15,23,42,.16)!important;
}

.km-festive-content{
    padding:14px!important;
}

.km-festive-copy h3{
    color:#0f172a!important;
    font-size:17px!important;
    line-height:1.16!important;
}

.km-festive-copy p{
    color:#566579!important;
    font-weight:700!important;
}

.km-festive-meta{
    background:#f8fafc!important;
    color:#334155!important;
    border:1px solid #e2e8f0!important;
}

.km-festive-btn{
    border:0!important;
    background:linear-gradient(135deg,#f97316,#16a34a)!important;
    color:#fff!important;
    box-shadow:0 12px 24px rgba(234,88,12,.18)!important;
}

.km-festive-bundles{
    display:grid;
    gap:8px;
    width:100%;
    max-width:560px;
    margin-top:14px;
}

.km-festive-bundle-row{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    min-height:54px;
    padding:7px;
    border:1px solid rgba(226,232,240,.9);
    border-radius:15px;
    background:rgba(255,255,255,.86);
    box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.km-festive-bundle-row img{
    width:42px;
    height:40px;
    border-radius:11px;
    object-fit:cover;
    background:#f8fafc;
}

.km-festive-bundle-info{
    min-width:0;
}

.km-festive-bundle-info strong,
.km-festive-bundle-info span{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.km-festive-bundle-info strong{
    color:#0f172a;
    font-size:12.5px;
    line-height:1.1;
    font-weight:950;
}

.km-festive-bundle-info span{
    margin-top:3px;
    color:#64748b;
    font-size:11px;
    line-height:1;
    font-weight:800;
}

.km-festive-add-btn{
    min-width:64px;
    min-height:34px;
    border:0;
    border-radius:12px;
    background:#0f766e;
    color:#fff;
    font-size:12px;
    font-weight:950;
    cursor:pointer;
}

.km-festive-add-btn:disabled{
    cursor:wait;
    background:#94a3b8;
}

html.km-mobile-device .km-festive-section{
    margin:10px 8px 14px!important;
    padding:13px 10px 15px!important;
    border-radius:20px!important;
}

html.km-mobile-device .km-festive-top-btn{
    display:none!important;
}

html.km-mobile-device .km-festive-card,
html.km-mobile-device .km-festive-section--single .km-festive-card{
    flex-basis:min(84vw,360px)!important;
    border-radius:20px!important;
}

html.km-mobile-device .km-festive-bundles{
    margin-top:10px!important;
    gap:7px!important;
}

html.km-mobile-device .km-festive-bundle-row{
    grid-template-columns:38px minmax(0,1fr) auto!important;
    min-height:50px!important;
    padding:6px!important;
}

html.km-mobile-device .km-festive-bundle-row img{
    width:38px!important;
    height:38px!important;
}

html.km-mobile-device .km-festive-add-btn{
    min-width:58px!important;
}

/* KAMAYO UI TUNE v20260701b - use full width for one festive campaign */
@media (min-width:901px){
    .km-festive-section{
        padding:20px!important;
    }

    .km-festive-section--single .km-festive-wrap{
        display:block!important;
    }

    .km-festive-section--single .km-festive-card{
        display:grid!important;
        grid-template-columns:minmax(360px,1.05fr) minmax(320px,.95fr)!important;
        width:100%!important;
        max-width:none!important;
        min-height:260px!important;
        margin:0!important;
    }

    .km-festive-section--single .km-festive-image-link{
        min-height:260px!important;
        aspect-ratio:auto!important;
    }

    .km-festive-section--single .km-festive-content{
        justify-content:center!important;
        padding:26px 30px!important;
        background:
            linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,247,237,.86))!important;
    }

    .km-festive-section--single .km-festive-content h3{
        max-width:520px!important;
        font-size:28px!important;
        line-height:1.08!important;
    }

    .km-festive-section--single .km-festive-content p{
        max-width:540px!important;
        font-size:15px!important;
        line-height:1.45!important;
    }

    .km-festive-section--single .km-festive-meta{
        width:max-content!important;
        max-width:100%!important;
    }

    .km-festive-section--single .km-festive-btn{
        width:max-content!important;
        min-width:170px!important;
        padding:0 24px!important;
    }
}

@media (min-width:901px) and (max-width:1080px){
    .km-festive-section--single .km-festive-card{
        grid-template-columns:minmax(320px,1fr) minmax(280px,.85fr)!important;
    }
}
