:root {
    --cart-ink: #172033;
    --cart-muted: #728097;
    --cart-line: #e8edf4;
    --cart-soft: #f6f8fc;
    --cart-primary: #5e72e4;
    --cart-danger: #dc3545;
}

[v-cloak] { display: none !important; }

.cart-modern-card {
    overflow: hidden;
    border: 1px solid var(--cart-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(23, 32, 51, .08);
}
.cart-section-heading,
.cart-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--cart-line);
}
.cart-section-heading small,
.cart-drawer-header small {
    display: block;
    color: var(--cart-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cart-section-heading h3,
.cart-drawer-header h4 { margin: 2px 0 0; color: var(--cart-ink); font-weight: 800; }
.cart-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5e72e4, #825ee4);
}
.cart-items-list { padding: 6px 22px 16px; }
.cart-product {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cart-line);
}
.cart-product:last-child { border-bottom: 0; }
.cart-product-image {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--cart-soft);
}
.cart-product-main { min-width: 0; }
.cart-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-product-head h4 {
    margin: 0;
    color: var(--cart-ink);
    font-size: .94rem;
    line-height: 1.35;
    font-weight: 800;
    white-space: pre-line;
}
.cart-product-head > div > span { display: block; margin-top: 4px; color: var(--cart-primary); font-size: .82rem; font-weight: 800; }
.cart-icon-btn,
.cart-delete-btn {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--cart-line);
    border-radius: 11px;
    color: #667085;
    background: #fff;
    cursor: pointer;
}
.cart-note-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #f59e0b; }
.cart-food-information { margin-top: 10px; padding: 8px 10px; border: 1px solid #f1e4b9; border-radius: 10px; color: #6d5a24; background: #fffbeb; font-size: .7rem; line-height: 1.45; }
.cart-food-information summary { font-weight: 800; cursor: pointer; }
.cart-food-information > div { margin-top: 4px; }
.cart-item-note { margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--cart-soft); }
.cart-item-note label { display: block; margin-bottom: 5px; color: var(--cart-ink); font-size: .72rem; font-weight: 800; }
.cart-item-note textarea { width: 100%; resize: vertical; border: 1px solid #dce3ee; border-radius: 9px; padding: 8px 10px; color: var(--cart-ink); background: #fff; font-size: .78rem; }
.cart-note-save { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; margin-top: 7px; border: 0; border-radius: 9px; padding: 0 11px; color: #fff; background: var(--cart-primary); font-size: .72rem; font-weight: 800; }
.cart-note-saved-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100200;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(45, 206, 137, .22);
    border-radius: 999px;
    padding: 0 13px;
    color: #176b4b;
    background: #ecfdf5;
    box-shadow: 0 10px 26px rgba(23, 107, 75, .16);
    font-size: .72rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}
.cart-note-saved-toast.is-visible { opacity: 1; transform: translateY(0); }
.cart-note-saved-toast i { color: #2dce89; }
.cart-product-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart-quantity-control { display: inline-grid; grid-template-columns: 34px 48px 34px; align-items: center; overflow: hidden; border: 1px solid #dce3ee; border-radius: 11px; background: #fff; }
.cart-quantity-control button { width: 34px; height: 34px; border: 0; color: var(--cart-primary); background: var(--cart-soft); font-size: .72rem; cursor: pointer; }
.cart-quantity-control input { width: 48px; height: 34px; border: 0; outline: 0; color: var(--cart-ink); background: #fff; font-size: .8rem; font-weight: 800; text-align: center; appearance: textfield; }
.cart-quantity-control input::-webkit-outer-spin-button,
.cart-quantity-control input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.cart-delete-btn { color: var(--cart-danger); border-color: rgba(220, 53, 69, .18); background: rgba(220, 53, 69, .06); }

.sidenav-cart { width: min(420px, 100vw) !important; padding: 0 !important; background: #fff !important; }
.cart-drawer-inner { display: flex; height: 100%; flex-direction: column; }
.cart-drawer-header { justify-content: space-between; padding: 18px; }
.cart-drawer-close { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 12px; color: var(--cart-ink); background: var(--cart-soft); cursor: pointer; }
.cart-drawer-list { flex: 1 1 auto; overflow-y: auto; padding: 0 18px; }
.cart-product-compact { grid-template-columns: 62px minmax(0, 1fr); gap: 11px; padding: 14px 0; }
.cart-product-compact .cart-product-image { width: 62px; height: 62px; border-radius: 14px; }
.cart-product-compact .cart-product-head h4 { font-size: .82rem; }
.cart-product-compact .cart-product-actions { margin-top: 9px; }
.cart-drawer-footer { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cart-line); background: #fff; }
.cart-drawer-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--cart-ink); }
.cart-drawer-total strong { font-size: 1.08rem; }
.cart-checkout-btn,
.cart-continue-btn { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 13px; font-size: .84rem; font-weight: 800; }
.sidenav-cart .cart-checkout-btn {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%) !important;
    box-shadow: 0 12px 24px rgba(79, 70, 229, .3);
    opacity: 1 !important;
}
.sidenav-cart .cart-checkout-btn:hover,
.sidenav-cart .cart-checkout-btn:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%) !important;
    box-shadow: 0 14px 28px rgba(79, 70, 229, .38);
    text-decoration: none;
    transform: translateY(-1px);
}
.sidenav-cart .cart-checkout-btn:active {
    color: #fff !important;
    opacity: 1 !important;
    transform: translateY(0);
}
.cart-continue-btn { min-height: 38px; margin-top: 7px; color: #667085; background: transparent; }
.cart-empty-state { display: grid; min-height: 180px; place-items: center; margin: 0; color: var(--cart-muted); text-align: center; }
.cart-empty-state i { display: block; font-size: 1.6rem; }

.cart-count-badge { position: absolute; top: -6px; right: -6px; display: none; min-width: 19px; height: 19px; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 999px; padding: 0 4px; color: #fff; background: #dc3545; font-size: 10px; font-weight: 900; line-height: 15px; }
.cart-count-badge.is-visible { display: inline-flex; }
.front-action-cart,
#desCartLink,
#mobileCartLink { position: relative; }

.checkout-modern-card { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--cart-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(23, 32, 51, .06); }
.checkout-modern-card .checkout-card-head { display: flex; align-items: center; gap: 11px; padding: 17px 18px; border-bottom: 1px solid var(--cart-line); }
.checkout-modern-card .checkout-card-head i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--cart-primary); background: rgba(94,114,228,.1); }
.checkout-modern-card .checkout-card-head h3 { margin: 0; color: var(--cart-ink); font-size: 1rem; font-weight: 800; }
.checkout-modern-card .checkout-card-head p { margin: 2px 0 0; color: var(--cart-muted); font-size: .72rem; }
.checkout-modern-card .checkout-card-body { padding: 18px; }
.checkout-restaurant-trigger { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; padding: 15px 17px; color: var(--cart-ink); background: #fff; text-align: left; cursor: pointer; }
.checkout-restaurant-trigger > span:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.checkout-restaurant-trigger small,
.checkout-restaurant-trigger strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-restaurant-trigger small { color: var(--cart-muted); font-size: .68rem; font-weight: 700; }
.checkout-restaurant-trigger strong { margin-top: 2px; font-size: .9rem; }
.checkout-restaurant-mark { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; color: var(--cart-primary); background: rgba(94,114,228,.1); }
.checkout-info-modal .modal-content,
.checkout-legal-modal .modal-content { overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(23,32,51,.2); }
.checkout-info-modal .modal-header,
.checkout-legal-modal .modal-header { align-items: center; border-bottom: 1px solid var(--cart-line); padding: 18px 20px; }
.checkout-info-modal .modal-header small { color: var(--cart-primary); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.checkout-info-modal .modal-body p { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--cart-line); color: #526078; }
.checkout-info-modal .modal-body p:last-child { border-bottom: 0; }
.checkout-info-modal .modal-body i { width: 20px; color: var(--cart-primary); text-align: center; }
.checkout-legal-modal .modal-dialog { max-width: 780px; }
.checkout-legal-modal .modal-body { max-height: min(72vh, 720px); overflow-y: auto; padding: 24px; }
.checkout-payment-card .custom-control-label { color: #526078; font-size: .8rem; line-height: 1.55; }
.checkout-payment-card .paymentbutton { min-height: 46px; border: 0; border-radius: 13px; padding: 0 24px; font-size: .84rem; font-weight: 800; box-shadow: none; }
.checkout-payment-card .card-stats { border: 0; border-radius: 15px; background: var(--cart-soft); box-shadow: none; }

@media (max-width: 767.98px) {
    .section.bg-secondary { padding: 88px 0 34px !important; }
    .section.bg-secondary > .container { padding-right: 12px; padding-left: 12px; }
    .cart-items-section { margin-top: 0 !important; border-radius: 18px; }
    .cart-section-heading { padding: 15px; }
    .cart-items-list { padding: 2px 14px 10px; }
    .cart-product { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 13px 0; }
    .cart-product-image { width: 62px; height: 62px; border-radius: 13px; }
    .cart-product-head h4 { font-size: .82rem; }
    .cart-product-actions { margin-top: 9px; }
    .cart-quantity-control { grid-template-columns: 32px 44px 32px; }
    .cart-quantity-control button { width: 32px; height: 32px; }
    .cart-quantity-control input { width: 44px; height: 32px; }
    .checkout-modern-card { border-radius: 17px; }
    .cart-note-saved-toast {
        right: 50%;
        bottom: calc(14px + env(safe-area-inset-bottom));
        transform: translate(50%, 8px);
    }
    .cart-note-saved-toast.is-visible { transform: translate(50%, 0); }
}
