@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== EKMEK VE ARASI ARTISANAL & FRESH DESIGN SYSTEM ===== */
:root {
    --primary: #B23B1E;      /* Roasted Rust Terracotta */
    --primary-hover: #962E15;
    --primary-light: rgba(178, 59, 30, 0.06);
    --primary-glow: rgba(178, 59, 30, 0.15);
    
    --secondary: #2B4C3F;    /* Forest Sage Green */
    --secondary-hover: #1F382E;
    --secondary-light: rgba(43, 76, 63, 0.08);
    
    /* Warm Oatmeal Theme Colors */
    --bg-main: #F6F3EE;       /* Warm Latte Oatmeal */
    --bg-surface: #FFFFFF;    /* Pure White containers */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FBF9F6;
    
    --text-primary: #1C1E1D;   /* Dark Earthy Charcoal */
    --text-secondary: #5C6260; /* Muted Slate */
    --text-muted: #8E9693;
    
    --border: #E8E3DA;        /* Light Cream/Oatmeal borders */
    --border-hover: #D9D2C4;
    
    --nav-bg: rgba(246, 243, 238, 0.85);
    --footer-bg: #EAE5DC;
    --mobile-menu-bg: #F6F3EE;
    --input-bg: #FCFBF9;
    --input-border: #E8E3DA;
    --card-shadow: 0 10px 30px rgba(43, 76, 63, 0.04);
    --hover-shadow: 0 20px 45px rgba(178, 59, 30, 0.08);
    --glass-blur: 16px;
}

body.dark-mode {
    /* Keep warm oatmeal palette for dark-mode too since it's an organic restaurant layout */
    /* If the user specifically selects dark mode, we just invert slightly to a warm dark tone */
    --bg-main: #141615;
    --bg-surface: #1C1F1E;
    --bg-card: #1C1F1E;
    --bg-card-hover: #222625;
    --text-primary: #F3F4F3;
    --text-secondary: #A3ACA8;
    --text-muted: #727D79;
    --border: #2C3330;
    --border-hover: #3D4743;
    --nav-bg: rgba(20, 22, 21, 0.85);
    --footer-bg: #111312;
    --mobile-menu-bg: #1C1F1E;
    --input-bg: #222625;
    --input-border: #2C3330;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Translucent Glass Navbar */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Custom Navbar links */
.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--text-primary) !important;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    background-color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary) !important;
}

/* Category Selection Pills - Artisanal Style */
.menu-category-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: 99px !important;
}

.menu-category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.menu-category-btn.active {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 15px rgba(43, 76, 63, 0.25);
}

.menu-category-btn.active img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

/* Gourmet Product Card - Asymmetrical corners and warm outline details */
.menu-item-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px 8px 24px 8px !important;
    padding: 18px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.menu-item-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--hover-shadow) !important;
    background-color: var(--bg-card-hover) !important;
}

.menu-item-card img {
    border-radius: 18px 6px 18px 6px !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item-card:hover img {
    transform: scale(1.05) rotate(0.5deg);
}

/* Favorite Button */
.fav-btn {
    border: 1px solid var(--border) !important;
    background-color: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border-radius: 10px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fav-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: var(--primary-light) !important;
}

.fav-btn.is-favorite {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Testimonials / Review Cards */
.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px 8px 24px 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 320px;
    margin: 0 12px;
}

.review-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: infiniteScroll 45s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* Gallery hover overlay styles */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 24px 8px 24px 8px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 76, 63, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay i {
    color: #FFFFFF;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox overlay modal */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(28, 30, 29, 0.95);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shopping Cart Drawer */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    z-index: 150;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 45px rgba(43, 76, 63, 0.08);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

#cart-drawer.active {
    transform: translateX(0);
}

#cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    background-color: rgba(28, 30, 29, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Quantity controls in cart drawer */
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Payment and delivery option pills */
.payment-option-btn, .delivery-option-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-option-btn:hover, .delivery-option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.payment-option-btn.active, .delivery-option-btn.active {
    border-color: var(--secondary);
    background-color: var(--secondary-light) !important;
    color: var(--secondary) !important;
}

/* Centered Modal Backdrop & Content */
#product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(28, 30, 29, 0.45);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

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

#modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 32px 12px 32px 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(43, 76, 63, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-content.translate-y-full {
    transform: translateY(80px);
    opacity: 0;
}

/* Close button inside modal */
.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-close-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
}

/* Ingredient checkboxes */
.ingredient-item {
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    border-radius: 10px !important;
    user-select: none;
}

.ingredient-item:has(input:checked) {
    background-color: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.ingredient-item:has(input:checked) span {
    color: var(--primary) !important;
}

/* Mobile Sticky Bar layout */
.mobile-sticky-bar {
    border-top: 1px solid var(--border);
    background-color: var(--bg-surface);
    box-shadow: 0 -8px 25px rgba(43, 76, 63, 0.05);
}

/* Base inputs and dropdown styling */
input, textarea, select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 12px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(43, 76, 63, 0.1);
}

.text-gradient-artisanal {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Menu Layout */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: var(--mobile-menu-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active {
    transform: translateY(0);
}
