/* ═══════════════════════════════════════════════════════════════
   STYLES — inceden.tr
   styles.css — Complete redesign
═══════════════════════════════════════════════════════════════ */

/* ─── Page Preloader ─────────────────────────────────────────── */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 3s ease, visibility 2s ease;
}
#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0e8e0;
    border-top-color: #f05a00;
    border-radius: 50%;
    animation: preloader-spin 0.75s linear infinite;
}
@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}
.preloader-logo {
    height: 48px;
    width: auto;
    opacity: 0.85;
}

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Primary — automotive red */
    --primary:        #f05a00;
    --primary-hover:  #c94800;
    --primary-light:  #fff3eb;
    --primary-dark:   #c94800;

    /* Accent — same automotive red */
    --accent:         #f05a00;
    --accent-hover:   #c94800;
    --accent-light:   #fff3eb;

    /* Gold — premium highlight (öne çıkan, vitrin, vb.) */
    --gold:           #f05a00;
    --gold-light:     #fdba74;

    /* Neutrals */
    --bg:             #f8fafc;
    --surface:        #ffffff;
    --surface-alt:    #f1f5f9;
    --text:           #0f172a;
    --text-muted:     #64748b;
    --text-subtle:    #94a3b8;
    --border:         #e2e8f0;
    --border-strong:  #cbd5e1;
    --border-focus:   #f05a00;

    /* Status */
    --success:        #16a34a;
    --success-bg:     #f0fdf4;
    --error:          #dc2626;
    --error-bg:       #fef2f2;
    --warning:        #f59e0b;
    --warning-bg:     #fffbeb;

    /* Effects */
    --shadow-sm:      0 1px 3px rgba(15, 40, 71, 0.06);
    --shadow:         0 4px 16px rgba(15, 40, 71, 0.08);
    --shadow-hover:   0 12px 32px rgba(15, 40, 71, 0.14);
    --radius-sm:      8px;
    --radius:         12px;
    --radius-lg:      20px;
    --transition:     all 0.22s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
    /* macOS Safari / mobil rubber-band (overscroll bounce) kapat */
    overscroll-behavior: none;
    /* Bounce'ta görünen alanın beyaz değil, site rengi olması için */
    background-color: var(--bg);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #182642;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

/* ─── LOGO ──────────────────────────────────────────────── */
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}

.header-logo .logo-img {
    height: 52px;
    width: auto;
    display: block;
}

/* ─── SEARCH BAR ──────────────────────────────────────────── */
.header-search {
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

.search-form {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0 4px 0 0;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.search-form:focus-within {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(240,90,0,0.15);
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 0.4rem 0 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    color: var(--text);
    outline: none;
    min-width: 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, transform .18s;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.search-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ─── SEARCH DROPDOWN (canlı arama sonuçları) ─────────────── */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15,40,71,0.16);
    z-index: 950;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: searchDropdownIn 0.18s ease;
}
.search-dropdown.open { display: block; }

@keyframes searchDropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-loading,
.search-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.search-empty svg { color: var(--text-subtle); flex-shrink: 0; }
.search-empty strong { color: var(--text); font-weight: 700; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background .14s;
}
.search-result-item:last-of-type { border-bottom: none; }
.search-result-item:hover,
.search-result-item.active {
    background: var(--surface-alt);
}

.search-result-item .sr-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}
.search-result-item .sr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-result-item .sr-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}
.search-result-item .sr-noimg svg { width: 22px; height: 22px; }

.search-result-item .sr-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.search-result-item .sr-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result-item .sr-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    align-items: center;
}
.search-result-item .sr-cat {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-result-item .sr-cat::after {
    content: '•';
    margin-left: 0.55rem;
    color: var(--text-subtle);
    font-weight: 400;
}
.search-result-item .sr-loc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result-item .sr-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1a1a;
    background: var(--primary);
    border-radius: 5px;
    padding: 0.15em 0.45em;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-see-all {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--surface-alt);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: background .14s;
}
.search-see-all:hover {
    background: var(--primary);
    color: #1a1a1a;
}

/* Mobil — dropdown ekran genişliğinde */
@media (max-width: 600px) {
    .search-dropdown {
        position: fixed;
        top: 64px;
        left: 0.5rem;
        right: 0.5rem;
        max-height: calc(100vh - 80px);
    }
    .search-result-item .sr-price { display: none; }
}

