/* CSS Variables for Dark/Light Mode */
:root {
    /* Light Mode Colors */
    --primary-color: #d40000;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f3f3;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #6c757d;
    --border-color: #eee;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --overlay-bg: rgba(0, 0, 0, 0.75);
    --card-bg: #ffffff;
    --hover-bg: #f0f0f0;
    --input-bg: #f3f3f3;
    --dropdown-bg: #ffffff;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #d40000;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: #444444;
    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-medium: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(255, 255, 255, 0.15);
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --card-bg: #2d2d2d;
    --hover-bg: #404040;
    --input-bg: #3a3a3a;
    --dropdown-bg: #2d2d2d;
}

/* Global font */
html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Top Quick Links */
.top-links {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 400;
}

.top-links .list-inline-item+.list-inline-item {
    margin-left: 1.5rem;
}

.top-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-links a:hover {
    color: var(--primary-color);
}

/* Main Header */
.header-main {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.header-main .navbar-brand {
    font-size: 30px;
    font-weight: 800;
}

/* Arama Kutusu: görseldeki tam değerler */
.header-main .input-group {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.header-main .input-group .search-input {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 6px !important;
    padding: 10px 40px 10px 15px;
    box-sizing: border-box;
    outline: none;
    transition: all .3s ease;
    height: 42px;
}

.header-main .input-group .search-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.header-main .input-group .search-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    box-shadow: 0 1px 10px var(--shadow-medium), 0 3px 10px var(--shadow-medium);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.header-main .input-group .btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: transparent;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.header-main .input-group .btn .bi-search {
    color: white;
    font-size: 1.25rem;
}

/* Action Link + Icon (Giriş/Fav) */
.action-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--primary-color);
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 0.4rem;
}

.outline-icon,
.filled-icon {
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
    color: inherit;
}

.list-group-item i {
    color: var(--primary-color);
}

.filled-icon {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.action-link:hover .outline-icon {
    opacity: 0;
}

.action-link:hover .filled-icon {
    opacity: 1;
}

/* Category Navigation */
.categories-nav {
    background-color: var(--bg-primary);
    box-shadow: 0 1px 2px var(--shadow-medium);
}

/* Nav Links Container */
.nav-links-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.nav-links-container::-webkit-scrollbar {
    height: 6px;
}

.nav-links-container::-webkit-scrollbar-track {
    background: transparent;
}

.nav-links-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
    opacity: 0.7;
}

.nav-links-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

.nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.nav-links .nav-item {
    flex: 0 0 auto;
    list-style: none;
}

.categories-nav .nav-link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.categories-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.badge-yeni {
    font-size: 10px;
    background-color: #ff3f6c;
    vertical-align: text-top;
    margin-left: 4px;
    padding: 2px 4px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.circle-bolum,
.bd-bolum {
    justify-content: space-evenly;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: transform 0.2s ease-in-out;
    width: 80px;
}

.circle-item img {
    width: 100%;
    border-radius: 8px;
    border: 4px solid var(--border-color);
    object-fit: cover;
    aspect-ratio: 1/1;
}

.circle-item:hover {
    transform: scale(1.03);
    color: var(--primary-color);
}

.bd-item {
    flex: 0 0 auto;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60px;
    box-sizing: border-box;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: filter 0.2s ease-in-out;
    position: relative;
}

.bd-item:hover {
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.44));
}

