/* ============================================
   HERSHEY AMBALAJ - Ana Stil DosyasÄ± (V8)
   Tamamen responsive - Mobil & PC %100 uyumlu
   ============================================ */

/* === FOUC PREVENTION: Material Icons === */
/* İkon fontları yüklenene kadar ikon metinlerini gizle (FOUC engeli) */
.material-symbols-outlined {
    opacity: 0;
    transition: opacity 0.2s ease;
}
html.icons-ready .material-symbols-outlined {
    opacity: 1;
}
/* 3 saniye sonra font yüklenemese bile ikonları göster (fallback) */
@keyframes iconFallbackReveal {
    to { opacity: 1; }
}
html:not(.icons-ready) .material-symbols-outlined {
    animation: iconFallbackReveal 0s 3s forwards;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    color: #1c1917;
    background: #fafaf9;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
input, textarea, select { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; outline: none; }

/* === CSS VARIABLES === */
:root {
    --primary: #16a34a;
    --primary-hover: #15803d;
    --primary-light: #f0fdf4;
    --primary-dark: #14532d;
    --text: #111827;
    --text-light: #4b5563;
    --text-lighter: #757575;
    --bg: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #22c55e;
    --danger: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --max-width: 1280px;
    --header-height: 72px;
}

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.gap-2 { gap: 8px; }
.gap-1 { gap: 4px; }
.text-center { text-align: center; }
.hidden { display: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === GRID SYSTEM === */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* === TOP BAR === */
.top-bar {
    background: #1c1917;
    padding: 8px 0;
    font-size: 11px;
    color: #a8a29e;
}
.top-bar a { color: #a8a29e; }
.top-bar a:hover { color: var(--primary); }
.top-bar .icon { color: var(--primary); margin-right: 4px; font-size: 14px; vertical-align: middle; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

#header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.25);
}
.logo-text { display: flex; align-items: baseline; gap: 6px; }
.logo-text h1 { font-size: 20px; font-weight: 800; line-height: 1; color: var(--text); letter-spacing: -0.3px; }
.logo-text span { font-size: 11px; font-weight: 600; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 2px; }

/* Search — Desktop (inline in header) */
.search-bar-desktop { flex: 1; max-width: 560px; position: relative; }
.search-bar-desktop input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 52px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg);
    transition: all 0.2s;
}
.search-bar-desktop input:focus { border-color: var(--primary); background: white; }
.search-bar-desktop button {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 48px;
    background: var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.search-bar-desktop button:hover { background: var(--primary-hover); }

/* Search Row — mobile only, hidden on desktop */
.search-row {
    display: none;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.search-row .container {
    display: flex;
    justify-content: center;
}
.search-row .search-bar {
    flex: 1;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: var(--text-lighter);
    pointer-events: none;
    z-index: 1;
}
.search-row .search-bar input {
    width: 100%;
    padding: 11px 48px 11px 42px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg);
    transition: all 0.2s;
}
.search-row .search-bar input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}
.search-bar:focus-within .search-bar-icon {
    color: var(--primary);
}
.search-row .search-bar button {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 44px;
    background: var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.search-row .search-bar button:hover { background: var(--primary-hover); }

/* Mobil arama butonu */
.mobile-search-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    flex-shrink: 0;
    transition: all 0.2s;
}
.mobile-search-btn:hover { background: var(--primary-light); color: var(--primary); }

/* Mobil arama paneli overlay */
.mobile-search-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    animation: fadeIn 0.2s;
}
.mobile-search-overlay.open { display: block; }
.mobile-search-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    align-items: center; gap: 10px;
}
.mobile-search-panel.open { display: flex; }
.mobile-search-panel input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg);
    transition: border-color 0.2s;
    min-width: 0;
}
.mobile-search-panel input:focus { border-color: var(--primary); background: white; }
.mobile-search-panel .search-go {
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mobile-search-panel .search-close {
    width: 44px; height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--text-light);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
    min-width: 40px;
}
.header-action:hover { color: var(--primary); }
.header-action .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 0, 'wght' 400; }
.header-action > span:last-of-type:not(.cart-badge):not(.material-symbols-outlined) { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; }
.header-action .action-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; }
.cart-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--primary);
    color: white;
    font-size: 9px; font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* === NAV === */
.nav { border-top: 1px solid var(--border-light); background: white; }
.nav-scroll-wrap {
    position: relative;
}
.nav ul {
    display: flex; align-items: center; justify-content: space-between; gap: 0;
    flex-wrap: nowrap;
    padding: 0;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 16px 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: all 0.2s;
    letter-spacing: -0.2px;
    position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 700; }
