/* ===== CSS Variables ===== */
:root {
    --primary: #1a1a1a;
    --secondary: #666;
    --accent: #c62828;
    --accent-light: #e53935;
    --accent-dark: #b71c1c;
    --background: #fafafa;
    --surface: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --spacing: 20px;
    --max-width: 480px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--primary);
    line-height: 1.5;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.brand-logo-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.brand-info h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.status {
    font-size: 13px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--background);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-btn:hover {
    background: var(--border);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--background);
    opacity: 0;
    transition: opacity 0.3s;
}

.notification-dot.show {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Notification Popup ===== */
.notification-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--primary);
}

.notification-body {
    padding: 16px;
    font-size: 14px;
    color: var(--secondary);
}

.notification-body p {
    margin: 0;
}

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--background);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-btn:hover {
    background: var(--border);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--surface);
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Categories ===== */
.categories {
    display: flex;
    gap: 8px;
    padding: var(--spacing);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--surface);
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

/* ===== Menu Grid ===== */
.menu {
    padding: var(--spacing);
    padding-bottom: 100px;
}

.menu-grid {
    display: grid;
    gap: 16px;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.product-desc {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.add-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary);
    color: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--primary);
}

.qty-value {
    font-size: 15px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* ===== Bottom Cart ===== */
.bottom-cart {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: var(--primary);
    color: var(--surface);
    padding: 16px var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.bottom-cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bottom-cart-count {
    font-size: 13px;
    opacity: 0.8;
}

.bottom-cart-total {
    font-size: 18px;
    font-weight: 600;
}

.bottom-cart-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-cart-btn:hover {
    background: var(--accent-dark);
}

/* ===== Cart Page ===== */
.back-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--background);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--border);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.header-spacer {
    width: 44px;
}

.cart-page {
    padding: var(--spacing);
    padding-bottom: 320px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    font-size: 13px;
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.remove-btn:hover {
    text-decoration: underline;
}

/* ===== Empty Cart ===== */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px var(--spacing);
    text-align: center;
}

.empty-cart-icon {
    color: var(--border);
    margin-bottom: 24px;
}

.empty-cart h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-cart p {
    color: var(--secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.browse-btn {
    background: var(--primary);
    color: var(--surface);
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.browse-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===== Delivery & Payment Options ===== */
.delivery-options,
.payment-options {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-buttons {
    display: flex;
    gap: 10px;
}

.option-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--secondary);
}

.option-btn svg {
    flex-shrink: 0;
}

.option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.option-btn.active {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

/* ===== Cart Delivery Options ===== */
.delivery-options {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.delivery-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.delivery-option:last-child {
    margin-bottom: 0;
}

.delivery-option:hover {
    border-color: var(--border);
}

.delivery-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.delivery-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.delivery-price {
    font-size: 13px;
    color: var(--secondary);
}

.delivery-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--surface);
}

.delivery-option input[type="radio"]:checked + .delivery-info .delivery-name {
    font-weight: 600;
}

/* ===== Customer Form ===== */
.customer-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--secondary);
}

.form-textarea {
    resize: none;
    min-height: 80px;
}

/* ===== Cart Summary ===== */
.cart-summary {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: var(--surface);
    padding: 32px var(--spacing) var(--spacing);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    max-height: 70vh;
    overflow-y: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--secondary);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: var(--surface);
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.3s ease-out;
}

.cart-item {
    animation: fadeIn 0.2s ease-out;
}

/* ===== Success Page ===== */
.success-page {
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing);
}

