/* ============================================
   Template Client Page - Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-bottom: 80px;
}

/* Prevent scroll when cart is open - Mobile fix */
body.cart-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

html.cart-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Header */
.header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
}

.restaurant-name {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    flex: 1;
    margin: 0;
}

/* Header Toolbar */
.header-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Map Toggle Button */
.map-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.map-toggle:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    transform: scale(1.05);
}

.map-toggle:active {
    transform: scale(0.95);
}

.map-icon {
    width: 24px;
    height: 24px;
    color: #27ae60;
    transition: color 0.3s ease;
}

.map-toggle:hover .map-icon {
    color: #27ae60;
}

/* Cart Toggle Button in Toolbar */
.cart-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.cart-toggle:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    transform: scale(1.05);
}

.cart-toggle:active {
    transform: scale(0.95);
}

.cart-icon {
    width: 24px;
    height: 24px;
    color: #27ae60;
    transition: color 0.3s ease;
}

.cart-toggle:hover .cart-icon {
    color: #27ae60;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: none;
}

.cart-count.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Opening Hours Section - Minimalista */
.opening-hours-section {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.opening-hours-info {
    max-width: 1200px;
    margin: 0 auto;
}

.opening-hours-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.opening-hours-date {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.opening-hours-status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.opening-hours-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opening-hours-status.status-open {
    background: #e8f5e9;
    color: #2e7d32;
}

.opening-hours-status.status-closed {
    background: #ffebee;
    color: #c62828;
}

.opening-hours-time-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.opening-hours-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.opening-hours-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 1;
    color: #27ae60;
}

.opening-hours-icon-btn svg {
    width: 16px;
    height: 16px;
}

.opening-hours-icon-btn:hover {
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.1);
    color: #229954;
}

.opening-hours-icon-btn:active {
    transform: scale(0.95);
}

.opening-hours-timezone-notice {
    max-width: 1200px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #666;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.timezone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
}

.timezone-icon svg {
    width: 14px;
    height: 14px;
}

.timezone-text {
    font-size: 0.7rem;
}

/* Hours Modal Overlay */
.hours-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Hours Modal Sidebar */
.hours-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.hours-sidebar.open {
    right: 0;
}

.hours-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: white;
}

.hours-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    flex: 1;
    text-align: center;
    margin: 0;
    font-weight: 700;
}

.close-hours {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close-hours:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.close-hours:active {
    background: #f0f0f0;
}

.hours-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-day-item {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-day-item:hover {
    border-color: #27ae60;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hours-day-item.current-day {
    background: #e8f5e9;
    border-color: #27ae60;
}

.hours-day-item.closed-day {
    background: #ffebee;
    border-color: #e74c3c;
}

.hours-day-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.hours-day-item.closed-day .hours-day-name {
    color: #e74c3c;
}

.hours-day-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hours-status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hours-status-badge.status-open {
    background: #e8f5e9;
    color: #2e7d32;
}

.hours-status-badge.status-closed {
    background: #ffebee;
    color: #c62828;
}

.hours-time-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Prevent scroll when hours modal is open */
body.hours-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

html.hours-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .opening-hours-section {
        padding: 12px 16px;
    }
    
    .opening-hours-date {
        font-size: 0.85rem;
    }
    
    .opening-hours-status {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .opening-hours-time {
        font-size: 0.85rem;
    }
    
    .opening-hours-icon-btn {
        font-size: 0.9rem;
        width: 22px;
        height: 22px;
    }
    
    .hours-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .opening-hours-section {
        padding: 10px 12px;
    }
    
    .opening-hours-info-container {
        gap: 10px;
    }
    
    .opening-hours-date {
        font-size: 0.8rem;
    }
    
    .opening-hours-status-container {
        gap: 8px;
    }
    
    .opening-hours-status {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .opening-hours-time {
        font-size: 0.8rem;
    }
    
    .opening-hours-icon-btn {
        font-size: 0.85rem;
        width: 20px;
        height: 20px;
    }
    
    .hours-header {
        padding: 16px;
    }
    
    .hours-header h2 {
        font-size: 1.3rem;
    }
    
    .hours-content {
        padding: 16px;
        gap: 10px;
    }
    
    .hours-day-item {
        padding: 12px;
    }
    
    .hours-day-name {
        font-size: 0.9rem;
    }
}

/* Responsive: Header Toolbar */
@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .header-toolbar {
        padding-top: 8px;
    }
    
    .map-toggle,
    .cart-toggle {
        width: 44px;
        height: 44px;
    }
    
    .map-icon,
    .cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
    
    .restaurant-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        margin-bottom: 10px;
    }
    
    .header-toolbar {
        padding-top: 6px;
    }
    
    .map-toggle,
    .cart-toggle {
        width: 40px;
        height: 40px;
    }
    
    .map-icon,
    .cart-icon {
        width: 20px;
        height: 20px;
    }
    
    .restaurant-name {
        font-size: 1.3rem;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #27ae60;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #333;
}

/* Categories */
.categories {
    margin-bottom: 30px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #f8f8f8;
    border-color: #27ae60;
}

.category-btn.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* Menu Items Grid */
.menu-items {
    margin-bottom: 30px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.item-content {
    padding: 20px;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    min-height: 40px;
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-cart:hover {
    background: #229954;
}

.btn-add-cart:active {
    transform: scale(0.98);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
}

.cart-back-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #27ae60;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    font-weight: bold;
}

.cart-back-btn:hover {
    background: #f0f0f0;
    color: #229954;
}

.cart-back-btn:active {
    background: #e0e0e0;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    flex: 1;
    text-align: center;
    margin: 0;
}

.cart-header h2:first-child {
    text-align: left;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 50%;
}

.close-cart:hover {
    color: #333;
    background: #f0f0f0;
}

.close-cart:active {
    background: #e0e0e0;
}

/* Cart Steps */
.cart-step {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px); /* Dynamic viewport height for mobile browsers */
    overflow: hidden;
}

.cart-step-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.cart-step-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #27ae60;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f8f8;
    border-color: #27ae60;
}

.quantity-btn:active {
    transform: scale(0.95);
    background: #e8f5e9;
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-item-remove:hover {
    background: #c0392b;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.cart-customer-fields {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.field-group {
    margin-bottom: 15px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.customer-input,
.customer-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.customer-input:focus,
.customer-textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.customer-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Delivery Methods */
.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
}

.delivery-option:hover {
    border-color: #27ae60;
    background: #f8f9fa;
}

.delivery-option:has(input[type="radio"]:checked) {
    border-color: #27ae60;
    background: #e8f5e9;
}

.delivery-option:has(input[type="radio"]:checked) span {
    font-weight: 600;
    color: #27ae60;
}

.delivery-address-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: #f8f8f8;
    border-color: #27ae60;
}

.payment-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
}

.payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #27ae60;
}

.payment-option span {
    font-size: 0.95rem;
    color: #333;
    user-select: none;
}

.change-field {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.change-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.change-result {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    border: 1px solid #27ae60;
}

.change-label {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

.change-value {
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: bold;
}

.cart-total {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}

/* Navigation Buttons */
.btn-continue,
.btn-checkout {
    width: 100%;
    padding: 16px;
    min-height: 52px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-continue:hover,
.btn-checkout:hover {
    background: #229954;
}

.btn-continue:active,
.btn-checkout:active {
    transform: scale(0.98);
    background: #1e8449;
}

.btn-back {
    flex: 1;
    padding: 16px;
    min-height: 52px;
    background: white;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-back:hover {
    border-color: #27ae60;
    color: #27ae60;
    background: #f8f9fa;
}

.btn-back:active {
    transform: scale(0.98);
    background: #f0f0f0;
}

.cart-step-buttons .btn-checkout {
    flex: 2;
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
        box-shadow: none;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }
    
    .cart-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .cart-header h2 {
        font-size: 1.3rem;
    }
    
    .cart-items {
        padding: 16px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-item {
        padding: 12px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        font-size: 0.95rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .cart-footer {
        padding: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid #e0e0e0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .cart-customer-fields {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .field-group {
        margin-bottom: 16px;
    }
    
    .field-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .customer-input,
    .customer-textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .payment-option {
        padding: 14px;
        min-height: 52px;
    }
    
    .payment-option span {
        font-size: 1rem;
    }
    
    .cart-total {
        font-size: 1.2rem;
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .btn-checkout {
        padding: 18px;
        font-size: 1.1rem;
        min-height: 56px;
    }
    
    .change-field {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .change-result {
        padding: 12px;
        margin-top: 8px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .restaurant-name {
        font-size: 1.5rem;
    }
    
    .cart-step {
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px); /* Dynamic viewport height for mobile browsers */
    }
    
    .cart-step-content {
        padding: 16px;
    }
    
    .cart-step-footer {
        padding: 16px;
    }
    
    .cart-back-btn {
        font-size: 1.3rem;
    }
    
    .cart-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 14px;
    }
    
    .cart-header h2 {
        font-size: 1.2rem;
    }
    
    .cart-items {
        padding: 14px;
    }
    
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-footer {
        padding: 14px;
    }
    
    .field-group {
        margin-bottom: 14px;
    }
    
    .customer-input,
    .customer-textarea {
        padding: 12px;
    }
    
    .payment-option {
        padding: 12px;
        min-height: 48px;
    }
    
    .btn-checkout {
        padding: 16px;
        min-height: 52px;
    }
    
    .cart-step {
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px); /* Dynamic viewport height for mobile browsers */
    }
    
    .cart-step-content {
        padding: 14px;
    }
    
    .cart-step-footer {
        padding: 14px;
    }
    
    .cart-step-buttons {
        flex-direction: column;
    }
    
    .cart-step-buttons .btn-back,
    .cart-step-buttons .btn-checkout {
        width: 100%;
    }
}

