/* ================================================
   B2B SİPARİŞ SİSTEMİ - DOGUDEKO TARZI CSS
   ================================================ */

:root {
    --primary: #2d3436;           /* Koyu antrasit gri - yazı/header */
    --primary-light: #434b4d;
    --accent: #d94e00;            /* Hepsiburada turuncu - ana vurgu */
    --accent-hover: #b84200;
    --cta: #e8661a;               /* Açık turuncu - CTA butonları */
    --cta-hover: #c55614;
    --success: #26a65b;           /* Yeşil (stok var) */
    --warning: #ffb703;           /* Sarı uyarı */
    --bg: #ffffff;
    --bg-light: #f7f7f7;
    --text: #2d3436;
    --text-muted: #8a8f94;
    --border: #eaeaea;
    --shadow: 0 2px 15px rgba(45, 52, 54, 0.08);
    /* Tipografi (Görünüm ayarlarından değiştirilir; varsayılanlar mevcut görünümle aynı) */
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
}

/* Tüm rem tabanlı boyutlar buna göre ölçeklenir → tek yerden genel boyut ayarı */
html { font-size: var(--font-size-base); }

* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    margin: 0;
}

/* === LOGIN === */
.login-body {
    background: #f0f2f5;
    min-height: 100vh;
}
.login-wrapper {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px 20px 60px;
}
/* Giriş ekranı reklam alanları (Ana Ekran ayarlarından yönetilir)
   Yükseklik JS ile giriş kartına eşitlenir; genişlik yanlardaki boşluğu doldurur. */
.login-ad-col {
    flex: 1 1 0;
    max-width: 520px;
    min-width: 0;
    animation: fadeInUp 0.5s ease-out;
}
.login-ad-col a { display: block; height: 100%; }
.login-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: block;
}
.login-ad-col a:hover .login-ad-img { transform: translateY(-3px); transition: transform .2s; }
@media (max-width: 1450px) {
    .login-ad-col { max-width: 300px; }
}
@media (max-width: 1350px) {
    .login-ad-col { max-width: 230px; }
}
@media (max-width: 1250px) {
    .login-ad-col { display: none; } /* dar ekranda reklamlar gizlenir, form daralmaz */
}
.login-footer {
    text-align: center; padding: 12px 15px; font-size: 0.82rem;
    color: #6c757d; background: #e9ecef; border-top: 1px solid #ddd;
}
.login-container {
    display: flex;
    flex: 0 1 900px;   /* form kutusu reklamlar tarafından sıkıştırılmaz */
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease-out;
}
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.login-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.login-left .login-brand {
    position: relative;
    z-index: 1;
    text-align: center;
}
.login-left .login-brand .brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.login-left .login-brand h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.login-left .login-brand h2 span { color: var(--accent); }
.login-left .login-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}
.login-left .login-features {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}
.login-left .login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    opacity: 0.85;
}
.login-left .login-features li i {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-right h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}
.login-right .login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.login-right .form-floating {
    margin-bottom: 16px;
}
.login-right .form-floating .form-control {
    border: 2px solid var(--border);
    border-radius: 10px;
    height: 52px;
    font-size: 0.9rem;
    padding-left: 16px;
}
.login-right .form-floating .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,62,80,0.1);
}
.login-right .form-floating label {
    padding-left: 16px;
    color: var(--text-muted);
}
.login-right .login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    background: var(--primary);
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 8px;
}
.login-right .login-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,62,80,0.3);
}
.login-right .login-btn.btn-admin { background: var(--accent); }
.login-right .login-btn.btn-admin:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(231,76,60,0.3); }
.login-right .login-btn.btn-plasiyer { background: var(--success); }
.login-right .login-btn.btn-plasiyer:hover { background: #219a52; box-shadow: 0 4px 12px rgba(39,174,96,0.3); }

.login-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}
.login-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.login-links a:hover { color: var(--primary); }

/* Login Logo */
.login-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Login Contact Info */
.login-contact-info {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.login-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    opacity: 0.85;
}
.login-contact-item i {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Login Social Icons */
.login-social {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.login-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
}
.login-social-icon:hover { transform: scale(1.1); opacity: 0.9; color: white; }

/* Sözleşme Linkleri */
.login-agreements {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.login-agreements a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.76rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.login-agreements a:hover {
    color: #fff;
    text-decoration: underline;
}
.login-agreements a i {
    font-size: 0.68rem;
    opacity: 0.7;
}

/* Dealer CTA */
.login-dealer-cta {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.login-dealer-cta p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.dealer-apply-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.dealer-apply-btn:hover {
    background: #219a52;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39,174,96,0.3);
}

/* === DEALER PAGE === */
.dealer-page {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}
.dealer-header {
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid var(--primary);
}
.dealer-header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dealer-logo {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}
.dealer-header-contact {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.dealer-header-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.dealer-body {
    background: white;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.dealer-info-panel {
    background: var(--primary);
    color: white;
    padding: 35px 30px;
}
.dealer-info-panel h4 {
    font-weight: 700;
    margin-bottom: 10px;
}
.dealer-info-panel > p {
    opacity: 0.8;
    font-size: 0.88rem;
    margin-bottom: 25px;
}
.dealer-advantages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dealer-adv-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dealer-adv-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.dealer-adv-item strong {
    display: block;
    font-size: 0.88rem;
}
.dealer-adv-item small {
    opacity: 0.7;
    font-size: 0.78rem;
}
.dealer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #25d366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 25px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.dealer-whatsapp-btn:hover { background: #1da851; color: white; transform: translateY(-1px); }

.dealer-form-panel {
    padding: 35px 30px;
}
.dealer-section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 4px;
}
.dealer-form-panel .form-label {
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.dealer-form-panel .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    padding: 9px 14px;
}
.dealer-form-panel .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,62,80,0.1);
}

@media (max-width: 768px) {
    .login-container { flex-direction: column; max-width: 420px; }
    .login-left { padding: 30px 30px 25px; }
    .login-left .login-contact-info { display: none; }
    .login-left .login-social { display: none; }
    .login-right { padding: 30px; }
    .dealer-header { flex-direction: column; text-align: center; }
    .dealer-header-inner { flex-direction: column; }
    .dealer-header-contact { flex-direction: column; gap: 5px; align-items: center; }
    .dealer-info-panel { padding: 25px 20px; }
    .dealer-form-panel { padding: 25px 20px; }
}
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* === TOP HEADER === */
.sticky-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--bg);
}
.top-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.top-header .logo {
    font-size: 1.8rem; font-weight: 700; color: var(--primary);
    text-decoration: none; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.top-header .logo .logo-img {
    height: 56px; object-fit: contain; border-radius: 12px;
}
.top-header .logo .logo-text {
    font-size: 2.1rem; font-weight: 800;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3), 2px 2px 0px rgba(0,0,0,0.15), 3px 3px 6px rgba(0,0,0,0.1);
}
.top-header .logo span { color: var(--accent); }

