/* ============ RESET & GLOBAL ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0056a4;
    outline-offset: 2px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* İçerik geniş (1320px) olduğu için sadece daha büyük ekranlarda kenarlarda
   yer var — dar ekranda/tablette/mobilde çakışmasın diye gizli tutulur. */
.side-ad {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 50;
}

.side-ad img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.side-ad-left { left: max(12px, calc(50% - 660px - 176px)); }
.side-ad-right { right: max(12px, calc(50% - 660px - 176px)); }

@media (min-width: 1660px) {
    .side-ad { display: block; }
}

/* ============ ÜST BANNER ============ */
.top-banner {
    background: #ec1c29;
    color: #fff;
    text-align: center;
    padding: 7px 0;
    font-size: 13px;
}

.top-banner p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top-banner i {
    font-size: 15px;
}

/* ============ ÜST BAR ============ */
.top-bar {
    background: #003d7a;
    color: #b8d4f0;
    font-size: 12px;
    padding: 5px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    gap: 18px;
}

.top-bar a {
    color: #b8d4f0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #fff;
}

/* ============ ANA HEADER ============ */
.main-header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-bizim {
    color: #ec1c29;
}

.logo-toptan {
    color: #0056a4;
}

/* Teslimat Seçenekleri */
.delivery-options {
    display: flex;
    gap: 6px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    white-space: nowrap;
    background: #fff;
}

.delivery-option i {
    font-size: 20px;
    color: #999;
}

.delivery-option strong {
    display: block;
    font-size: 12px;
    color: #333;
}

.delivery-option span {
    color: #888;
    font-size: 10px;
}

.delivery-option.active {
    border-color: #0056a4;
    background: #edf4fc;
}

.delivery-option.active i {
    color: #0056a4;
}

.delivery-option:hover {
    border-color: #0056a4;
}

/* Arama */
.search-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 560px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: #0056a4;
    box-shadow: 0 0 0 3px rgba(0, 86, 164, 0.1);
}

.search-bar input {
    width: 100%;
    padding: 12px 6px 12px 20px;
    border: none;
    border-radius: 999px 0 0 999px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-bar button {
    width: 42px;
    height: 42px;
    margin-right: 4px;
    flex-shrink: 0;
    background: #ec1c29;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.search-bar button:hover {
    background: #c4151f;
}

.search-bar button:active {
    transform: scale(0.94);
}

.scan-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #ec1c29;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.scan-btn:hover {
    background: #c4151f;
}

.scan-btn:active {
    transform: scale(0.94);
}

.barcode-video-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.barcode-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#barcodeStatus {
    text-align: center;
    font-size: 13px;
    color: #555;
}

/* Header Aksiyonlar */
.header-actions {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.header-action a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.header-action a:hover {
    background: #edf4fc;
    color: #0056a4;
}

.header-action-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.header-action a:hover .header-action-icon {
    background: #dceafd;
}

.header-action i {
    font-size: 19px;
    color: #0056a4;
}

.header-action-text {
    display: none;
}

.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ec1c29;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 15px;
    border: 2px solid #fff;
}

@media (min-width: 1100px) {
    .header-action-text {
        display: block;
    }
}

.online-users-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f7fa;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.online-users-chip i {
    color: #28a745;
    font-size: 9px;
}

/* ============ KATEGORİ NAVİGASYON ============ */
.category-nav {
    background: #0056a4;
    position: relative;
    z-index: 900;
}

.category-nav.menu-open {
    z-index: 2600;
}

.category-nav .container {
    display: flex;
    align-items: stretch;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: #ec1c29;
    white-space: nowrap;
    transition: background 0.2s;
}

.category-toggle:hover {
    background: #c4151f;
}

.category-menu {
    display: none;
    align-items: stretch;
}

.category-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 280px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    z-index: 2500;
    max-height: 70vh;
    overflow-y: auto;
}

.category-menu.active > li > a {
    color: #333;
    padding: 11px 18px;
    border-bottom: 1px solid #f5f5f5;
}

.category-menu.active > li > a:hover {
    background: #edf4fc;
    color: #0056a4;
}

.category-menu.active > li > a i {
    color: #0056a4;
}

.category-menu-divider {
    height: 8px;
    background: #f5f5f5;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.category-menu-drawer-header {
    display: none;
}

.category-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2400;
    opacity: 0;
    transition: opacity 0.25s;
}

