* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4757;
    --primary-dark: #ee5a6f;
    --secondary-color: #2f3542;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
    --success: #00b894;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--background-light);
    line-height: 1.6;
}

/* Barra de Localização */
#locationBar {
    position: sticky;
    top: 0;
    z-index: 101;
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#locationBar strong {
    font-weight: 600;
    color: #ffd700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3s ease;
}

/* Classe para ajustar header quando barra de localização está visível */
.header.with-location-bar {
    top: 32px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

/* Status de Abertura */
.mobile-open-status {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 5px 0;
    background: var(--background-light);
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.mobile-open-status span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Bolinha verde */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Ajustar posição quando locationBar está visível */
#locationBar:not([style*="display: none"]) ~ .mobile-open-status {
    top: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.logo img {
    max-height: 50px;
    object-fit: contain;
}

.btn-back {
    background: var(--secondary-color);
    color: white !important;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-back:hover {
    background: #1e2229;
    color: white !important;
}

.btn-backup {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-backup:hover {
    background: #1a1f28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-settings {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-settings:hover {
    background: #1a1f28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-count {
    background: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
    min-width: 24px;
    text-align: center;
}

/* Removido - definição duplicada conflitante */

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Menu Section */
.menu-section {
    padding: 3rem 0;
}

/* Menu Categories Section */
.menu-categories-section {
    padding: 3rem 0;
}

.menu-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.menu-categories-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.btn-add-category {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-category:hover {
    background: #1a1f28;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    height: 300px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.category-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.btn-card-action {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-card-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-card-action:not(:disabled):hover {
    transform: scale(1.1);
}

.btn-card-action.btn-edit:hover {
    background: #4a90e2;
}

.btn-card-action.btn-delete:hover {
    background: var(--primary-color);
}

.btn-card-action:nth-child(1):hover,
.btn-card-action:nth-child(2):hover {
    background: var(--secondary-color);
    color: white;
}

.category-card-content {
    z-index: 1;
    text-align: center;
    padding: 1.5rem;
    max-width: 90%;
}

.category-card-name {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-card-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

/* Card em manutenção */
.category-card.maintenance {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.category-card.maintenance:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.maintenance-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
    text-shadow: none;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.menu-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.btn-add-item {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-item:hover {
    background: #1a1f28;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Biblioteca de Produtos */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.library-item {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.library-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.library-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--background-light);
}

.library-item-info {
    padding: 1rem;
}

.library-item-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.library-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Backup e Restauração */
.backup-section {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
}

.backup-section h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.btn-export,
.btn-import,
.btn-clear {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-export {
    background: var(--success);
    color: white;
}

.btn-export:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-import {
    background: #4a90e2;
    color: white;
}

.btn-import:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-clear {
    background: var(--primary-color);
    color: white;
}

.btn-clear:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-remove-logo {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-remove-logo:hover {
    background: var(--primary-dark);
}

.form-section {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.form-section h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.menu-item-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.btn-item-action {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-item-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-item-action:not(:disabled):hover {
    transform: scale(1.1);
}

.btn-item-action.btn-edit:hover {
    background: #4a90e2;
}

.btn-item-action.btn-delete:hover {
    background: var(--primary-color);
}

.btn-item-action:nth-child(1):hover,
.btn-item-action:nth-child(2):hover {
    background: var(--secondary-color);
    color: white;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--background-light);
}

.menu-item-info {
    padding: 1.5rem;
}

.menu-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
}

.btn-add-to-cart:disabled {
    background: var(--border);
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--background);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

/* Cart */
.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-quantity {
    background: var(--background-light);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-quantity:hover {
    background: var(--border);
}

.cart-item-quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-checkout:disabled {
    background: var(--border);
    cursor: not-allowed;
}

/* Add Item Form */
.add-item-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--background-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background: var(--border);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* Acompanhamentos */
.accompaniments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.accompaniment-item-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 8px;
}

.accompaniment-item-form input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-remove-accompaniment {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-remove-accompaniment:hover {
    background: var(--primary-dark);
}

.btn-add-accompaniment {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-add-accompaniment:hover {
    background: #1a1f28;
}

.accompaniments-info {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.accompaniments-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.accompaniment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--background);
}

.accompaniment-option:hover {
    border-color: var(--primary-color);
    background: var(--background-light);
}

.accompaniment-option.selected {
    border-color: var(--primary-color);
    background: var(--background-light);
}

.accompaniment-option input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.accompaniment-option-content {
    flex: 1;
}

.accompaniment-option-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.accompaniment-option-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.accompaniments-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.accompaniments-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.accompaniments-summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.cart-item-accompaniments {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
}

.cart-item-accompaniments-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.cart-item-accompaniment {
    display: flex;
    justify-content: space-between;
    margin-left: 1rem;
    margin-top: 0.25rem;
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.checkout-left h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: var(--background-light);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.card-fields {
    margin-top: 1.5rem;
    display: none;
}

.payment-option input[type="radio"]:checked ~ .card-fields {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-pay {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pay:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Order Summary */
.order-summary {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    color: var(--text-light);
}

.order-item-price {
    font-weight: 600;
}

.order-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.total-line.total-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.total-line.delivery-time {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.total-line.delivery-time span:last-child {
    color: var(--success);
    font-weight: 600;
    font-style: normal;
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--success);
}

.success-modal p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.btn-success {
    margin-top: 2rem;
    background: var(--success);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-back {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .nav {
        gap: 0.5rem;
    }
}