.header-search { max-width: 420px; position: relative; }
.header-search input {
    border: 2px solid var(--border); border-radius: 25px;
    padding: 8px 45px 8px 20px; font-size: 0.9rem;
    transition: border-color 0.3s; background: var(--bg-light); width: 100%;
}
.header-search input:focus { border-color: var(--primary); box-shadow: none; background: var(--bg); outline: none; }
.header-search .search-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: var(--text-muted); font-size: 1rem; cursor: pointer;
}

.header-icon {
    color: var(--primary); font-size: 1.2rem; padding: 8px 12px;
    border-radius: 50%; transition: all 0.2s; text-decoration: none; position: relative;
    background: none; border: none; cursor: pointer;
}
.header-icon:hover { background: var(--bg-light); color: var(--accent); }
.header-icon .icon-badge {
    position: absolute; top: 0; right: 0; font-size: 0.55rem;
    padding: 2px 5px; border-radius: 50%; background: var(--accent); color: white; font-weight: 700;
}

/* Cart Widget */
.cart-widget {
    display: flex; align-items: center; gap: 10px;
    background: #f0f4ff; border: 2px solid var(--primary);
    border-radius: 12px; padding: 6px 14px 6px 16px;
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.cart-widget:hover {
    background: #e3eaff; border-color: var(--accent);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cart-widget-info { display: flex; flex-direction: column; line-height: 1.2; }
.cart-widget-title {
    font-size: 0.82rem; font-weight: 700; color: var(--primary);
    letter-spacing: 0.5px;
}
.cart-widget-detail {
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}
.cart-widget-icon {
    font-size: 1.3rem; color: var(--primary);
    background: white; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}

/* === NAV BAR === */
.nav-bar { background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%); padding: 0; }
.nav-bar .nav-link {
    color: #000; font-size: 0.82rem; font-weight: 500;
    padding: 11px 18px; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; display: inline-block;
}
.nav-bar .nav-link:hover, .nav-bar .nav-link.active { color: #000; background: rgba(0,0,0,0.08); }
.nav-bar .bakiye-display { color: #000; font-size: 1rem; font-weight: 600; padding: 11px 15px; }
.nav-bar .selected-customer {
    background: var(--warning); color: var(--primary);
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}

/* === FİLTRE BAR === */
.filter-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; }
.filter-bar .form-select {
    border: 2px solid var(--border); border-radius: 8px; font-size: 0.85rem; padding: 7px 12px;
}
.filter-bar .form-select:focus { border-color: var(--primary); box-shadow: none; }

/* === PRODUCTS LAYOUT === */
.products-layout {
    padding-top: 10px;
}

/* === PRODUCTS HERO === */
.products-hero {
    margin: 10px 0 14px;
}
.products-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 460px);
    gap: 16px;
    align-items: stretch;
}
.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}
.hero-company-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(217, 78, 0, 0.25);
}
.hero-company-card::before,
.hero-company-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.hero-company-card::before {
    width: 180px;
    height: 180px;
    right: -40px;
    top: -50px;
}
.hero-company-card::after {
    width: 140px;
    height: 140px;
    left: -40px;
    bottom: -60px;
}
.hero-company-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
}
.hero-company-brandmark {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 210px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}
.hero-company-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 128px;
    padding-right: 226px;
}
.hero-company-logo,
.hero-company-monogram {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    flex-shrink: 0;
}
.hero-company-logo {
    background: #fff;
    padding: 9px;
    object-fit: contain;
}
.hero-company-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    font-size: 2rem;
    font-weight: 800;
}
.hero-company-brandmark .hero-company-logo,
.hero-company-brandmark .hero-company-monogram {
    width: 168px;
    height: 118px;
    border-radius: 24px;
}
.hero-company-brandmark .hero-company-logo {
    padding: 12px 16px;
    box-shadow: 0 14px 24px rgba(10, 23, 37, 0.18);
}
.hero-company-brandmark .hero-company-monogram {
    font-size: 3rem;
}
.hero-company-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.72;
    margin-bottom: 4px;
}
.hero-company-name {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.02;
    font-weight: 800;
}
.hero-company-summary {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    padding-right: 226px;
    font-size: 0.76rem;
    line-height: 1.32;
    color: rgba(255,255,255,0.82);
    max-width: 42ch;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-company-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-right: 226px;
}
.hero-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    font-size: 0.72rem;
    backdrop-filter: blur(8px);
}
.hero-meta-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.18);
}
.hero-current-customer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-current-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.72;
    margin-bottom: 5px;
}
.hero-current-customer strong {
    font-size: 0.9rem;
}
.hero-current-code {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 0.72rem;
    font-weight: 700;
}
.hero-nav-panel {
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 18px rgba(32, 61, 89, 0.07);
}
.hero-toolbar-main {
    display: grid;
    grid-template-columns: minmax(145px, 0.9fr) repeat(2, minmax(140px, 1fr));
    gap: 8px;
}
.hero-cart-widget,
.hero-menu-link {
    text-decoration: none;
}
.hero-cart-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    color: #fff;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(217, 78, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cart-widget:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 78, 0, 0.35);
}
.hero-cart-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    font-size: 1rem;
    flex-shrink: 0;
}
.hero-cart-text strong,
.hero-cart-text span {
    display: block;
}
.hero-cart-text strong {
    font-size: 0.78rem;
    font-weight: 700;
}
.hero-cart-text span {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.78);
    margin-top: 2px;
}
.hero-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 78, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-summary-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 78, 0, 0.35); }
.hero-summary-card.is-warning {
    background: linear-gradient(135deg, var(--cta) 0%, var(--cta-hover) 100%);
    box-shadow: 0 4px 12px rgba(232, 102, 26, 0.3);
}
.hero-summary-card.is-warning:hover { box-shadow: 0 8px 20px rgba(232, 102, 26, 0.4); }
.hero-summary-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}
.hero-summary-value {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hero-summary-meta {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    opacity: 0.92;
}
.hero-summary-meta.is-debt { color: #fff3b0; }
.hero-summary-meta.is-credit { color: #c8f9e0; }
.hero-summary-meta.is-neutral { color: rgba(255,255,255,0.82); }
.hero-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 52px;
    padding: 8px 5px;
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
    border: 2px solid var(--border);
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
    transition: all 0.2s;
}
.hero-menu-link i { font-size: 1.05rem; color: var(--accent); transition: color 0.2s; }
.hero-menu-link:hover,
.hero-menu-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.hero-menu-link:hover i, .hero-menu-link.active i { color: #fff; }
.hero-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.hero-slider-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    box-shadow: 0 24px 45px rgba(217, 78, 0, 0.18);
    height: 100%;
    display: flex;
}
.hero-slider-shell .carousel {
    flex: 1 1 auto;
}
.hero-slider-shell .carousel,
.hero-slider-shell .carousel-inner,
.hero-slider-shell .carousel-item {
    height: 100%;
    min-height: 100%;
}
.hero-slide {
    position: relative;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.hero-slide-theme-1 {
    background: linear-gradient(135deg, #10283a 0%, #1f6f8b 60%, #f39c12 120%);
}
.hero-slide-theme-2 {
    background: linear-gradient(135deg, #1c2740 0%, #314c6b 55%, #c55a11 120%);
}
.hero-slide-theme-3 {
    background: linear-gradient(135deg, #16293b 0%, #335c67 55%, #4f772d 120%);
}
.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,26,40,0.55) 0%, rgba(12,26,40,0.2) 40%, rgba(12,26,40,0) 70%);
    pointer-events: none;
}
.hero-slide:not(:has(.hero-slide-content > *)) .hero-slide-overlay {
    background: transparent;
}
.hero-slide-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    max-width: 560px;
    padding: 20px 24px;
    color: #fff;
}
.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-slide-content h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.08;
    font-weight: 800;
}
.hero-slide-content p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.84);
}
.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-slide-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.2);
}
.hero-slider-shell .carousel-control-prev,
.hero-slider-shell .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 16px;
    bottom: auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    opacity: 1;
}
.hero-slider-shell .carousel-control-prev {
    left: auto;
    right: 68px;
}
.hero-slider-shell .carousel-control-next {
    right: 16px;
}
.hero-slider-shell .carousel-control-prev-icon,
.hero-slider-shell .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}
.hero-carousel-indicators {
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    left: 24px;
    right: auto;
    bottom: 14px;
}
.hero-carousel-indicators [data-bs-target] {
    width: 24px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.hero-carousel-indicators .active {
    background: #fff;
}
.products-homepage .filter-topbar {
    top: 0;
}

/* === ÜST FİLTRE BARI === */
.filter-topbar {
    position: sticky;
    top: 58px;
    z-index: 200;
    margin-bottom: 10px;
    background: var(--bg);
}
.filter-topbar-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-topbar-item {
    flex: 0 0 auto;
}
.filter-topbar-item.filter-search-item {
    flex: 1 1 280px;
    min-width: 200px;
    max-width: 380px;
}
.filter-topbar-item.filter-select-item {
    position: relative;
}
.filter-topbar-item.filter-info-item {
    margin-left: auto;
}

/* Multi-Select Custom Dropdown */
.ms-dropdown {
    position: relative;
    display: inline-block;
    min-width: 150px;
}
.ms-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 6px 10px;
    background: var(--bg);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s;
    min-height: 34px;
    user-select: none;
}
.ms-dropdown-btn:hover,
.ms-dropdown.open .ms-dropdown-btn {
    border-color: var(--primary);
}
.ms-dropdown-btn .ms-text {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
}
.ms-dropdown-btn .ms-text.has-value {
    color: var(--primary);
    font-weight: 600;
}
.ms-dropdown-btn .ms-arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.ms-dropdown.open .ms-arrow {
    transform: rotate(180deg);
}
.ms-dropdown-btn .ms-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.ms-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 300;
    margin-top: 4px;
    padding: 4px 0;
}
.ms-dropdown.open .ms-dropdown-list { display: block; }
.ms-search {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    z-index: 1;
}
.ms-search-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.82rem;
    outline: none;
}
.ms-search-input:focus { border-color: var(--primary); }
.ms-dropdown-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.ms-dropdown-list label:hover { background: var(--bg-light); }
.ms-dropdown-list input[type="checkbox"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.ms-dropdown-list .ms-empty {
    padding: 10px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* Search input bigger & more prominent */
.sidebar-search {
    position: relative;
}
.sidebar-search input {
    width: 100%;
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 9px 14px 9px 38px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-light);
    transition: all 0.3s;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.06);
}
.sidebar-search input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.12);
}
.sidebar-search input::placeholder {
    color: #aaa;
    font-weight: 400;
}
.sidebar-search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.95rem;
    pointer-events: none;
}

