﻿/*
=========================================
HAPPY MISTHAN
PRODUCTS
=========================================
*/

.products{

    padding:6px 0 110px;

}

.products-list{

    display:grid;

    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));

    gap:18px;

}

/* ====================================
PRODUCT CARD
==================================== */

.product-card{

    background:#ffffff;

    border-radius:22px;

    padding:14px;

    display:grid;

    grid-template-columns:120px 1fr;

    gap:16px;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    border:1px solid #efefef;

    /* Grid items default to a content-based minimum width, which was
       letting long product names/descriptions push the card wider
       than its column and overlap the next one — this forces it to
       respect the column's actual width instead. */
    min-width:0;

}
.product-left{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:10px;

    width:120px;

    flex-shrink:0;

}

/* ====================================
IMAGE
==================================== */

/* ====================================
IMAGE
==================================== */

.product-image{

    width:120px;

    height:120px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:18px;

    background:#ffffff;

    overflow:visible;

    flex-shrink:0;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:contain;

    object-position:center;

    display:block;

}

/* ====================================
INFO
==================================== */

.product-info{

    display:flex;

    flex-direction:column;

    min-width:0;

}

/* ====================================
TOP ROW
==================================== */

.top-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:8px;

}

.product-category{

    font-size:12px;

    font-weight:600;

    color:var(--primary);

}

.badge{

    background:#eaf8e7;

    color:#4d8b3f;

    padding:4px 10px;

    border-radius:10px;

    font-size:11px;

    font-weight:600;

}

/* ====================================
TITLE
==================================== */

.product-info h3{

    font-size:16px;

    font-weight:700;

    color:#222;

    margin-bottom:6px;

    overflow-wrap:break-word;

}

/* ====================================
DESCRIPTION
==================================== */

.product-info p{

    font-size:13px;

    color:#666;

    line-height:1.45;

    margin-bottom:14px;

}

/* ====================================
BOTTOM ROW
==================================== */
.bottom-row{

    margin-top:auto;

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    gap:12px;

}

/* ====================================
OFFER TAG
==================================== */

.product-offer-tag{

    margin-top:8px;

    font-size:11px;

    font-weight:600;

    color:#c0392b;

    background:#fdecea;

    display:inline-block;

    padding:3px 9px;

    border-radius:8px;

    line-height:1.4;

}


/* ====================================
PRICE
==================================== */

.price{

    font-size:15px;

    font-weight:700;

    color:#ff6b00;

}

.price small{

    color:#555;

    font-size:13px;

    font-weight:500;

}
.price-area{

    flex:1;

    min-width:0;

}
/* ====================================
SIZE SELECTOR
==================================== */

.size-selector{

    width:100%;

    display:flex;

    justify-content:flex-start;

    gap:6px;

    margin:2px 0 12px;

}

.size-btn{

    flex:1;

    min-width:0;

    height:34px;

    border:1px solid #e8e8e8;

    border-radius:10px;

    background:#fff;

    color:#333;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    cursor:pointer;

    transition:.25s;

    padding:2px;

    font-size:13px;

    font-weight:700;

    line-height:1;

}

.size-btn span{

    font-size:10px;

    font-weight:700;

    color:var(--primary);

}

.size-btn:hover{

    border-color:var(--primary);

    transform:translateY(-2px);

}

.size-btn.active{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

    box-shadow:0 8px 18px rgba(255,122,0,.22);

}

.size-btn.active span{

    color:#fff;

}
/* ====================================
QUANTITY
==================================== */

.qty-box{

    display:flex;

    align-items:center;

    gap:6px;

    flex-shrink:0;

    margin-left:12px;

}

.qty-box button{

    width:36px;

    height:36px;

    border-radius:10px;

    border:none;

    font-size:22px;

    cursor:pointer;

}

.qty-box .minus{

    background:#fff3eb;

    color:#7d4b21;

}

.qty-box .plus{

    background:var(--primary);

    color:#fff;

}

.qty{

    width:38px;

    height:36px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid #e8e8e8;

    border-radius:10px;

    background:#fff;

    font-weight:700;

}

/* ====================================
NO PRODUCTS
==================================== */

.no-products{

    text-align:center;

    padding:60px 20px;

}

.no-products h3{

    font-size:22px;

    margin-bottom:8px;

}
/*====================================
UNAVAILABLE PRODUCT
====================================*/

.product-card.unavailable{
    opacity:.75;
}

.product-card.unavailable .product-image{
    position:relative;
}

.product-card.unavailable .product-image img{
    filter:grayscale(100%);
}

/* Badge */

.sold-out-badge{

    position:absolute;

    top:8px;

    right:8px;

    background:#ff4d4f;

    color:#fff;

    padding:4px 10px;

    border-radius:30px;

    font-size:10px;

    font-weight:700;

    letter-spacing:.3px;

    z-index:5;

}

/* Button */

/* Pizza Buy 1 Get 1 badge (Wed & Fri only) */

.product-card.pizza-bogo .product-image,
.product-card.coffee-bogo .product-image{

    position:relative;

}

.pizza-bogo-badge,
.coffee-bogo-badge{

    position:absolute;

    top:8px;

    left:8px;

    background:var(--primary);

    color:#fff;

    padding:4px 9px;

    border-radius:30px;

    font-size:9px;

    font-weight:700;

    letter-spacing:.3px;

    white-space:nowrap;

    z-index:5;

}

/*====================================
DISABLED QUANTITY
====================================*/

.qty-box.qty-disabled{

    opacity:.6;

}

.qty-box.qty-disabled button{

    background:#ececec !important;

    color:#999 !important;

    pointer-events:none;

    cursor:not-allowed;

}

.qty-box.qty-disabled .qty{

    background:#f8f8f8;

    color:#999;

    border-color:#ddd;

}
/* Mobile */

@media(max-width:767px){

    .unavailable-btn{

        width:100px;

        height:34px;

        font-size:11px;

    }

}
/* ====================================
TABLET / DESKTOP
Column count is handled by the single
auto-fit rule above — no breakpoints
needed, and it can never overflow its
container regardless of card content.
==================================== */
/* ====================================
MOBILE
==================================== */

@media (max-width:767px){

    .product-card{

        grid-template-columns:90px 1fr;

        gap:14px;

        padding:16px 18px 16px 16px;

    }

    .product-image{

        width:90px;

        height:90px;

    }

    .product-info h3{

        font-size:15px;

    }

    .product-info p{

        font-size:12px;

        margin-bottom:10px;

    }

    .bottom-row{

        gap:10px;

    }

    .qty-box{

        gap:6px;

        margin-right:4px;

        flex-shrink:0;

    }

    .qty-box button{

        width:34px;

        height:34px;

        font-size:20px;

    }

    .qty{

        width:34px;

        height:34px;

    }
  .size-selector{

    gap:6px;

    margin:2px 0 10px;

}

.size-btn{

    height:34px;

    font-size:12px;

    border-radius:8px;

}

.size-btn span{

    font-size:10px;

}
.product-left{

    width:90px;

}
}