/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: #7dd3d0; /* Azul-esverdeado mais suave */
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left i {
    font-size: 1.2rem;
    cursor: pointer;
}

.restaurant-name {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: lowercase;
}

.header-right {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, #5cc6c3, #4a9e9b);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(92, 198, 195, 0.25);
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(92, 198, 195, 0.4);
}

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

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.25);
    animation: pulse 2s infinite;
}

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



/* Establishment Info */
.establishment-info {
    background: white;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.establishment-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.establishment-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.establishment-details {
    padding: 1.5rem;
}

.establishment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.establishment-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}



.establishment-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.establishment-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.establishment-whatsapp i {
    color: #25D366;
    font-size: 1rem;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.establishment-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-text {
    color: #333;
    font-size: 0.9rem;
}

.status {
    font-weight: 600;
    font-size: 0.9rem;
}

.status.open {
    color: #28a745;
}

.status.closed {
    color: #dc3545;
}

/* Categories */
.categories {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Search Bar */
.search-container {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 99;
}

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

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #5cc6c3;
    background: white;
    box-shadow: 0 0 0 3px rgba(92, 198, 195, 0.1);
}

.search-input::placeholder {
    color: #6c757d;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-search:hover {
    background: #e9ecef;
    color: #495057;
}

.search-results {
    margin-top: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-price {
    font-weight: 600;
    color: #5cc6c3;
    font-size: 0.9rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
    flex-shrink: 0;
    position: relative;
}

.category-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.category-tab.active {
    background: #5cc6c3;
    color: white;
    border-color: #5cc6c3;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(92, 198, 195, 0.3);
}

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

/* Products Grid */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding: 0 1rem;
    border-left: 4px solid #5cc6c3;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

/* Product Card */
.product-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;
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.add-to-cart-btn {
    background-color: #7dd3d0; /* Azul-esverdeado mais suave */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #6bc2bf; /* Tom intermediário */
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-image-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.modal-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-options {
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.option-group-title .required {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: normal;
}

.option-group-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.option-group-limits {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.option-label:hover {
    background-color: #f8f9fa;
}

.option-input {
    margin-right: 0.5rem;
}

.option-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.option-price {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.no-options {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.modal-observations {
    margin-bottom: 1.5rem;
}

.modal-observations label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-observations textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-quantity label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    background: #7dd3d0;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #6bc2bf;
}

.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-total {
    font-size: 1.1rem;
    color: #333;
}

.modal-add-btn {
    background: #5cc6c3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-add-btn:hover {
    background: #4a9e9b;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Loading */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5cc6c3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.3);
}

.cart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    min-height: 0;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #5cc6c3;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #4a9e9b;
}

/* Carrinho Novo Layout */
.cart-restaurant-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.cart-restaurant-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: lowercase;
}

.order-type-indicator {
    margin-top: 0.5rem;
}

.order-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-type-badge.delivery {
    background: rgba(92, 198, 195, 0.2);
    color: #5cc6c3;
    border: 1px solid rgba(92, 198, 195, 0.3);
}

.order-type-badge.pickup {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.order-type-badge.dine-in {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.cart-item-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.cart-item-customizations {
    margin-bottom: 0.75rem;
}

.customization-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

.customization-item::before {
    content: '-';
    color: #5cc6c3;
    font-weight: 700;
    font-size: 0.7rem;
}

.customization-name {
    color: #495057;
}

.customization-price {
    color: #5cc6c3;
    font-weight: 600;
    font-size: 0.7rem;
}

.cart-item-observations {
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.2;
}

.obs-label {
    color: #5cc6c3;
    font-weight: 600;
}

.cart-item-price {
    margin-top: 0.75rem;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.quantity-btn {
    background: white;
    color: #5cc6c3;
    border: 2px solid #5cc6c3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #5cc6c3;
    color: white;
    transform: scale(1.05);
}

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

.quantity-number {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* Seção de Cupom */
.coupon-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.coupon-header svg {
    color: #5cc6c3;
}

.coupon-input-group {
    display: flex;
    gap: 0.75rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.coupon-input:focus {
    border-color: #5cc6c3;
}

.coupon-apply-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-apply-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Resumo do Pedido */
.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.order-summary-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-row:last-of-type {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: #6c757d;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #2c3e50;
}

.total-row {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.total-row span:first-child {
    color: #2c3e50;
}

.total-row span:last-child {
    color: #5cc6c3;
    font-size: 1.2rem;
}

/* Botão Continuar */
.checkout-continue-btn {
    width: 100%;
    background: linear-gradient(135deg, #5cc6c3, #4a9e9b);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 198, 195, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-continue-btn:hover::before {
    left: 100%;
}

.checkout-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 198, 195, 0.4);
}

.checkout-continue-btn:active {
    transform: translateY(0);
}

.checkout-continue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Carrinho Moderno (mantido para compatibilidade) */
.cart-item-modern {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.cart-item-modern:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item-image-container {
    position: relative;
    flex-shrink: 0;
}

.cart-item-image-modern {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #f8f9fa;
}

.cart-item-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #5cc6c3, #4a9e9b);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(92, 198, 195, 0.3);
}

.cart-item-main-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cart-item-price-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.unit-price-modern {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.item-total-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.remove-btn-modern {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-btn-modern:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.cart-item-customizations-modern {
    margin-bottom: 0.75rem;
}

.customizations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customization-tag {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
}

.cart-item-observations-modern {
    margin-bottom: 1rem;
}

.observations-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-size: 0.85rem;
    line-height: 1.4;
}

.observations-content svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.quantity-btn-modern {
    background: white;
    color: #5cc6c3;
    border: 2px solid #5cc6c3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn-modern:hover {
    background: #5cc6c3;
    color: white;
    transform: scale(1.05);
}

.quantity-btn-modern:active {
    transform: scale(0.95);
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
}

/* Carrinho antigo (mantido para compatibilidade) */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

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

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

 .cart-item-customizations {
     font-size: 0.8rem;
     color: #666;
     margin-bottom: 0.25rem;
     line-height: 1.3;
 }
 
 .cart-item-observations {
     font-size: 0.8rem;
     color: #999;
     font-style: italic;
     margin-bottom: 0.25rem;
     line-height: 1.3;
 }
 
 .cart-item-price {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
 }
 
 .unit-price {
     color: #666;
     font-size: 0.8rem;
 }
 
 .total-price {
     color: #333;
     font-size: 0.9rem;
     font-weight: 600;
 }

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #5cc6c3;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
}

 .quantity-btn:hover {
     background: #4a9e9b;
 }
 
 .cart-item-quantity {
     font-weight: 600;
     color: #333;
     min-width: 20px;
     text-align: center;
 }
 
 .remove-btn {
     background: #dc3545;
     color: white;
     border: none;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     cursor: pointer;
     font-weight: 600;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background-color 0.3s ease;
 }
 
 .remove-btn:hover {
     background: #c82333;
 }

.cart-footer {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #5cc6c3, #4a9e9b);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 198, 195, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 198, 195, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Carrinho vazio moderno */
.empty-cart-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-cart-icon {
    margin-bottom: 1.5rem;
    color: #5cc6c3;
    opacity: 0.6;
}

.empty-cart-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.empty-cart-modern p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.checkout-btn:hover:not(:disabled) {
    background: #4a9e9b;
}

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

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

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

/* Order Type Modal */
.order-type-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 90%;
    width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-type-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.order-type-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-type-overlay.show {
    opacity: 1;
    visibility: visible;
}

.order-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-type-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-type-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.order-type-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.order-type-options {
    padding: 1rem 1.5rem 1.5rem;
}

.order-type-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.order-type-option:hover {
    border-color: #5cc6c3;
    background: #f8fffe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 198, 195, 0.15);
}

.order-type-option.selected {
    border-color: #5cc6c3;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f9f8 100%);
    box-shadow: 0 4px 12px rgba(92, 198, 195, 0.2);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5cc6c3 0%, #4db5b2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.option-icon svg {
    color: white;
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.option-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.option-note {
    font-size: 0.75rem;
    color: #5cc6c3;
    font-weight: 500;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .restaurant-name {
        font-size: 1rem;
    }
    
    .establishment-info {
        margin: 0.5rem;
    }
    
    .establishment-details {
        padding: 1rem;
    }
    
    .categories {
        padding: 0.5rem 0;
    }
    
    .category-tabs {
        padding: 0 0.5rem;
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .products-grid {
        gap: 1rem;
    }
    
    .category-products {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }
    
    /* Carrinho Mobile - Melhorias de Responsividade */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 0.75rem 1rem;
    }
    
    .cart-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-items {
        padding: 0.75rem;
        max-height: calc(100vh - 200px);
    }
    
    .cart-item-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-customizations {
        margin-bottom: 0.5rem;
    }
    
    .customization-item {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .cart-item-observations {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-item-price {
        margin-top: 0.5rem;
    }
    
    .price-amount {
        font-size: 1rem;
    }
    
    .cart-footer {
        padding: 0.75rem;
    }
    
    .cart-summary {
        padding: 0.75rem;
    }
    
    .summary-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .summary-row {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-total {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .checkout-continue-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
    
    .order-type-indicator {
        margin-bottom: 0.5rem;
    }
    
    .order-type-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-image-container {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .restaurant-name {
        font-size: 0.9rem;
    }
    
    .establishment-title {
        font-size: 1.3rem;
    }
    
    /* Carrinho Mobile - Telas Muito Pequenas */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 0.5rem 0.75rem;
    }
    
    .cart-header h3 {
        font-size: 1rem;
    }
    
    .cart-items {
        padding: 0.5rem;
        max-height: calc(100vh - 180px);
    }
    
    .cart-item-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .cart-item-customizations {
        margin-bottom: 0.4rem;
    }
    
    .customization-item {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
    }
    
    .cart-item-observations {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }
    
    .cart-item-controls {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .cart-item-price {
        margin-top: 0.4rem;
    }
    
    .price-amount {
        font-size: 0.9rem;
    }
    
    .cart-footer {
        padding: 0.5rem;
    }
    
    .cart-summary {
        padding: 0.5rem;
    }
    
    .summary-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-row {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .summary-total {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .checkout-continue-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-top: 0.4rem;
    }
    
    .order-type-indicator {
        margin-bottom: 0.4rem;
    }
    
    .order-type-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 1%;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-image-container {
        height: 120px;
    }
    
    .option-label {
        padding: 0.3rem;
    }
    
    .option-name {
        font-size: 0.8rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-add-btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content a {
    color: #5cc6c3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #4a9e9b;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.75rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
    }
}