.sidebar-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.sidebar-info i { color: var(--primary); }

/* Mobil filtre toggle */
.filter-toggle-btn {
    position: fixed;
    bottom: 80px;
    left: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.filter-toggle-btn:hover { background: var(--accent); }

/* Sağ: Ürün Listesi */
.products-main {
    width: 100%;
    min-width: 0;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* === SECTION TITLE === */
.section-title { text-align: center; padding: 30px 0 20px; position: relative; flex-wrap: wrap; justify-content: center; }
.section-title h2 { font-size: 1.7rem; font-weight: 900; color: var(--primary); margin-bottom: 10px; letter-spacing: -0.5px; }
.section-title::after { content:''; display:block; width:80px; height:4px; background: linear-gradient(90deg, var(--accent), var(--cta)); border-radius: 2px; margin:0 auto; flex-basis: 100%; }

/* === ÜRÜN GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
}

/* === GÖRÜNÜM TOGGLE BUTONLARI === */
.view-toggle-btns { z-index: 2; }
.view-toggle-btn {
    width: 34px; height: 34px; padding: 0; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-muted); border-radius: 6px !important;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
    transition: all 0.2s;
}
.view-toggle-btn:hover { color: var(--accent); border-color: var(--accent); }
.view-toggle-btn.active { background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* Grid modunda list-only alanları gizle */
.product-card .list-only { display: none; }

/* === LİSTE GÖRÜNÜMÜ === */
.product-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
}
/* Liste header (JS ile eklenir) */
.product-list-header {
    display: none;
}
.product-grid.list-view .product-list-header {
    display: grid;
    grid-template-columns: 60px 100px 1fr 130px 100px 120px minmax(120px, auto) 100px;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--accent-hover);
    border-radius: 10px 10px 0 0;
}
.product-grid.list-view .product-list-header span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 60px 100px 1fr 125px 85px 165px 125px 90px;
    gap: 8px;
    align-items: center;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 6px 12px;
    transition: background 0.15s;
}
.product-grid.list-view .product-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
}
.product-grid.list-view .product-card:last-child { border-bottom: none; }

