/* =========================================================
   KAMAYO HOMEPAGE - COMBO CARD CSS (Bundle / Festive Offer / Package)
   File: public_html/assets/css/home/combo-card.css

   Purpose:
   - Single shared card for the "Festive & Combo Offers" rail, sized and
     styled to match a normal product card (assets/css/home/product-card.css
     .km-card family) so combos don't look like a visually different system.
   - Deliberately uses its own km-combo-* class names (not .km-card/.km-add-btn
     etc.) so this never collides with home.js's product add-to-cart click
     delegation (`.km-add-btn:not(.km-choose-btn)`), which reads
     data-product-id/data-variant-id that combo cards don't have. Combo
     add/view actions stay on their own data-km-offer-* attributes, handled
     in assets/js/home-offers.js.
   - Loads AFTER product-card.css so shared tokens (colors) stay consistent;
     values below are intentionally kept in sync with product-card.css's
     .km-card/.km-image-box/.km-name/.km-price-row/.km-card-bottom rules.
========================================================= */

.km-mixed-offers{
    margin:22px auto;
    padding:18px;
    background:#fff;
    border:1px solid #dcefe5;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.km-mixed-head{ margin-bottom:14px; }

.km-mixed-stage{ position:relative; }

.km-mixed-rail{
    display:flex;
    gap:16px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    padding:2px 4px 10px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
}

.km-mixed-rail::-webkit-scrollbar{ display:none; }

.km-mixed-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    width:34px;
    height:46px;
    border-radius:999px;
    border:1px solid #dbeafe;
    background:#fff;
    color:#0f172a;
    box-shadow:0 10px 24px rgba(15,23,42,.12);
    font-size:24px;
    font-weight:900;
}

.km-mixed-prev{ left:-8px; }
.km-mixed-next{ right:-8px; }

/* =========================================================
   COMBO CARD (matches .km-card sizing in product-card.css)
========================================================= */

.km-combo-card{
    position:relative;
    flex:0 0 calc((100% - 64px) / 5);
    scroll-snap-align:start;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height:318px;
    padding:12px;
    border-radius:18px;
    background:#fff;
    border:1px solid rgba(16,24,40,.06);
    box-shadow:0 8px 20px rgba(15,23,42,.05);
    overflow:hidden;
}

.km-combo-badges{
    position:absolute;
    left:8px;
    top:8px;
    z-index:3;
    display:flex;
    align-items:center;
    gap:4px;
    max-width:calc(100% - 16px);
    min-height:20px;
    pointer-events:none;
    overflow:hidden;
}

.km-combo-type-badge{
    background:#0f766e;
}

.km-combo-image-box{
    width:100%;
    aspect-ratio:1/1;
    min-height:0;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:16px;
    background:#f6f8fb;
}

.km-combo-image-box img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    padding:8px;
    margin:0;
}

.km-combo-name{
    min-width:0;
    min-height:38px;
    max-height:38px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    color:#101828;
    font-size:13px;
    line-height:1.42;
    font-weight:950;
    word-break:break-word;
}

.km-combo-meta{
    min-width:0;
    min-height:16px;
    color:#475467;
    font-size:11px;
    line-height:1.35;
    font-weight:850;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.km-combo-points-row{
    min-width:0;
    min-height:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
}

.km-combo-items-chip,
.km-combo-points-chip{
    max-width:64%;
    min-width:0;
    min-height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    border-radius:999px;
    background:#ecfdf3;
    color:#047857;
    font-size:10px;
    line-height:1;
    font-weight:950;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.km-combo-price-row{
    min-width:0;
    min-height:29px;
    display:flex;
    align-items:flex-end;
    gap:6px;
    flex-wrap:nowrap;
    margin-top:auto;
    overflow:hidden;
}

.km-combo-price-now{
    min-width:0;
    color:#0f172a;
    font-size:20px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.035em;
    white-space:nowrap;
}

.km-combo-price-mrp{
    min-width:0;
    color:#64748b;
    font-size:11px;
    font-weight:850;
    text-decoration:line-through;
    white-space:nowrap;
    margin-bottom:2px;
    overflow:hidden;
    text-overflow:ellipsis;
}

.km-combo-card-bottom{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:58px 38px minmax(0,1fr);
    gap:6px;
    align-items:stretch;
    flex:0 0 auto;
    min-height:42px;
}

.km-combo-share-btn{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    min-width:0;
    min-height:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    border:1px solid rgba(16,24,40,.08);
    background:#fff;
    color:#475467;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(15,23,42,.04);
    flex:0 0 auto;
}

.km-combo-share-btn:active{ transform:translateY(1px); }

.km-combo-share-btn.km-combo-share-copied{
    background:#ecfdf3;
    border-color:rgba(22,163,74,.3);
    color:#047857;
}

.km-combo-view-btn,
.km-combo-add-btn{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    min-width:0;
    min-height:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    font-size:11px;
    line-height:1;
    font-weight:950;
    white-space:nowrap;
    text-align:center;
    cursor:pointer;
    user-select:none;
    text-decoration:none;
    overflow:hidden;
    text-overflow:ellipsis;
}

.km-combo-view-btn{
    border:1px solid rgba(16,24,40,.08);
    background:#fff;
    color:#111827;
    box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.km-combo-add-btn{
    border:1px solid rgba(22,163,74,.22);
    background:#ecfdf3;
    color:#047857;
}

.km-combo-add-btn:disabled{
    opacity:.58;
    cursor:not-allowed;
}

.km-combo-add-btn:not(:disabled):active,
.km-combo-view-btn:not(:disabled):active{
    transform:translateY(1px);
}

/* Responsive: match product-card.css's grid breakpoints roughly, but as a
   horizontal rail (flex-basis), not a wrapping grid. */
@media(max-width:1180px){
    .km-combo-card{ flex:0 0 calc((100% - 48px) / 4); }
}

@media(max-width:900px){
    .km-combo-card{ flex:0 0 calc((100% - 32px) / 3); }
}

@media(max-width:767.98px){
    .km-mixed-offers{ padding:12px; border-radius:0; border-left:0; border-right:0; overflow:hidden; }
    .km-mixed-rail{ gap:10px; padding-left:0; padding-right:0; }
    .km-combo-card{ flex:0 0 calc((100% - 20px) / 3); min-height:0; padding:8px; gap:6px; }
    .km-combo-image-box{ height:96px; aspect-ratio:auto; border-radius:12px; }
    .km-combo-name{ font-size:11.5px; min-height:32px; max-height:32px; }
    .km-combo-meta{ display:none; }
    .km-combo-points-row{ min-height:0; }
    .km-combo-items-chip,
    .km-combo-points-chip{ font-size:9px; padding:0 5px; min-height:18px; }
    .km-combo-price-now{ font-size:15px; }
    .km-combo-price-mrp{ font-size:9.5px; }
    .km-combo-card-bottom{ grid-template-columns:1fr; min-height:34px; }
    .km-combo-view-btn{ display:none; }
    .km-combo-share-btn{ display:none; }
    .km-combo-view-btn,
    .km-combo-add-btn{ height:34px; min-height:34px; font-size:10.5px; border-radius:10px; }
    .km-mixed-nav{ display:none; }
}