/* ─── SEARCH FILTER PANEL ──────────────────────────────────── */
.search-filter-panel {
    padding: 0.7rem 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt, #f8fafc);
    border-radius: 14px 14px 0 0;
}
.search-filter-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.search-filter-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 0.2rem;
}
.sfc {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
}
.sfc:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.sfc.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.sfc svg { width: 12px; height: 12px; }

.search-filter-detail {
    display: none;
    padding: 0.6rem 0.85rem 0.55rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt, #f8fafc);
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.search-filter-detail.open { display: flex; }
.sfd-group { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; min-width: 90px; }
.sfd-group label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.sfd-group input,
.sfd-group select {
    padding: 0.3rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 0.8rem;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    outline: none;
    width: 100%;
}
.sfd-group input:focus,
.sfd-group select:focus { border-color: var(--primary); }
.sfd-ara-btn {
    padding: 0.35rem 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    align-self: flex-end;
    white-space: nowrap;
    transition: background .15s;
}
.sfd-ara-btn:hover { background: var(--primary-hover); }

.search-smart-hint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: #fff8f0;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--text);
    transition: background .14s;
}
.search-smart-hint:hover { background: #fff0e0; }
.search-smart-hint .sh-icon { font-size: 1rem; flex-shrink: 0; }
.search-smart-hint .sh-label { flex: 1; font-weight: 600; }
.search-smart-hint .sh-arrow { color: var(--primary); font-size: 0.8rem; font-weight: 700; }

.search-filter-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    transition: color .15s;
    background: none;
    border: none;
    font-family: inherit;
}
.search-filter-toggle:hover { color: var(--primary); }
.search-filter-toggle svg { width: 11px; height: 11px; transition: transform .2s; }
.search-filter-toggle.open svg { transform: rotate(180deg); }

/* ─── HEADER ACTIONS (right side) ─────────────────────────── */
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    justify-self: end;
}

.auth-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-auth-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.header-auth-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

.header-auth-link.register {
    background: var(--primary);
    color: #ffffff;
    padding: 0.4rem 1rem;
}

.header-auth-link.register:hover {
    background: var(--primary-hover);
}

/* Icon-only buttons (used on mobile) */
.header-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: var(--bg);
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Mobile Menu Overlay ────────────────────────────────────── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.open {
    display: block;
    animation: fadeIn 0.22s ease;
}

.mobile-menu-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.25s ease;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    height: 64px;
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.mobile-menu-logo .logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.mobile-menu-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--border);
    color: var(--text);
}

.mobile-menu-nav {
    padding: 1rem 0;
    flex: 1;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: var(--primary);
    background: rgba(15, 40, 71, 0.06);
    border-left-color: var(--primary);
}

.mobile-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-footer .btn-outline,
.mobile-menu-footer .btn-primary {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
/* ─── HERO SEARCH ────────────────────────────────────────────── */
.hero-search-wrap {
    background: linear-gradient(135deg, #182642 0%, #0f2040 100%);
    padding: 2rem 1.5rem 2.2rem;
    border-bottom: 3px solid var(--primary);
}
.hero-search-inner {
    max-width: 1060px;
    margin: 0 auto;
}
.hero-search-label {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 .75rem;
}
.hero-tabs {
    display: flex;
    gap: .4rem;
    margin-bottom: 1rem;
}
.hero-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.25);
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s;
    font-family: inherit;
}
.hero-tab:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.hero-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.hero-form {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.hero-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    min-width: 110px;
}
.hero-field label {
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hero-field input,
.hero-field select {
    padding: .62rem .75rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, background .15s;
    width: 100%;
    box-sizing: border-box;
}
.hero-field input::placeholder { color: rgba(255,255,255,.45); }
.hero-field select option { background: #182642; color: #fff; }
.hero-field input:focus,
.hero-field select:focus { border-color: var(--primary); background: rgba(255,255,255,.15); }
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .62rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .12s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
}
.hero-search-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.hero-quick {
    margin-top: .9rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
.hero-quick a {
    font-size: .77rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: .22rem .55rem;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.2);
    transition: all .14s;
}
.hero-quick a:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 700px) {
    .hero-form { flex-direction: column; }
    .hero-field { min-width: 0; }
    .hero-search-btn { width: 100%; justify-content: center; }
    .hero-field-oda { display: none; }
}

/* ─────────────────────────────────────────────────────────────── */
.main-container {
    display: flex;
    flex-direction: row;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 1rem 0.5rem;
}

/* Category items */
.category-item {
    overflow: hidden;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    gap: 0.5rem;
}