/* Liste: Resim */
.product-grid.list-view .product-card .product-image {
    padding-top: 0;
    width: 48px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    position: relative;
}
.product-grid.list-view .product-card .product-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 3px;
}
.product-grid.list-view .product-card .product-image .discount-badge { display: none !important; }
.product-grid.list-view .product-card .product-image .fav-btn { display: none !important; }
.product-grid.list-view .product-card .discount-badge { display: none !important; }

/* Liste: Info alanı — tüm alt elemanlar grid sütunlarına dağılır */
.product-grid.list-view .product-card .product-info {
    display: contents;
    text-align: left;
    padding: 0;
}

/* Liste: Stok kodu ve marka göster */
.product-grid.list-view .product-card .list-only {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-grid.list-view .product-card .product-code.list-only {
    font-weight: 600;
    color: var(--text);
}

/* Liste: Ürün adı */
.product-grid.list-view .product-card .product-name {
    font-size: 0.78rem; min-height: auto; margin-bottom: 0;
    -webkit-line-clamp: 1; line-clamp: 1;
    text-align: left;
    display: flex; align-items: center; gap: 6px;
}
/* Liste görünümünde kategori simgesi ad sütununun SAĞ kenarına (fiyattan hemen önce) */
.product-grid.list-view .product-card .product-name .kategori-simgeler {
    order: 2; margin-left: auto; margin-right: 24px; flex: 0 0 auto;
}

/* Kategori simgesi ortak: satır içi hizalama */
.kategori-simgeler { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
/* Kart (grid) görünümünde ad başındaki simge ile ad arasına küçük boşluk */
.product-card .product-name .kategori-simgeler { margin-right: 5px; }

/* Liste: Fiyat */
.product-grid.list-view .product-card .price-area {
    justify-content: flex-start; gap: 5px; margin-bottom: 0;
    flex-direction: column; align-items: flex-start;
}
.product-grid.list-view .product-card .old-price { font-size: 0.7rem; }
.product-grid.list-view .product-card .current-price,
.product-grid.list-view .product-card .normal-price { font-size: 0.82rem; }

/* Liste: Marka */
.product-grid.list-view .product-card .product-brand.list-only {
    font-weight: 500;
}

/* Liste: Stok bilgisi */
.product-grid.list-view .product-card .stock-info {
    font-size: 0.68rem;
    min-width: 0; /* grid hücresi taşmasın */
    overflow: hidden;
}
.product-grid.list-view .product-card .stock-info .depo-stok-list {
    flex-direction: column; flex-wrap: wrap; gap: 2px; align-items: flex-start;
}
/* Uzun depo adlı rozetler taşmasın, sütun içinde alt satıra kaysın */
.product-grid.list-view .product-card .stock-info .badge {
    white-space: normal;
    text-align: left;
    line-height: 1.15;
    word-break: break-word;
    max-width: 100%;
}

/* Liste: Depo seçim */
.product-grid.list-view .product-card .depo-select-row { margin: 0; min-width: 0; }
.product-grid.list-view .product-card .depo-select-row .depo-select { font-size: 0.65rem; max-width: 100%; }

/* Liste: Sepet satırı */
.product-grid.list-view .product-card .cart-row {
    padding: 0; gap: 4px; justify-content: flex-start;
}
.product-grid.list-view .product-card .cart-row .qty-control button { padding: 3px 7px; font-size: 0.7rem; }
.product-grid.list-view .product-card .cart-row .qty-control input { width: 30px; font-size: 0.75rem; padding: 3px 0; }
.product-grid.list-view .product-card .cart-row .cart-btn { width: 28px; height: 28px; font-size: 0.75rem; }

/* === ÜRÜN KARTI === */
.product-card {
    position: relative; background: var(--bg); border-radius: 10px; border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.product-card .product-image {
    position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: var(--bg-light);
}
.product-card .product-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 10px; transition: transform 0.4s;
}
.product-card .product-image img.product-img-zoom { cursor: zoom-in; }

/* ===== LIGHTBOX ===== */
.image-lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 99999;
    justify-content: center; align-items: center; flex-direction: column;
    cursor: zoom-out; backdrop-filter: blur(4px);
}
.image-lightbox-overlay.active { display: flex; }
.lightbox-close {
    position: absolute; top: 15px; right: 25px;
    font-size: 2.5rem; color: white; cursor: pointer;
    line-height: 1; z-index: 100000; transition: transform 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); color: #ff6b6b; }
.lightbox-content {
    max-width: 90vw; max-height: 85vh;
    display: flex; flex-direction: column; align-items: center;
    animation: lightboxIn 0.3s ease;
}
.lightbox-content img {
    max-width: 90vw; max-height: 78vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: white; font-size: 1rem; margin-top: 12px;
    text-align: center; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-card .discount-badge {
    position: absolute; top: 10px; left: 10px;
    min-width: 48px; height: 48px; padding: 0 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.82rem; color: white; z-index: 5;
    box-shadow: 0 4px 12px rgba(217, 78, 0, 0.4);
    border: 2px solid #fff;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.discount-badge.bg-red { background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%); }
.discount-badge.bg-orange { background: linear-gradient(135deg, var(--cta) 0%, var(--cta-hover) 100%); box-shadow: 0 4px 12px rgba(232, 102, 26, 0.4); }
.discount-badge.bg-green { background: linear-gradient(135deg, #06a26b 0%, #048a5a 100%); box-shadow: 0 4px 12px rgba(6, 162, 107, 0.4); }
.discount-badge.bg-blue { background: linear-gradient(135deg, #3498db 0%, #2473a9 100%); }
.discount-badge.bg-purple { background: linear-gradient(135deg, #9b59b6 0%, #7a4390 100%); }

.product-card .fav-btn {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.95); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--text-muted); transition: all 0.2s; z-index: 5; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.product-card .fav-btn.add-to-cart { color: var(--cta); }
.product-card .fav-btn:hover { color: white; background: var(--cta); transform: scale(1.08); }
.product-card .fav-btn.out-of-stock-btn { color: #adb5bd; cursor: not-allowed; }
.product-card .fav-btn.out-of-stock-btn:hover { color: #adb5bd; background: rgba(255,255,255,0.95); transform: none; }

.product-card .product-info { padding: 12px 8px; text-align: center; }
.product-card .product-name {
    font-size: 0.85rem; color: var(--text); margin-bottom: 8px;
    line-height: 1.4; min-height: 40px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 500;
}
.product-card .product-code { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }

.product-card .price-area {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px;
}
.product-card .old-price { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.product-card .current-price { font-size: 1.2rem; font-weight: 900; color: var(--accent); letter-spacing: -0.3px; }
.product-card .normal-price { font-size: 1.2rem; font-weight: 900; color: var(--primary); letter-spacing: -0.3px; }
.product-card .normal-price.has-iskonto { color: var(--accent); }
.iskonto-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff; font-size: 0.5rem;
    animation: iskontoPulse 2s ease-in-out infinite;
}
@keyframes iskontoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(238, 90, 36, 0.4); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(238, 90, 36, 0); }
}
.out-of-stock-btn {
    background: #ccc !important; cursor: not-allowed !important;
    border-color: #bbb !important; color: #888 !important;
}

/* İskonto Popup */
.iskonto-popup {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 8px 12px;
    min-width: 210px;
    white-space: nowrap;
}
.price-area:hover .iskonto-popup { display: block; }
.iskonto-popup::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 20px;
    width: 12px; height: 12px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transform: rotate(45deg);
}
/* Liste görünümünde popup sağa açılsın */
.product-grid.list-view .iskonto-popup {
    bottom: auto;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
}
.product-grid.list-view .iskonto-popup::before {
    bottom: auto;
    left: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
}
.iskonto-popup-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.iskonto-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    gap: 10px;
}
.iskonto-popup-label { font-size: 0.71rem; color: #555; }
.iskonto-popup-price { font-size: 0.77rem; font-weight: 700; color: var(--accent); }

/* İskonto Option (Sepet) */
.iskonto-option { transition: all 0.2s; padding-left: 2.2rem !important; }
.iskonto-option:hover { border-color: var(--primary) !important; background: #f8f9fa; }
.iskonto-option .form-check-input:checked ~ .form-check-label { color: var(--primary); }
.iskonto-option .form-check-input:checked { border-color: var(--primary); background-color: var(--primary); }
.iskonto-option:has(.form-check-input:checked) { border-color: var(--primary) !important; background: rgba(44,62,80,0.04); }

.product-card .cart-row {
    display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px 10px;
}
.product-card .qty-control {
    display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.product-card .qty-control button {
    border: none; background: var(--bg-light); padding: 5px 10px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background 0.2s; color: var(--text);
}
.product-card .qty-control button:hover { background: var(--border); }
.product-card .qty-control input {
    width: 38px; text-align: center; border: none;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600; padding: 5px 0;
    -moz-appearance: textfield; appearance: textfield;
}
.product-card .qty-control input::-webkit-inner-spin-button,
.product-card .qty-control input::-webkit-outer-spin-button { -webkit-appearance: none; }

.product-card .cart-btn {
    width: 34px; height: 34px; border-radius: 6px; border: none;
    background: var(--cta); color: white; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(232, 102, 26, 0.35);
}
.product-card .cart-btn:hover { background: var(--cta-hover); transform: scale(1.08); box-shadow: 0 4px 12px rgba(232, 102, 26, 0.5); }

/* === KAMPANYA SCROLL === */
.campaign-scroll-section { padding: 15px 0 5px; }
.campaign-scroll-section .section-header {
    display: flex; align-items: center; margin-bottom: 15px;
}
.campaign-scroll-section .section-header h5 {
    font-weight: 900; color: #fff; margin: 0; font-size: 1.05rem; white-space: nowrap;
    padding: 8px 16px; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.campaign-scroll-section .section-header::after {
    content: ''; flex: 1; height: 2px; background: var(--accent); margin-left: 15px; opacity: 0.3;
}
.campaign-scroll-container {
    display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.campaign-scroll-container::-webkit-scrollbar { height: 4px; }
.campaign-scroll-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.campaign-scroll-container > .product-card {
    min-width: 200px; max-width: 200px; scroll-snap-align: start; flex-shrink: 0;
}
.campaign-scroll-container > .product-card .product-image {
    padding-top: 80%;
}

/* === SEPET === */
.cart-page .cart-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cart-page .cart-table thead { background: var(--bg-light); }
.cart-page .cart-table th {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); font-weight: 600; padding: 12px 15px; border-bottom: 2px solid var(--border);
}
.cart-page .cart-table td { padding: 12px 15px; vertical-align: middle; }
.cart-page .cart-product-img {
    width: 70px; height: 70px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #f8f9fa; padding: 4px;
}
.cart-page .order-summary { border: 2px solid var(--accent); border-radius: 12px; overflow: hidden; }
.cart-page .order-summary .summary-header { background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%); color: white; padding: 15px 20px; font-weight: 600; }
.cart-page .order-summary .summary-body { padding: 20px; }
.cart-page .order-btn {
    background: var(--success); border: none; border-radius: 8px;
    padding: 12px; font-size: 1rem; font-weight: 700; width: 100%; color: white; transition: background 0.2s;
}
.cart-page .order-btn:hover { background: #219a52; }

/* Sepet checkbox */
.cart-page .cart-item-check,
.cart-page #select-all-cart {
    width: 18px; height: 18px; cursor: pointer; border-radius: 4px;
    border: 2px solid var(--border); transition: all 0.2s;
}
.cart-page .cart-item-check:checked,
.cart-page #select-all-cart:checked { background-color: var(--primary); border-color: var(--primary); }
.cart-page tr { transition: opacity 0.25s ease; }

/* === SİPARİŞ TABLO === */
.orders-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.orders-table thead { background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%); }
.orders-table th {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: #fff; font-weight: 600; padding: 12px 15px;
}
.orders-table td { padding: 12px 15px; vertical-align: middle; }
.status-badge { padding: 5px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* === MÜŞTERİ KARTLARI === */
.customer-card {
    border: 2px solid var(--border); border-radius: 12px; padding: 20px;
    transition: all 0.2s; cursor: pointer; background: var(--bg);
}
.customer-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.customer-card .customer-name { font-weight: 700; font-size: 1rem; color: var(--primary); }
.customer-card .customer-code { font-size: 0.8rem; color: var(--text-muted); }

/* === FOOTER === */
.site-footer {
    background: var(--primary); color: rgba(255,255,255,0.7);
    padding: 20px 0; margin-top: 60px; text-align: center; font-size: 0.85rem;
}

/* === TOASTR === */
.toast-top-right { top: 80px !important; }

/* === PAGE CONTAINER === */
.page-container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .products-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, 430px); }
    .hero-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (max-width: 992px) {
    .products-hero-grid { grid-template-columns: 1fr; }
    .hero-toolbar-main { grid-template-columns: 1fr 1fr; }
    .hero-cart-widget { grid-column: 1 / -1; }
    .hero-slider-shell .carousel,
    .hero-slider-shell .carousel-inner,
    .hero-slider-shell .carousel-item,
    .hero-slide,
    .hero-slide-content { min-height: 220px; }
    .hero-slide-content { padding: 20px 22px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    /* Liste görünümünde daha az sütun */
    .product-grid.list-view { grid-template-columns: 1fr; }
    .product-grid.list-view .product-card {
        grid-template-columns: 50px 80px 1fr 100px 80px 100px minmax(100px, auto) 80px;
        gap: 6px; padding: 5px 8px;
    }
    .product-grid.list-view .product-list-header {
        grid-template-columns: 50px 80px 1fr 100px 80px 100px minmax(100px, auto) 80px;
        gap: 6px; padding: 8px;
    }
    .nav-bar .nav-link { padding: 10px 12px; font-size: 0.78rem; }
    /* Mobilde filtre bar overlay */
    .filter-topbar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1070;
        margin-bottom: 0;
        transition: left 0.3s ease;
    }
    .filter-topbar.open {
        left: 0;
    }
    .filter-topbar-inner {
        flex-direction: column;
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        padding: 20px 16px;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    }
    .filter-topbar-item,
    .filter-topbar-item.filter-search-item {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .filter-topbar-item.filter-info-item {
        margin-left: 0;
    }
    .filter-sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1065;
        display: none;
    }
    .filter-sidebar-overlay.active { display: block; }
    .products-layout { padding-top: 5px; }
}
@media (max-width: 768px) {
    .products-hero { margin-top: 10px; }
    .hero-company-card { padding: 16px; border-radius: 20px; }
    .hero-company-brandmark {
        width: 148px;
        height: 108px;
        border-radius: 24px;
    }
    .hero-company-brandmark .hero-company-logo,
    .hero-company-brandmark .hero-company-monogram {
        width: 116px;
        height: 82px;
        border-radius: 20px;
    }
    .hero-company-head,
    .hero-company-summary,
    .hero-company-meta {
        padding-right: 160px;
    }
    .hero-company-name { font-size: 1.55rem; }
    .hero-toolbar-main { grid-template-columns: 1fr; }
    .hero-summary-card { min-height: 56px; }
    .hero-menu-grid { grid-template-columns: 1fr 1fr; }
    .hero-slider-shell,
    .hero-slide { border-radius: 24px; }
    .hero-slider-shell .carousel,
    .hero-slider-shell .carousel-inner,
    .hero-slider-shell .carousel-item,
    .hero-slide,
    .hero-slide-content { min-height: 200px; }
    .hero-slide-content { padding: 18px 18px 24px; }
    .hero-slide-content h2 { font-size: 1.15rem; }
    .hero-slider-shell .carousel-control-prev,
    .hero-slider-shell .carousel-control-next {
        top: 18px;
        width: 44px;
        height: 44px;
    }
    .hero-slider-shell .carousel-control-prev { right: 68px; }
    .hero-slider-shell .carousel-control-next { right: 16px; }
    .hero-carousel-indicators { left: 24px; bottom: 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    /* Liste görünümü: mobilde satır başına 3 kademeli kart.
       Eskiden stok + depo seçimi burada gizleniyordu; depo seçimi zorunlu olduğu için
       telefondan liste görünümünde sepete ürün eklenemiyordu ("Lütfen bir depo seçiniz"). */
    .product-grid.list-view .product-card {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas:
            "img   name  name"
            "img   price price"
            "stock stock stock"
            "depo  depo  cart";
        column-gap: 8px;
        row-gap: 5px;
        padding: 9px 10px;
        font-size: 0.72rem;
        align-items: center;
    }
    .product-grid.list-view .product-list-header { display: none !important; }
    .product-grid.list-view .product-card .product-code.list-only,
    .product-grid.list-view .product-card .product-brand.list-only { display: none !important; }
    .product-grid.list-view .product-card .product-image { grid-area: img; align-self: start; }
    .product-grid.list-view .product-card .product-name {
        grid-area: name;
        min-width: 0;
        flex-wrap: wrap;
        font-size: 0.78rem;
        line-height: 1.25;
    }
    .product-grid.list-view .product-card .product-name .kategori-simgeler { order: 0; margin: 0 4px 0 0; }
    .product-grid.list-view .product-card .price-area {
        grid-area: price;
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
    }
    .product-grid.list-view .product-card .stock-info {
        grid-area: stock;
        display: block !important;
        margin: 0 !important;
    }
    /* Depo rozetleri alt alta değil yan yana dizilsin (satır içi stil column veriyor) */
    .product-grid.list-view .product-card .stock-info .depo-stok-list {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 3px 4px !important;
    }
    .product-grid.list-view .product-card .stock-info .badge { font-size: 0.66rem !important; }
    .product-grid.list-view .product-card .depo-select-row {
        grid-area: depo;
        display: block !important;
        margin: 0 !important;
    }
    .product-grid.list-view .product-card .depo-select-row .depo-select {
        font-size: 0.8rem !important;
        padding: 5px 8px !important;
        width: 100%;
    }
    .product-grid.list-view .product-card .cart-row { grid-area: cart; justify-content: flex-end; }
    /* Parmakla basılabilir boyutlar */
    .product-grid.list-view .product-card .cart-row .qty-control button { padding: 5px 10px; font-size: 0.85rem; }
    .product-grid.list-view .product-card .cart-row .qty-control input { width: 38px; font-size: 0.85rem; padding: 5px 0; }
    .product-grid.list-view .product-card .cart-row .cart-btn { width: 36px; height: 36px; font-size: 0.9rem; }
    .top-header .logo { font-size: 1.2rem; }
    .top-header .logo .logo-img { height: 36px; }
    .top-header .logo .logo-text { font-size: 1.1rem; }
    .campaign-scroll-container > .product-card { min-width: 180px; max-width: 180px; }
    .cart-widget { padding: 4px 8px 4px 10px; gap: 6px; }
    .cart-widget-title { font-size: 0.7rem; }
    .cart-widget-detail { font-size: 0.62rem; }
    .cart-widget-icon { width: 30px; height: 30px; font-size: 1rem; }
    .nav-bar .nav-link { padding: 10px 14px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .hero-company-brandmark {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 0 12px auto;
        width: 136px;
        height: 98px;
    }
    .hero-company-head,
    .hero-current-customer {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-company-head,
    .hero-company-summary,
    .hero-company-meta {
        padding-right: 0;
    }
    .hero-company-head {
        min-height: 0;
    }
    .hero-company-brandmark .hero-company-logo,
    .hero-company-brandmark .hero-company-monogram {
        width: 104px;
        height: 72px;
        border-radius: 18px;
    }
    .hero-balance-card { padding: 15px; }
    .hero-menu-link,
    .hero-cart-widget,
    .hero-inline-balance { padding: 10px 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card .product-name { font-size: 0.75rem; min-height: 32px; }
    .product-card .current-price, .product-card .normal-price { font-size: 0.85rem; }
    .product-card .discount-badge { width: 36px; height: 36px; font-size: 0.65rem; }
    .scroll-to-top { bottom: 20px; right: 15px; width: 42px; height: 42px; }
}

/* ===== Yeni bayi giriş düzeni (login2) — eski tasarımın yedeği: views/auth/login_eski_yedek.php ===== */
.login2-wrapper { display: flex; height: calc(100vh - 50px); min-height: 480px; align-items: stretch; overflow: hidden; }
.login2-info {
    width: 290px; flex-shrink: 0;
    background: linear-gradient(180deg, #f7a81b 0%, #e8890c 100%);
    color: #fff; padding: 26px 22px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 18px;
}
.login2-info .login-brand { text-align: center; }
.login2-info .login-logo { max-width: 180px; max-height: 90px; object-fit: contain; margin-bottom: 12px; background: #fff; border-radius: 12px; padding: 8px; }
.login2-info .brand-icon { width: 70px; height: 70px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.7rem; }
.login2-info .login-brand h2 { font-weight: 700; font-size: 1.35rem; margin-bottom: 4px; }
.login2-info .login-brand p { opacity: .85; font-size: .85rem; margin: 0; }
.login2-info .login-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; margin-bottom: 12px; }
.login2-info .login-contact-item i { width: 28px; height: 28px; background: rgba(255,255,255,.18); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; margin-top: 1px; }
.login2-info .login-social { display: flex; gap: 10px; justify-content: center; }
.login2-info .login-social-icon { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; }
.login2-info .login-agreements { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.login2-info .login-agreements a { color: rgba(255,255,255,.92); font-size: .78rem; text-decoration: none; }
.login2-info .login-agreements a:hover { color: #fff; text-decoration: underline; }

.login2-main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 16px; min-width: 0; min-height: 0; }
.login2-form-band { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 16px 22px; flex-shrink: 0; }
.login2-form-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.login2-form-head h3 { font-weight: 700; color: var(--primary); margin: 0; font-size: 1.15rem; }
.login2-head-links { display: flex; gap: 16px; }
.login2-head-links a { font-size: .83rem; text-decoration: none; }
.login2-dealer-link { font-weight: 600; }
.login2-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.login2-form-row .form-floating { margin-bottom: 0; }
.login2-f-user { flex: 1 1 200px; }
.login2-f-pass { flex: 1 1 180px; }
.login2-captcha { display: flex; gap: 10px; align-items: center; flex: 1 1 260px; }
.login2-captcha img { height: 52px; border-radius: 10px; border: 1px solid #dee2e6; cursor: pointer; flex-shrink: 0; }
.login2-captcha .form-floating { flex: 1; }
.login2-btn { flex: 0 0 170px; width: auto !important; padding: 14px 18px !important; }

.login2-ads { flex: 1 1 0; display: flex; gap: 16px; min-height: 0; }
.login2-ad { flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 14px; }
.login2-ad a { display: block; height: 100%; }
.login2-ad-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.1); display: block; }

@media (max-width: 992px) {
    .login2-wrapper { flex-direction: column; height: auto; min-height: calc(100vh - 50px); overflow: visible; }
    .login2-info { width: 100%; overflow-y: visible; }
    .login2-ads { flex-direction: column; }
    .login2-ad { min-height: 180px; }
    .login2-btn { flex: 1 1 100%; }
}
