:root {
    --primary: #ffffff;
    --accent: #b08968;
    --nav-bg: #1a1a1a;
    /* Dark Navbar */
    --background: #f8f9fa;
    --surface: #1a1a1a;
    --text: #1a1a1a;
    --text-muted: #666666;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding-top: 0; /* Changed because navbar is now below ticker */
}

/* Duyuru Şeridi */
.announcement-bar {
    background: var(--accent); /* Dinamik kurumsal renk */
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 2000;
    font-size: 0.9rem;
    font-weight: 600;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
}

.ticker-text {
    display: flex;
    width: max-content;
    animation: ticker 50s linear infinite; /* 4 kopya olduğu için süre artırıldı ama akış seri */
    will-change: transform;
}

.ticker-text span {
    flex-shrink: 0;
    padding-right: 150px; /* Kopyalar arası net mesafe */
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); } /* 4 kopya olduğu için 1/4 oranında kaydırıyoruz */
}

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

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
    }
}

header {
    text-align: center;
    padding: 60px 30px 20px;
    background: #fff;
    color: #1a1a1a;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    header {
        max-width: 1000px;
        margin-top: 20px;
        border-radius: 40px;
    }
}

header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

header p {
    font-weight: 500;
    opacity: 0.6;
}

/* Search UI */
.search-container {
    padding: 40px 20px 10px;
    /* Boşluklar daraltıldı */
    background: #fff;
    position: relative;
    z-index: 110;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .search-container {
        max-width: 800px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        margin-bottom: 10px;
    }
}

.search-wrapper {
    position: relative;
    background: #f1f2f6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: 0.3s;
}

.search-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 14px 10px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
}

.search-clear {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    padding: 10px;
}

.search-clear.active {
    display: block;
}

/* Category Tabs */
.cat-nav-container {
    background: var(--background);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 105;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.cat-nav {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    padding: 5px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: center;
}

/* Arama yaparken ana menüyü ve kategorileri gizle */
body.search-active .cat-nav-container,
body.search-active #menuContainer {
    display: none;
}

/* Scroll desteği için eğer sığmazsa sola yanaşması */
@media (max-width: 600px) {
    .cat-nav {
        justify-content: flex-start;
    }
}

.cat-nav::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex: 0 0 auto;
    padding: 12px 20px;
    /* Boyut büyütüldü */
    background: transparent;
    color: #666;
    border-radius: 0;
    font-size: 1rem;
    /* Yazı boyutu büyütüldü */
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    scroll-snap-align: start;
    position: relative;
    box-shadow: none;
}

.cat-tab:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background: #e0e0e0;
    /* İnce çizgi */
}

.cat-tab.active {
    color: var(--accent);
    font-weight: 800;
}

.cat-tab.active::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.cat-tab.active {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Menu Grid */
.menu-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.category-section-title {
    grid-column: 1 / -1;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    padding: 30px 0 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.category-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
    /* İnce çizgi */
}

@media (min-width: 1025px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-item {
    background: #fff;
    border-radius: 30px;
    /* Daha yumuşak köşeler */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Görsel üstte, yazı altta */
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    background: #f9f9f9;
}

/* Kırık resim durumunda sakla */
img[src=""],
img:not([src]) {
    visibility: hidden;
}

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

.menu-item-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-item-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.menu-item-price {
    color: #b32d2d;
    font-weight: 800;
    font-size: 1.3rem;
}

/* No Image Product Style - Light Theme */
.menu-item.no-image {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 18px 25px;
    border-radius: 20px;
    grid-column: 1 / -1;
    border: 1px solid #f0f0f0;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    gap: 15px;
}

.menu-item.no-image .menu-item-info {
    flex: 1;
    text-align: left !important;
}

.menu-item.no-image .menu-item-title {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
    text-align: left !important;
}

.menu-item.no-image .menu-item-price {
    color: #b32d2d;
    font-weight: 800;
    font-size: 1.3rem;
    white-space: nowrap;
    text-align: right !important;
    margin-left: auto;
}

.menu-item.no-image .menu-item-desc {
    display: block !important;
    font-size: 0.85rem;
    color: #888;
    text-align: left !important;
}

/* Bottom Sheet */
.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    transform: translateX(-50%) translateY(100%);
    max-height: 90vh;
    background: #fff;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translateX(-50%) translateY(0);
}

.sheet-content {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

.sheet-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1005;
    border: none;
    transition: 0.3s;
}

.sheet-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sheet-image {
    width: 100%;
    height: 45vh;
    object-fit: cover;
}

.sheet-no-image {
    width: 100%;
    height: 35vh;
    background: #fdf5e6;
    /* Hafif bej/krem tonu */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-no-image-icon {
    font-size: 80px;
    opacity: 0.3;
}

.sheet-detail {
    padding: 30px 25px;
}

.sheet-title {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.sheet-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sheet-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}





/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Social Buttons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 0;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent); /* Sosyal butonlar artık dükkan renginde */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--accent);
}

/* New Logo Navbar */
.shop-navbar {
    width: 100%;
    height: 60px;
    background: var(--nav-bg);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-wrapper {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.shop-logo-circle {
    width: 140px; /* Büyük ve dairesel */
    height: 140px;
    background: #fff;
    border-radius: 50%; /* Tekrar yuvarlak yapıldı */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border: 4px solid #fff;
    position: relative;
}

.shop-logo-circle::before {
    content: '☕';
    /* Varsayılan logo ikonu */
    font-size: 24px;
    position: absolute;
    z-index: 1;
}

.shop-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: #fff;
    /* Arka planı kapatmak için */
}

@media (max-width: 768px) {
    .shop-logo-circle {
        width: 100px;
        height: 100px;
    }
}

/* Shop Footer */
.shop-footer {
    background: #111;
    color: #fff;
    padding: 50px 20px 40px;
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.footer-logo-circle {
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.footer-logo-circle::before {
    content: '☕';
    font-size: 20px;
    position: absolute;
    z-index: 1;
}

.footer-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: #fff;
    filter: grayscale(100%) brightness(1.1);
    opacity: 0.6;
    transition: 0.3s;
}

.footer-logo-circle img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-address {
    font-size: 0.85rem;
    color: #ccc;
    max-width: 300px;
    margin: 0 auto 15px;
    line-height: 1.5;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 20px;
}