/* ================================================
   B2B SİPARİŞ SİSTEMİ - DOGUDEKO TARZI CSS
   ================================================ */

:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --success: #27ae60;
    --warning: #f39c12;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --text: #2c3e50;
    --text-muted: #95a5a6;
    --border: #ecf0f1;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
    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;
    padding: 20px 20px 60px;
}
.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;
    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: var(--primary);
    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; }

/* 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;
}
.nav-bar {
    /* inside fixed wrapper */
}
.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: var(--primary); padding: 0; }
.nav-bar .nav-link {
    color: rgba(255,255,255,0.85); 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: #fff; background: rgba(255,255,255,0.1); }
.nav-bar .bakiye-display { color: #fff; 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 (Sol Filtre + Sağ Ürünler) === */
.products-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding-top: 15px;
}

/* === SOL SIDEBAR FİLTRE === */
.filter-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}
.filter-sidebar::-webkit-scrollbar { width: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.filter-sidebar-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sidebar-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.sidebar-title i { color: var(--accent); font-size: 0.75rem; }

.sidebar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.sidebar-search {
    position: relative;
}
.sidebar-search input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 35px 8px 12px;
    font-size: 0.85rem;
    background: var(--bg-light);
    transition: border-color 0.3s;
    outline: none;
}
.sidebar-search input:focus {
    border-color: var(--primary);
    background: var(--bg);
}
.sidebar-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.sidebar-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
}
.sidebar-info i { color: var(--primary); }

.filter-sidebar .form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 6px 10px;
}
.filter-sidebar .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* 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 {
    flex: 1;
    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; }
.section-title h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.section-title::after { content:''; display:block; width:60px; height:3px; background:var(--primary); margin:0 auto; }

/* === ÜRÜN GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px 0;
}

/* === ÜRÜN KARTI === */
.product-card {
    position: relative; background: var(--bg); border-radius: 10px; border: 1px solid var(--border);
    overflow: hidden; 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;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; color: white; z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.discount-badge.bg-red { background: #e74c3c; }
.discount-badge.bg-orange { background: #e67e22; }
.discount-badge.bg-green { background: #27ae60; }
.discount-badge.bg-blue { background: #3498db; }
.discount-badge.bg-purple { background: #9b59b6; }

.product-card .fav-btn {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.9); 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;
}
.product-card .fav-btn:hover { color: var(--accent); background: white; }

.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.8rem; color: var(--text-muted); text-decoration: line-through; }
.product-card .current-price { font-size: 1rem; font-weight: 700; color: var(--accent); }
.product-card .normal-price { font-size: 1rem; font-weight: 700; color: var(--primary); }

.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(--primary); color: white; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.product-card .cart-btn:hover { background: var(--accent); transform: scale(1.05); }

/* === 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: 700; color: var(--accent); margin: 0; font-size: 1.1rem; white-space: nowrap;
}
.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(--primary); border-radius: 12px; overflow: hidden; }
.cart-page .order-summary .summary-header { background: var(--primary); 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; }

/* === SİPARİŞ TABLO === */
.orders-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.orders-table thead { background: var(--bg-light); }
.orders-table th {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); 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: 1300px; margin: 0 auto; padding: 0 20px; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .filter-sidebar { width: 230px; min-width: 230px; }
}
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .nav-bar .nav-link { padding: 10px 12px; font-size: 0.78rem; }
    /* Mobilde sidebar overlay */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1070;
        background: var(--bg);
        padding: 15px;
        transition: left 0.3s ease;
        box-shadow: none;
        border-radius: 0;
        overflow-y: auto;
    }
    .filter-sidebar.open {
        left: 0;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    }
    .filter-sidebar-inner {
        border: none;
        box-shadow: none;
    }
    .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) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .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) {
    .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; }
}