.category-menu-backdrop.active {
    display: block;
    opacity: 1;
}

.category-menu > li {
    position: relative;
}

.category-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 12px;
    color: #d4e6f7;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    height: 100%;
    white-space: nowrap;
}

.category-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.category-menu > li > a i {
    font-size: 13px;
    color: #8ec0ed;
}

/* Alt Menü */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s;
    z-index: 1000;
}

.category-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.sub-menu li a:hover {
    background: #edf4fc;
    color: #0056a4;
    padding-left: 24px;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

/* Nav Linkler */
.nav-links {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 12px;
    color: #d4e6f7;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-highlight {
    color: #ffc107 !important;
    font-weight: 700 !important;
}

/* ============ TESLİMAT BİLGİ BARI ============ */
.delivery-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 7px 0;
    font-size: 13px;
}

.delivery-bar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.delivery-info i {
    color: #0056a4;
    font-size: 14px;
}

.delivery-info select {
    border: 1px solid #d0d0d0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    color: #333;
}

.delivery-info select:focus {
    border-color: #0056a4;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.slider-container {
    position: relative;
    height: 300px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: #fff;
    max-width: 480px;
}

.slide-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.slide-content h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 18px;
}

.slide-btn {
    display: inline-block;
    background: #fff;
    color: #0056a4;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-image {
    font-size: 130px;
    color: rgba(255, 255, 255, 0.12);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ============ KATEGORİ SLIDER ============ */
.cat-slider-section {
    margin-bottom: 20px;
}

.cat-slider-wrap {
    position: relative;
}

.cat-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 0;
}

.cat-slider::-webkit-scrollbar {
    display: none;
}

.cat-slide-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}

.cat-slide-item:hover {
    border-color: #0056a4;
    box-shadow: 0 4px 12px rgba(0,86,164,0.1);
    transform: translateY(-2px);
}

.cat-slide-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cat-bg, #edf4fc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: #0056a4;
    transition: all 0.2s;
}

.cat-slide-item:hover .cat-slide-icon {
    background: #0056a4;
    color: #fff;
}

.cat-slide-item span {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    display: block;
    line-height: 1.3;
}

.cat-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.cat-slider-btn:hover {
    background: #0056a4;
    color: #fff;
    border-color: #0056a4;
}

.cat-prev {
    left: -12px;
}

.cat-next {
    right: -12px;
}

/* ============ STOK BADGE ============ */
.stock-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}

.stock-in {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
}

/* ============ KAMPANYA BANNERLARI ============ */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.promo-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-banner.has-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    align-items: flex-end;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.promo-banner i {
    font-size: 26px;
    opacity: 0.9;
}

.promo-banner strong {
    display: block;
    font-size: 13px;
}

.promo-banner span {
    font-size: 11px;
    opacity: 0.85;
}

/* ============ GÜNÜN FIRSATLARI ============ */
.daily-deals-section {
    margin-bottom: 28px;
}

.daily-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
    flex-wrap: wrap;
}

.daily-deals-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0056a4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-deals-timer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.daily-deals-timer > div {
    background: #ec1c29;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    min-width: 38px;
}

