/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dynamic Colors - Updated from Admin */
    --primary: #8B7355;
    --primary-dark: #6B5544;
    --background: #383838;
    --text: #2d2d2d;
    --accent: #d4a574;
    
    /* Dynamic Font Sizes - Menu */
    --shop-name-size: 2.2rem;
    --category-size: 1.6rem;
    --item-name-size: 1.1rem;
    --item-price-size: 0.95rem;
    --item-desc-size: 0.85rem;
    --nav-size: 0.85rem;
    
    /* Dynamic Font Sizes - Splash */
    --splash-title-size: 2.5rem;
    --splash-subtitle-size: 1rem;
    --splash-btn-size: 1.1rem;
    --splash-hours-size: 0.95rem;
    
    /* Classic Modern Color Palette */
    --black: #1a1a1a;
    --dark-grey: #333333;
    --grey: #666666;
    --light-grey: #8a8d92;
    --cream: #f5f0e8;
    --stone: #555555;
    --white: #ffffff;
    
    /* Semantic Colors */
    --primary-color: var(--primary);
    --secondary-color: #333333;
    --accent-color: var(--accent);
    --background-color: var(--background);
    --card-background: #ffffff;
    --text-primary: var(--text);
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.2), rgba(26, 26, 26, 0.85));
}

.shop-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    padding-top: 40px;
    color: white;
}

.logo-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 12px;
    overflow: hidden;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 115%;
    height: 115%;
    object-fit: cover;
    transform: translateY(-5px);
}

.shop-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--shop-name-size, 2.2rem);
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    opacity: 0.9;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.contact-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-link:active {
    opacity: 0.7;
}

/* Language Switcher */
.language-switcher {
    display: none;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--splash-bg, #1a1a1a);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    padding: 20px 15px;
    max-width: 100%;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo img {
    width: 115%;
    height: 115%;
    object-fit: cover;
    transform: translateY(-5px);
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--splash-title-size, 2rem);
    color: var(--splash-title, white);
    margin-bottom: 6px;
    font-weight: 600;
}

.splash-subtitle {
    color: var(--splash-title, rgba(255, 255, 255, 0.7));
    font-size: var(--splash-subtitle-size, 0.9rem);
    margin-bottom: 25px;
}

.splash-languages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 240px;
    margin: 0 auto;
}

.splash-lang-btn {
    padding: 14px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--splash-btn-size, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.splash-lang-btn:hover,
.splash-lang-btn:active {
    background: white;
    color: #1a1a1a;
    border-color: white;
    transform: scale(1.05);
}

/* Opening Hours on Splash */
.splash-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--splash-box-bg, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    border: 1px solid var(--splash-box-border, rgba(255, 255, 255, 0.2));
    min-width: 280px;
}

.hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--splash-icon-color, #d4a574);
    flex-shrink: 0;
    display: block;
}

.hours-icon path {
    fill: currentColor;
}

.hours-label {
    color: var(--splash-label-color, rgba(255, 255, 255, 0.7));
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 50px;
}

.hours-value {
    color: var(--splash-text-color, rgba(255, 255, 255, 0.95));
    font-size: var(--splash-hours-size, 0.85rem);
    font-weight: 600;
}

/* Social Media Links on Splash */
.splash-social {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover,
.social-link.instagram:active {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
}

.social-link.tiktok {
    background: #000;
    color: white;
    border: 1px solid #333;
}

.social-link.tiktok:hover,
.social-link.tiktok:active {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Category Navigation */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    padding: 20px 16px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    margin-right: 8px;
    min-width: 75px;
    background: #454545;
    border: 1px solid #5a5a5a;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: var(--nav-size, 0.65rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #c0c0c0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: top;
}

.category-btn:hover,
.category-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.category-btn .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.category-btn .icon svg {
    width: 100%;
    height: 100%;
    fill: #e5e5e5;
    transition: all 0.3s ease;
    pointer-events: none;
}

.category-btn span {
    pointer-events: none;
}

.category-btn:hover .icon svg,
.category-btn.active .icon svg {
    fill: var(--black);
    transform: scale(1.1);
}

.category-btn .category-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.category-btn:hover .category-image,
.category-btn.active .category-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Menu Container */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px;
    padding-bottom: 70vh; /* Allow last section to scroll to top */
}

/* Menu Section */
.menu-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-grey);
}

.section-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-radius: 10px;
}