.category-link:hover {
    background: rgba(15, 40, 71, 0.05);
    color: var(--primary);
}

.category-link.active {
    color: var(--primary);
    background: rgba(15, 40, 71, 0.08);
}

.category-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.cat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-count {
    flex-shrink: 0;
    background: var(--primary);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    min-width: 24px;
    text-align: center;
}

.category-arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.22s ease;
}

.category-item.open .category-arrow {
    transform: rotate(90deg);
}

/* Subcategory */
.subcategory-list {
    display: none;
    flex-direction: column;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
}

.category-item.open .subcategory-list {
    display: flex;
}

.subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.subcategory-link:hover {
    color: var(--primary);
    background: rgba(15, 40, 71, 0.05);
    border-left-color: var(--primary);
}

.subcategory-link.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

/* Sidebar mobile toggle */
.sidebar-overlay-btn {
    display: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 700;
}

.sidebar-backdrop.open {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SHOWCASE / GALLERY
═══════════════════════════════════════════════════════════════ */
.showcase {
    flex-grow: 1;
    min-width: 0;
}

.showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.showcase-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.showcase-subtitle {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.showcase-see-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
}

.showcase-see-all:hover {
    background: var(--primary);
    color: #1a1a1a;
    border-color: var(--primary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═════════════════════════════════════════════════════════════���═
   AD CARDS
═══════════���════════��══════════════════════════════════════════ */
.ad-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 40, 71, 0.15);
}

.ad-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--border);
    flex-shrink: 0;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.04);
}

/* Badges */
.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #1a1a1a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 1;
}

.badge-yeni {
    background: var(--primary);
    color: #1a1a1a;
}

.badge-acil {
    background: var(--error);
    color: white;
}

.badge-kiralik {
    background: #0891b2;
    color: white;
}

.badge-satilik {
    background: var(--primary);
    color: #1a1a1a;
}

.badge-indirim {
    background: #7c3aed;
    color: white;
}

/* Card content */
.ad-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.ad-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    /* 2 satır için sabit yükseklik — başlık kısa olsa bile fiyat hizalı kalır */
    min-height: calc(0.92rem * 1.45 * 2);
}

.ad-price {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    background: var(--primary);
    border-radius: 6px;
    padding: 0.18em 0.55em;
    margin: 0;
    line-height: 1.3;
    /* fiyat her zaman aynı pozisyonda — başlıktan hemen sonra */
}

.ad-price .price-suffix {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a1a;
    opacity: 0.7;
}

.ad-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
    flex-wrap: nowrap;
    min-height: 1.6rem;
}