.nav a.active::after {
    content: '';
    position: absolute; bottom: 0; left: 12px; right: 12px;
    height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
}
.nav a.highlight { color: var(--danger); font-weight: 700; }
.nav a.highlight:hover { color: #dc2626; }

/* === HERO BANNER === */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2718 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: 56px 64px;
    min-height: 300px;
    display: flex;
    align-items: center;
    margin: 20px 0;
}
.hero::after {
    content: '';
    position: absolute; right: -80px; top: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(22,163,74,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute; left: 55%; bottom: -40px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 520px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(22,163,74,0.15);
    color: #86efac;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(22,163,74,0.25);
    margin-bottom: 20px;
}
.hero h1, .hero h2 { font-size: clamp(22px, 4vw, 40px); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero h1 span, .hero h2 span { color: #4ade80; }
.hero p { color: #94a3b8; font-size: clamp(13px, 2vw, 15px); margin-bottom: 24px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 700;
    transition: all 0.2s;
    border: none; cursor: pointer;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(22,163,74,0.25); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: #1c1917; color: white; }
.btn-dark:hover { background: #292524; }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius); }

/* === TRUST BADGES === */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.trust-badge {
    display: flex; align-items: center; gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.trust-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.trust-badge-icon {
    width: 42px; height: 42px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.trust-badge-icon .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1; }
.trust-badge h4 { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.trust-badge p { font-size: 10px; color: var(--text-lighter); line-height: 1.4; }

/* === SECTION === */
.section { padding-top: 40px; padding-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; }
.section-header h2 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.section-header a { font-size: 12px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; white-space: nowrap; flex-shrink: 0; }
.section-header a:hover { color: var(--primary-hover); gap: 6px; }

/* === PRODUCT CARD === */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d1d5db; }
.product-card-img {
    aspect-ratio: 1;
    padding: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); transition: transform 0.3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 9px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
}
.badge-hot { background: #fef3c7; color: #92400e; }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-sale { background: #fce7f3; color: #9d174d; }
.product-fav {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-lighter);
    transition: all 0.2s;
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
}
.product-fav:hover { border-color: #fca5a5; color: #ef4444; }
.product-fav.active { background: #fef2f2; border-color: #fca5a5; color: #ef4444; }
.product-card-body { padding: 12px 16px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-rating { display: none !important; }
.star-picker { display: none !important; }
.review-avg .stars { display: none !important; }
.review-bar-row span:first-child .material-symbols-outlined { display: none !important; }
.product-rating .review-count { font-size: 10px; color: var(--text-lighter); margin-left: 4px; }
.product-card-body h3 {
    font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}
.product-card-body h3 a { transition: color 0.2s; }
.product-card-body h3 a:hover { color: var(--primary); }
.product-prices { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.price-main { display: flex; align-items: baseline; gap: 6px; }
.price-main .price { font-size: 19px; font-weight: 900; color: var(--text); }
.price-main .unit { font-size: 11px; color: var(--text-lighter); font-weight: 500; }
.price-bulk { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 6px 10px; background: #f0fdf4; border-radius: 6px; border: 1px dashed #bbf7d0; }
.price-bulk .label { font-size: 10px; color: var(--primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.price-bulk .price { font-size: 13px; font-weight: 800; color: var(--primary); }
.price-box {
    background: var(--bg);
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.price-box.bulk { background: var(--primary-light); border: 1px solid #bbf7d0; }
.price-box .label { font-size: 9px; color: var(--text-lighter); font-weight: 600; }
.price-box .price { font-size: 13px; font-weight: 800; color: var(--text); }
.price-box.bulk .price { color: var(--primary-dark); }
.price-box .tax { font-size: 8px; color: var(--text-lighter); }
.product-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 38px; gap: 6px; }
.product-actions .btn-add {
    background: var(--primary);
    color: white;
    font-size: 11px; font-weight: 600;
    padding: 9px;
    border-radius: var(--radius-sm);
    border: none; cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.product-actions .btn-add:hover { background: var(--primary-hover); }
.product-actions .btn-cart-icon {
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.product-actions .btn-cart-icon:hover { background: var(--primary-light); color: var(--primary); border-color: #bbf7d0; }

/* === CATEGORY CARDS === */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    display: block;
    min-height: 120px;
}
.category-card-bg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    transition: transform 0.4s;
}
.category-card:hover .category-card-bg { transform: scale(1.06); }
.category-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.category-card-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; }
.category-card-text h3 { color: white; font-size: clamp(13px, 2.5vw, 17px); font-weight: 800; letter-spacing: -0.2px; }
.category-card-text p { color: rgba(255,255,255,0.65); font-size: 11px; margin-top: 3px; }

.category-item {
    display: flex; align-items: center; gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all 0.2s;
    cursor: pointer;
}
.category-item:hover { border-color: #bbf7d0; background: var(--primary-light); box-shadow: var(--shadow); }
.category-item .emoji { font-size: 26px; width: 44px; height: 44px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.category-item h3 { font-size: 13px; font-weight: 700; color: var(--text); }
.category-item p { font-size: 10px; color: var(--text-lighter); margin-top: 1px; }
.category-item .arrow { margin-left: auto; color: var(--text-lighter); transition: transform 0.2s, color 0.2s; flex-shrink: 0; }
.category-item:hover .arrow { color: var(--primary); transform: translateX(2px); }

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f2718 100%);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(22,163,74,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner h3 { font-size: 26px; font-weight: 900; color: white; margin-bottom: 8px; letter-spacing: -0.3px; }
.cta-banner p { color: #94a3b8; font-size: 14px; line-height: 1.6; }
.cta-banner .btn { background: var(--primary); color: white; box-shadow: 0 4px 20px rgba(22,163,74,0.4); position: relative; z-index: 1; white-space: nowrap; }
.cta-banner .btn:hover { background: var(--primary-hover); }

/* === BREADCRUMB === */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-lighter); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { font-size: 10px; }
.breadcrumb .current { color: var(--text-light); font-weight: 600; }

/* === PRODUCT DETAIL === */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.product-gallery-wrap { display: flex; flex-direction: column; gap: 12px; }
.product-gallery {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
}
.product-gallery img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); transition: opacity 0.2s; }
.product-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 64px; height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 6px;
    transition: border-color 0.2s;
    font-size: 22px;
    overflow: hidden;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: 22px; font-weight: 800; color: var(--text); margin: 12px 0 8px; line-height: 1.3; letter-spacing: -0.3px; }
.product-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.product-stock-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.stock-in { background: #dcfce7; color: #15803d; }
.stock-low { background: #fef3c7; color: #92400e; }
.stock-out { background: #fee2e2; color: #991b1b; }
.product-detail-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-price-box {
    padding: 18px 16px;
    border-radius: var(--radius);
    text-align: center;
    transition: border-color 0.2s;
}
.detail-price-box.normal { background: var(--bg); border: 2px solid var(--border); }
.detail-price-box.bulk { background: var(--primary-light); border: 2px solid #bbf7d0; }
.detail-price-box .label { font-size: 11px; color: var(--text-lighter); margin-bottom: 4px; }
.detail-price-box .amount { font-size: 26px; font-weight: 900; line-height: 1; }
.detail-price-box.normal .amount { color: var(--text); }
.detail-price-box.bulk .amount { color: var(--primary-dark); }
.detail-price-box .tax { font-size: 10px; color: var(--text-lighter); margin-top: 4px; }

.qty-selector {
    display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.qty-selector label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.qty-controls {
    display: flex; align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-controls button {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    transition: background 0.2s;
}
.qty-controls button:hover { background: var(--bg); }
.qty-controls input {
    width: 64px; height: 40px;
    text-align: center;
    border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    font-size: 14px; font-weight: 700;
}
.qty-selector .min-note { font-size: 11px; color: var(--text-lighter); }

.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-feature { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-light); }
.detail-feature .material-symbols-outlined { font-size: 16px; color: var(--primary); }

/* === TABS === */
.tabs { border-bottom: 1px solid var(--border); margin-bottom: 24px; display: flex; gap: 24px; overflow-x: auto; }
.tab-btn {
    padding: 12px 0;
    font-size: 13px; font-weight: 700;
    color: var(--text-lighter);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none; border-top: none; border-left: none; border-right: none;
    cursor: pointer;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-light); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-item {
    display: flex; justify-content: space-between;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}
.spec-item .label { font-size: 12px; color: var(--text-lighter); }
.spec-item .value { font-size: 12px; font-weight: 700; color: var(--text); }

.review-item { background: var(--bg); padding: 16px; border-radius: var(--radius); margin-bottom: 12px; }
.review-item .review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-item .review-name { font-size: 12px; font-weight: 700; color: var(--text); }
.review-item .review-text { font-size: 13px; color: var(--text-light); }

/* === CART === */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.cart-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex; gap: 16px;
    margin-bottom: 12px;
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 13px; font-weight: 700; color: var(--text); }
.cart-item-info p { font-size: 11px; color: var(--text-lighter); margin-top: 2px; }
.cart-item-price { text-align: right; flex-shrink: 0; }
.cart-item-price .amount { font-size: 18px; font-weight: 900; color: var(--text); }
.cart-item-price .tax { font-size: 10px; color: var(--text-lighter); }

.cart-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky; top: calc(var(--header-height) + 80px);
    height: fit-content;
}
.cart-summary h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; }
.summary-row .label { color: var(--text-lighter); }
.summary-row .value { font-weight: 700; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
.summary-row.total .value { font-size: 20px; font-weight: 900; color: var(--primary-hover); }

/* === CHECKOUT === */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px; }
.step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.step-circle.done { background: var(--success); color: white; }
.step-circle.active { background: var(--primary); color: white; }
.step-circle.pending { background: #e7e5e4; color: var(--text-lighter); }
.step-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.step-label.active { color: var(--primary); }
.step-label.pending { color: var(--text-lighter); }
.step-line { width: 64px; height: 2px; background: var(--border); flex-shrink: 0; }

.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; max-width: 900px; margin: 0 auto; }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    transition: border-color 0.2s;
    background: white;
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-light); }
.form-check input[type="checkbox"] { accent-color: var(--primary); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

/* === AUTH PAGES === */
.auth-page { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.auth-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary-hover);
}
.auth-card h1 { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 4px; }
.auth-card .subtitle { font-size: 13px; color: var(--text-lighter); text-align: center; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-lighter); }
.auth-footer a { color: var(--primary); font-weight: 700; }

/* === ORDER SUCCESS === */
.success-page { max-width: 500px; margin: 64px auto; text-align: center; padding: 0 16px; }
.success-icon {
    width: 96px; height: 96px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: var(--success);
}
.success-page h1 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.success-page .order-no { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.success-page .order-no strong { color: var(--text); }
.success-page .desc { font-size: 13px; color: var(--text-lighter); margin-bottom: 32px; }

/* === ACCOUNT SIDEBAR === */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.account-sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; height: fit-content; }
.sidebar-subcats-list {
    display: flex; flex-direction: column; gap: 0;
}
.sidebar-subcat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px;
    font-size: 13px; font-weight: 600;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 2px;
}
.sidebar-subcat-item:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateX(4px);
}
.sidebar-subcat-item.active {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(22,101,52,0.2);
}
.sidebar-subcat-item.active .material-symbols-outlined,
.sidebar-subcat-item.active .count {
    color: rgba(255,255,255,0.8);
}
.sidebar-subcat-item.active .count { background: rgba(255,255,255,0.2); border: none; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
    border: none; background: none; cursor: pointer; text-align: left;
}
.sidebar-link:hover { background: var(--bg); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); }
.sidebar-link.logout { color: var(--danger); margin-top: 8px; }
.sidebar-link .material-symbols-outlined { font-size: 18px; }

/* === ORDERS LIST === */
.order-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    flex-wrap: wrap; gap: 12px;
}
.order-item:hover { border-color: #bbf7d0; }
.order-id { font-size: 14px; font-weight: 700; }
.order-date { font-size: 11px; color: var(--text-lighter); }
.status-badge {
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.status-delivered { background: #dcfce7; color: #15803d; }
.status-shipped { background: #dbeafe; color: #1d4ed8; }
.status-preparing { background: #fef9c3; color: #854d0e; }

/* === ADDRESS CARD === */
.address-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.address-card.default { border-color: #bbf7d0; background: var(--primary-light); }
.address-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.address-card p { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.address-card .default-badge {
    font-size: 10px; font-weight: 700;
    background: var(--primary-light); color: var(--primary-dark);
    padding: 2px 8px; border-radius: 10px;
    border: 1px solid #bbf7d0;
}
.address-actions { display: flex; gap: 12px; margin-top: 12px; }
.address-actions button { font-size: 12px; font-weight: 600; }
.address-actions .edit { color: var(--primary); }
.address-actions .delete { color: var(--danger); }

/* === LEGAL PAGES === */
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page h1 { font-size: 28px; font-weight: 900; margin-bottom: 24px; }
.legal-content { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.legal-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

/* === CONTACT === */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.contact-card-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    color: var(--primary-hover);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.contact-card h3 { font-size: 13px; font-weight: 700; }
.contact-card .value { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 4px; }
.contact-card .note { font-size: 10px; color: var(--text-lighter); margin-top: 4px; }

/* === FAQ === */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px;
    font-size: 14px; font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .answer {
    padding: 0 20px 20px;
    font-size: 13px; color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

/* === LISTING PAGES === */
.listing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.listing-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.listing-header .count { font-size: 13px; color: var(--text-lighter); margin-top: 2px; }
.sort-select {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s;
}
.sort-select:focus { border-color: var(--primary); outline: none; }

/* === CUSTOM SELECT (Modern Combobox) === */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    font-size: 13px;
    min-width: 180px;
}
.custom-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}
.custom-select-trigger .icon {
    font-size: 18px; color: var(--text-lighter); transition: transform 0.2s;
}
.custom-select-wrapper.open .icon {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s;
    overflow: hidden;
}
.custom-select-wrapper.open .custom-select-options {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.custom-select-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: var(--text-light);
}
.custom-select-option:hover {
    background: #f8fafc; color: var(--primary);
}
.custom-select-option.selected {
    background: var(--primary-light); color: var(--primary); font-weight: 700;
}

/* === CATEGORY WITH FILTER === */
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

/* === FILTER SIDEBAR PREMIUM === */
.filter-sidebar { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 12px; height: fit-content; position: sticky; top: calc(var(--header-height) + 80px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.filter-sidebar-header {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 16px; border-bottom: 2px solid #f8fafc; margin-bottom: 12px;
}
.filter-sidebar-header span { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.filter-section { border-bottom: 1px solid #f8fafc; padding: 16px 8px; background: #fff; border-radius: 8px; margin-bottom: 4px; transition: background 0.2s; }
.filter-section:hover { background: #f8fafc; }
.filter-section-header { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--text); border: none; background: none; cursor: pointer; padding: 0; }
.filter-section-header .toggle-icon { color: var(--text-lighter); transition: transform 0.2s; font-size: 16px; }
.filter-section-header.open .toggle-icon { transform: rotate(180deg); }
.filter-section-body { padding: 8px 16px 14px; }
.filter-option {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0;
    font-size: 12px; color: var(--text-light);
    cursor: pointer;
}
.filter-option input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.filter-option:hover { color: var(--text); }
.filter-option .count { margin-left: auto; font-size: 10px; color: var(--text-lighter); }
.price-range { display: flex; flex-direction: column; gap: 8px; }
.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range-input {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px; width: 100%;
    transition: border-color 0.2s;
}
.price-range-input:focus { border-color: var(--primary); outline: none; }
.filter-apply {
    width: 100%; padding: 9px;
    background: var(--primary); color: white;
    border: none; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
    margin-top: 4px;
}
.filter-apply:hover { background: var(--primary-hover); }
.filter-clear { font-size: 11px; color: var(--text-lighter); cursor: pointer; }
.filter-clear:hover { color: var(--danger); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filter-tag {
    display: flex; align-items: center; gap: 4px;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
    border: 1px solid #bbf7d0;
    cursor: pointer;
}
.active-filter-tag:hover { background: #dcfce7; }

/* === SIDEBAR ACCORDION CATS === */
.sidebar-cat-accordion { border-bottom: 1px solid #f8fafc; }
.sidebar-cat-accordion:last-child { border-bottom: none; }
.sidebar-cat-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-radius: 6px; }
.sidebar-cat-link { font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; flex: 1; transition: color 0.2s; }
.sidebar-cat-link:hover { color: var(--primary); }
.sidebar-cat-link.active { color: var(--primary); }
.sidebar-cat-icon { font-size: 20px; color: var(--text-lighter); cursor: pointer; transition: transform 0.2s; padding: 0 4px; }
.sidebar-cat-accordion.open .sidebar-cat-icon { transform: rotate(180deg); }
.sidebar-cat-subs { display: none; padding-left: 12px; padding-bottom: 8px; }
.sidebar-cat-accordion.open .sidebar-cat-subs { display: block; }
.sidebar-sub-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); padding: 8px 8px; text-decoration: none; transition: all 0.2s; border-radius: 6px; margin-bottom: 2px; }
.sidebar-sub-link:hover { background: #f8fafc; color: var(--primary); }
.sidebar-sub-link.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }

/* 3rd level sidebar accordion */
.sidebar-subsub-accordion { margin-bottom: 2px; }
.sidebar-subsub-accordion .sidebar-subsub-list { display: none; flex-direction: column; margin-left: 12px; margin-top: 2px; }
.sidebar-subsub-accordion.open .sidebar-subsub-list { display: flex; }

/* === SEARCH === */
.search-page-input {
    max-width: 640px;
    margin-bottom: 24px;
    position: relative;
}
.search-page-input input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}
.search-page-input input:focus { border-color: var(--primary); }
.search-page-input .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-lighter); }

/* === BLOG === */
.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
    display: block;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-image {
    aspect-ratio: 16/9;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-content { padding: 18px 20px; }
.blog-card-content .blog-card-date { font-size: 10px; color: var(--text-lighter); display: block; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-content h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; transition: color 0.2s; line-height: 1.4; color: var(--text); }
.blog-card:hover h3 { color: var(--primary); }
.blog-card-content p { font-size: 12px; color: var(--text-lighter); line-height: 1.5; }

/* === 404 === */
.not-found { text-align: center; padding: 80px 16px; }
.not-found h1 { font-size: 120px; font-weight: 900; color: #e7e5e4; line-height: 1; }
.not-found h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.not-found p { font-size: 14px; color: var(--text-lighter); margin-bottom: 32px; }

/* === PAGINATION === */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--text-light);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state-icon {
    width: 80px; height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: #d6d3d1;
}
.empty-state .icon { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-lighter); max-width: 400px; margin: 0 auto 24px; }

/* === SHIPPING OPTION === */
.shipping-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.shipping-option.selected { border-color: var(--primary); background: var(--primary-light); }
.shipping-radio {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.shipping-option.selected .shipping-radio { border-color: var(--primary); }
.shipping-radio-inner {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    display: none;
}
.shipping-option.selected .shipping-radio-inner { display: block; }

/* === FOOTER === */
.footer { background: #0f172a; color: #94a3b8; padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 16px 0; max-width: 280px; color: #64748b; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    background: #1e293b;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer h4 { font-size: 12px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: 13px; transition: color 0.2s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-bottom p {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}
.footer-bottom-links {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
}
.footer-bottom-links a {
    font-size: 11px;
    color: #94a3b8;
    transition: color 0.2s;
    padding: 0 12px;
    position: relative;
}
.footer-bottom-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
}
.footer-bottom-links a:first-child { padding-left: 0; }
.footer-bottom-links a:last-child { padding-right: 0; }
.footer-bottom-links a:hover { color: var(--primary); }

/* === FOOTER LOGO (koyu zeminde okunur olsun) === */
.footer .logo-text h1 { color: #f8fafc; }
.footer .logo-text span { color: #94a3b8; }

/* === Ã–DEME YÃ–NTEMLERÄ° === */
.footer-payment {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0 20px;
    margin-bottom: 0;
}
.footer-payment-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-payment-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.footer-payment-label .material-symbols-outlined {
    font-size: 18px;
    color: #16a34a;
}

/* TÃ¼m Ã¶deme rozetlerini tek panel iÃ§inde topla */
.footer-payment-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.footer-pay-img {
    height: 22px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    filter: grayscale(20%) brightness(1.05);
    opacity: 0.92;
    transition: all 0.25s ease;
}
.footer-pay-img:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-1px);
}
.footer-pay-paytr { max-width: 70px; }

.footer-pay-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.footer-pay-3d {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(22,163,74,0.12);
    border: 1px solid rgba(22,163,74,0.35);
    border-radius: 4px;
    color: #4ade80;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}
.footer-pay-3d .material-symbols-outlined {
    font-size: 13px;
}

/* === GELÄ°ÅTÄ°RÄ°CÄ° KREDÄ°SÄ° === */
.footer-credit {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    text-align: right;
    font-size: 11px;
    color: #64748b;
    letter-spacing: 0.5px;
    opacity: 0.75;
}
.footer-credit a {
    color: #cbd5e1;
    margin-left: 6px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.footer-credit a:hover {
    color: var(--primary);
}
.footer-credit a strong {
    background: linear-gradient(90deg, #f1f5f9, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    transition: all 0.2s;
}
.footer-credit a:hover strong {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .footer-payment-section {
        gap: 16px;
        justify-content: center;
        flex-direction: column;
    }
    .footer-payment-card { gap: 10px; padding: 8px 12px; }
    .footer-pay-img { height: 18px; max-width: 44px; }
    .footer-pay-paytr { max-width: 56px; }
    .footer-pay-3d { padding: 3px 7px; font-size: 9px; }
    .footer-pay-3d .material-symbols-outlined { font-size: 11px; }
}

/* === MOBILE MENU === */
.mobile-menu-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    animation: fadeIn 0.2s;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 88vw);
    background: white;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0.3s;
}
.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobile-menu-header .logo { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.mobile-menu-close {
    width: 36px; height: 36px;
    background: #f8fafc; border: none; padding: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #475569;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), inset 0 0 0 1px rgba(15,23,42,0.05), 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer; transition: all 0.2s;
}
.mobile-menu-close:hover { background: #f1f5f9; color: #1e293b; }
.mobile-menu-close .material-symbols-outlined { font-size: 20px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.mobile-menu-body { flex: 1; padding: 12px 0; overflow-y: auto; }
.mobile-menu a:not(.logo) {
    display: block;
    padding: 14px 20px;
    font-size: 15px; font-weight: 500;
    color: #334155;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu a:not(.logo):hover { background: #f8fafc; color: var(--primary); }
.mobile-menu .mobile-cat-item { font-weight: 600; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; position: relative; color: #1e293b; transition: all 0.2s; }
.mobile-menu .mobile-cat-accordion.open .accordion-btn { background: #f8fafc; color: var(--primary); padding-left: 24px; }
.mobile-menu .accordion-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: #1e293b; font-family: inherit; font-size: 15px; }
.mobile-menu .accordion-icon { transition: transform 0.3s ease; color: var(--text-light); }
.mobile-menu .mobile-cat-accordion.open .accordion-icon { transform: rotate(180deg); }
.mobile-menu .mobile-sub-list { display: none; flex-direction: column; background: #fff; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.mobile-menu .mobile-cat-accordion.open .mobile-sub-list { display: flex; }
.mobile-menu .mobile-sub-item { padding: 12px 20px 12px 48px !important; font-size: 14px; color: #64748b; font-weight: 500; border-bottom: none; position: relative; }
.mobile-menu .mobile-sub-item::before { content: ''; position: absolute; left: 28px !important; top: 50%; width: 5px; height: 5px; background: #cbd5e1; border-radius: 50%; transform: translateY(-50%); transition: background 0.2s; }
.mobile-menu .mobile-sub-item:hover { color: var(--primary); background: #f8fafc; }
.mobile-menu .mobile-sub-item:hover::before { background: var(--primary); }
.mobile-menu .highlight-sub { color: var(--primary); font-weight: 600; }
/* === MOBILE 3-LEVEL ACCORDION === */
.mobile-sub-accordion { }
.mobile-sub-accordion .mobile-sub-accordion-btn {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; text-align: left; background: none; border: none;
    cursor: pointer; font-family: inherit; font-size: 14px;
}
.mobile-sub-accordion .mobile-sub-accordion-btn .material-symbols-outlined {
    transition: transform 0.3s ease; color: var(--text-lighter);
}
.mobile-sub-accordion.open .mobile-sub-accordion-btn .material-symbols-outlined {
    transform: rotate(180deg);
}
.mobile-sub-accordion.open .mobile-sub-accordion-btn {
    color: var(--primary); font-weight: 600;
}
.mobile-sub-accordion.open .mobile-sub-accordion-btn::before {
    background: var(--primary);
}
.mobile-child-list {
    display: none; flex-direction: column;
    background: #fafafa; padding: 4px 0;
    border-left: 2px solid var(--primary-light);
    margin-left: 36px;
}
.mobile-sub-accordion.open .mobile-child-list { display: flex; }
.mobile-child-item {
    padding: 8px 12px 8px 16px !important;
    font-size: 13px !important; color: #64748b !important;
    font-weight: 500 !important; border-bottom: none !important;
    position: relative;
}
.mobile-child-item::before {
    content: '' !important; position: absolute !important;
    left: 6px !important; top: 50% !important;
    width: 3px !important; height: 3px !important;
    background: #d1d5db !important; border-radius: 50% !important;
    transform: translateY(-50%) !important;
}
.mobile-child-item:hover { color: var(--primary) !important; background: #f8fafc !important; }
.mobile-child-item:hover::before { background: var(--primary) !important; }
.mobile-child-item.highlight-sub { color: var(--primary) !important; font-weight: 600 !important; }
.mobile-menu-footer { padding: 16px; flex-shrink: 0; border-top: none; }
.hamburger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-light); transition: all 0.2s; flex-shrink: 0; }
.hamburger:hover { background: var(--primary-light); color: var(--primary); }

/* === HERO SLIDER === */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 20px 0; }
.hero-slider .hero { margin: 0; }
.slider-track { display: flex; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.slider-slide { min-width: 100%; flex-shrink: 0; }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18); color: white;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; z-index: 10;
}
.slider-btn .material-symbols-outlined { font-size: 20px; display: block; line-height: 1; }
.slider-btn:hover { background: rgba(255,255,255,0.25); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.25s; border: none; }
.slider-dot.active { background: white; width: 24px; }

/* === NAV DROPDOWN (MEGA-MENU 3 SEVİYE) === */
.nav-item-wrap { position: relative; }
.nav-item-wrap:has(.nav-dropdown-mega) { position: static; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    background: white; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0 0 16px 16px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.03);
    min-width: 240px; padding: 20px 0 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 300;
}
/* Geniş mega-menu — çok alt kategorili olanlar için */
.nav-dropdown-mega {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 24px 12px;
    transform: translateY(10px);
}
.nav-item-wrap:hover .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item-wrap:hover .nav-dropdown-mega {
    transform: translateY(0);
}
/* Sütunlar */
.nav-dropdown-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 12px;
}
.nav-dropdown-mega .nav-dropdown-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
/* Alt kategori grubu */
.nav-dropdown-group {
    padding: 0;
    min-width: 160px;
}
.nav-dropdown-group-title {
    display: block;
    padding: 0 0 8px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    text-transform: none;
    letter-spacing: -0.2px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 12px;
    transition: color 0.15s !important;
}
.nav-dropdown-group-title:hover {
    color: var(--primary) !important;
}
/* 3. seviye çocuk linkler */
.nav-dropdown-child {
    display: block;
    padding: 6px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    transition: all 0.2s !important;
}
.nav-dropdown-child:hover {
    color: var(--primary) !important;
    transform: translateX(4px);
}
/* "Tümünü Gör" butonu */
.nav-dropdown-all {
    display: block;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-align: center;
    transition: all 0.15s !important;
}
.nav-dropdown-all:hover {
    background: var(--primary-light) !important;
}
.nav-dropdown-head {
    font-size: 9px; font-weight: 700; color: var(--text-lighter);
    text-transform: uppercase; letter-spacing: 0.8px;
    padding: 8px 16px 4px;
}
.nav-dropdown.touch-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: absolute;
    z-index: 400;
}
.nav-dropdown-mega.touch-open {
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    font-size: 12px; font-weight: 600; color: var(--text-light);
    white-space: nowrap; transition: all 0.15s;
}
.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); padding-left: 20px; }
.nav-has-dropdown > a::after { content: ''; margin-left: 1px; font-size: 0; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.4; flex-shrink: 0; display: inline-block; position: relative; top: -1px; }
.nav-dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* === ACCOUNT DROPDOWN === */
.account-dropdown-wrap {
    position: relative; cursor: pointer;
    display: flex; flex-direction: row; align-items: center; gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 50px;
    transition: background 0.2s, box-shadow 0.2s;
}
.account-dropdown-wrap:hover {
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--border);
}

/* Avatar circle */
.account-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
    line-height: 1;
}

/* Account text */
.account-info-text {
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 0; line-height: 1.2;
    min-width: 0;
}
.account-greeting {
    font-size: 10px; font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}
.account-name {
    font-size: 13px; font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chevron */
.account-chevron {
    font-size: 18px !important;
    color: var(--text-lighter);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.account-dropdown-wrap:hover .account-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Dropdown panel */
.account-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: white; border: 1px solid var(--border);
    border-radius: 14px;
    width: 240px; padding: 6px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
}
.account-dropdown-wrap:hover .account-dropdown {
    visibility: visible; opacity: 1; transform: translateY(0);
}
.account-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 28px;
    width: 12px; height: 12px; background: white;
    border-top: 1px solid var(--border); border-left: 1px solid var(--border);
    transform: rotate(45deg); border-radius: 2px 0 0 0;
}

/* Dropdown header with avatar */
.account-dropdown-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 12px;
}
.account-dropdown-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}
.account-dropdown-info {
    display: flex; flex-direction: column;
    gap: 2px; min-width: 0; flex: 1;
}
.account-dropdown-info strong {
    font-size: 13px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-dropdown-info span {
    font-size: 11px; color: var(--text-lighter);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Dropdown links */
.account-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; margin: 0 6px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--text-light); transition: all 0.15s;
}
.account-dropdown a .material-symbols-outlined {
    font-size: 18px; color: var(--text-lighter);
    transition: color 0.15s;
}
.account-dropdown a:hover {
    background: var(--primary-light); color: var(--primary);
}
.account-dropdown a:hover .material-symbols-outlined {
    color: var(--primary);
}

/* Logout link */
.account-logout-link {
    color: var(--danger) !important;
}
.account-logout-link .material-symbols-outlined {
    color: var(--danger) !important;
}
.account-logout-link:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* === RELATED PRODUCTS === */
.related-products { margin-top: 56px; }
.related-products .section-header { margin-bottom: 20px; }

/* === PRODUCT DETAIL FEATURES === */
.detail-shipping-info {
    background: var(--primary-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 20px;
}
.detail-shipping-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--primary-dark); }
.detail-shipping-row .material-symbols-outlined { font-size: 16px; color: var(--primary); }

/* === REVIEW FORM === */
.review-form { margin-top: 24px; }
.review-form h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.star-picker { display: flex; gap: 4px; margin-bottom: 16px; cursor: pointer; }
.star-picker .material-symbols-outlined { font-size: 24px; color: #e5e7eb; transition: color 0.15s; }
.star-picker .material-symbols-outlined.active, .star-picker .material-symbols-outlined:hover { color: #f59e0b; font-variation-settings: 'FILL' 1; }
.review-summary { display: flex; align-items: center; gap: 16px; background: var(--bg); padding: 20px; border-radius: var(--radius); margin-bottom: 24px; }
.review-avg { text-align: center; }
.review-avg .score { font-size: 48px; font-weight: 900; color: var(--text); line-height: 1; }
.review-avg .stars { display: flex; gap: 2px; justify-content: center; margin: 4px 0; }
.review-avg .total { font-size: 11px; color: var(--text-lighter); }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.review-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-lighter); }
.review-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; background: #f59e0b; border-radius: 3px; transition: width 0.5s; }

/* === PAGE HEADER BANNER === */
.page-header {
    background: linear-gradient(to right, var(--bg), var(--primary-light));
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.page-header h1 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.page-header .count { font-size: 13px; color: var(--text-lighter); margin-top: 3px; }
.page-header-icon { font-size: 48px; }

/* === FILTER TOGGLE BUTTON === */
.filter-toggle-btn { display: none; }


/* ============================================
   RESPONSIVE â€” DESKTOP (> 768px)
   ============================================ */

/* MasaÃ¼stÃ¼ nav dropdown hover Ã§alÄ±ÅŸsÄ±n */
@media (min-width: 769px) {
    .hamburger { display: none; }
}


/* ============================================
   RESPONSIVE â€” TABLET (â‰¤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
    
    /* Admin */
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        box-shadow: var(--shadow-lg);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0 !important; width: 100% !important; }
    .admin-header .hamburger { display: flex !important; }
}


/* ============================================
   RESPONSIVE â€” MOBÄ°L (â‰¤ 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* TaÅŸma engeli â€” sayfa yatay kaymayÄ± Ã¶nle */
    body, html { overflow-x: clip; max-width: 100vw; }
    main, .header, .footer, .nav { overflow-x: clip; max-width: 100vw; }

    .container { padding: 0 20px; overflow-x: clip; }

    /* Top bar â€” mobilde tamamen gizle */
    .top-bar { display: none; }
    /* Mobilde: desktop search gizle, search-row goster */
    .search-bar-desktop { display: none !important; }
    .search-row { display: block; padding: 6px 0; }
    .search-row .search-bar input { padding: 8px 40px 8px 36px; font-size: 13px; height: 38px; }
    .search-bar-icon { left: 10px; font-size: 18px; top: 50%; transform: translateY(-50%); }
    .search-row .search-bar button { width: 40px; }
    .hamburger { display: flex; }

        /* Header */
    .header-inner { gap: 4px; height: var(--header-height); padding: 0 10px; }
    .account-dropdown { right: -60px; }
    .account-dropdown::before { right: 88px; }
    .account-avatar { width: 30px; height: 30px; font-size: 13px; }
    .header-action .material-symbols-outlined { font-size: 24px; }
    .cart-badge { top: -5px; right: -6px; width: 16px; height: 16px; font-size: 8px; }
    .logo { gap: 4px; margin-right: auto; }
    .logo-icon { width: 28px; height: 28px; font-size: 16px; }
    .logo-text h1 { font-size: 14px; letter-spacing: -0.3px; white-space: nowrap; }
    .logo-text span { display: none; }
    .account-info-text, .account-chevron, .action-label { display: none !important; }
    .header-actions { gap: 10px; }
    .header-action { min-width: auto; justify-content: center; flex-direction: row; }

    /* Nav â€” mobilde gizle, hamburger menÃ¼den eriÅŸilir */
    .nav { display: none; }

    /* Hero â€” kÃ¶ÅŸeleri yuvarla, kenarlardan boÅŸluk */
    .hero { padding: 28px 20px; min-height: 220px; margin: 0; border-radius: var(--radius); }
    .hero-slider { margin: 8px 0; border-radius: var(--radius); overflow: hidden; }
    .hero-content { max-width: 100%; }
    .hero h1, .hero h2 { font-size: 20px; margin-bottom: 10px; }
    .hero p { font-size: 12px; margin-bottom: 16px; }
    .hero-badge { font-size: 9px; padding: 4px 10px; margin-bottom: 12px; }

    /* Slider buttons */
    .slider-btn { width: 28px; height: 28px; }
    .slider-btn .material-symbols-outlined { font-size: 16px; }
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }
    .slider-dots { bottom: 10px; }

    /* Button sizes */
    .btn { padding: 10px 20px; font-size: 12px; }

    /* Grid system â€” dengeli boÅŸluk */
    .grid { gap: 10px; }
    .grid > * { min-width: 0; }
    .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); padding: 0 4px; }
    .md-grid-1 { grid-template-columns: 1fr; }

    /* Trust badges - 2 columns */
    .trust-badges { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
    .trust-badge { padding: 14px 12px; gap: 10px; }
    .trust-badge-icon { width: 36px; height: 36px; border-radius: 8px; }
    .trust-badge-icon .material-symbols-outlined { font-size: 18px; }
    .trust-badge h4 { font-size: 11px; }
    .trust-badge p { font-size: 9px; }

    /* Section */
    .section { padding-top: 28px; padding-bottom: 28px; }
    .section-header { margin-bottom: 20px; }
    .section-header h2 { font-size: 18px; }
    .section-header a { font-size: 11px; }

    /* Product cards â€” ufaltÄ±lmÄ±ÅŸ, boÅŸluklu */
    .product-card { border-radius: 10px; }
    .product-card-img { padding: 8px; }
    .product-card-body { padding: 8px 10px 12px; }
    .product-card-body h3 { font-size: 11px; min-height: 30px; margin-bottom: 6px; }
    .price-main .price { font-size: 14px; }
    .price-main .unit { font-size: 9px; }
    .price-bulk { padding: 3px 6px; }
    .price-bulk .label { font-size: 8px; }
    .price-bulk .price { font-size: 10px; }
    .product-badge { top: 5px; left: 5px; font-size: 7px; padding: 2px 6px; }
    .product-fav { top: 5px; right: 5px; width: 24px; height: 24px; }
    .product-fav .material-symbols-outlined { font-size: 12px !important; }
    .product-actions { grid-template-columns: 1fr 32px; gap: 4px; }
    .product-actions .btn-add { font-size: 10px; padding: 7px; }

    /* Category cards */
    .category-card { aspect-ratio: 4/3; min-height: 100px; }
    .category-card-text { padding: 10px; }
    .category-card-text h3 { font-size: 13px; }
    .category-item { padding: 14px; gap: 10px; }
    .category-item .emoji { width: 36px; height: 36px; font-size: 22px; }
    .category-item h3 { font-size: 12px; }

    /* CTA Banner */
    .cta-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
    .cta-banner h3 { font-size: 20px; }
    .cta-banner p { font-size: 13px; }

    /* Product detail */
    .product-detail { grid-template-columns: 1fr; gap: 16px; }
    .product-gallery { padding: 16px; border-radius: var(--radius); }
    .gallery-thumb { width: 56px; height: 56px; padding: 4px; }
    .product-gallery-thumbs { justify-content: flex-start; gap: 8px; }
    .product-info h1 { font-size: 20px; margin-top: 4px; margin-bottom: 12px; }
    .product-detail-prices { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
    .detail-price-box { padding: 12px 6px; }
    .detail-price-box .label { font-size: 10px; line-height: 1.2; word-wrap: break-word; }
    .detail-price-box .amount { font-size: 18px; margin: 6px 0 4px; }
    .detail-price-box .tax { font-size: 9px; line-height: 1.2; }
    .detail-features { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
    .qty-selector { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .qty-controls { height: 36px; }
    .qty-controls button { width: 36px; height: 36px; }
    .qty-controls input { width: 48px; height: 36px; font-size: 13px; }
    .detail-actions { gap: 8px; margin-bottom: 16px; }
    .detail-actions .btn { font-size: 12px; padding: 12px; }
    .detail-actions .btn-icon { width: 42px; height: 42px; }

    /* Spec grid */
    .spec-grid { grid-template-columns: 1fr; }

    /* Account layout */
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }

    /* Cart layout */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }

    /* Checkout */
    .checkout-layout { grid-template-columns: 1fr; }

    /* Category page filter */
    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(300px, 88vw);
        height: 100vh;
        z-index: 500;
        border-radius: 0;
        border: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        box-shadow: var(--shadow-lg);
    }
    .filter-sidebar.drawer-open { transform: translateX(0); }
    .filter-drawer-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 499;
    }
    .filter-drawer-overlay.open { display: block; }
    .filter-toggle-btn {
        display: flex !important;
        align-items: center; gap: 6px;
        padding: 9px 16px;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 12px; font-weight: 600;
        color: var(--text-light);
        cursor: pointer;
        margin-bottom: 12px;
    }
    .filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

    /* Contact */
    .contact-cards { grid-template-columns: 1fr; }

    /* Footer */
    .footer { padding-top: 40px; padding-bottom: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
        padding-top: 16px;
    }
    .footer-bottom p { font-size: 11px; opacity: 0.85; }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }
    .footer-bottom-links a { font-size: 11px; opacity: 0.85; }
    .footer-credit { margin-top: 10px; font-size: 10.5px; text-align: center; }

    /* Page header */
    .page-header { padding: 0 0 12px 0; background: none; border: none; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 16px; text-align: left; }
    .page-header h1 { font-size: 20px; }
    .page-header-icon { font-size: 24px; opacity: 0.5; }
    .page-header-icon img { width: 32px !important; height: 32px !important; }

    /* Legal */
    .legal-content { padding: 20px; }
    .legal-page h1 { font-size: 22px; }

    /* Auth */
    .auth-card { padding: 28px 20px; }
    .auth-page { margin: 24px auto; }

    /* Admin */
    .admin-table { font-size: 11px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .form-row-3, .form-row-2 { grid-template-columns: 1fr !important; }

    /* 404 */
    .not-found h1 { font-size: 80px; }
    .not-found h2 { font-size: 20px; }
}


/* ============================================
   RESPONSIVE â€” KÃœÃ‡ÃœK MOBÄ°L (â‰¤ 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Footer single column */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Detail features */
    .detail-features { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .detail-features .detail-feature { flex-direction: column; text-align: center; font-size: 9px; align-items: center; justify-content: flex-start; }
    .detail-actions { flex-direction: row; }
    .detail-actions .btn { justify-content: center; }

    /* Form row */
    .form-row { grid-template-columns: 1fr; }

    /* Checkout steps */
    .checkout-steps { flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
    .checkout-steps .step-label { display: none; }
    .step-line { width: 32px; }

    /* Hero even more compact */
    .hero { padding: 24px 16px; min-height: 180px; }
    .hero h1, .hero h2 { font-size: 18px; }
    .hero p { font-size: 11px; }
    .btn { padding: 9px 16px; font-size: 11px; }

    /* Cart items */
    .cart-item { flex-direction: column; gap: 12px; }
    .cart-item-img { width: 100%; max-width: 120px; align-self: center; }

    /* 404 */
    .not-found h1 { font-size: 64px; }

    /* Review summary */
    .review-summary { flex-direction: column; text-align: center; }
}


/* ============================================
   ADMIN TABLE RESPONSIVE
   ============================================ */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.admin-table {
    min-width: 600px;
}


/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton-loader {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobilde input otomatik yaknlatrma (auto-zoom) sorununu zmek iin iOS Safari font byklk kural */
@media screen and (max-width: 768px) {
    input, textarea, select, .form-control, .search-bar input {
        font-size: 16px !important;
    }
}
