/* ============================================
   SHAWARMA AL-RAYES - MODERN DESIGN
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --secondary: #004E89;
    --accent: #F7931E;
    --light: #F5F5F5;
    --dark: #1A1A1A;
    --text: #333;
    --border: #E0E0E0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

body[lang="de"] {
    font-family: 'Poppins', 'Cairo', sans-serif;
}

input, textarea, select, button {
    -webkit-user-select: text;
    user-select: text;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.modal-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
}

.modal-box p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.lang-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lang-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    cursor: pointer;
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-btn {
    position: relative;
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    animation: slideDown 0.6s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideDown 0.6s ease 0.2s both;
}

.btn-primary {
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.6s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MENU SECTION
   ============================================ */

.menu-section {
    padding: 60px 20px;
    background: var(--light);
}

.menu-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.category-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text);
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover img {
    transform: scale(1.1);
}

.menu-item-info {
    padding: 20px;
}

.menu-item-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.menu-item-price {
    font-size: 20px;
    color: var(--primary);
    font-weight: 900;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.product-details {
    padding: 30px;
}

.product-details h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-details p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.addons-section {
    margin: 20px 0;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
}

.addons-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.addon-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.addon-item input {
    cursor: pointer;
}

.addon-price {
    color: var(--primary);
    font-weight: 700;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price span:first-child {
    font-size: 12px;
    color: #666;
}

.price span:last-child {
    font-size: 24px;
    color: var(--primary);
    font-weight: 900;
}

/* ============================================
   CART SIDEBAR
   ============================================ */

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

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    color: var(--dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

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

.cart-item-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.cart-item-delete {
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.cart-item-delete:hover {
    color: red;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-options {
    padding: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 200px;
    overflow-y: auto;
}

.option {
    margin-bottom: 15px;
}

.option label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.option input[type="text"],
.option input[type="email"],
.option select,
.option textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.option textarea {
    resize: vertical;
    min-height: 60px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.total span:last-child {
    color: var(--primary);
}

.btn-whatsapp {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideInUp 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 12px 15px;
    }

    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 22px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .menu-section {
        padding: 40px 15px;
    }

    .menu-section h2 {
        font-size: 24px;
    }

    .category-filter {
        gap: 8px;
    }

    .cat-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .menu-item-name {
        font-size: 14px;
    }

    .menu-item-price {
        font-size: 16px;
    }

    .modal-content {
        border-radius: 15px;
    }

    .product-details {
        padding: 20px;
    }

    .product-details h3 {
        font-size: 20px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .cart-header {
        padding: 15px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .cart-item img {
        width: 70px;
        height: 70px;
    }

    .cart-options {
        max-height: 150px;
        padding: 15px;
    }

    .cart-footer {
        padding: 15px;
    }

    .total {
        font-size: 16px;
    }

    .btn-whatsapp {
        padding: 12px;
        font-size: 14px;
    }
}
