﻿:root {
    --primary-purple: #5D3A8E;
    --dark-purple: #3D2066;
    --light-purple: #EDE7F6;
    --accent-orange: #F5922F;
    --accent-blue: #4FC3F7;
    --text-dark: #2D2D2D;
    --text-gray: #6B6B6B;
    --white: #FFFFFF;
    --background: #F8F9FA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

.main-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

header { background-color: var(--white); }
.logo-container { width: fit-content; }

.logo-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--white);
    position: relative;
}
.logo-circle i { font-size: 24px; margin-bottom: 2px; }
.logo-number { font-size: 18px; font-weight: 700; }

.restaurant-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-purple);
    margin-bottom: 0.25rem;
}
.restaurant-tagline {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

.hero-section { padding: 0 12px; }

.hero-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.delivery-section { padding-top: 1rem; }
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 0.25rem;
}
.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.option-card.active { transform: scale(1.02); }

.delivery-card {
    background: linear-gradient(135deg, #4A2C6A 0%, #3D2066 100%);
    color: var(--white);
}

.option-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.option-description { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0; }

.option-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.delivery-icon { background-color: rgba(255,255,255,0.2); color: var(--white); }

.pickup-card { background-color: var(--white); border: 2px solid #E8E8E8; }
.pickup-title { color: var(--dark-purple); }
.pickup-description { color: var(--text-gray); }
.pickup-icon { background-color: var(--accent-orange); color: var(--white); }

.offer-card {
    background-color: var(--light-purple);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.offer-icon {
    width: 48px; height: 48px;
    background-color: var(--accent-orange);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}
.offer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 4px;
}
.offer-text {
    font-size: 0.85rem;
    color: var(--dark-purple);
    margin-bottom: 0;
    line-height: 1.5;
}

.features-section { padding-top: 0.5rem; }
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
}
.feature-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}
.secure-icon { background-color: #E3F2FD; color: #2196F3; }
.quality-icon { background-color: #FFF3E0; color: var(--accent-orange); }
.fast-icon { background-color: var(--light-purple); color: var(--primary-purple); }
.feature-text { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }

.branch-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #E8E8E8;
}
.branch-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.branch-title i { color: var(--primary-purple); }

.branch-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}
.branch-info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.branch-icon {
    width: 40px; height: 40px;
    background-color: var(--light-purple);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-purple);
    font-size: 16px;
    flex-shrink: 0;
}
.phone-icon { background-color: #E8F5E9; color: #4CAF50; }

.branch-details { display: flex; flex-direction: column; text-align: right; }
.branch-details strong { font-size: 0.9rem; font-weight: 700; color: var(--dark-purple); margin-bottom: 2px; }
.branch-details span { font-size: 0.85rem; color: var(--text-gray); }

@media (min-width: 576px) {
    .hero-image { height: 250px; }
    .option-card { padding: 24px 28px; }
    .option-title { font-size: 1.6rem; }
}

@media (min-width: 768px) {
    .main-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 24px;
        min-height: auto;
    }
    .hero-image { height: 280px; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.option-card.selected { animation: pulse 0.3s ease; }
.option-card.selected-delivery {
    box-shadow: 0 0 0 3px var(--primary-purple), 0 6px 20px rgba(93, 58, 142, 0.3);
}
.option-card.selected-pickup {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px var(--accent-orange), 0 6px 20px rgba(245, 146, 47, 0.2);
}
