:root {
    /* Warm Coffee / Elegance Palette */
    --bg-color: #FAF4EB; /* Soft cream */
    --primary-color: #3C2A21; /* Dark roast coffee */
    --accent-color: #C19A6B; /* Camel / Caramel var */
    --card-bg: #FFFFFF;
    --text-color: #4A3B32;
    --text-light: #8C7B6D;
    --shadow: 0 4px 15px rgba(60, 42, 33, 0.05);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    /* Pürüzsüz kaydırma momentumu iOS için */
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Mobile Hero Header */
.hero {
    height: 30vh; /* Daha az yer kaplasın mobilde */
    min-height: 200px;
    background: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&q=80&w=600&h=400') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(60,42,33,0.2), rgba(60,42,33,0.7));
    z-index: 1;
}

.glass-overlay {
    position: relative;
    z-index: 2;
    background: rgba(250, 244, 235, 0.95);
    backdrop-filter: blur(8px);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 85%;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.hero p {
    font-size: 0.95rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.stars {
    margin-top: 8px;
    color: var(--accent-color);
    font-size: 0.7rem;
    gap: 4px;
    display: flex;
    justify-content: center;
}

.menu-container {
    width: 100%;
    margin: -20px auto 40px;
    position: relative;
    z-index: 10;
    padding: 0 10px;
    max-width: 600px; /* Tablet için maksimum sınır */
}

/* Category Navigation - Mobile Sticky Tab Bar */
.category-nav {
    background: rgba(250, 244, 235, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 8px 5px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow-x: auto;
    position: sticky;
    top: 5px;
    z-index: 100;
    border: 1px solid rgba(193, 154, 107, 0.1);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

#category-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.cat-item {
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    user-select: none;
}

.cat-item.active {
    background: var(--primary-color);
    color: #FAF4EB;
    box-shadow: 0 4px 10px rgba(60, 42, 33, 0.3);
}

/* Products Section */
.category-section {
    display: none;
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.category-section.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title span {
    background: var(--bg-color);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 1px;
    background: var(--accent-color);
    top: 50%;
    left: 15%;
    z-index: 1;
    opacity: 0.3;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Mobilde sıkı listeleme */
}

/* Mobile Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
}

.product-card:active {
    background-color: #F8F5F2; /* Dokunma efekti */
}

.product-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title-row {
    display: flex;
    flex-direction: column; /* Mobilde Başlık altına fiyati atar */
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 5px;
}

.product-title-row h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 3px;
}

.price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

.desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 300;
}

/* Mobilde resim kare ve kucuk */
.product-img-wrapper {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-msg {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    background: #EBE5DB;
    margin-top: 30px;
    padding-bottom: 50px; /* Altta scroll boslugu */
}

.admin-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.03);
    padding: 8px 15px;
    border-radius: 20px;
}
.admin-link:active {
    background: rgba(0,0,0,0.08);
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------
   Admin Panel Styles (Tablette/PC'de kolaylık)
--------------------------------------*/
.admin-login {
    max-width: 90%;
    width: 400px;
    margin: 60px auto;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.admin-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px 15px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.admin-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EBE5DB;
}
@media(min-width: 600px) {
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
    }
}
.admin-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media(min-width: 800px) {
    .admin-grid { grid-template-columns: 300px 1fr; }
}

.card {
    background: #FAF6F0;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #EBE5DB;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1C7BD;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    background: white;
}
.btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn.full {
    width: 100%;
}

.btn-danger {
    background: #E07A5F;
}

.admin-list {
    list-style: none;
}
.admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border: 1px solid #EBE5DB;
}

.admin-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-product-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #EBE5DB;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    gap: 15px;
}
.admin-prod-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f4efea;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-img {
    font-size: 0.75rem;
    color: #a3968c;
}
.admin-prod-details {
    flex-grow: 1;
    min-width: 0;
}
.admin-prod-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-prod-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.admin-prod-cat {
    background: #f4efea;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
}
.admin-prod-price {
    font-weight: 600;
    color: var(--accent-color);
}
.admin-prod-actions {
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .admin-product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .admin-prod-img {
        width: 100%;
        height: 150px;
    }
    .admin-prod-details {
        text-align: center;
    }
    .admin-prod-meta {
        justify-content: center;
    }
    .admin-prod-actions button {
        width: 100%;
    }
}
.alert {
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
