/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Screen - Design Otimizado para Mobile */
.welcome-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.welcome-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-header {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e74c3c 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.main-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Estilo para logo personalizado */
.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-info {
    text-align: center;
}

.restaurant-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.italian-flag {
    display: flex;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 12px;
    width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flag-green { background: #009246; flex: 1; }
.flag-white { background: #f1f2f1; flex: 1; }
.flag-red { background: #ce2b37; flex: 1; }

.tagline {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

.delivery-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.address-selection {
    padding: 25px 20px;
}

.selection-header {
    text-align: center;
    margin-bottom: 25px;
}

.selection-header h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 700;
}

.selection-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.search-section {
    margin-bottom: 25px;
}

.search-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #f1c40f;
    background: white;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
}

.neighborhoods-container {
    max-height: 350px;
    overflow-y: auto;
}

.neighborhoods-grid {
    display: grid;
    gap: 10px;
}

.neighborhood-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neighborhood-card:hover {
    border-color: #f1c40f;
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.neighborhood-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.neighborhood-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.neighborhood-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.distance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6c757d;
}

.delivery-fee {
    font-weight: 600;
    color: #e74c3c;
    font-size: 0.85rem;
}

.select-neighborhood-btn {
    width: 100%;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.select-neighborhood-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Header - Otimizado para Mobile */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #f1c40f;
}

.header-content {
    padding: 15px 0;
}

.restaurant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* Estilo para logo personalizado no header */
.header-logo-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.header-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-right: 8px;
}

.italian-flag-small {
    display: flex;
    height: 3px;
    width: 35px;
    border-radius: 2px;
    overflow: hidden;
}

.subtitle {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 4px;
    font-size: 0.85rem;
}

.restaurant-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.restaurant-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.rating {
    color: #f39c12 !important;
    font-weight: 600;
}

.change-address-btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.change-address-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* Menu Navigation - Mobile Friendly */
.menu-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #ecf0f1;
    position: sticky;
    top: 70px;
    z-index: 99;
}

.nav-buttons {
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-btn {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    padding: 16px 12px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(241, 196, 15, 0.1);
    color: #2c3e50;
}

.nav-btn.active {
    background: white;
    color: #2c3e50;
    border-bottom-color: #f1c40f;
}

/* Floating Cart - Mobile Optimized */
.floating-cart {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-cart.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.5);
}

.cart-icon {
    position: relative;
    font-size: 18px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f1c40f;
    color: #2c3e50;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-1px); }
}

.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-total {
    font-weight: 700;
    font-size: 1rem;
}

.cart-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Main Content - Mobile Optimized */
.main {
    padding: 25px 0;
    background: #f8f9fa;
}

.menu-section {
    display: none;
}

.menu-section.active {
    display: block;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.section-title i {
    color: #e74c3c;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #f1c40f;
}

.item-content {
    padding: 20px;
}

.item-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

.item-description {
    color: #7f8c8d;
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.price-options {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: space-between;
}

.price-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    flex: 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-option:hover {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.size-label {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
}

.add-btn {
    width: 100%;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.add-btn:active {
    transform: translateY(0);
}

/* Store Information - Mobile Optimized */
.store-info {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.store-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.store-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.detail-item {
    text-align: center;
}

.detail-item i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 18px;
    margin: 0 auto 12px;
}

.detail-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.detail-item p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Modals - Mobile Optimized */
.customization-modal,
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
}

.customization-modal.open,
.cart-modal.open {
    opacity: 1;
    visibility: visible;
}

.customization-content,
.cart-content {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cart-content {
    max-width: 500px;
}

.customization-modal.open .customization-content,
.cart-modal.open .cart-content {
    transform: scale(1) translateY(0);
}

.customization-header,
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    border-radius: 20px 20px 0 0;
}

.customization-header h3,
.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-customization,
.close-cart {
    background: rgba(44, 62, 80, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.close-customization:hover,
.close-cart:hover {
    background: rgba(44, 62, 80, 0.2);
    transform: rotate(90deg);
}

.customization-body,
.cart-body {
    padding: 20px;
}

.pizza-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pizza-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.pizza-info h4 {
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.pizza-info p {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.size-selection h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    margin-bottom: 14px;
    font-size: 1rem;
}

.size-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.size-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
}

.size-option.selected {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.size-icon {
    color: #e74c3c;
}

.size-info {
    flex: 1;
}

.size-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.size-details {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.size-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1rem;
}

/* Flavor Selection for Meio a Meio */
.flavor-selection-section {
    margin-bottom: 20px;
}

.flavor-selection-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    margin-bottom: 14px;
    font-size: 1rem;
}

#flavorContainer {
    display: grid;
    gap: 10px;
}

.flavor-selection-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flavor-selection-item label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.flavor-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.flavor-select:focus {
    outline: none;
    border-color: #f1c40f;
}

.special-instructions {
    margin-bottom: 20px;
}

.special-instructions label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.special-instructions textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.special-instructions textarea:focus {
    outline: none;
    border-color: #f1c40f;
}

.customization-footer {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.customization-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Cart Styles - Mobile Optimized */
.empty-cart {
    text-align: center;
    padding: 30px 15px;
    color: #7f8c8d;
}

.empty-cart i {
    font-size: 2.5rem;
    color: #bdc3c7;
    margin-bottom: 12px;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #ecf0f1;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 1rem;
}

.cart-item-customizations {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-style: italic;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover:not(:disabled) {
    background: #f1c40f;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity {
    font-weight: 600;
    color: #2c3e50;
    min-width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.remove-item-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.cart-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.cart-form h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f1c40f;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.cart-summary {
    margin-bottom: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.summary-line.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.checkout-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.open {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.success-modal.open .success-content {
    transform: scale(1);
}

.success-content i {
    font-size: 3.5rem;
    color: #27ae60;
    margin-bottom: 16px;
    animation: checkmark 0.6s ease;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.success-content p {
    color: #7f8c8d;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .welcome-container {
        max-width: 600px;
    }
    
    .restaurant-title {
        font-size: 2.2rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .price-options {
        flex-direction: row;
        gap: 10px;
    }
    
    .price-option {
        flex-direction: column;
        padding: 10px;
    }
    
    .store-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .floating-cart {
        left: auto;
        right: 20px;
        max-width: 200px;
    }
    
    .customization-footer {
        flex-wrap: nowrap;
    }
    
    .add-to-cart-btn {
        flex: 0;
        min-width: 180px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .store-details {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .restaurant-info {
        flex-wrap: nowrap;
    }
    
    .restaurant-details {
        flex-wrap: nowrap;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #f1c40f;
    outline-offset: 2px;
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .menu-item:hover,
    .neighborhood-card:hover,
    .price-option:hover,
    .size-option:hover {
        transform: none;
    }
    
    .add-btn:hover,
    .select-neighborhood-btn:hover,
    .change-address-btn:hover,
    .add-to-cart-btn:hover,
    .checkout-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Print Styles */
@media print {
    .floating-cart,
    .customization-modal,
    .cart-modal,
    .success-modal {
        display: none !important;
    }
}

/* Animations for slide in/out messages */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}