﻿: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;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.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 ===== */
header {
    background-color: var(--white);
    padding: 15px 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
}

/* ===== LOGO ===== */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 12px 0;
    flex: 0 0 auto;
}

.logo-circle {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== TEXT ===== */
.restaurant-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-purple);
    margin: 0 0 6px 0;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 0 10px;
    clear: both;
    flex: 0 0 auto;
}

.restaurant-tagline {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
    text-align: center;
    padding: 0 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
    clear: both;
    flex: 0 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 575.98px) {
    header {
        padding-top: 14px;
        padding-bottom: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .logo-circle {
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
    }

    .restaurant-name {
        font-size: 1.2rem;
        line-height: 1.4;
        padding: 0 16px;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .restaurant-tagline {
        font-size: 0.86rem;
        line-height: 1.5;
        padding: 0 18px;
        margin-top: 0;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-circle {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }

    .restaurant-name {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .logo-circle {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
    }

    .restaurant-name {
        font-size: 1.75rem;
    }

    .restaurant-tagline {
        font-size: 0.95rem;
    }
}

/* ===== HERO ===== */
.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 ===== */
.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);
}

/* ===== FEATURES ===== */
.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 ===== */
.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);
    }

/* ===== ANIMATION ===== */
@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);
}
