﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
}

.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.85rem 0;
    z-index: 1000;
}

.company-logo {
    max-height: 80px;
    object-fit: contain;
}

.category-card {
    transition: transform 0.2s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

    .category-card:hover {
        transform: translateY(-5px);
    }

.category-image {
    height: 200px;
    object-fit: cover;
}

.product-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.product-image {
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.price-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.subcategory-tab {
    border: none !important;
    color: var(--primary-color) !important;
}

    .subcategory-tab.active {
        border-bottom: 3px solid var(--accent-color) !important;
        font-weight: bold;
    }

.heweso-credit a {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .heweso-credit a:hover {
        opacity: 1;
    }

.category-nav {
    z-index: 999;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

.category-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .category-nav .row {
        flex-wrap: nowrap !important;
        margin-right: 0;
        margin-left: 0;
        padding: 0.5rem;
        width: 100%;
        min-width: max-content;
    }

    .category-nav .col-auto {
        padding: 0 0.5rem;
        flex-shrink: 0;
    }

.category-link {
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 0.5rem 0.5rem;
    position: relative;
    flex-shrink: 0;
}

    .category-link.active {
        color: var(--accent-color);
        font-weight: 500;
    }

        .category-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }

    .category-link:hover {
        color: var(--accent-color);
        transform: translateY(-2px);
    }

.category-image-wrapper {
    height: 60px;
    border-radius: 5%;
    overflow: hidden;
    margin: 0 auto;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

main.container {
    padding-top: 200px;
}

.product-card {

    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3436;
    margin: 0;
}

.product-description {
    font-size: 0.9rem;
    color: #636e72;
    margin: 0;
}

.product-price {
	display:none;
    font-weight: 500;
    color: #e17055;
    font-size: 1rem;
}

.product-image-container {
    margin-left: 1rem;
    flex-shrink: 0;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-body img {
    border-radius: 0;
}

.object-fit-cover {
    object-fit: cover;
}

#productDetailModal .btn-close {
    z-index: 1;
    background-color: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-container {
    font-weight: 500;
}

#welcomePopup .modal-dialog {
    max-width: fit-content;
    margin: 0 auto;
    width: auto;
}

#welcomePopup .modal-content {
    background: transparent;
    width: fit-content;
    margin: 1.75rem auto;
}

#welcomePopup .modal-body {
    line-height: 0;
    padding: 0;
    width: fit-content;
}

#welcomePopup img {
    max-width: 100%;
    height: auto;
    display: block;
}

#welcomePopup .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 9999;
    background-color: white;
    opacity: 1;
    padding: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    #welcomePopup .btn-close:hover {
        background-color: #f8f9fa;
    }

    #welcomePopup .btn-close:focus {
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
.swiper {
    width: 100%;
    padding: 10px 0;
}

.swiper-slide {
    width: auto !important;
    text-align: center;
}



@media (max-width: 768px) {
    .branch-header h1 {
        font-size: 1.6rem;
    }

    .branch-card .card-body {
        padding: 20px 10px;
    }
}

