﻿/* ════════════════════════════════════════════════════════════
   JUST BITE — CART / CHECKOUT PAGE STYLESHEET
   Cleaned & re-themed to the Gold/Amber palette
════════════════════════════════════════════════════════════ */

:root {
    --pink: #F4A623; /* primary amber-gold (was magenta #e91e8c) */
    --pink-dark: #C99A24; /* deep amber (was #c2177a) */
    --pink-light: #FFF3CF; /* soft gold tint (was #fce4f3) */
    --cream: #FFF9E8; /* was #fffaf7 */
    --ink: #1a1a1a; /* was #1a1018 */
    --muted: #7a726a; /* warm-neutral muted (was #7a6e76) */
    --border: #f0e8d6; /* warm border (was #f0e8ed) */
    --green: #16a34a; /* unchanged — success stays green */

    --shadow-hover: 0 8px 32px rgba(244,166,35,0.14);
    --shadow-toast: 0 8px 24px rgba(0,0,0,0.18);
    --ease: cubic-bezier(.4,0,.2,1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
}

h1, h2, h3, .display {
    font-family: 'Playfair Display', serif;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */



/* ══════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════ */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.item-badge {
    display: inline-block;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin-left: 12px;
    vertical-align: middle;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .summary-sticky {
        position: static !important;
    }
}

/* ══════════════════════════════════════════
   ITEM CARD
══════════════════════════════════════════ */
.item-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
}

    .item-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .item-card.removing {
        opacity: 0;
        transform: translateX(60px);
    }

.item-img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .item-img:hover {
        transform: scale(1.04);
    }

.item-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .item-name:hover {
        color: var(--pink);
    }

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pink);
}

.item-old-price {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Weight Info */
.item-card .text-xs {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 4px 0 6px 0;
}

/* ══════════════════════════════════════════
   QTY CONTROLS
══════════════════════════════════════════ */
.qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    margin-top: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

    .qty-btn:hover {
        background: var(--pink-light);
        color: var(--pink-dark);
    }

.qty-num {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: #fafafa;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    line-height: 36px;
}

.line-total {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 6px;
}

    .line-total strong {
        color: var(--ink);
    }

.remove-btn {
    margin-left: auto;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    align-self: flex-start;
}

    .remove-btn:hover {
        border-color: #fca5a5;
        color: #ef4444;
        background: #fef2f2;
    }

/* ══════════════════════════════════════════
   SUMMARY PANEL
══════════════════════════════════════════ */
.summary-panel {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 1.8rem 1.6rem;
    position: sticky;
    top: 88px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

/* Coupon */
.coupon-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 1.4rem;
}

.coupon-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s ease;
}

    .coupon-input:focus {
        border-color: var(--pink);
    }

.coupon-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

    .coupon-btn:hover {
        background: var(--pink);
    }

/* Price rows */
.price-rows {
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    padding: 1rem 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

    .price-row span:last-child {
        font-weight: 600;
        color: var(--ink);
    }

    .price-row.free span:last-child {
        color: var(--green);
    }

    .price-row.discount {
        display: none;
    }

        .price-row.discount span {
            color: var(--green);
        }

            .price-row.discount span:last-child {
                color: var(--green);
            }

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.4rem;
}

.total-label {
    font-size: 1rem;
    font-weight: 700;
}

.total-amt {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pink);
}

/* Savings chip */
.savings-chip {
    background: #f0fdf4;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    display: none;
}

/* Checkout button */
.checkout-btn {
    width: 100%;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
}

    .checkout-btn:hover {
        background: var(--pink-dark);
        transform: translateY(-1px);
    }

    .checkout-btn:active {
        transform: translateY(0);
    }

.secure-note {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 10px;
}

/* Trust badges */
.trust-row {
    display: flex;
    justify-content: space-around;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1.5px solid var(--border);
}

.trust-item {
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.4;
}

    .trust-item i {
        font-size: 1.2rem;
        color: var(--pink);
        display: block;
        margin-bottom: 4px;
    }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    display: none;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

.empty-sub {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.empty-btn {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    padding: 14px 36px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

    .empty-btn:hover {
        background: var(--pink-dark);
        transform: translateY(-2px);
    }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
#toastBox {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-toast);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--ease);
    pointer-events: auto;
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

    .toast i {
        color: var(--pink);
        font-size: 1rem;
    }

/* ══════════════════════════════════════════
   COUPON SUCCESS
══════════════════════════════════════════ */
.coupon-tag {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.coupon-remove {
    margin-left: auto;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

    .coupon-remove:hover {
        color: #ef4444;
    }

/* ══════════════════════════════════════════
   PROGRESS BAR (free delivery)
══════════════════════════════════════════ */
.delivery-bar-wrap {
    margin-bottom: 1.4rem;
    padding: 12px 14px;
    background: var(--pink-light);
    border-radius: 14px;
}

.delivery-bar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pink-dark);
    margin-bottom: 8px;
}

.delivery-bar-bg {
    background: #FFE7A8;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.delivery-bar-fill {
    height: 100%;
    background: var(--pink);
    border-radius: 999px;
    transition: width 0.5s ease;
}
