:root {
    --primary: #3d2b1f;
    --primary-dark: #1a120b;
    --secondary: #f5f5dc;
    --accent: #d4af37;
    --accent-hover: #b8962e;
    --text-dark: #2c1e14;
    --text-light: #8b735b;
    --bg-light: #faf7f2;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Banner */
.header-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.restaurant-info {
    text-align: center;
    margin-top: -50px;
    padding: 0 20px;
}

.logo-wrapper {
    width: 110px;
    height: 110px;
    background: #000;
    border-radius: 50%;
    margin: -55px auto 15px;
    position: relative;
    border: 3px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.restaurant-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.restaurant-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Search Bar */
.search-container {
    padding: 0 20px;
    margin-bottom: 25px;
}

.search-box {
    background: var(--white);
    border-radius: 15px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.search-box i {
    color: var(--text-light);
    margin-right: 12px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

/* Category Slider */
.category-nav {
    position: relative; /* Yapışkanlık kaldırıldı */
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 10px;
    border-bottom: 2px solid var(--accent);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
}

.category-item {
    width: calc(14.28% - 8px) !important;
    min-width: 140px;
    height: 100px;
    padding: 10px !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.category-item i {
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1;
}

.category-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.category-item.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 43, 31, 0.2);
}

.category-item.active i {
    color: var(--white);
}

@media (max-width: 1200px) {
    .category-item { width: calc(20% - 8px) !important; }
}

@media (max-width: 992px) {
    .category-item { width: calc(25% - 8px) !important; min-width: 110px; height: 90px; font-size: 0.75rem; }
}

@media (max-width: 576px) {
    .category-item { width: calc(33.33% - 8px) !important; min-width: 90px; height: 85px; font-size: 0.7rem; }
}

.category-item.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 43, 31, 0.2);
}

/* Product Section */
.menu-section {
    padding: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin-left: 15px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #b0a090;
    margin-right: 5px;
}

/* Badges */
.badge-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

.badge-item {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.bg-hot { background: #ff4757; color: white; }
.bg-vegan { background: #2ed573; color: white; }
.bg-new { background: #3742fa; color: white; }

/* Floating Action Button */
.fab-container {
    position:固定; /* will be fixed in js or standard css */
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(61, 43, 31, 0.4);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.fab-btn.whatsapp { background: #25d366; }
.fab-btn:active { transform: scale(0.9); }

/* Modal Styles */
.modal-product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0 0 30px 30px;
}

.detail-body {
    padding: 25px;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
}

.detail-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.detail-info-box {
    background: #fdfaf5;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.info-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
    display: block;
}

/* Footer */
footer {
    padding: 40px 20px 100px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    margin-top: 50px;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}