.success-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
    width: 50px;
    height: 50px;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.success-desc {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.order-number-box {
    background: var(--background);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.order-label {
    display: block;
    font-size: 13px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.order-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.order-summary {
    background: var(--background);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    text-align: left;
}

.order-summary .summary-row {
    padding: 6px 0;
}

.order-summary .summary-row.total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.customer-info-summary {
    background: var(--background);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.info-label {
    color: var(--secondary);
}

.info-value {
    color: var(--primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.success-btn.primary {
    background: var(--primary);
    color: var(--surface);
}

.success-btn.primary:hover {
    background: var(--accent);
    color: var(--primary);
}

.success-btn.secondary {
    background: var(--background);
    color: var(--primary);
    border: 1px solid var(--border);
}

.success-btn.secondary:hover {
    background: var(--border);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Product Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: var(--max-width);
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--background);
}

.modal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: var(--spacing);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
}

.modal-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.modal-description {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-add-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-add-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.modal-quantity {
    justify-content: center;
    padding: 8px 24px;
    background: var(--background);
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto;
}

/* ===== Sauce Options ===== */
.sauce-section {
    margin-bottom: 24px;
}

.sauce-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sauce-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sauce-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.sauce-checkbox:hover {
    border-color: var(--primary);
}

.sauce-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.sauce-checkbox input[type="checkbox"]:checked + .sauce-name {
    font-weight: 600;
}

.sauce-checkbox:has(input:checked) {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

/* ===== Cart Sauces ===== */
.cart-sauces {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
    margin-bottom: 8px;
}

/* ===== Edit Order Box ===== */
.edit-order-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.edit-order-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 8px;
}

.edit-order-text svg {
    color: #ffc107;
}

.countdown {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.edit-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    border: none;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
    transform: translateY(-2px);
}

.edit-btn.disabled {
    background: var(--border);
    color: var(--secondary);
    cursor: not-allowed;
    transform: none;
}

/* ===== Payment Page ===== */
.payment-page {
    padding: var(--spacing);
    padding-bottom: 280px;
}

.payment-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.payment-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-item-qty {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    min-width: 30px;
}

.payment-item-name {
    font-size: 15px;
    color: var(--primary);
}

.payment-item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.customer-display {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.customer-display-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.customer-display-row:last-child {
    border-bottom: none;
}

.customer-label {
    font-size: 13px;
    color: var(--secondary);
}

.customer-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-align: right;
    max-width: 60%;
}

.edit-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.edit-info-btn:hover {
    background: var(--border);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-option {
    display: flex;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.payment-method-option input[type="radio"]:checked + .payment-method-content {
    border-color: var(--primary);
    background: var(--surface);
}

.payment-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.payment-desc {
    font-size: 13px;
    color: var(--secondary);
}

.payment-summary {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: var(--surface);
    padding: var(--spacing);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

/* ===== Cart Section ===== */
.cart-section {
    margin-top: 24px;
}

/* ===== Recommended Products ===== */
.recommended-section {
    margin-top: 32px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.recommended-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}

.recommended-header svg {
    color: var(--accent);
}

.recommended-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.recommended-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.recommended-item:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.recommended-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.recommended-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommended-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.recommended-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.recommended-add {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    color: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.recommended-add:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===== Cart Theme (Red) ===== */
body.cart-theme {
    --accent: #d32f2f;
    --accent-light: #e53935;
    --accent-dark: #b71c1c;
}

body.cart-theme .checkout-btn {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

body.cart-theme .checkout-btn:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

body.cart-theme .cart-item-price,
body.cart-theme .summary-row.total span:last-child,
body.cart-theme .recommended-price {
    color: #d32f2f;
}

body.cart-theme .add-btn:hover,
body.cart-theme .qty-btn:hover {
    background: #d32f2f;
}

body.cart-theme .modal-add-btn:hover {
    background: #d32f2f;
    color: white;
}

body.cart-theme .cart-count,
body.cart-theme .notification-dot {
    background: #d32f2f;
}

body.cart-theme .status-dot {
    background: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

body.cart-theme @keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(211, 47, 47, 0);
    }
}

/* ===== New Payment Page ===== */
.payment-page {
    padding: 20px;
    padding-bottom: 300px;
}

.payment-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.order-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.order-item:last-child {
    border-bottom: none;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.payment-summary {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.summary-total span:last-child {
    color: var(--accent);
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    :root {
        --spacing: 16px;
    }
    
    .product-image {
        width: 100px;
        height: 100px;
    }
}
