/* 
  Konyalim Inspired - Elegant Dark Restaurant Theme 
  Colors: Dark Slate Grey, Orange Accent
*/

:root {
    --bg-color: #ffffff; /* Page bg is mostly white, but sections have dark bg */
    --dark-bg: #222831;
    --darker-bg: #1a1e24;
    --text-primary: #333333;
    --text-light: #ffffff;
    --text-secondary: #86868b;
    --primary-color: #ffb703; /* Orange/Yellow Accent */
    --primary-hover: #e0a100;
    --border-color: #e5e5ea;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-cursive: 'Dancing Script', cursive;
    --font-main: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

input, button, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 150px; /* Sabit üst menünün altinda kalmamasi için offset */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    background: rgba(15, 17, 21, 0.92);
    border-bottom: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1002;
    padding: 16px 0;
    color: var(--text-light);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
}

.brand-title {
    font-family: var(--font-cursive);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-top: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cart-trigger {
    display: none; /* Hide top cart trigger globally since we use bottom bar */
}

.badge {
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: var(--dark-bg);
    padding: 130px 0 80px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 500px;
}

.hero h1 {
    font-family: var(--font-cursive);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50px 10px 50px 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid var(--primary-color);
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Offers Section */
.offer-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: -50px auto 60px;
    position: relative;
    z-index: 10;
}

.offer-card {
    background: var(--dark-bg);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
    gap: 20px;
    color: var(--text-light);
}

.offer-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.offer-details h3 {
    font-family: var(--font-cursive);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.offer-details h4 {
    font-size: 1.1rem;
    font-weight: 400;
}

.offer-details h4 span {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 5px;
}

/* Menu Section */
.section-title {
    font-family: var(--font-cursive);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark-bg);
}

.filters-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    list-style: none;
}

.filters-menu li {
    padding: 8px 24px;
    border-radius: 30px;
    background: var(--dark-bg);
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filters-menu li.active, .filters-menu li:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 30px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 50px; /* The specific curved edge */
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 0.9rem;
    color: #bbbbbb;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Add to Cart button inside card */
.add-to-cart-btn {
    background: var(--primary-color);
    color: #111;
    border: none;
    padding: 8px 20px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255,179,71,0.25);
    transition: all 0.3s ease;
}
.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,179,71,0.4);
    background: var(--primary-hover);
    color: #111;
}

/* About Section */
.about-section {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-img {
    height: 500px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.about-text h2 {
    font-family: var(--font-cursive);
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-light);
}

.about-text p {
    font-size: 1.05rem;
    color: #cccccc;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    outline: none;
}
.contact-form .form-input:focus {
    border-color: var(--primary-color);
}

.map-box {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-family: var(--font-cursive);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Cart Sidebar (Offcanvas) */
.cart-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100%;
    padding-top: 85px; /* PC Navbar height */
    padding-bottom: 65px; /* Bottom bar height */
    right: -400px;
    width: 100%;
    max-width: 400px;
    background: var(--dark-bg);
    color: var(--text-light);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-header h3::before {
    content: "🛒";
    font-size: 1.6rem;
}

.close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: all 0.3s ease;
}
.close-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-item-price {
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--primary-color); color: var(--text-primary); }

.cart-footer {
    padding: 24px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}
.cart-total strong {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 800;
}

.checkout-form .form-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: white;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.checkout-form textarea.form-input { 
    resize: vertical; 
    min-height: 80px;
}
.checkout-form .form-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 179, 71, 0.15);
}

.checkout-form .btn-block {
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
}
.checkout-form .btn-block::before {
    content: "📱";
    font-size: 1.3rem;
}
.checkout-form .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* Bottom Bar (Global for PC & Mobile like APK) */
.mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.92);
    border-top: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1002;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
    padding: 12px 0;
    justify-content: space-around;
    align-items: center;
}
.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #eeeeee;
    font-size: 0.8rem;
    gap: 6px;
    cursor: pointer;
    padding: 12px 10px; /* Increased padding for better touch target */
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
}
.bottom-bar-item.active, .bottom-bar-item:hover { color: var(--text-light); }
.bottom-bar-item .icon { font-size: 1.3rem; line-height: 1; }
.bottom-bar-item.cart-trigger-mobile { color: var(--primary-color); font-weight: 700; position: relative; }
.bottom-bar-item.cart-trigger-mobile .badge { 
    position: absolute; top: -5px; right: -5px;
    background: white; color: var(--dark-bg); font-size: 0.7rem; border-radius: 50%; width: 18px; height: 18px; display: flex; justify-content: center; align-items: center; 
}
.show-on-mobile-only { display: none !important; }

/* Body */
body { padding-bottom: 0; }