/* --- DARK MODE OVERRIDES --- */
html[data-bs-theme="dark"] {
    background-color: #23272b;
    color: #f1f1f1;
}
html[data-bs-theme="dark"] .category-link {
    color: #e0e0e0;
}
html[data-bs-theme="dark"] .category-link.active {
    color: var(--accent-color);
}
html[data-bs-theme="dark"] .category-link.active::after {
    background-color: var(--accent-color);
}
html[data-bs-theme="dark"] .category-link:hover {
    color: var(--accent-color);
}
html[data-bs-theme="dark"] .heweso-credit a,
html[data-bs-theme="dark"] .heweso-credit a:visited {
    color: #e0e0e0 !important;
    opacity: 0.8;
}
html[data-bs-theme="dark"] .heweso-credit a:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}
html[data-bs-theme="dark"] .footer {
    background: #181a1b;
    color: #e0e0e0;
}
html[data-bs-theme="dark"] .product-title {
    color: #f1f1f1;
}
html[data-bs-theme="dark"] .product-description {
    color: #b8b8b8;
}
html[data-bs-theme="dark"] .nav-tabs {
    background: #23272b;
    border-bottom: 1px solid #444;
}
html[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #e0e0e0;
    border: none;
}
html[data-bs-theme="dark"] .nav-tabs .nav-link.active,
html[data-bs-theme="dark"] .subcategory-tab.active {
    color: var(--accent-color) !important;
    background: #181a1b;
    border: none;
    border-bottom: 3px solid var(--accent-color) !important;
    font-weight: bold;
}
html[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: var(--accent-color);
    background: #23272b;
}
html[data-bs-theme="dark"] .subcategory-tab {
    color: #e0e0e0 !important;
    background: transparent !important;
}
html[data-bs-theme="dark"] .category-nav {
    background: #23272b;
}
html[data-bs-theme="dark"] .product-card {
    background: #24282c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1px solid #292d32;
}

/* --- THEME SWITCH --- */
.theme-switch {
    background: none;
    border: none;
    padding: 0;
    width: 80px;
    height: 38px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.switch-track {
    position: relative;
    width: 80px;
    height: 38px;
    background: #ff9800;
    border-radius: 19px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}
.switch-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    z-index: 2;
    color: #fff;
    pointer-events: none;
    transition: opacity 0.3s;
}
.switch-icon-moon {
    left: 10px;
    opacity: 0;
}
.switch-icon-sun {
    right: 10px;
    opacity: 1;
}
.switch-thumb {
    position: absolute;
    left: 4px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: left 0.3s, background 0.3s;
    z-index: 3;
}
html[data-bs-theme="dark"] .switch-track {
    background: #181818;
}
html[data-bs-theme="dark"] .switch-icon-moon {
    opacity: 1;
}
html[data-bs-theme="dark"] .switch-icon-sun {
    opacity: 0;
}
html[data-bs-theme="dark"] .switch-thumb {
    left: 50px;
    background: #fff;
}
/* Eski toggle butonunu gizle (geri dönüş için) */
#theme-toggle-btn:not(.theme-switch) { display: none !important; }

/* Switch icon SVG'leri için her zaman beyaz renk */
.switch-icon svg {
    color: #fff;
    fill: #fff;
    width: 1.3rem;
    height: 1.3rem;
    display: block;
}

/* Toggle (theme-switch) için mevcut kodlar korunacak, sadece ikonlar için override ekleniyor */
html[data-bs-theme="dark"] .switch-icon svg {
    color: #fff;
    fill: #fff;
}

/* Branch Menu Styles */
.branch-header {
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.branch-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.branch-header p {
    color: #666;
    font-size: 1.2rem;
}

.branch-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 32px;
    background: #fff;
}

    .branch-card:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    }

html[data-bs-theme="dark"] .branch-card {
    background: #24282c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1px solid #292d32;
}

.branch-card .card-body {
    text-align: center;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.branch-card .branch-logo {
    max-height: 100px;
    margin-bottom: 18px;
    object-fit: contain;
}

.branch-card .placeholder-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
    background: #f3f3f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 2.5rem;
}

.branch-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.branch-card .btn-menu {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.08rem;
    font-weight: 500;
    border-radius: 8px;
    background: #1a73e8;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(26,115,232,0.08);
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    margin-top: 10px;
    margin-bottom: 0;
    outline: none;
    text-decoration: none;
    letter-spacing: 0.2px;
}

    .branch-card .btn-menu:hover,
    .branch-card .btn-menu:focus {
        background: #1558b0;
        color: #fff;
        box-shadow: 0 4px 16px rgba(26,115,232,0.13);
        transform: translateY(-2px) scale(1.01);
        text-decoration: none;
    }
/* Branch Menu End */