.section-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--category-size, 1.6rem);
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.5px;
}

/* Menu Items - Vertical Grid */
.menu-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .menu-items {
        grid-template-columns: 1fr;
    }
}

/* Menu Item Card - Horizontal Layout */
.menu-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--light-grey);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.menu-item:hover .item-image {
    transform: scale(1.05);
}

.item-image-container {
    position: relative;
    width: 85px;
    min-width: 85px;
    min-height: 85px;
    overflow: hidden;
    background: var(--light-grey);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    background-image: url('https://i.ibb.co/8LTkLq3h/Alley-1.png');
    background-size: 45px;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
}

.item-name {
    font-size: var(--item-name-size, 1rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-description {
    font-size: var(--item-desc-size, 0.8rem);
    color: var(--grey);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.item-price {
    font-size: var(--item-price-size, 0.8rem);
    font-weight: 600;
    color: var(--white);
    background: var(--dark-grey);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    width: fit-content;
}

/* Out of Stock Items */
.menu-item.out-of-stock {
    opacity: 0.6;
    pointer-events: none;
}

.menu-item.out-of-stock .item-image {
    filter: grayscale(100%);
}

.stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: white;
}

.modal-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8f6f3 0%, #ebe7e0 100%);
}

.modal-info {
    padding: 24px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    background: var(--black);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
}

/* Modal Variations */
.modal-variations {
    margin-top: 15px;
    width: 100%;
}

.modal-sizes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.modal-size-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    width: 100%;
}

.size-name {
    font-weight: 500;
    font-size: 1rem;
}

.size-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-addons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.addons-label {
    font-size: 0.85rem;
    color: var(--dark-grey);
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.modal-addon {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark-grey);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--black);
    color: var(--white);
    margin-top: 60px;
}

.footer p {
    font-size: 0.85rem;
    color: var(--light-grey);
    letter-spacing: 0.5px;
}

.made-with {
    margin-top: 10px;
    font-size: 0.8rem !important;
    color: var(--grey);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation for items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.5s ease forwards;
}

.menu-section:nth-child(1) .menu-item { animation-delay: 0.1s; }
.menu-section:nth-child(2) .menu-item { animation-delay: 0.2s; }
.menu-section:nth-child(3) .menu-item { animation-delay: 0.3s; }

/* RTL Support for Arabic and Kurdish */
[dir="rtl"] .category-nav {
    direction: rtl;
}

[dir="rtl"] .category-btn {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .menu-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .item-info {
    text-align: right;
    background-position: left bottom;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-info {
    text-align: right;
}

[dir="rtl"] .contact-info {
    direction: ltr;
}

/* Language Modal */
.language-modal-content {
    max-width: 360px;
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    background: #2a2a2a;
}

.language-modal-content .modal-close {
    background: #444;
    color: #fff;
}

.language-modal-body {
    padding-top: 5px;
}

.language-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.language-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lang-option-btn {
    width: 90px;
    height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border: 2px solid #444;
    background: #333;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-code {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.lang-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
}

.lang-option-btn:hover {
    border-color: #888;
    background: #444;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.lang-option-btn:hover .lang-code {
    color: #fff;
}

.lang-option-btn:hover .lang-name {
    color: #ccc;
}

.lang-option-btn.active {
    background: #fff;
    border-color: #fff;
}

.lang-option-btn.active .lang-code {
    color: #222;
}

.lang-option-btn.active .lang-name {
    color: #555;
}

/* Review Modal */
.review-modal-content {
    max-width: 400px;
    padding: 30px;
}

.review-modal-body {
    padding-top: 10px;
}

.review-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.review-modal-body .form-group {
    margin-bottom: 16px;
}

.review-modal-body label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.review-modal-body input[type="text"],
.review-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.review-modal-body input[type="text"]:focus,
.review-modal-body textarea:focus {
    outline: none;
    border-color: var(--black);
}

.review-modal-body textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.star-rating .star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #f4b400;
    transform: scale(1.1);
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-review-btn:hover {
    background: var(--dark-grey);
    transform: translateY(-2px);
}

.submit-review-btn:disabled {
    background: var(--light-grey);
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #fff;
    padding: 16px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
}

.toast-notification.error {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast-notification.success .toast-icon {
    background: #27ae60;
}

.toast-notification.error .toast-icon {
    background: rgba(255,255,255,0.2);
}

.toast-message {
    font-weight: 500;
}