/* Product Detail Page Layout */
.product-page { padding: 120px 0 60px; }
.product-detail-grid { align-items: flex-start; }
.product-detail-img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); height: 500px; background-size: cover; background-position: center; }
.product-breadcrumb { color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.product-detail-text h1 { font-family: var(--font-cursive); font-size: 4rem; color: var(--dark-bg); margin-bottom: 20px; }
.product-detail-price { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 30px; }
.product-detail-desc { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 40px; }
.add-to-cart-btn-large { 
    padding: 18px 45px; 
    font-size: 1.25rem; 
    font-weight: 800;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.4);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}
.add-to-cart-btn-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 179, 71, 0.6);
    color: #111;
}
.product-features { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.product-features h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.product-features ul { list-style: none; color: #aaa; line-height: 1.6; }
.product-features ul li span { color: var(--primary-color); margin-right: 8px; }

/* Floating WhatsApp */
.floating-wa-btn { width: auto; height: auto; }

/* Footer */
.footer h3 { color: #aaa; }

/* Offers */
.offer-details h3 { color: #cccccc; }
.offer-details h4 { color: #cccccc; }

/* Route Buttons */
.route-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; }
.route-btn:hover { transform: translateY(-2px); }
.route-btn-google { background-color: #1a73e8; color: #ffffff; box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); }
.route-btn-yandex { background-color: #FFCC00; color: #000000; box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3); }

/* Kapalı Dükkan (Shop Closed) Stilleri */
.shop-closed .add-to-cart-btn,
.shop-closed .add-to-cart-btn-large,
.shop-closed .cart-trigger,
.shop-closed .cart-trigger-mobile,
.shop-closed .mobile-bottom-bar,
.shop-closed #checkoutBtn {
    display: none !important;
    pointer-events: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    /* Navbar & Mobile Menu */
    .navbar { padding: 8px 0; border-bottom: 2px solid var(--primary-color); }
    .navbar.scrolled { padding: 5px 0; }
    .navbar .container { flex-direction: column; justify-content: center; gap: 6px; position: static; }
    
    .brand { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
    .brand-title { font-size: 1.5rem; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(255,179,71,0.2); line-height: 1.1; }
    .brand-subtitle { font-size: 0.6rem; letter-spacing: 2px; margin-top: 0; }
    
    .nav-links { 
        width: 100%; 
        justify-content: center; 
        flex-wrap: wrap;
        gap: 6px 10px; 
        background: rgba(255, 255, 255, 0.05); 
        padding: 8px 12px; 
        border-radius: 12px; 
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        margin-top: 2px;
    }
    .nav-links a { font-size: 0.85rem; white-space: nowrap; font-weight: 500; }
    .nav-links a.active { color: var(--primary-color); text-shadow: 0 0 8px rgba(255,179,71,0.4); }
    
    .show-on-mobile-only { display: flex !important; }
    
    body { padding-bottom: 85px; } /* Alt barin icerigi kapatmamasi icin */
    
    .cart-sidebar { top: 0; bottom: 0; padding-top: 130px; padding-bottom: 65px; }

    /* Hero */
    .hero { padding-top: 135px; text-align: center; padding-bottom: 40px; }
    .hero .container { flex-direction: column; }
    .hero h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 12px; }
    .hero p { font-size: 0.9rem; margin-bottom: 16px; line-height: 1.4; }
    .hero .btn { padding: 10px 20px; font-size: 0.85rem; }
    .hero-img { position: relative; right: 0; width: 100%; max-width: 280px; height: 190px; transform: none; margin: 25px auto 0; border-radius: 30px 10px 30px 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); object-fit: cover; }
    
    /* Layout */
    .section-title { font-size: 2rem; margin-bottom: 24px; }
    .about-text h2 { font-size: 2rem; }
    .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-img { height: 200px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 120px; }
    .product-info { padding: 16px 12px 12px; border-top-left-radius: 25px; margin-top: -15px; }
    .product-title { font-size: 0.9rem; margin-bottom: 6px; line-height: 1.2; }
    .product-desc { font-size: 0.75rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .product-price { font-size: 1rem; }
    .add-to-cart-btn { padding: 10px 0; width: 100%; text-align: center; font-size: 0.9rem; border-radius: 10px; }
    
    /* Offers */
    .offer-section { margin-top: -30px; grid-template-columns: 1fr; gap: 20px; }
    .offer-card { padding: 16px; gap: 16px; }
    .offer-image { width: 80px; height: 80px; }
    .offer-details h5 { font-size: 1.3rem; }
    
    /* Filters */
    .filters-menu { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
    .filters-menu li { padding: 6px 14px; font-size: 0.85rem; }

    /* Product Detail Page Mobile */
    .product-page { padding: 180px 0 40px; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-detail-img { height: 250px; border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .product-detail-text h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .product-detail-price { font-size: 2rem; margin-bottom: 20px; }
    .product-detail-desc { font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }
    .add-to-cart-btn-large { width: 100%; text-align: center; padding: 16px 20px; font-size: 1.1rem; }
    .product-features { margin-top: 30px; padding-top: 20px; }
}
