/* =========================
   PRODUCT DRAWER
========================= */

.product-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.product-drawer.active {
    display: block;
}

/* =========================
   OVERLAY
========================= */

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: 0.3s;
}

.product-drawer.active .drawer-overlay {
    opacity: 1;
}

/* =========================
   DRAWER PANEL
========================= */

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;

    width: 500px;
    max-width: 100%;
    height: 100%;

    background: #111;
    color: white;

    overflow-y: auto;

    transform: translateX(100%);
    transition: 0.35s ease;

    box-shadow:
    -10px 0 40px rgba(0,0,0,0.45);

    padding-bottom: 140px;
}

.product-drawer.active .drawer-content {
    transform: translateX(0);
}

/* =========================
   CLOSE
========================= */

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.1);
    color: white;

    font-size: 18px;
    cursor: pointer;

    z-index: 5;
}

/* =========================
   IMAGE
========================= */

.drawer-image {
    height: 280px;
    overflow: hidden;
    background: #000;
}

.drawer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   INFO
========================= */

.drawer-info {
    padding: 25px;
}

.drawer-info h2 {
    font-size: 34px;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.drawer-desc {
    color: #bbb;
    margin-bottom: 20px;
}

.drawer-price {
    font-size: 28px;
    color: #ff7a00;
    font-weight: bold;
}

/* =========================
   SECTIONS
========================= */

.drawer-section {
    padding: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.drawer-section h3 {
    margin-bottom: 18px;
    font-size: 18px;
}

/* =========================
   OPTION GRID
========================= */

.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-grid button {
    border: 1px solid rgba(255,255,255,0.15);
    background: #1b1b1b;
    color: white;

    padding: 12px 18px;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s;
}

.option-grid button:hover {
    border-color: #ff7a00;
}

.option-grid button.active {
    background: #ff7a00;
    border-color: #ff7a00;
}

/* =========================
   MEAL TOGGLE
========================= */

.meal-toggle {
    display: flex;
    gap: 12px;
}

.meal-btn {
    flex: 1;

    padding: 14px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.1);

    background: #1a1a1a;
    color: white;

    cursor: pointer;
}

.meal-btn.active {
    background: #ff7a00;
    border-color: #ff7a00;
}

/* =========================
   ADDONS
========================= */

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.addon-list label {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #1b1b1b;
    padding: 14px;
    border-radius: 12px;

    cursor: pointer;
}

/* =========================
   QTY
========================= */

.qty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;

    padding: 30px;
}

.qty-row button {
    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: none;

    background: #ff7a00;
    color: white;

    font-size: 22px;
    cursor: pointer;
}

#qtyValue {
    font-size: 24px;
    font-weight: bold;
}

/* =========================
   FOOTER
========================= */

.drawer-footer {
    position: fixed;
    bottom: 0;
    right: 0;

    width: 500px;
    max-width: 100%;

    background: rgba(15,15,15,0.96);
    backdrop-filter: blur(12px);

    padding: 20px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.add-cart-btn {
    width: 100%;
    border: none;

    background: linear-gradient(135deg,#ff7a00,#ff3c00);

    color: white;

    padding: 18px;
    border-radius: 16px;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

.add-cart-btn:hover {
    transform: scale(1.02);
}

/* =========================
   UTILITIES
========================= */

.hidden {
    display: none;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .drawer-content {
        width: 100%;
    }

    .drawer-footer {
        width: 100%;
    }

    .drawer-image {
        height: 230px;
    }

}

/* =========================
   SELECTED OPTION ACTIVE
========================= */

.option-grid button.active,
.meal-btn.active {

    background: linear-gradient(
        90deg,
        #ff3c00,
        #ff7b00
    );

    color: white;

    border: 1px solid #ff7b00;

    box-shadow:
        0 0 10px rgba(255,120,0,0.5);
}

/* =========================
   CART CONFIG TAGS
========================= */

.cart-config-wrap {

    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 8px;
}

.cart-config-pill {

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.15);

    color: #fff;

    font-size: 11px;

    padding: 5px 10px;

    border-radius: 999px;

    font-weight: 500;

    line-height: 1;
}

/* meal tag glow */

.cart-config-pill.meal {

    background: rgba(255,120,0,0.15);

    border: 1px solid rgba(255,120,0,0.4);

    color: #fff;
}

.drawer-bill{
    background:#111;
    border-radius:14px;
    padding:14px;
    margin-bottom:14px;
    border:1px solid rgba(255,255,255,0.08);
}

.bill-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
    color:white;
    font-size:14px;
}

.bill-row.total{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.08);
    font-size:17px;
    font-weight:700;
    color:#ffb300;
}