/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #00D4AA;
    --primary-dark: #00B894;
    --secondary-color: #FF6B6B;
    --accent-color: #4ECDC4;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: var(--shadow-hover);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 12px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== NAVIGATION CATÉGORIES ===== */
.categories-nav {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 15px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.category-item:hover, .category-item.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* ===== BANNIÈRE PROMO ===== */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary-color), #FF8E8E);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.promo-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.promo-btn {
    background: white;
    color: var(--secondary-color);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== FILTRES ===== */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--background);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* ===== RESTAURANTS ===== */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.restaurant-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.restaurant-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.delivery-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-info {
    padding: 20px;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.restaurant-cuisine {
    color: var(--text-light);
    margin-bottom: 12px;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.delivery-fee {
    color: var(--text-light);
    font-size: 0.9rem;
}

.restaurant-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--background);
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ===== RESTAURANTS POPULAIRES ===== */
.popular-section {
    margin-bottom: 50px;
}

.popular-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

.popular-card {
    min-width: 280px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ===== PAGE RESTAURANT ===== */
.restaurant-header {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.restaurant-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.restaurant-hero-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.restaurant-details h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.restaurant-details p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.restaurant-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== MENU PRODUITS ===== */
.menu-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.menu-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.menu-category-btn {
    padding: 10px 20px;
    border: 2px solid var(--background);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.menu-category-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    gap: 20px;
}

.product-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--background);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== PAGE PANIER ===== */
.cart-page {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--background);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--text-light);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    border-top: 2px solid var(--background);
    padding-top: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--background);
    padding-top: 10px;
}

/* ===== FORMULAIRES ===== */
.checkout-form {
    display: grid;
    gap: 30px;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--background);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== MÉTHODES DE PAIEMENT ===== */
.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--background);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover, .payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.payment-method input[type="radio"] {
    margin: 0;
}

/* ===== BOUTONS ===== */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--background);
    color: var(--text-dark);
}

.btn-full {
    width: 100%;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ===== BOUTON RETOUR ===== */
.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-dark);
}

/* ===== PANIER FLOTTANT ===== */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    display: none;
}

.floating-cart.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

.floating-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== FORMULAIRES D'AUTHENTIFICATION ===== */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch p {
    margin-bottom: 10px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== CHECKBOX PERSONNALISÉ ===== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--background);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* ===== PAGE PROFIL ===== */
.profile-header {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-light);
}

.profile-sections {
    display: grid;
    gap: 30px;
}

.profile-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* ===== PARAMÈTRES ===== */
.settings-list {
    display: grid;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--background);
    border-radius: var(--border-radius);
}

/* ===== SWITCH TOGGLE ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ===== SUIVI DE COMMANDE ===== */
.delivery-status {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.delivery-status h3 {
    margin-bottom: 10px;
}

.delivery-eta {
    font-size: 1.1rem;
    font-weight: 600;
}

.delivery-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.delivery-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.delivery-info {
    flex: 1;
}

.delivery-name {
    font-weight: 700;
    margin-bottom: 5px;
}

.delivery-phone {
    color: var(--text-light);
}

.contact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--primary-dark);
}

.order-tracking {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--background);
    z-index: 1;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.step-icon.active {
    background: var(--primary-color);
    color: white;
}

.step-icon.completed {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
}

.step-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NOTIFICATIONS TOAST ===== */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    transform: translateX(400px);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--secondary-color);
}

.toast.success {
    background: var(--primary-color);
}

/* ===== PAGES ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        order: 3;
        max-width: none;
    }

    .categories-nav {
        top: 140px;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .floating-cart {
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: var(--border-radius);
    }

    .restaurant-hero {
        flex-direction: column;
        text-align: center;
    }

    .restaurant-stats {
        justify-content: center;
    }

    .product-card {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tracking-steps {
        flex-direction: column;
        gap: 20px;
    }

    .tracking-steps::before {
        display: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .form-section {
        padding: 20px;
    }
}