/* ========================================
   E-Ticaret Frontend — Woodmart-inspired
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ====== TOP BAR ====== */
.topbar {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #777;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}
.topbar-text { font-weight: 500; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #555; font-weight: 500; transition: color .15s; }
.topbar-links a:hover { color: #6c5ce7; }

/* ====== HEADER ====== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a1a2e;
    white-space: nowrap;
    letter-spacing: -.03em;
    flex-shrink: 0;
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #333; }

/* Categories Dropdown */
.cat-dropdown { position: relative; flex-shrink: 0; }
.cat-dropdown-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: #6c5ce7; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background .2s;
}
.cat-dropdown-btn:hover { background: #5b4fcf; }
.cat-arrow { transition: transform .2s; }
.cat-dropdown.open .cat-arrow { transform: rotate(180deg); }
.cat-dropdown-menu {
    display: none;
    position: absolute; top: calc(100% + 4px); left: 0;
    background: #fff; border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
    min-width: 280px; padding: 6px 0;
    z-index: 200;
    max-height: 480px; overflow-y: auto;
}
.cat-dropdown.open .cat-dropdown-menu { display: block; }
.cat-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; font-size: 14px; font-weight: 500;
    color: #444; transition: all .15s;
    border-left: 3px solid transparent;
}
.cat-dropdown-item:hover { background: #f5f3ff; color: #6c5ce7; border-left-color: #6c5ce7; }
.cat-dropdown-item img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.cat-dropdown-item span { flex: 1; }
.cat-sub-arrow { color: #bbb; margin-left: auto; flex-shrink: 0; }
.cat-dropdown-item:hover .cat-sub-arrow { color: #6c5ce7; }

/* Category Submenu (flyout) */
.cat-dropdown-item-wrap { position: relative; }
.cat-submenu {
    display: none;
    position: absolute; left: 100%; top: 0;
    background: #fff; border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    min-width: 220px; padding: 6px 0;
    z-index: 210;
    max-height: 400px; overflow-y: auto;
}
.cat-dropdown-item-wrap.has-sub:hover > .cat-submenu { display: block; }
.cat-submenu-item {
    display: block;
    padding: 8px 18px; font-size: 13px; color: #555;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.cat-submenu-item:hover { background: #f5f3ff; color: #6c5ce7; border-left-color: #6c5ce7; }

/* Header Search */
.header-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}
.header-search:focus-within { border-color: #6c5ce7; }
.header-search input {
    flex: 1; border: none; padding: 12px 16px;
    font-size: 14px; outline: none; background: transparent;
    min-width: 0;
}
.header-search button {
    border: none; background: #6c5ce7; color: #fff;
    padding: 10px 18px; cursor: pointer;
    display: flex; align-items: center;
    transition: background .2s;
}
.header-search button:hover { background: #5b4fcf; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bayi-giris-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: #6c5ce7; color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: all .2s;
}
.bayi-giris-btn:hover { background: #5b4fcf; box-shadow: 0 4px 12px rgba(108,92,231,.3); }
.action-icon {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: #333; transition: all .2s;
}
.action-icon:hover { background: #f5f3ff; color: #6c5ce7; }
.action-badge {
    position: absolute; top: 2px; right: 0;
    background: #6c5ce7; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px; display: flex;
    align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}

/* ====== MOBILE MENU ====== */
.mobile-menu {
    display: none; position: fixed; top: 0; left: -300px;
    width: 300px; height: 100%; background: #fff;
    z-index: 1000; box-shadow: 4px 0 20px rgba(0,0,0,.15);
    transition: left .3s ease; overflow-y: auto;
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #eee;
    font-weight: 700; font-size: 16px;
}
.mobile-menu-header button { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.mobile-search { display: flex; margin: 12px 16px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.mobile-search input { flex: 1; border: none; padding: 10px 14px; font-size: 14px; outline: none; }
.mobile-search button { border: none; background: #6c5ce7; color: #fff; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.mobile-nav a { display: block; padding: 12px 20px; border-bottom: 1px solid #f5f5f5; font-size: 14px; font-weight: 500; color: #333; }
.mobile-nav a:hover { background: #f8f7ff; color: #6c5ce7; }
.mobile-nav .mobile-nav-parent { font-weight: 600; }
.mobile-nav .mobile-nav-child { font-weight: 400; font-size: 13px; color: #666; padding-left: 32px; border-bottom-color: #fafafa; }

/* ====== BREADCRUMB ====== */
.breadcrumb { background: #fafafa; border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #999; }
.breadcrumb li::after { content: '/'; margin-left: 6px; color: #ddd; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: #6c5ce7; transition: color .15s; }
.breadcrumb a:hover { color: #5b4fcf; text-decoration: underline; }
.breadcrumb .active { color: #333; font-weight: 500; }

/* ====== HOME HERO (3-Column) ====== */
.home-hero { padding: 20px 0; }
.home-hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 20px;
    min-height: 420px;
}

/* Home Sidebar */
.home-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.home-cat-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.home-cat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; font-size: 14px; font-weight: 500;
    color: #333; border-bottom: 1px solid #f5f5f5;
    transition: all .15s;
}
.home-cat-item:last-child { border-bottom: none; }
.home-cat-item:hover { background: #f8f7ff; color: #6c5ce7; padding-left: 24px; }
.home-cat-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.home-cat-icon {
    width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center;
    background: #f5f3ff; border-radius: 6px; color: #6c5ce7; flex-shrink: 0;
}

/* Home Sidebar: Ana / Alt Kategori Ayrımı */
.home-cat-parent { font-weight: 600; }
.home-cat-parent .home-cat-arrow { color: #bbb; margin-left: auto; flex-shrink: 0; transition: transform .2s; }
.home-cat-child {
    padding: 8px 20px 8px 46px;
    font-size: 13px; font-weight: 400;
    color: #666;
    border-bottom-color: #fafafa;
}
.home-cat-child:hover { color: #6c5ce7; padding-left: 50px; }
.home-cat-child::before {
    content: ''; display: inline-block;
    width: 5px; height: 5px; border-radius: 50%;
    background: #ddd; margin-right: 10px; flex-shrink: 0;
}

/* Home Banner */
.home-banner {
    border-radius: 12px;
    position: relative; overflow: hidden;
    min-height: 100%;
}
/* Fallback (no banners) */
.home-banner-content {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #dfe6e9 100%);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    text-align: center; padding: 40px;
    min-height: 380px; position: relative; z-index: 1;
    border-radius: 12px;
}
.home-banner-content h1 {
    font-size: 2rem; font-weight: 900; color: #fff;
    margin-bottom: 8px; letter-spacing: -.02em;
}
.home-banner-content p {
    font-size: 1rem; color: rgba(255,255,255,.85);
    margin-bottom: 24px;
}
.home-banner-search {
    display: flex; max-width: 440px; margin: 0 auto;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.home-banner-search input {
    flex: 1; border: none; padding: 14px 18px;
    font-size: 14px; outline: none;
}
.home-banner-search button {
    border: none; background: #fff; color: #6c5ce7;
    padding: 14px 18px; cursor: pointer;
    display: flex; align-items: center;
    transition: background .2s;
}
.home-banner-search button:hover { background: #f0f0f0; }

/* Banner Slider */
.banner-slider { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
.banner-slider-track { position: relative; width: 100%; height: 100%; min-height: 380px; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity .5s ease;
    pointer-events: none;
}
.banner-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff; padding: 30px 24px 18px; font-size: 16px; font-weight: 600;
    border-radius: 0 0 12px 12px;
}
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.85); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #333; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s; opacity: 0;
}
.banner-slider:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.banner-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: all .2s; border: 2px solid rgba(255,255,255,.8);
}
.banner-dot.active { background: #fff; transform: scale(1.2); }

/* Home Widget (Right Column) */
.home-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.home-widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.home-widget-header h3 { font-size: 15px; font-weight: 700; color: #333; }
.home-widget-list { display: flex; flex-direction: column; }
.home-widget-item {
    display: flex; gap: 14px; padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.home-widget-item:last-child { border-bottom: none; }
.home-widget-item:hover { background: #fafafa; }
.home-widget-img { width: 70px; height: 70px; flex-shrink: 0; }
.home-widget-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #f8f8f8; }
.home-widget-img-ph {
    width: 70px; height: 70px; display: flex;
    align-items: center; justify-content: center;
    background: #f5f5f5; border-radius: 8px; color: #ccc;
}
.home-widget-info { flex: 1; min-width: 0; }
.home-widget-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 13px; font-weight: 600; color: #333;
    line-height: 1.4; margin-bottom: 4px;
}
.home-widget-price { font-size: 15px; font-weight: 700; color: #e74c3c; }

/* ====== SECTIONS ====== */
.section { padding: 40px 0; }
.section-alt { background: #fafafa; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; color: #1a1a2e; }
.section-link { font-size: 13px; font-weight: 600; color: #6c5ce7; transition: color .15s; }
.section-link:hover { color: #5b4fcf; }

/* ====== PRODUCT GRID ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all .25s ease;
}
.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.product-card-img {
    display: block; position: relative;
    aspect-ratio: 1; background: #f8f8f8; overflow: hidden;
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 12px; transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ddd; background: #f8f8f8;
}
.badge-featured {
    position: absolute; top: 10px; left: 10px;
    background: #6c5ce7; color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
}
.product-card-body { padding: 14px 16px 18px; }
.product-card-cat { font-size: 11px; color: #999; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.product-card-title { display: block; }
.product-card-title h3 {
    font-size: 14px; font-weight: 600; line-height: 1.35; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.product-card-title:hover h3 { color: #6c5ce7; }
.product-card-price {
    font-size: 16px; font-weight: 700; color: #e74c3c; margin-top: 8px;
}

/* ====== CATEGORY PAGE ====== */
.category-header {
    margin-bottom: 24px;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
}
.category-header h1 { font-size: 1.5rem; font-weight: 700; }
.category-desc { color: #777; font-size: 14px; flex-basis: 100%; }
.category-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:12px; flex-wrap:wrap; }
.result-count { font-size: 13px; color: #999; }
.sort-dropdown { display:flex; align-items:center; gap:8px; margin-left:auto; }
.sort-dropdown label { font-size:13px; color:#888; white-space:nowrap; }
.sort-dropdown select { padding:7px 12px; border:1px solid #e0e0e0; border-radius:8px; font-size:13px; background:#fff; color:#333; cursor:pointer; outline:none; }
.sort-dropdown select:focus { border-color:#6c5ce7; }
.subcategory-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcategory-tag {
    padding: 6px 16px; border-radius: 20px;
    background: #fff; border: 1px solid #e8e8e8;
    font-size: 13px; font-weight: 500; color: #555;
    transition: all .2s;
}
.subcategory-tag:hover { border-color: #6c5ce7; color: #6c5ce7; background: #f8f7ff; }

/* ====== PRODUCT DETAIL ====== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: start;
}
.gallery-main {
    border-radius: 12px; overflow: hidden;
    background: #f8f8f8; border: 1px solid #eee;
    aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-placeholder-lg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f8f8f8; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.thumb {
    width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent; background: none;
    padding: 0; flex-shrink: 0; transition: border-color .15s;
}
.thumb:hover, .thumb.active { border-color: #6c5ce7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: #333; }
.product-cat { margin-bottom: 12px; }
.product-cat a { color: #6c5ce7; font-size: 13px; font-weight: 500; }
.product-cat a:hover { text-decoration: underline; }
.product-price { font-size: 1.75rem; font-weight: 800; color: #e74c3c; margin-bottom: 16px; }
.product-stock { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.in-stock { background: #d4edda; color: #155724; }
.out-of-stock { background: #f8d7da; color: #721c24; }

/* Variants */
.product-variants { margin-bottom: 20px; }
.variant-group { margin-bottom: 12px; }
.variant-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-option { padding: 6px 14px; border-radius: 6px; border: 1px solid #e8e8e8; font-size: 13px; background: #fff; cursor: default; }
.variant-btn { cursor: pointer; padding: 6px 16px; border: 2px solid #ddd; border-radius: 6px; background: #fff; font-size: 14px; transition: all .2s; }
.variant-btn:hover { border-color: #6c5ce7; color: #6c5ce7; }
.variant-btn.active { border-color: #6c5ce7; background: #6c5ce7; color: #fff; }

/* Add to cart */
.add-to-cart { display: flex; align-items: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.qty-selector { display: inline-flex; align-items: center; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-selector button { width: 40px; height: 42px; border: none; background: #f8f8f8; cursor: pointer; font-size: 18px; font-weight: 600; color: #333; display: flex; align-items: center; justify-content: center; }
.qty-selector button:hover { background: #eee; }
.qty-selector input { width: 50px; height: 42px; border: none; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add-cart {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; background: #6c5ce7; color: #fff;
    border: none; border-radius: 8px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-add-cart:hover { background: #5b4fcf; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,92,231,.35); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-add-cart svg { flex-shrink: 0; }

/* Product Specs */
.product-specs {
    margin-top: 24px; background: #fafafa;
    border-radius: 10px; padding: 20px 24px; border: 1px solid #eee;
}
.product-specs h2 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #333; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.spec-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 13px; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.specs-grid > .spec-item:nth-child(odd) { border-right: 1px solid #eee; }
.spec-label { color: #888; font-weight: 500; }
.spec-value { color: #333; font-weight: 600; text-align: right; }

/* Product Description */
.product-desc { margin-top: 30px; padding: 24px 30px; border-top: 1px solid #f0f0f0; background: #fafafa; border-radius: 8px; }
.product-desc h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.product-desc div { font-size: 14px; color: #555; line-height: 1.7; word-wrap: break-word; overflow-wrap: break-word; }

/* Variant Table */
.product-variant-table { margin-top: 24px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.product-variant-table h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.product-variant-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-variant-table th { text-align: left; padding: 8px 12px; background: #fafafa; font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #eee; }
.product-variant-table td { padding: 8px 12px; border-bottom: 1px solid #f5f5f5; }

/* ====== SEARCH PAGE ====== */
.search-page-header { text-align: center; margin-bottom: 32px; }
.search-page-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.search-page-form {
    display: flex; max-width: 520px; margin: 0 auto;
    border-radius: 10px; overflow: hidden;
    border: 2px solid #e8e8e8; background: #fff; transition: border-color .2s;
}
.search-page-form:focus-within { border-color: #6c5ce7; }
.search-page-form input { flex: 1; border: none; padding: 14px 18px; outline: none; font-size: 1rem; }
.search-page-form button { border: none; background: #6c5ce7; color: #fff; padding: 14px 28px; font-weight: 600; cursor: pointer; transition: background .2s; }
.search-page-form button:hover { background: #5b4fcf; }

/* ====== PAGINATION ====== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 8px; border: 1px solid #e8e8e8;
    background: #fff; font-size: 14px; font-weight: 500; color: #555;
    transition: all .2s;
}
.page-link:hover { border-color: #6c5ce7; color: #6c5ce7; }
.page-link.active { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }

/* ====== EMPTY / NOT FOUND ====== */
.empty-state, .not-found { text-align: center; padding: 60px 20px; }
.empty-state svg, .not-found svg { margin: 0 auto 16px; }
.empty-state p, .not-found p { font-size: 1rem; color: #999; margin-bottom: 20px; }
.not-found h1 { font-size: 1.5rem; margin-bottom: 8px; }
.btn-primary {
    display: inline-block; padding: 12px 28px;
    background: #6c5ce7; color: #fff;
    border-radius: 8px; font-weight: 600; transition: all .2s;
}
.btn-primary:hover { background: #5b4fcf; }

/* ====== FOOTER ====== */
.site-footer { background: #1a1a2e; color: #a0aec0; padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 14px; line-height: 1.6; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0; margin-top: 36px;
    text-align: center; font-size: 13px;
}

/* ====== CART PAGE ====== */
.page-title { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { margin-bottom: 16px; }
.cart-empty p { color: #888; font-size: 1rem; margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border: 1px solid #eee; border-radius: 10px; transition: box-shadow .2s; }
.cart-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.cart-item-img { width: 80px; height: 80px; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.cart-item-placeholder { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 6px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { display: block; font-weight: 600; color: #333; font-size: 14px; margin-bottom: 4px; }
.cart-item-title:hover { color: #6c5ce7; }
.cart-item-variant { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: #777; }
.cart-item-qty { flex-shrink: 0; }
.cart-item-total { flex-shrink: 0; min-width: 100px; text-align: right; font-size: 15px; font-weight: 700; color: #333; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: #ccc; padding: 4px; transition: color .2s; }
.cart-item-remove:hover { color: #e74c3c; }
.cart-summary { background: #fff; border: 2px solid #eee; border-radius: 12px; padding: 24px; position: sticky; top: 120px; }
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #333; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.cart-summary-total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 18px; font-weight: 700; color: #e74c3c; border-top: 2px solid #eee; margin-top: 8px; }
.btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.btn-secondary { display: inline-block; padding: 10px 24px; background: #f8f8f8; color: #555; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; margin-top: 8px; }
.btn-secondary:hover { background: #eee; color: #333; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ====== CHECKOUT STEPS ====== */
.checkout-steps { display:flex; justify-content:center; gap:8px; margin-bottom:32px; }
.checkout-step { display:flex; align-items:center; gap:8px; padding:10px 20px; border-radius:8px; background:#f0f0f0; color:#888; font-size:14px; font-weight:500; }
.checkout-step .step-num { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#ddd; color:#888; font-weight:700; font-size:13px; }
.checkout-step.active { background:#6c5ce7; color:#fff; }
.checkout-step.active .step-num { background:rgba(255,255,255,.25); color:#fff; }
.checkout-step.done { background:#e8f5e9; color:#28a745; }
.checkout-step.done .step-num { background:#28a745; color:#fff; font-size:16px; }

/* ====== CHECKOUT ====== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.checkout-form { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px; }
.checkout-form h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #333; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form .form-group { margin-bottom: 16px; }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: border-color .2s; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.checkout-form textarea { resize: vertical; }
.checkout-summary { background: #fff; border: 2px solid #eee; border-radius: 12px; padding: 24px; position: sticky; top: 120px; }
.checkout-summary h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #333; }
.checkout-items { max-height: 350px; overflow-y: auto; }
.checkout-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; align-items: center; }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 50px; height: 50px; flex-shrink: 0; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { display: block; font-size: 13px; font-weight: 600; color: #333; }
.checkout-item-info small { display: block; font-size: 12px; color: #999; }
.checkout-item-qty { display: block; font-size: 12px; color: #777; margin-top: 2px; }
.checkout-item-total { flex-shrink: 0; font-weight: 600; font-size: 14px; color: #333; }
.checkout-total { display: flex; justify-content: space-between; padding: 16px 0 12px; border-top: 2px solid #eee; margin-top: 8px; font-size: 18px; }
.checkout-total strong { color: #e74c3c; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.order-success { text-align: center; padding: 60px 20px; }
.order-success h1 { font-size: 1.5rem; font-weight: 800; color: #333; margin: 16px 0 8px; }
.order-success p { color: #555; font-size: 1rem; margin-bottom: 8px; }
.order-success .order-email-note { color: #888; font-size: 14px; margin: 16px 0 24px; }

/* ====== CONTACT PAGE ====== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-info-card { background: #fafafa; border-radius: 12px; padding: 32px; border: 1px solid #eee; }
.contact-info-card h1 { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.contact-subtitle { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #6c5ce7; border-radius: 8px; color: #fff; }
.contact-detail-item strong { display: block; font-size: 12px; color: #999; font-weight: 500; margin-bottom: 2px; }
.contact-detail-item span, .contact-detail-item a { font-size: 14px; color: #333; font-weight: 600; }
.contact-detail-item a:hover { color: #6c5ce7; }
.contact-legal { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e5e5e5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-legal-item { display: flex; flex-direction: column; gap: 2px; }
.contact-legal-label { font-size: 11px; color: #bbb; font-weight: 500; }
.contact-legal-value { font-size: 13px; color: #555; font-weight: 600; }
.contact-form-card { background: #fff; border-radius: 12px; padding: 32px; border: 1px solid #eee; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.contact-form-card h2 { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 20px; }
.contact-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form-card .form-group { margin-bottom: 14px; }
.contact-form-card .form-row .form-group { margin-bottom: 0; }
.contact-form-card label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.contact-form-card input, .contact-form-card textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; transition: border-color .15s; box-sizing: border-box;
}
.contact-form-card input:focus, .contact-form-card textarea:focus { border-color: #6c5ce7; outline: none; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.contact-form-card textarea { resize: vertical; min-height: 100px; }
.contact-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.contact-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ====== CMS PAGE ====== */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f0f0f0; }
.page-body { font-size: 14px; line-height: 1.8; color: #555; }
.page-body h2 { font-size: 1.25rem; font-weight: 700; margin-top: 28px; margin-bottom: 12px; color: #333; }
.page-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 24px; margin-bottom: 10px; color: #333; }
.page-body p { margin-bottom: 14px; }
.page-body ul, .page-body ol { margin-bottom: 14px; padding-left: 24px; }
.page-body li { margin-bottom: 6px; }
.page-body a { color: #6c5ce7; }
.page-body a:hover { text-decoration: underline; }

/* ====== CART ICON (legacy compat) ====== */
.cart-icon { position: relative; display: flex; align-items: center; color: #333; }
.cart-icon:hover { color: #6c5ce7; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: #6c5ce7; color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .home-hero-grid { grid-template-columns: 220px 1fr; }
    .home-widget { display: none; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { height: 60px; gap: 12px; }
    .cat-dropdown { display: none; }
    .header-search { flex: 1; }
    .header-search input { padding: 10px 14px; }
    .bayi-giris-btn { display: none; }
    .mobile-menu-btn { display: flex; }
    .home-hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .home-sidebar { display: none; }
    .home-banner { min-height: auto; }
    .banner-slider-track { min-height: 220px; }
    .home-banner-content { min-height: 220px; padding: 24px; }
    .home-banner-content h1 { font-size: 1.5rem; }
    .banner-arrow { width: 30px; height: 30px; }
    .banner-prev { left: 6px; }
    .banner-next { right: 6px; }
    .section { padding: 24px 0; }
    .section-title { font-size: 1.125rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card-body { padding: 10px 12px 14px; }
    .product-card-title h3 { font-size: 13px; }
    .product-card-price { font-size: 14px; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-info h1 { font-size: 1.25rem; }
    .product-price { font-size: 1.375rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-total { width: 100%; text-align: left; margin-top: 8px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-form .form-row { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-info-card, .contact-form-card { padding: 20px; }
    .contact-form-card .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-card .form-row .form-group { margin-bottom: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .search-page-form { flex-direction: column; }
    .header-actions { gap: 8px; }
}
/* ==================== Cart Drawer ==================== */
.cart-drawer-overlay { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9998; opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s; }
.cart-drawer-overlay.open { opacity:1; visibility:visible; }
.cart-drawer { position:fixed; top:0; right:0; bottom:0; width:400px; max-width:90vw; background:#fff; z-index:9999; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .3s ease; box-shadow:-4px 0 24px rgba(0,0,0,.12); }
.cart-drawer.open { transform:translateX(0); }
.cart-drawer-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #eee; flex-shrink:0; }
.cart-drawer-header h3 { margin:0; font-size:16px; display:flex; align-items:center; gap:8px; color:#333; }
.cart-drawer-header h3 span { font-weight:400; color:#868e96; font-size:14px; }
.cart-drawer-close { background:none; border:none; font-size:28px; cursor:pointer; color:#999; line-height:1; padding:0 4px; }
.cart-drawer-close:hover { color:#333; }
.cart-drawer-body { flex:1; overflow-y:auto; padding:12px 20px; }
.cart-drawer-loading { text-align:center; color:#adb5bd; padding:40px 0; font-size:14px; }
.cart-drawer-empty { text-align:center; padding:60px 20px; color:#adb5bd; }
.cart-drawer-empty svg { margin-bottom:12px; }
.cart-drawer-empty p { margin:0; font-size:14px; }
.cart-drawer-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid #f1f3f5; align-items:flex-start; position:relative; }
.cart-drawer-item:last-child { border-bottom:none; }
.cart-drawer-item-img { width:64px; height:64px; border-radius:8px; overflow:hidden; flex-shrink:0; background:#f8f9fa; }
.cart-drawer-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-drawer-item-ph { width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.cart-drawer-item-info { flex:1; min-width:0; }
.cart-drawer-item-name { display:block; font-size:13px; font-weight:600; color:#333; text-decoration:none; line-height:1.3; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-drawer-item-name:hover { color:#6c5ce7; }
.cart-drawer-item-variant { display:block; font-size:11px; color:#868e96; margin-bottom:4px; }
.cart-drawer-item-meta { display:flex; align-items:center; justify-content:space-between; font-size:13px; color:#555; }
.cart-drawer-item-meta strong { color:#e74c3c; }
.cart-drawer-item-remove { position:absolute; top:10px; right:0; background:none; border:none; font-size:20px; color:#ccc; cursor:pointer; padding:0 2px; line-height:1; }
.cart-drawer-item-remove:hover { color:#e74c3c; }
.cart-drawer-footer { border-top:1px solid #eee; padding:16px 20px; flex-shrink:0; }
.cart-drawer-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-size:15px; }
.cart-drawer-total strong { font-size:18px; color:#e74c3c; }
.cart-drawer-btn-view { display:block; text-align:center; padding:10px; border:2px solid #6c5ce7; border-radius:8px; color:#6c5ce7; font-weight:600; font-size:14px; text-decoration:none; margin-bottom:8px; transition:background .2s, color .2s; }
.cart-drawer-btn-view:hover { background:#6c5ce7; color:#fff; }
.cart-drawer-btn-checkout { display:block; text-align:center; padding:10px; background:#6c5ce7; border-radius:8px; color:#fff; font-weight:600; font-size:14px; text-decoration:none; transition:background .2s; }
.cart-drawer-btn-checkout:hover { background:#5a4bd1; }

/* ==================== Payment Methods ==================== */
.payment-methods { display:flex; flex-direction:column; gap:10px; }
.payment-method { cursor:pointer; }
.payment-method input[type="radio"] { display:none; }
.payment-method-body { display:flex; align-items:center; gap:14px; padding:14px 18px; border:2px solid #e9ecef; border-radius:10px; transition:border-color .2s, background .2s; }
.payment-method input:checked + .payment-method-body { border-color:#6c5ce7; background:#f8f7ff; }
.payment-method-body svg { flex-shrink:0; color:#6c5ce7; }
.payment-method-body div { flex:1; }
.payment-method-body strong { display:block; font-size:14px; color:#333; }
.payment-method-body small { font-size:12px; color:#868e96; }
.form-select { width:100%; padding:10px 14px; border:1.5px solid #dee2e6; border-radius:8px; font-size:14px; font-family:inherit; background:#fff; }
.form-select:focus { outline:none; border-color:#6c5ce7; }

/* ====== TAKSIT SECENEKLERI ====== */
.taksit-container { max-width:640px; margin:0 auto; }
.taksit-info { margin-bottom:20px; }
.taksit-tutar-box { background:#f8f9fa; border:1px solid #e9ecef; border-radius:10px; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; }
.taksit-tutar-box span { font-size:14px; color:#555; }
.taksit-tutar-box strong { font-size:20px; color:#333; }
.taksit-list { display:flex; flex-direction:column; gap:8px; }
.taksit-option { cursor:pointer; }
.taksit-option input[type="radio"] { display:none; }
.taksit-option-body { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border:2px solid #e9ecef; border-radius:10px; transition:border-color .2s, background .2s; }
.taksit-option input:checked + .taksit-option-body { border-color:#6c5ce7; background:#f8f7ff; }
.taksit-option-left { display:flex; flex-direction:column; gap:2px; }
.taksit-option-left strong { font-size:14px; color:#333; }
.taksit-komisyon { font-size:11px; color:#868e96; }
.taksit-komisyon-yok { font-size:11px; color:#28a745; font-weight:600; }
.taksit-option-right { text-align:right; display:flex; flex-direction:column; gap:2px; }
.taksit-aylik { font-size:12px; color:#868e96; }
.taksit-toplam { font-size:15px; color:#333; }

/* ====== HAVALE BILGILERI ====== */
.havale-container { max-width:640px; margin:0 auto; }
.havale-tutar-box { background:#f8f9fa; border:1px solid #e9ecef; border-radius:10px; padding:16px 20px; display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.havale-tutar-box span { font-size:14px; color:#555; }
.havale-tutar-box strong { font-size:20px; color:#333; }
.havale-bilgi-box { background:#fff; border:2px solid #e9ecef; border-radius:12px; padding:24px; text-align:center; }
.havale-bilgi-icon { margin-bottom:16px; }
.havale-tablo { width:100%; text-align:left; border-collapse:collapse; }
.havale-tablo td { padding:10px 12px; border-bottom:1px solid #f0f0f0; font-size:14px; }
.havale-tablo td:first-child { color:#868e96; width:130px; font-size:13px; }
.havale-tablo tr:last-child td { border-bottom:none; }
.havale-iban { font-family:monospace; letter-spacing:1px; }
.havale-uyari { background:#fff3cd; border:1px solid #ffc107; border-radius:8px; padding:12px 16px; margin-top:16px; font-size:13px; color:#856404; display:flex; align-items:flex-start; gap:8px; }
.havale-uyari svg { flex-shrink:0; margin-top:1px; }

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .specs-grid { grid-template-columns: 1fr; }
    .specs-grid > .spec-item:nth-child(odd) { border-right: none; }
    .spec-item:last-child { border-bottom: none; }
    .spec-item:nth-last-child(2) { border-bottom: 1px solid #eee; }
}