.bd-item a {
    color: var(--text-primary);
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.color1 {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.color2 {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.color3 {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-primary);
}

.social-icons a {
    margin-right: 1rem;
    font-size: 1.25rem;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 14px;
    color: var(--text-muted);
}

.slider-section {
    position: relative;
}

.slider-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.slider-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.product-card {
    position: relative;
    width: 210px;
    height: 300px;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-light);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.product-card img.product-cart-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onecikan {
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(181deg, #fde9ec, #ffcfcf00);
}

.populer {
    margin: 2rem;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(181deg, #cbcbcb, #ffcfcf00);
}


.owl-stage-outer {
    padding-top: 20px;
    padding-bottom: 20px;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg) !important;
    box-shadow: 0 2px 8px var(--shadow-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1000;
}

.owl-nav .owl-prev {
    left: 15px;
}

.owl-nav .owl-next {
    right: 15px;
}

.owl-nav .owl-prev span,
.owl-nav .owl-next span {
    display: block;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover,
.owl-nav .owl-prev:focus,
.owl-nav .owl-next:focus {
    background-color: var(--hover-bg);
    outline: none;
}

.brand-grid {
    padding: 2rem 2rem;
    background-color: var(--bg-secondary);
    width: -webkit-fill-available;
}

.brand-grid .container {
    max-width: -webkit-fill-available;
    margin: 0 auto;
    text-align: center;
}

.brand-grid h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Responsive Grid */
.brand-grid-container {
    display: grid;
    gap: 1rem;
    max-width: 100%;
}

/* Responsive grid düzenlemeleri - sabit sütun sayıları */
@media (max-width: 575px) {
    .brand-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .brand-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .brand-grid-container {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .brand-grid-container {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (min-width: 1200px) {
    .brand-grid-container {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Brand Loading State */
.brand-loading {
    min-height: 300px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
}

.brand-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.brand-loading p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Brand Item */
.brand-item {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px var(--shadow-light);
    aspect-ratio: 1 / 1;
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.brand-item .brand-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
}

.brand-item .brand-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    object-position: center;
}

.brand-item .brand-card span {
    position: absolute;
    background: var(--card-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Load More Button */
#loadMoreBtn {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

#loadMoreBtn:hover {
    background-color: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

#loadMoreBtn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

#loadInfo {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Load More Button */
#load-more {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#load-more:hover {
    background-color: #b30000;
}

.justify-content-space-evenly {
    justify-content: space-evenly;
}


/* ---------- lightbox fundamentals ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: grid;
    place-items: center;
    z-index: 1050;
}

.lightbox-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.45);
    position: relative;
    transform-origin: top left;
}

.lightbox-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 1.25rem;
}

.lightbox-main {
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 1.25rem;
}

/* ---------- nav & close buttons ---------- */
.lightbox-nav,
.lightbox-close {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    user-select: none;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    opacity: 1;
}

.lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav.prev {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav.next {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* basit giriş animasyonları */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(.8)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.fadeUp {
    animation: fadeUp .6s both;
}

.zoomIn {
    animation: zoomIn .6s both;
}

.lightbox-item-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff0000);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-item-button:hover {
    background: linear-gradient(135deg, #b30000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 0, 0, 0.4);
    color: #fff;
}

.favorite-badge {
    position: absolute;
    top: -5px;
    left: -11px;
    font-size: 1.4rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* ——— Mobil için Slider Düzeltmeleri ——— */
@media (max-width: 767.98px) {

    .lightbox-content {
        width: 75%;
        max-width: 960px;
        aspect-ratio: 6 / 9;
        background: var(--card-bg);
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: 0 12px 42px rgba(0, 0, 0, 0.45);
        position: relative;
        transform-origin: top left;
    }

    /* Daire bölümü yatay kaydırılabilir */
    .circle-bolum {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tumkategori {
        display: none;
    }

    .navbar-brand {
        font-size: 14px;
    }

    .slider-section {
        width: 100% !important;
    }

    .categories-nav .container {
        padding: 0 1rem;
    }

    .nav-links-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }

    .nav-links .nav-item {
        flex: 0 0 auto;
        margin-right: 1rem;
    }

    .nav-links .nav-item:last-child {
        margin-right: 0;
    }

    .categories-nav .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0;
        font-size: 12px;
    }

    .circle-item {
        flex: 0 0 auto;
        width: 25%;
    }

    .actions-div {
        display: none !important;
    }

    .bd-bolum {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .bd-item {
        width: 100%;
    }

    .header-main .navbar-brand {
        font-size: 14px;
    }

    .header-main .input-group {
        max-width: none;
        margin: 0 0.5rem;
    }

    .owl-nav .owl-prev,
    .owl-nav .owl-next {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        top: 40%;
    }
}

@media (max-width: 575.98px) {

    /* Daha dar ekranlarda kartı tamamen yatay doldur */
    .slider-section .product-card {
        width: 100% !important;
    }

    /* Sağ-sola kaydırma rahat olsun diye nav’ı gizle */
    .owl-nav {
        display: none;
    }

    .circle-item {
        width: 33.33%;
    }

    .product-card {
        max-width: 180px;
    }

    .brand-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    /* Gereksiz linkleri gizle */
    .top-links {
        display: none;
    }
}

/* Mobil offcanvas içinde adım adım gezinme */
.offcanvas-body .list-group-item {
    cursor: pointer;
}

.offcanvas-body .list-group-item.text-primary {
    background: var(--bg-secondary);
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 991.98px) {
    .categories-nav .dropdown-menu {
        display: none !important;
        /* Mobilde dropdown değil offcanvas kullanılacak */
    }
}

@media (max-width: 767.98px) {
    /* Hide desktop search on mobile */
    .search-container {
        display: none !important;
    }
    
    /* Adjust header spacing on mobile */
    .header-main .container {
        padding: 0 15px;
    }
    
    .actions-div {
        margin-left: 10px;
    }
    
    .action-link {
        margin-left: 1rem;
        font-size: 13px;
    }
}

/* Mobile Search Styles */
.mobile-search-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-search-modal.active {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-search-form {
    flex: 1;
    margin-right: 15px;
}

.mobile-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-search-input-container:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow-medium);
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    border-radius: 25px;
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

.mobile-search-submit {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-submit:hover {
    background: #b30000;
    transform: scale(1.05);
}

.mobile-search-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mobile-search-content {
    padding: 0;
}

/* Mobile Search Results Grid */
.mobile-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.mobile-search-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-search-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-search-item-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    background: var(--bg-secondary);
}

.mobile-search-item-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.mobile-search-item-category {
    font-size: 12px;
    color: var(--text-muted);
    margin: 5px 0 0;
}

.mobile-search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.mobile-search-no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Dark mode adjustments for mobile search */
[data-theme="dark"] .mobile-search-modal {
    background: var(--bg-primary);
}

[data-theme="dark"] .mobile-search-header {
    background: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mobile-search-input-container {
    background: var(--input-bg);
}

[data-theme="dark"] .mobile-search-input-container:focus-within {
    background: var(--bg-primary);
}

[data-theme="dark"] .mobile-search-input {
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-search-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-search-item:hover {
    color: var(--text-primary);
}

/* Mobile responsiveness adjustments */
@media (max-width: 576px) {
    .mobile-search-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .mobile-search-item {
        padding: 10px;
    }
    
    .mobile-search-item-image {
        width: 50px;
        height: 50px;
    }
    
    .mobile-search-item-name {
        font-size: 13px;
    }
    
    .mobile-search-item-category {
        font-size: 11px;
    }
    
    .mobile-search-header {
        padding: 10px;
    }
    
    .mobile-search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.categories-nav .dropdown-toggle {
    color: var(--text-primary);
    font-weight: 500;
}

.categories-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px var(--shadow-medium);
    top: 100% !important;
    left: 0;
    right: 0;
    background-color: var(--dropdown-bg);
}

.categories-nav .dropdown-menu .row {
    margin: 0;
}

.categories-nav .dropdown-menu .col-md-3 {
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
    min-height: 400px;
}

.categories-nav .dropdown-menu .col-md-9 {
    padding-left: 1rem;
}

/* Ana kategori listesi (sol sütun) */
.categories-nav .dropdown-menu .list-unstyled li {
    margin-bottom: 0.5rem;
}

.categories-nav .dropdown-menu .list-unstyled li a {
    display: block;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.categories-nav .dropdown-menu .list-unstyled li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alt kategori grubu (sağ sütun) */
.categories-nav .alt-kategori-group {
    display: none;
}

.categories-nav .alt-kategori-group h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.categories-nav .alt-kategori-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-nav .alt-kategori-group ul li {
    margin-bottom: 0.5rem;
}

.categories-nav .alt-kategori-group ul li a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.categories-nav .alt-kategori-group ul li a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    max-width: none !important;
    width: 80rem !important;
    min-height: 400px;
    transform: translate(0px, 10px) !important;
}

/* Üçüncü Slider - Haftalık Markalar */
.slider-three .brand-item {
    margin: 0;
}

/* Owl Carousel için özel ayarlar */
.slider-three.owl-carousel .owl-stage-outer {
    padding: 20px;
}

.slider-three.owl-carousel .owl-item {
    padding: 0 5px;
}

.brand-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Kategori Renk Desteği */
.kategori-colored {
    position: relative;
}

.kategori-colored::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--kategori-color, #6c757d);
}

/* Medya Seçim Checkbox */
.media-item {
    position: relative;
}

.media-select-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    transform: scale(1.2);
}

.media-selected {
    border: 3px solid #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Drag & Drop Sortable */
.sortable-placeholder {
    border: 2px dashed #ccc;
    background: #f9f9f9;
    height: 50px;
    margin: 5px 0;
    border-radius: 5px;
}

.sortable-ghost {
    opacity: 0.5;
}

/* Kategori Düzenleme Modal */
.kategori-edit-modal .color-picker {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Slider Three Navigation */
.slider-three .owl-nav {
    margin-top: 20px;
}

.slider-three .owl-nav button {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    margin: 0 10px;
}

.slider-three .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.slider-three .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-three .owl-dot.active,
.slider-three .owl-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hafta {
    margin: 2rem;
    padding: 20px;
    border-radius: 10px;
}

/* Theme Toggle Button Styles */
#themeToggle {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mega Menü için grid yapısı */
.mega-menu {
    position: relative;
}

.mega-menu .dropdown-menu {
    width: 100%;
    max-width: 900px;
    min-width: 600px;
    padding: 0;
    border: none;
    box-shadow: none;
}

.mega-menu .menu-wrapper {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid #dee2e6;
    padding: 1rem;
    min-height: 300px;
}

.mega-menu .level1-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu .level1-list li {
    padding: 0.25rem 0;
}

.mega-menu .level1-list li a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.mega-menu .level1-list li a.has-color {
    padding-right: 30px;
}

.mega-menu .level1-list li a.has-color::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: inherit;
}

.mega-menu .level1-list li a:hover {
    background-color: var(--hover-bg);
    transform: translateX(2px);
    color: var(--primary-color);
}

.mega-menu .grid-container {
    flex-grow: 1;
    padding-left: 1rem;
}

.mega-menu .grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mega-menu .grid-col {
    flex: 1 1 200px;
    /* Her sütun en az 200px, gerektiğinde büyür */
    max-width: 250px;
}

.mega-menu .grid-col h6 {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    line-height: 1.2;
}

.mega-menu .alt-kategori-link {
    transition: all 0.3s ease;
    border-radius: 4px;
    display: block;
    position: relative;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    line-height: 1.2;
    overflow: visible;
}

.mega-menu .alt-kategori-link.has-color {
    padding-right: 25px;
}

.mega-menu .alt-kategori-link.has-color::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: inherit;
}

.mega-menu .alt-kategori-link:hover {
    transform: translateX(2px);
}

.mega-menu .text-dark {
    color: var(--text-primary) !important;
}
.mega-menu .grid-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu .grid-col ul li {
    padding: 0.25rem 0;
}

.mega-menu .grid-col ul li a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    line-height: 1.3;
    transition: all 0.3s ease;
    overflow: visible;
}

.mega-menu .grid-col ul li a:hover {
    background-color: var(--hover-bg);
    padding-left: 0.5rem;
    border-radius: 4px;
    text-decoration: underline;
}

/* Responsive Megamenu */
@media (max-width: 768px) {
    .mega-menu .dropdown-menu {
        min-width: 300px;
        max-width: 100vw;
    }
    
    .mega-menu .menu-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-menu .grid-col {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .mega-menu .grid-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 992px) {
    .mega-menu .grid-col {
        flex: 1 1 150px;
        max-width: 200px;
    }
    
    .mega-menu .grid-col h6 {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
    
    .mega-menu .grid-col ul li a {
        font-size: clamp(0.6rem, 2vw, 0.75rem);
    }
}

/* Placeholder metni */
.mega-menu .placeholder {
    color: #888;
    font-style: italic;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .onecikan {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .populer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hafta {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .slider-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .slider-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bd-item {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bd-item a {
    color: var(--text-primary);
}

[data-theme="dark"] .brand-item .brand-card span {
    background: var(--bg-secondary) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .categories-nav .dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .categories-nav .dropdown-menu .col-md-3 {
    border-right-color: var(--border-color);
}

[data-theme="dark"] .categories-nav .dropdown-menu .list-unstyled li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .categories-nav .dropdown-menu .list-unstyled li a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .categories-nav .alt-kategori-group h6 {
    color: var(--text-primary);
}

[data-theme="dark"] .categories-nav .alt-kategori-group ul li a {
    color: var(--text-secondary);
}

[data-theme="dark"] .categories-nav .alt-kategori-group ul li a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .badge-yeni {
    background-color: var(--primary-color);
}

[data-theme="dark"] .media-selected {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 0, 0, 0.25);
}

[data-theme="dark"] .sortable-placeholder {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
}

/* Accordion Dark Mode Styles */
[data-theme="dark"] .accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: none;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

[data-theme="dark"] .accordion-body {
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

[data-theme="dark"] .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 0, 0, 0.25);
    border-color: var(--primary-color);
}

/* Form Elements Dark Mode */
[data-theme="dark"] .form-control {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(212, 0, 0, 0.25);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #b30000;
    border-color: #b30000;
}

/* Cache buster - August 21, 2025 */

/* Bulamiom Custom Dropdown */
.bulamiom-dropdown {
    position: relative;
}

.bulamiom-toggle {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.bulamiom-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow: hidden;
}

.bulamiom-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bulamiom-menu-content {
    padding: 8px 0;
}

.bulamiom-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.bulamiom-menu-item:hover {
    background-color: var(--hover-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(3px);
}

.bulamiom-menu-item i {
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.bulamiom-menu-item:hover i {
    transform: scale(1.1);
}

.bulamiom-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 16px;
}

/* Animasyon için backdrop */
.bulamiom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bulamiom-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bulamiom-menu {
        min-width: 200px;
        right: -10px;
    }
}

/* Logo Dark/Light Mode Control */
/* Light mode: sadece light logo göster */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* Dark mode: sadece dark logo göster */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}