/* ============================================================
   REDHAT STORE — Siberpunk Minimal Tema
   Renk paleti: Siyah / Koyu Gri / Beyaz
   ============================================================ */

:root {
    --bg-0: #050505;
    --bg-1: #0d0d0f;
    --bg-2: #15151a;
    --bg-3: #1f1f25;
    --line: #2a2a32;
    --line-strong: #3a3a44;
    --fg-0: #ffffff;
    --fg-1: #d6d6dc;
    --fg-2: #9b9ba6;
    --fg-3: #5e5e68;
    --accent: #ffffff;
    --accent-glow: rgba(255,255,255,0.08);
    --danger: #ff5b5b;
    --success: #6cffb0;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 10px 40px rgba(0,0,0,0.6);
    --transition: 220ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-0);
    color: var(--fg-1);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,0.025), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.02), transparent 40%);
}

a { color: var(--fg-0); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--fg-2); }

h1,h2,h3,h4 {
    color: var(--fg-0);
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

/* === Layout === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main.app { flex: 1; padding: 48px 0 80px; }

/* === Header === */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5,5,5,0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
header.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-0);
}
.brand-dot {
    width: 10px; height: 10px;
    background: var(--fg-0);
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .4; transform: scale(.85); }
}
nav.main-nav {
    display: flex; align-items: center; gap: 4px;
}
nav.main-nav a {
    color: var(--fg-2);
    padding: 8px 14px;
    font-size: 0.92rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}
nav.main-nav a:hover { color: var(--fg-0); background: var(--bg-2); }
nav.main-nav a.active { color: var(--fg-0); }
nav.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 1px; background: var(--fg-0);
}

/* === Dropdown === */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
/* Hover köprüsü: buton ile menü arasındaki boşluğu hover alanına dahil eder */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}
nav.main-nav .dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-1);
    min-width: 200px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
}
.dropdown-content a {
    color: var(--fg-2) !important;
    padding: 10px 20px !important;
    text-decoration: none;
    display: block !important;
    font-size: 0.88rem !important;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: left;
    width: 100%;
    border-radius: 0 !important;
    margin: 0 !important;
}
.dropdown-content a::after {
    display: none !important;
}
.dropdown-content a:hover {
    background: var(--bg-2) !important;
    color: var(--fg-0) !important;
}
@media (min-width: 781px) {
    nav.main-nav .dropdown:hover .dropdown-content,
    nav.main-nav .dropdown:focus-within .dropdown-content {
        display: block !important;
    }
    .dropdown:hover > a {
        color: var(--fg-0);
        background: var(--bg-2);
    }
    .dropdown:hover > a svg {
        transform: rotate(180deg);
    }
}
.dropdown > a svg {
    transition: transform var(--transition);
}

.lang-switch {
    margin-left: 12px;
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-1);
}
.lang-switch a {
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    gap: 6px;
    color: var(--fg-2) !important;
    text-decoration: none;
    position: relative;
    background: transparent !important;
    border-radius: 0 !important;
}
.lang-switch a::after {
    display: none !important;
}
.lang-switch a:hover {
    background: var(--bg-2) !important;
    color: var(--fg-0) !important;
}
.lang-switch a.active { 
    background: var(--bg-3) !important;
    color: var(--fg-0) !important;
}
.flag {
    display: inline-block;
    width: 18px;
    height: 13px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.flag-tr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23e30a17'/%3E%3Ccircle cx='400' cy='400' r='200' fill='%23fff'/%3E%3Ccircle cx='450' cy='400' r='160' fill='%23e30a17'/%3E%3Cpolygon points='575,400 504,423 548,363 548,437 504,377' fill='%23fff'/%3E%3C/svg%3E");
}
.flag-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%2300247d' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23cf142b' stroke-width='4' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23cf142b' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E");
}

/* === Header "Satıcı Ol" / "Mağazam" CTA === */
nav.main-nav a.nav-cta-seller {
    background: var(--fg-0);
    color: var(--bg-0) !important;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.86rem;
    margin-left: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--fg-0);
    transition: all var(--transition);
}
nav.main-nav a.nav-cta-seller:hover {
    background: transparent;
    color: var(--fg-0) !important;
}
nav.main-nav a.nav-cta-seller::after { display: none; }
nav.main-nav a.nav-cta-seller.is-pending {
    background: transparent;
    color: #ffd66c !important;
    border-color: rgba(255,214,108,0.6);
}
nav.main-nav a.nav-cta-seller.is-pending::before {
    content: '⏳ ';
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--fg-0);
    color: var(--bg-0);
    border: 1px solid var(--fg-0);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}
