﻿/* ============================= */
/* GENERAL BUTTONS */
/* ============================= */

.add-btn {
    background: #28a745;
    color: #fff;
    border: none;
   
    font-weight: bold;
   
    cursor: pointer;
}

/* ============================= */
/* PRODUCT PAGE QTY STEPPER */
/* ============================= */

.qty-box {
    display: flex;
    align-items: center;
    gap: 1px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 2px 2px;
    background: #fff;
}

.qty-btn {
    border: none;
    width: 26px;
    height: 26px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #28a745;
    color: white;
}

   

    .qty-btn.minus {
        background-color: #dc3545;
        color: white;
    }

    .qty-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* ============================= */
/* CART CONTAINER */
/* ============================= */

#sideCartSticky {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

/* SCROLLABLE CART ITEMS */
#cartItemsContainer {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
}

/* ============================= */
/* CART ITEM */
/* ============================= */

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* TOP ROW */
.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PRODUCT NAME */
.cart-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 70%;
}

/* PRICE */
.cart-price {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

/* BOTTOM ROW */
.cart-row-bottom {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

/* ============================= */
/* CART QTY (SMALL CLEAN BUTTONS) */
/* ============================= */

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* SMALL SQUARE BUTTONS */
.cart-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

    /* COLORS */
    .cart-btn.plus {
        background-color: #28a745;
        color: white;
    }

    .cart-btn.minus {
        background-color: #dc3545;
        color: white;
    }

.cart-qty-value {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

/* ============================= */
/* SUB ITEMS (TOPPINGS / BASE) */
/* ============================= */

.cart-sub {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
    margin-top: 2px;
}

/* ============================= */
/* CART HEADER + FOOTER */
/* ============================= */

.cart-header {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.cart-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
}

/* CHECKOUT BUTTON */
.checkout-btn {
    width: 100%;
    background: #fc8019;
    color: white;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* ============================= */
/* REMOVE OLD CONFLICTS */
/* ============================= */

/* Prevent old qty-box styling affecting cart */
.cart-qty {
    width: auto !important;
    border: none !important;
    padding: 0 !important;
}

/* ============================= */
/* SCROLLBAR (OPTIONAL NICE LOOK) */
/* ============================= */

#cartItemsContainer::-webkit-scrollbar {
    width: 6px;
}

#cartItemsContainer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#cartItemsContainer::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* ============================= */
/* FORCE SMALL CART CONTROLS */
/* ============================= */

/* REMOVE BIG BOX EFFECT */
.cart-qty {
    width: auto !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* SMALL BUTTONS */
.cart-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

/* SMALL QTY TEXT */
.cart-qty-value {
    font-size: 12px !important;
    min-width: 18px;
}

/* REDUCE GAP */
.cart-qty {
    gap: 4px !important;
}

/* ADDED (GREEN) */
.cart-added {
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
}

/* REMOVED (RED) */
.cart-removed {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
}