.ad-meta .ad-location {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-location::before {
    content: '📍';
    font-size: 0.75rem;
}

.ad-date {
    margin-left: auto;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.ad-category-tag {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    padding: 2px 8px;
    background: rgba(15, 40, 71, 0.08);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════════ */
body.auth-page {
    background: var(--bg);
    min-height: 100vh;
}

.auth-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.auth-header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.auth-header-logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.auth-wrapper {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    max-width: 900px;
    width: 100%;
    padding: 0 1rem;
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    animation: fadeInUp 0.35s ease;
}

.auth-left {
    padding: 2.5rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.4px;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: var(--transition);
}

.auth-input::placeholder {
    color: #a0aec0;
}

.auth-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(39, 86, 168, 0.12);
}

.auth-input.error,
.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.form-error-msg {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.15rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-pass:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: #1a1a1a;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(15, 40, 71, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    width: 1px;
    background: var(--border);
    margin: 2rem 0;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider::before {
    content: 'veya';
    position: absolute;
    background: var(--surface);
    padding: 0.5rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.auth-right {
    padding: 2.5rem;
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.social-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    color: var(--text);
    justify-content: center;
}

.social-btn:hover {
    background: var(--surface-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.social-btn svg,
.social-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-signup-link {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.auth-signup-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-signup-link a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL PAGE
═══════════════════════════════════════════════════════════════ */
.detail-page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    overflow-x: hidden;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text);
}

.breadcrumb-sep {
    color: var(--border);
    font-size: 0.75rem;
}

.detail-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Detail layout */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 300px 280px;
    gap: 1.5rem;
    align-items: start;
}

/* Grid çocukları min-width:0 ile taşmasın */
.detail-container > * {
    min-width: 0;
}

.detail-main-left {
    min-width: 0;
}

.detail-middle-col {
    min-width: 0;
}

.detail-right-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* iframe taşmasın */
.detail-page-wrapper iframe {
    max-width: 100%;
    width: 100%;
}

/* Gallery */
.detail-gallery {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 100%;
}

.detail-gallery-main {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--border);
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expand-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-weight: 500;
}

.expand-icon:hover {
    background: rgba(0, 0, 0, 0.7);
}

.detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: var(--surface);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.detail-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.detail-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.detail-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.detail-gallery-thumbs img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.detail-gallery-thumbs img:hover {
    opacity: 0.9;
}

.detail-gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-top: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 1.5rem 0;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.25s ease;
}

.detail-description-content p {
    line-height: 1.8;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.detail-description-content p:last-child {
    margin-bottom: 0;
}

/* Equipment grid */
.equipment-grid {
    margin-top: 1.5rem;
}

.equipment-grid h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 0 0.5rem;
}

.equipment-grid h4:first-child {
    margin-top: 0;
}

.equipment-grid span {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.83rem;
    margin: 3px;
    color: var(--text);
    transition: var(--transition);
}

.equipment-grid span:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(15, 40, 71, 0.05);
}

/* Price box */
.detail-price-box {
    background: var(--primary);
    color: #1a1a1a;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.detail-price-label {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-price-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.detail-price-sub {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Spec table */
.detail-spec-table {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-spec-table li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    gap: 1rem;
}

.detail-spec-table li:last-child {
    border-bottom: none;
}

.detail-spec-table li:nth-child(odd) {
    background: var(--surface-alt);
}

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.spec-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    min-width: 0;
}

.spec-value.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Seller card */
.seller-profile-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.seller-name-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-info {
    flex: 1;
    min-width: 0;
}

.seller-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-stat {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.seller-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

.seller-phone-btn {
    width: 100%;
    background: var(--primary);
    color: #1a1a1a;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.seller-phone-btn:hover {
    background: var(--primary-hover);
}

.seller-msg-btn {
    width: 100%;
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.seller-msg-btn:hover {
    background: var(--primary);
    color: #1a1a1a;
}

/* Trust card */
.trust-card {
    background: #fff3eb;
    border: 1px solid #fdba74;
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.83rem;
    color: #7c2d00;
    line-height: 1.6;
}

.trust-card strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #78350f;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
    background: #182642;
    color: #ffffff;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 50%, var(--primary) 100%);
    z-index: 2;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── TOP TRUST STRIP ──────────────────────────────────────── */
.footer-trust {
    background: rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #1e2436;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-trust-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-trust-text span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* ─── MAIN GRID ────────────────────────────────────────────── */
.footer-main {
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.footer-logo .logo-img {
    height: 68px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact-list li svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.footer-contact-list li a,
.footer-contact-list li span {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.footer-contact-list li a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}

.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-nav-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-nav-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.32rem 0;
    transition: color .18s, padding .18s;
}

.footer-nav ul li a::before {
    content: '›';
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s, transform .18s;
    flex-shrink: 0;
}

.footer-nav ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-nav ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-hours {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-hours li:last-child { border-bottom: none; }
.footer-hours li.closed { color: rgba(255,255,255,0.35); }
.footer-hours li span:last-child { font-weight: 600; color: rgba(255,255,255,0.9); }
.footer-hours li.closed span:last-child { color: rgba(255,255,255,0.35); font-weight: 400; }

/* ─── APPS + PAYMENT ROW ───────────────────────────────────── */
.footer-meta {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.5rem 0;
}


/* ─── BOTTOM BAR ───────────────────────────────────────────── */
.footer-bottom {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.footer-bottom-inner p { margin: 0; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color .2s;
}

.footer-legal a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   UTILITY / BUTTONS
═══════════════════════════════════════════════════════════════ */
.post-ad-btn,
.btn-primary {
    background: var(--primary);
    color: #1a1a1a;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.post-ad-btn:hover,
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn-outline:hover {
    background: var(--primary);
    color: #1a1a1a;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

/* Mobilde "Tümünü Gör" gibi showcase header butonu daha kompakt */
@media (max-width: 600px) {
    .showcase-header .btn-sm {
        font-size: 0.7rem;
        padding: 0.32rem 0.7rem;
        white-space: nowrap;
    }
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* ─── Misc helpers ───────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-primary  { color: var(--primary); }
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-error    { color: var(--error); }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center   { text-align: center; }

.page-section {
    margin-bottom: 3rem;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-alt) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════ */

/* ─── 1100px: detail page 2-col ─────────────────────────────── */
@media (max-width: 1100px) {
    .detail-container {
        grid-template-columns: 1fr 300px;
    }

    .detail-right-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* ─── 768px: sidebar collapse ────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 56px;
        bottom: 0;
        z-index: 800;
        width: 260px;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border);
        box-shadow: var(--shadow-hover);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
        background: var(--surface);
        border: 1.5px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition);
        margin-bottom: 1rem;
    }

    .sidebar-overlay-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
    }
}

/* ─── 768px: mobile header + auth single column ─────────────── */
@media (max-width: 768px) {
    .header-actions {
        display: none;
    }

    .header-icon-btn {
        display: flex;
    }

    .hamburger-btn {
        display: flex;
        margin-left: auto;
    }

    .header-inner {
        height: 56px;
        gap: 0.75rem;
        overflow: visible;
        display: flex;
        grid-template-columns: unset;
    }

    .header-logo {
        flex: 0 1 auto;
        justify-self: unset;
        overflow: hidden;
        min-width: 0;
    }
    .header-logo .logo-img {
        height: 42px;
        max-width: 100%;
    }

    .site-header {
        height: auto;
        overflow: visible;
    }

    .header-search {
        display: none;
    }

    .header-search.mobile-visible {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 850;
    }

    .header-search.mobile-visible .search-form {
        max-width: 100%;
        width: 100%;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-divider {
        width: auto;
        height: 1px;
        margin: 0 2rem;
        flex-direction: row;
    }

    .auth-divider::before {
        writing-mode: horizontal-tb;
        padding: 0 0.5rem;
    }

    .auth-right {
        background: var(--surface);
        border-top: 1px solid var(--border);
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .detail-right-col {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-page-wrapper {
        padding: 1rem;
    }

    .detail-header-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .detail-gallery-main {
        height: 260px;
    }

    .detail-spec-table li {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .spec-value {
        text-align: left;
    }


    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

}

/* ─── 640px: showcase grid ───────────────────────────────────── */
@media (max-width: 640px) {
    .main-container {
        padding: 1rem;
    }

    .showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-gallery-main {
        height: 280px;
    }

    .detail-header-title {
        font-size: 1.2rem;
    }
}

/* ─── 480px: single column ───────────────────────────────────── */
@media (max-width: 480px) {
    .header-logo .logo-img {
        height: 36px;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .showcase-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .auth-left,
    .auth-right {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-legal {
        justify-content: center;
    }

    .detail-price-main {
        font-size: 1.4rem;
    }

    .detail-gallery-main {
        height: 220px;
    }

    .detail-page-wrapper {
        padding: 0.75rem;
    }

    .equipment-grid span {
        font-size: 0.78rem;
        padding: 3px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   COMPATIBILITY ALIASES — detail/auth pages use these names
   ═══════════════════════════════════════════════════════════ */

/* Header aliases */
.header { background: #ffffff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-bottom: 1px solid var(--border); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--accent); margin-left: 4px; }
.search-container { flex: 1; max-width: 520px; position: relative; }
.search-container .search-input { width: 100%; padding: 0.6rem 3rem 0.6rem 1.1rem; border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.9rem; background: var(--bg); outline: none; transition: var(--transition); font-family: inherit; }
.search-container .search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(15,40,71,0.1); }
.search-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--text-muted); pointer-events: none; }

/* Auth header aliases */
.auth-header .header-container { justify-content: center; }

/* Detail page utilities */
.detail-price-location { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 0.35rem; font-weight: 500; }
.detail-price-location a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.detail-price-location a:hover { color: #fff; }

.action-link { display: flex; align-items: center; gap: 8px; padding: 0.65rem 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; transition: var(--transition); margin-top: 0.5rem; }
.action-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(15,40,71,0.04); }


/* Filter sidebar (vitrin page) */
.sidebar-filters { padding: 1rem 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 1rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-select, .filter-input { width: 100%; padding: 0.55rem 0.8rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: #fff; outline: none; font-family: inherit; color: var(--text); }
.filter-select:focus, .filter-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,40,71,0.1); }
.filter-price-range { display: flex; gap: 0.5rem; align-items: center; }
.filter-price-range span { color: var(--text-muted); font-size: 0.85rem; }
.filter-price-range .filter-input { width: calc(50% - 0.75rem); }
/* ═══════════════════════════════════════════════════════════
   HEADER ICON BUTTONS (mail, bell — injected by auth.js)
   ═══════════════════════════════════════════════════════════ */
.header-icon-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
    flex-shrink: 0;
    vertical-align: middle;
}
.header-icon-circle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(249,115,22,0.08);
}
.header-icon-circle svg {
    display: block;
}
/* ═══════════════════════════════════════════════════════════
   USER DROPDOWN MENU (injected by auth.js)
   ═══════════════════════════════════════════════════════════ */

.user-menu { position: relative; display: inline-flex; align-items: center; }

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 0.85rem 0 0.3rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color .18s, background .18s, box-shadow .18s;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

.user-menu-trigger:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(249,115,22,0.12);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-display-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.user-menu-caret { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.user-menu-trigger[aria-expanded="true"] .user-menu-caret { transform: rotate(180deg); }

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 500;
    overflow: hidden;
    animation: dropdownIn 0.18s ease;
}

.user-dropdown.open { display: block; }

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--surface-alt, #f8fafc);
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown-name  { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.user-dropdown-email { font-size: 0.78rem; color: var(--text-muted); }
.user-dropdown-divider { height: 1px; background: var(--border); }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    text-align: left;
}

.user-dropdown-item:hover { background: var(--bg); color: var(--primary); }
.user-dropdown-item svg   { color: var(--text-muted); flex-shrink: 0; }
.user-dropdown-item:hover svg { color: var(--primary); }

.user-dropdown-logout:hover { background: #fff5f5; color: #dc2626; }
.user-dropdown-logout:hover svg { color: #dc2626; }

/* ═══════════════════════════════════════════════════════════════
   COMPARE — buton, tray, toast
═══════════════════════════════════════════════════════════════ */

/* ─── Kart üzeri karşılaştır butonu ────────────────────────── */
.ad-card { position: relative; }

.compare-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1;
}
.compare-btn svg { flex-shrink: 0; }
.compare-btn:hover {
    background: #fff;
    border-color: var(--primary-dark);
    color: var(--text);
}
.compare-btn.active {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: #1a1a1a;
}

/* ─── Floating tray ─────────────────────────────────────────── */
#compare-tray {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1e2436;
    border-top: 2px solid var(--primary);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

.ct-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ct-slots {
    display: flex;
    gap: 0.6rem;
    flex: 1;
}

.ct-slot {
    width: 120px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ct-slot.empty {
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
}

.ct-slot.filled {
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}

.ct-thumb {
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.ct-name {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.75);
    padding: 3px 6px;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ct-remove {
    position: absolute;
    top: 2px;
    right: 3px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}
.ct-remove:hover { color: #fff; }

.ct-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ct-clear {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.65);
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.ct-clear:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.ct-go {
    background: var(--primary);
    color: #1a1a1a;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.ct-go:hover { background: var(--primary-hover); }
.ct-go.disabled {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Toast ─────────────────────────────────────────────────── */
.compare-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1e2436;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    z-index: 1100;
    border: 1px solid var(--primary);
    pointer-events: none;
}
.compare-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Karşılaştır tablosu ───────────────────────────────────── */
.compare-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table .col-label {
    width: 160px;
    min-width: 140px;
    background: var(--surface-alt);
    position: sticky;
    left: 0;
    z-index: 2;
}

.compare-table th,
.compare-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    min-width: 200px;
    text-align: left;
}

.compare-table th.col-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.compare-table .section-row td {
    background: var(--surface-alt);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid var(--border);
}

.compare-table .row-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--surface-alt);
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-table td.val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.compare-table td.val.best { color: #16a34a; }
.compare-table td.val.worst { color: #dc2626; }

.compare-table tr:hover td:not(.row-label):not(.section-row td) {
    background: var(--surface-alt);
}

.compare-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.5rem;
}

.compare-img-placeholder {
    width: 100%;
    height: 160px;
    background: var(--surface-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.compare-title {
    font-weight: 800;
    font-size: 0.92rem;
    margin: 0 0 0.3rem;
    color: var(--text);
    line-height: 1.3;
}

.compare-price {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    background: var(--primary);
    border-radius: 6px;
    padding: 0.15em 0.5em;
    margin-bottom: 0.5rem;
}

.compare-remove-btn {
    display: block;
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.35rem;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    text-align: center;
}
.compare-remove-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff5f5;
}

@media (max-width: 640px) {
    .ct-slot { width: 80px; }
    .ct-name { display: none; }
    .ct-slot.empty span { font-size: 0.7rem; }
    .ct-inner { padding: 0.6rem 1rem; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .ct-slots { gap: 0.4rem; }
    .ct-slot { width: 60px; height: 52px; }
    .ct-slot.empty { display: none; }
}
