/* =============================================== */
/*                 GENEL STİLLER                   */
/* =============================================== */
body {
    /* Bu değerler <head> içindeki <style> etiketinden dinamik olarak gelecek */
    background-color: var(--bg-color, #ffffff); 
    color: var(--text-color, #212529); 
    font-family: var(--font-family, 'Roboto', sans-serif); 
    transition: background-color 0.3s, color 0.3s;
}

/* =============================================== */
/*            HEADER & NAVİGASYON                  */
/* =============================================== */
.header, header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 1030;
}
.header-nav { flex: 1; text-align: left; }
.header-nav:last-child { text-align: right; }
.header-center { flex-shrink: 0; }
header .logo { max-height: 50px; margin-bottom: 0 !important; }
header .business-name { font-size: 1rem; color: var(--text-color); font-weight: 700;}

.logo {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
}

.business-name {
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.controls .form-select-sm {
    font-size: 0.8rem;
    padding: .25rem 1.25rem .25rem .75rem;
    border-radius: 20px;
    border: 1px solid #ced4da;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-position: right 0.5rem center;
    margin: 0 5px;
    cursor: pointer;
}
.btn-group .btn.active { 
    background-color: var(--primary-color); 
    color: white; 
    border-color: var(--primary-color);
}
.btn-group .btn {
    border-color: #ced4da;
}

/* =============================================== */
/*          DUYURU, ÖNE ÇIKANLAR VE KATEGORİ       */
/* =============================================== */
.announcement-box {
    background-color: rgba(0, 200, 150, 0.15);
    color: #00695c;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.announcement-box .icon-box {
    background-color: rgba(0, 200, 150, 0.25);
    color: #00695c;
    padding: 0.8rem;
    border-radius: 10px;
    margin-right: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* YENİ: Öne Çıkanlar Bölümü Stilleri */
.featured-section .featured-title {
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.featured-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.featured-scroll::-webkit-scrollbar {
    display: none;
}
.featured-card {
    flex: 0 0 160px; /* Kartların genişliği sabit olsun, küçülmesin */
    width: 160px;
}
.featured-card a {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease-in-out;
}
.featured-card a:hover {
    transform: translateY(-5px);
}
.featured-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}
.featured-card-body h6 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Uzun isimler için ... koyar */
    margin-bottom: 0.1rem;
}
.featured-card-body .text-muted {
    font-size: 0.85rem;
    color: var(--text-color) !important;
    opacity: 0.7;
}

/* KART GÖRÜNÜMÜ (Izgara) */
.category-card {
    border: none;
    border-radius: 0.75rem;
    transition: all .2s ease-in-out;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}
.category-card .card-img { height: 180px; object-fit: cover; }
.category-card .card-img-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem; text-align:center; }
.category-card .card-title { color: white; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }


/* LİSTE GÖRÜNÜMÜ (Kategori) */
.category-list-item {
    display: flex; align-items: center; 
    background-color: #fff;
    border-radius: 0.75rem; padding: 1rem; text-decoration: none;
    color: var(--text-color); margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease-in-out, background-color 0.3s;
}
.category-list-item:hover { transform: translateY(-3px); filter: brightness(97%); }
.category-list-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 0.5rem; margin-right: 1.5rem; }
.category-list-item .category-name { font-size: 1.2rem; font-weight: 600; }

/* Tema Renkleri */
body[data-theme='custom'] .category-list-item,
body[data-theme='custom'] .category-card {
    background-color: #fff; /* Açık renk temada kartlar her zaman beyaz kalsın */
}

.category-box,
.card,
.item-box,
.category-list-item {
  background-color: var(--list-item-bg-color) !important;
}

.cart-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.2s ease-out, background-color 0.2s;
}

.cart-fab:hover {
    color: white;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--bg-color, white);
}