.btn:hover { background: transparent; color: var(--fg-0); }
.btn.ghost { background: transparent; color: var(--fg-0); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--fg-0); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--bg-0); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-2);
}
.input, .textarea, .select {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--line);
    color: var(--fg-0);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--fg-0);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.textarea { min-height: 130px; resize: vertical; }

.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; }

/* === Cards === */
.card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: all var(--transition);
}
.card:hover { border-color: var(--line-strong); }

.auth-wrap {
    max-width: 420px;
    margin: 40px auto;
}
.auth-wrap h1 {
    text-align: center;
    margin-bottom: 8px;
}
.auth-wrap .sub {
    text-align: center;
    color: var(--fg-2);
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.auth-wrap .alt {
    margin-top: 18px;
    text-align: center;
    font-size: 0.86rem;
    color: var(--fg-2);
}

/* === Hero === */
.hero {
    padding: 90px 0 60px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.04) 50%, transparent 50.5%) 0 0 / 80px 80px,
        linear-gradient(0deg,  transparent 49.5%, rgba(255,255,255,0.04) 50%, transparent 50.5%) 0 0 / 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero .inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero .tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    color: var(--fg-2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero p { color: var(--fg-2); font-size: 1.1rem; max-width: 620px; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* === Product Grid === */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.product-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--fg-0);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.product-thumb {
    aspect-ratio: 16/10;
    background: var(--bg-2);
    background-image: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-3);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
    color: var(--fg-3);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}
.product-name { color: var(--fg-0); font-weight: 700; margin-bottom: 8px; font-size: 1.02rem; }
.product-desc { color: var(--fg-2); font-size: 0.88rem; margin-bottom: 16px; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.product-price { color: var(--fg-0); font-weight: 800; font-size: 1.1rem; }

/* Anasayfa "Öne Çıkan Ürünler" — kompakt varyant */
.grid-featured { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.grid-featured .product-thumb { aspect-ratio: 16/11; font-size: 1.2rem; }
.grid-featured .product-body { padding: 12px; }
.grid-featured .product-cat { font-size: 0.66rem; margin-bottom: 4px; }
.grid-featured .product-name { font-size: 0.92rem; margin-bottom: 4px; }
.grid-featured .product-desc { font-size: 0.78rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid-featured .product-price { font-size: 0.95rem; }
.grid-featured .badge { font-size: 0.68rem; padding: 2px 6px; }

/* === Table === */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.table th, .table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.table th {
    background: var(--bg-2);
    color: var(--fg-2);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,0.015); }

/* === Badges & Alerts === */
.badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: var(--fg-2);
}
.badge.success { color: var(--success); border-color: rgba(108,255,176,0.4); }
.badge.danger  { color: var(--danger);  border-color: rgba(255,91,91,0.4); }
.badge.warn    { color: #ffd66c;         border-color: rgba(255,214,108,0.4); }

.alert {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.9rem;
    background: var(--bg-1);
}
.alert.success { border-color: rgba(108,255,176,0.4); color: var(--success); }
.alert.error   { border-color: rgba(255,91,91,0.4);   color: var(--danger); }

/* === Layout helpers === */
.row { display: flex; gap: 24px; flex-wrap: wrap; }
.col { flex: 1; min-width: 260px; }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--fg-2); }
.text-center { text-align: center; }

/* === Footer === */
footer.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--fg-3);
    font-size: 0.84rem;
    margin-top: auto;
}
footer.site-footer .bar {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* === Sidebar Admin === */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.admin-side {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 88px;
}
.admin-side h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3); margin-bottom: 12px; }
.admin-side a {
    display: block;
    padding: 10px 12px;
    color: var(--fg-2);
    border-radius: var(--radius);
    font-size: 0.92rem;
    margin-bottom: 2px;
    transition: all var(--transition);
}
.admin-side a:hover, .admin-side a.active {
    background: var(--bg-2);
    color: var(--fg-0);
}

/* === Page transitions (Fade) === */
main.app {
    opacity: 0;
    transform: translateY(8px);
    animation: page-in 380ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes page-in {
    to { opacity: 1; transform: translateY(0); }
}
body.is-leaving main.app {
    opacity: 0;
    transform: translateY(-6px);
    transition: all 220ms ease;
    animation: none;
}

/* === AI Chat Widget === */
.ai-chat {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 100;
    font-family: inherit;
}
.ai-chat-toggle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--fg-0);
    color: var(--bg-0);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    transition: all var(--transition);
}
.ai-chat-toggle:hover { transform: scale(1.06); }
.ai-chat-toggle svg { width: 24px; height: 24px; }