.daily-deals-timer span {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.daily-deals-timer small {
    font-size: 8px;
    opacity: 0.85;
}

.daily-deals-timer-sep {
    color: #ec1c29;
    font-weight: 800;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.deal-card {
    background: #fff;
    border: 1px solid #f5d3d5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    color: #333;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s cubic-bezier(.2,.8,.2,1);
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(236, 28, 41, 0.12);
}

.deal-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ec1c29;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.deal-card-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #fef7f7;
    border-bottom: 1px solid #f5e5e5;
}

.deal-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.deal-card-image i {
    font-size: 50px;
    color: #e5b8ba;
}

.deal-card-info {
    padding: 12px;
}

.deal-card-brand {
    font-size: 10px;
    color: #0056a4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.deal-card-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 3px 0 6px;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.deal-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.deal-new-price {
    font-size: 17px;
    font-weight: 800;
    color: #ec1c29;
}

.deal-progress {
    background: #f5e0e1;
    border-radius: 4px;
    height: 6px;
    margin-top: 8px;
}

.deal-progress-bar {
    background: #ec1c29;
    height: 100%;
    border-radius: 4px;
}

.deal-sold-text {
    font-size: 10px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* ============ ÜRÜN SECTION ============ */
.product-section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0056a4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all {
    color: #0056a4;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.see-all:hover {
    gap: 8px;
    color: #003d7a;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Ürün Kartı */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #d8d8d8;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 5;
}

.product-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.badge-discount {
    background: #ec1c29;
}

.badge-koli {
    background: #0056a4;
}

.badge-new {
    background: #28a745;
}

.product-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 5;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.product-fav:hover,
.product-fav.active {
    color: #ec1c29;
    border-color: #ec1c29;
    transform: scale(1.08);
}

.product-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.product-image i {
    font-size: 60px;
    color: #c0c0c0;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 10px;
    color: #0056a4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-unit {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.product-pricing {
    margin-top: auto;
}

.product-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 1px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #ec1c29;
}

.product-price .currency {
    font-size: 14px;
    font-weight: 700;
}

.product-koli-price {
    font-size: 11px;
    color: #0056a4;
    margin-top: 3px;
    font-weight: 600;
    background: #edf4fc;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-unit-price {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.product-dealer-note,
.pd-dealer-note {
    font-size: 12px;
    color: #0056a4;
    margin-top: 8px;
    line-height: 1.4;
}

.product-dealer-note a,
.pd-dealer-note a {
    color: #0056a4;
    text-decoration: underline;
}

.product-dealer-note a:hover,
.pd-dealer-note a:hover {
    color: #003d7a;
}

.product-actions {
    padding: 0 12px 12px;
}

.add-to-cart {
    width: 100%;
    padding: 9px;
    background: #ec1c29;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart:hover {
    background: #c4151f;
    box-shadow: 0 4px 12px rgba(236, 28, 41, 0.25);
}

.add-to-cart:active {
    transform: scale(0.98);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.quantity-control button {
    width: 34px;
    height: 34px;
    border: 2px solid #0056a4;
    background: #fff;
    color: #0056a4;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-control button:first-child {
    border-radius: 6px 0 0 6px;
}

.quantity-control button:last-child {
    border-radius: 0 6px 6px 0;
}

.quantity-control button:hover {
    background: #0056a4;
    color: #fff;
}

.quantity-control span {
    width: 42px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4fc;
    border-top: 2px solid #0056a4;
    border-bottom: 2px solid #0056a4;
    font-weight: 700;
    font-size: 14px;
    color: #0056a4;
}

/* ============ ORTA BANNER ============ */
.mid-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.mid-banner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 30px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.mid-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mid-banner-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.discount-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.mid-banner-btn {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.2s;
}

.mid-banner-btn:hover {
    transform: translateY(-1px);
}

.mid-banner-icon {
    font-size: 90px;
    opacity: 0.12;
}

/* ============ MARKALAR ============ */
.brands-section {
    margin-bottom: 28px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.brand-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eaeaea;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #0056a4;
}

.brand-card span {
    font-weight: 700;
    font-size: 15px;
    color: #0056a4;
}

/* ============ FOOTER ============ */
.site-footer {
    background: #003050;
    color: #b8cfe0;
    margin-top: 30px;
}

.footer-top {
    padding: 35px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #0056a4;
    border-radius: 1px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #8fb3cc;
    font-size: 13px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-btn i {
    font-size: 16px;
}

.footer-middle {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links span {
    font-size: 13px;
    color: #8fb3cc;
    margin-right: 4px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
    font-size: 14px;
}

.social-links a:hover {
    background: #0056a4;
    transform: translateY(-2px);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods span {
    font-size: 13px;
    color: #8fb3cc;
}

.payment-methods i {
    font-size: 26px;
    color: #8fb3cc;
}

.footer-bottom {
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: #607d8b;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    background: #0056a4;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 22px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #0056a4;
    box-shadow: 0 0 0 2px rgba(0, 86, 164, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .form-row {
        flex-wrap: wrap;
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: #666;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #0056a4;
}

.checkbox-label a {
    color: #0056a4;
    font-weight: 600;
}

.forgot-password {
    color: #0056a4;
    font-weight: 600;
    white-space: nowrap;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #ec1c29;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #c4151f;
    box-shadow: 0 4px 14px rgba(236, 28, 41, 0.25);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.form-divider span {
    background: #fff;
    padding: 0 14px;
    color: #999;
    font-size: 13px;
    position: relative;
}

.btn-social {
    width: 100%;
    padding: 11px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: all 0.2s;
    background: #fff;
    color: #555;
}

.btn-social:hover {
    border-color: #aaa;
    background: #fafafa;
}

.btn-social.google i {
    color: #db4437;
}

.btn-social.facebook i {
    color: #1877f2;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #0056a4;
    font-weight: 700;
}

/* ============ SEPET PANELİ ============ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    transition: right 0.3s;
}

.cart-panel.active {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    background: #0056a4;
    color: #fff;
}

.cart-panel-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 26px;
    cursor: pointer;
}

.cart-panel-close:hover {
    color: #fff;
}

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 50px;
    color: #d0d0d0;
    margin-bottom: 12px;
}

.cart-empty p {
    font-size: 16px;
    font-weight: 600;
    color: #777;
    margin-bottom: 4px;
}

.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0c0;
    font-size: 20px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #ec1c29;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056a4;
}

.cart-item-qty button:hover {
    background: #edf4fc;
}

.cart-item-qty span {
    width: 30px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    font-weight: 600;
    font-size: 12px;
    color: #0056a4;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ec1c29;
}

.cart-panel-footer {
    padding: 14px 18px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.cart-total strong {
    font-size: 20px;
    color: #ec1c29;
}

/* ============ USER LOGGED IN ============ */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-info:hover {
    background: #edf4fc;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0056a4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 190px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s;
    z-index: 1100;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.user-dropdown a:hover {
    background: #edf4fc;
    color: #0056a4;
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: #ec1c29;
}

.user-dropdown a:last-child:hover {
    background: #fef2f2;
    color: #ec1c29;
}

/* ============ BİLDİRİM ZİLİ ============ */
.notif-bell-wrap {
    position: relative;
}

.notif-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f7fa;
    cursor: pointer;
    color: #0056a4;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.notif-bell:hover {
    background: #dceafd;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ec1c29;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 15px;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 320px;
    max-width: 90vw;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    border: 1px solid #eaeaea;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    z-index: 1200;
    overflow: hidden;
}

.notif-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.notif-dropdown-header a {
    color: #0056a4;
    font-size: 11px;
    font-weight: 600;
}

.notif-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #f9fbfd;
}

.notif-item.unread {
    background: #f0f7ff;
}

.notif-item strong {
    font-size: 13px;
}

.notif-item span {
    font-size: 12px;
    color: #666;
}

.notif-item small {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.notif-empty {
    padding: 30px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.notif-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

/* ============ TESLİMAT TAHMİNİ ÇUBUĞU ============ */
.delivery-estimate-bar {
    background: linear-gradient(90deg, #eef6ff, #eafbf1);
    border-bottom: 1px solid #dbe9f7;
}

.delivery-estimate-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 12px;
    color: #0056a4;
    flex-wrap: wrap;
}

.delivery-estimate-addr,
.delivery-estimate-eta {
    display: flex;
    align-items: center;
    gap: 7px;
}

.delivery-estimate-addr i {
    color: #0056a4;
}

.delivery-estimate-addr strong {
    color: #003d7a;
}

.delivery-estimate-eta {
    background: #fff;
    border: 1px solid #cdeedd;
    border-radius: 20px;
    padding: 5px 12px;
    box-shadow: 0 1px 4px rgba(40,167,69,0.12);
}

.delivery-estimate-eta i {
    color: #28a745;
}

.delivery-estimate-eta strong {
    color: #1e8a3c;
}

@media (max-width: 560px) {
    .delivery-estimate-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 11px;
    }
}

/* ============ MOBİL ALT NAVİGASYON ============ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1500;
        background: #fff;
        border-top: 1px solid #eaeaea;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
        overflow-x: hidden;
    }

    .mobile-bottom-nav a {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 2px 6px;
        font-size: 10px;
        color: #888;
        position: relative;
        text-decoration: none;
    }

    .mobile-bottom-nav a span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav a i {
        font-size: 19px;
    }

    .mobile-bottom-nav a.active {
        color: #ec1c29;
    }

    .mobile-nav-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        background: #ec1c29;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 0 4px;
        border-radius: 8px;
        min-width: 14px;
        line-height: 14px;
        text-align: center;
    }

    #whatsappBtn {
        bottom: 76px !important;
    }
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    max-width: min(92vw, 420px);
    transform: translateX(-50%) translateY(80px);
    background: #0056a4;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 86, 164, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

@media (max-width: 600px) {
    .toast {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast i {
    color: #4cd964;
    font-size: 16px;
}

/* ============ DARK MODE ============ */
body.dark-mode { background: #1a1a2e; color: #e0e0e0; }
body.dark-mode .main-header { background: #16213e; }
body.dark-mode .top-bar { background: #0f1626; }
body.dark-mode .top-banner { background: #c4151f; }
body.dark-mode .category-nav { background: #16213e; }
body.dark-mode .search-bar { background: #1a1a2e; border-color: #2a3a5c; }
body.dark-mode .search-bar input { background: transparent; color: #e0e0e0; }
body.dark-mode .product-card { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
body.dark-mode .product-name { color: #e0e0e0; }
body.dark-mode .product-image { background: #1a1a2e; border-color: #2a3a5c; }
body.dark-mode .product-brand { color: #6a9fd8; }
body.dark-mode .product-unit { color: #888; }
body.dark-mode .section-header h2 { color: #e0e0e0; }
body.dark-mode .section-header { border-color: #2a3a5c; }
body.dark-mode .brand-card { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .brand-card span { color: #6a9fd8; }
body.dark-mode .cat-slide-item { background: #16213e; border-color: #2a3a5c; color: #e0e0e0; }
body.dark-mode .cat-slide-icon { background: #1a1a2e; }
body.dark-mode .delivery-option { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .delivery-option strong { color: #e0e0e0; }
body.dark-mode .site-footer { background: #0f1626; }
body.dark-mode .breadcrumb { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .modal { background: #16213e; }
body.dark-mode .modal-body { color: #e0e0e0; }
body.dark-mode .form-group input, body.dark-mode .form-group select, body.dark-mode .form-group textarea { background: #1a1a2e; color: #e0e0e0; border-color: #2a3a5c; }
body.dark-mode .cart-items, body.dark-mode .cart-summary { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .cart-product-name { color: #e0e0e0; }
body.dark-mode .cart-row { border-color: #2a3a5c; }
body.dark-mode .cart-header-row { border-color: #2a3a5c; color: #8a9bb0; }
body.dark-mode .cart-unit-price, body.dark-mode .cart-line-total { color: #e0e0e0; }
body.dark-mode .empty-cart { color: #8a9bb0; }
body.dark-mode .empty-cart h2 { color: #e0e0e0; }
body.dark-mode .promo-banner { opacity: 0.9; }
body.dark-mode .modal-header { background: #1a2a3a; }
body.dark-mode .modal-body input, body.dark-mode .modal-body select, body.dark-mode .modal-body textarea { background: #1a1a2e; color: #e0e0e0; border-color: #2a3a5c; }
body.dark-mode .footer-bottom { background: #0a0f1a; }
body.dark-mode .footer-middle { background: #0f1626; }
body.dark-mode .footer-shipping { background: #0f1626; }
body.dark-mode .coupon-box input { background: #1a1a2e; color: #e0e0e0; border-color: #2a3a5c; }
body.dark-mode .summary-row { color: #e0e0e0; border-color: #2a3a5c; }
body.dark-mode .product-old-price { color: #666; }
body.dark-mode .product-price { color: #ff6b6b; }
body.dark-mode .add-to-cart { background: #0056a4; }
body.dark-mode .btn-primary { background: #0056a4; }
body.dark-mode .login-btn-user { background: #1a2a3a; border-color: #2a3a5c; color: #6a9fd8; }
body.dark-mode .login-btn-dealer { background: #2a2010; border-color: #3a3020; color: #f39c12; }
body.dark-mode .user-dropdown { background: #16213e; border-color: #2a3a5c; }
body.dark-mode .user-dropdown a { color: #b8d4f0; border-color: #2a3a5c; }
body.dark-mode .user-dropdown a:hover { background: #1a2a3a; }
body.dark-mode .toast { background: #16213e; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .products-grid,
    .deals-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-menu > li > a {
        padding: 11px 8px;
        font-size: 12px;
    }

    .delivery-options {
        display: none;
    }
}

@media (max-width: 992px) {
    .products-grid,
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-banners {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-menu {
        display: none;
    }

    .category-menu.active {
        display: flex !important;
        flex-direction: column;
        width: min(300px, 85vw);
        left: 0;
        border-radius: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        bottom: 0;
        max-height: none;
        height: 100vh;
        overflow-y: auto;
        background: #fff;
        z-index: 2500;
    }

    .category-menu-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        background: #ec1c29;
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        flex-shrink: 0;
    }

    .category-menu-drawer-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        width: 30px;
        height: 30px;
    }

    .category-nav .container {
        flex-wrap: wrap;
    }

    .category-menu.active > li > a {
        padding: 14px 16px;
        color: #333;
    }

    .category-toggle {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .delivery-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobilde açılışta direkt ürünlere geçilsin — hero slider ve promo
       kutuları kaydırma gerektirip ürünleri aşağı itiyordu. */
    .hero-slider,
    .promo-banners {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .delivery-options {
        display: none;
    }

    .cat-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cat-prev {
        left: 2px;
    }

    .cat-next {
        right: 2px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        flex: 1;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .header-actions {
        order: 3;
    }

    .header-action-account,
    .header-action-fav,
    .online-users-chip {
        display: none;
    }

    .search-bar-wrap {
        order: 4;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .search-bar input {
        padding: 13px 6px 13px 18px;
        font-size: 15px;
    }

    .search-bar button {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .scan-btn {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-action a {
        padding: 10px 12px;
        min-width: 60px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .daily-deals-timer > div {
        min-width: 32px;
        padding: 3px 6px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-image {
        height: 150px;
        padding: 14px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-brand,
    .product-unit {
        font-size: 11px;
    }

    .product-pricing {
        margin-top: 12px;
    }

    .slider-container {
        height: 220px;
    }

    .slide-content h2 {
        font-size: 22px;
    }

    .slide-image {
        font-size: 70px;
    }

    .slide {
        padding: 0 24px;
    }

    .mid-banner {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .top-left,
    .top-right {
        gap: 10px;
    }

    .footer-middle-inner {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .daily-deals-header {
        gap: 8px;
    }

    .promo-banners {
        grid-template-columns: 1fr;
    }

    .header-action a {
        padding: 10px 10px;
    }

    .logo-text {
        font-size: 20px;
    }

    .product-image {
        height: 130px;
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
        min-height: auto;
    }

    .product-info {
        padding: 12px;
    }

    .search-bar {
        margin-top: 10px;
    }

    .category-toggle {
        font-size: 14px;
        justify-content: center;
    }

    .category-menu.active > li > a {
        padding: 12px 14px;
    }

    .header-action i {
        font-size: 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .product-image {
        height: 130px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-bar::-webkit-scrollbar {
        display: none;
    }

    .top-bar-inner {
        justify-content: flex-start;
        gap: 14px;
        width: max-content;
        min-width: 100%;
    }

    .top-left,
    .top-right {
        gap: 10px;
        flex-shrink: 0;
    }

    .top-bar a {
        font-size: 10px;
        white-space: nowrap;
    }

    .dual-login-btns {
        flex-direction: column;
        gap: 4px !important;
    }

    .dual-login-btns a span {
        display: none;
    }
}

/* ============ DUAL LOGIN BUTTONS ============ */
.dual-login-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.login-btn-user,
.login-btn-dealer {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.login-btn-user {
    background: #edf4fc;
    color: #0056a4;
    border: 1px solid #c5ddf5;
}

.login-btn-user:hover {
    background: #0056a4;
    color: #fff;
}

.login-btn-dealer {
    background: #fef9e7;
    color: #e67e22;
    border: 1px solid #fce9b8;
}

.login-btn-dealer:hover {
    background: #f39c12;
    color: #fff;
}

/* ============ FOOTER DEALER BUTTON ============ */
.footer-bayilik-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
}

.footer-bayilik-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffd166;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.footer-dealer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 4px;
    text-decoration: none;
}

.footer-dealer-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.footer-dealer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fb3cc;
    font-size: 13px;
    margin-top: 8px;
    text-decoration: none;
}

.footer-dealer-link:hover {
    color: #fff;
}

/* ============ FOOTER SHIPPING BAR ============ */
.footer-shipping {
    background: #1a2a3a;
    color: #fff;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-shipping-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.footer-shipping-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.footer-shipping-item span {
    color: #fff;
}

.footer-shipping-item i {
    font-size: 18px;
    color: #ec1c29;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-shipping-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-shipping-item {
        font-size: 12px;
        padding: 12px 10px;
    }
}