.ai-chat-panel {
    position: absolute;
    bottom: 70px; right: 0;
    width: 340px;
    max-width: 92vw;
    height: 460px;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(10px) scale(.97);
    opacity: 0;
    transition: all var(--transition);
}
.ai-chat.open .ai-chat-panel {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}
.ai-chat-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.ai-chat-head .title { font-weight: 700; color: var(--fg-0); font-size: 0.96rem; }
.ai-chat-head .sub { font-size: 0.72rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.ai-chat-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
}
.ai-msg {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
}
.ai-msg.user { background: var(--fg-0); color: var(--bg-0); align-self: flex-end; }
.ai-msg.bot  { background: var(--bg-2); color: var(--fg-1); align-self: flex-start; border: 1px solid var(--line); }
.ai-chat-form {
    padding: 12px;
    border-top: 1px solid var(--line);
    display: flex; gap: 8px;
}
.ai-chat-form input {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg-0);
    padding: 9px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}
.ai-chat-form input:focus { border-color: var(--fg-0); }
.ai-chat-form button {
    background: var(--fg-0);
    color: var(--bg-0);
    border: 0;
    padding: 0 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
}

/* === Responsive === */

/* Hamburger butonu — masaüstünde gizli */
.nav-toggle-input { display: none; }
.nav-toggle-btn {
    display: none;
    width: 40px; height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-1);
}
.nav-toggle-btn span {
    width: 18px; height: 2px;
    background: var(--fg-0);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Tablet ve altı (geniş tablet) */
@media (max-width: 1024px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; }
    .container { padding: 0 18px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.4rem; }
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
}

/* Mobil — drawer menü */
@media (max-width: 780px) {
    header.site-header .bar { height: 60px; gap: 8px; }
    .brand { font-size: 0.95rem; }
    .nav-toggle-btn { display: inline-flex; }

    nav.main-nav {
        position: fixed;
        top: 60px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-1);
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 18px;
        gap: 4px;
        transform: translateY(-110%);
        transition: transform var(--transition);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 40;
        box-shadow: var(--shadow);
    }
    .nav-toggle-input:checked ~ nav.main-nav { transform: translateY(0); }
    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    nav.main-nav a {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }
    nav.main-nav a.active::after { display: none; }
    nav.main-nav a.active { background: var(--bg-2); }

    /* Dropdown mobilde: inline expand, hover yok */
    nav.main-nav .dropdown { display: block; }
    nav.main-nav .dropdown > a { display: flex; align-items: center; justify-content: space-between; }
    nav.main-nav .dropdown > a svg { display: inline-block; transition: transform var(--transition); }
    nav.main-nav .dropdown::after { display: none; }
    nav.main-nav .dropdown-content {
        display: none !important;
    }
    nav.main-nav .dropdown.open .dropdown-content {
        display: block !important;
        position: static;
        transform: none;
        border: 0;
        background: transparent;
        box-shadow: none;
        margin: 0 0 0 12px;
        padding: 0;
        min-width: 0;
    }
    nav.main-nav .dropdown.open > a svg {
        transform: rotate(180deg);
    }
    nav.main-nav .dropdown-content a {
        padding: 8px 12px !important;
        font-size: 0.86rem !important;
    }

    .lang-switch { margin: 8px 0 0; align-self: flex-start; }

    /* İçerik tarafı */
    main.app { padding: 28px 0 60px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.98rem; }
    .hero { padding: 40px 0 28px; }

    /* Tablo: yatay scroll */
    .table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Row -> stack */
    .row { flex-direction: column; }
    .row > .col { flex: 1 1 auto !important; min-width: 0 !important; }

    /* Form satır içi flex'leri sarsın */
    .flex { flex-wrap: wrap; }
}

/* Küçük telefon */
@media (max-width: 420px) {
    .container { padding: 0 14px; }
    h1 { font-size: 1.55rem; }
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: 0.92rem; }
    .grid-products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .grid-featured  { grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn { padding: 10px 14px; font-size: 0.85rem; }
    .card { padding: 16px; }
    .ai-chat-toggle { right: 16px; bottom: 16px; }
    .ai-chat-panel  { right: 12px; left: 12px; width: auto; bottom: 80px; }
}

/* === Scrollbar (WebKit) === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* === Selection === */
::selection { background: var(--fg-0); color: var(--bg-0); }
