/* ============================================================
   KoşAtSepete — site geneli üst bar, mobil menü ve footer
   Beyaz üst bar + koyu "İlan Ver" + rozetli Favori/Sepet kutuları
   ============================================================ */
:root {
    --ks-header-h: 70px;
}

body { background: #f5f1e8; font-family: var(--font-body, 'Manrope', system-ui, sans-serif); }
main { padding-top: var(--ks-header-h); }

/* ---------- Üst bar ---------- */
.ks-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    height: var(--ks-header-h);
    background: #fff;
    border-bottom: 1px solid rgba(42, 35, 28, 0.08);
    box-shadow: 0 2px 14px rgba(42, 35, 28, 0.06);
}
.ks-header-inner {
    height: 100%; display: flex; align-items: center; gap: 18px;
}
.ks-brand {
    display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0;
}
.ks-brand img { width: 52px; height: 52px; object-fit: contain; }
.ks-brand-text {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 1.45rem; font-weight: 700; color: #2a231c; letter-spacing: -0.2px; line-height: 1;
}
.ks-brand-text b { color: #c9a84c; font-weight: 700; }

.ks-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.ks-nav > a, .ks-nav > .dropdown > a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 0.92rem; font-weight: 600; color: #3d342a; text-decoration: none;
    position: relative; white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.ks-nav > a:hover, .ks-nav > .dropdown > a:hover { color: #2a231c; background: rgba(201, 168, 76, 0.1); }
.ks-nav > a.active { color: #b8963f; }
.ks-nav > a.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: #c9a84c; border-radius: 2px;
}
.ks-nav .dropdown-toggle::after { margin-left: 2px; }

.ks-dropdown {
    border: 1px solid rgba(201, 168, 76, 0.25); border-radius: 12px; padding: 8px;
    box-shadow: 0 16px 40px rgba(42, 35, 28, 0.14); min-width: 230px;
}
.ks-dropdown .dropdown-item {
    border-radius: 8px; padding: 8px 12px; font-size: 0.88rem; font-weight: 600; color: #3d342a;
    display: flex; align-items: center; gap: 8px;
}
.ks-dropdown .dropdown-item i { color: #c9a84c; }
.ks-dropdown .dropdown-item:hover { background: rgba(201, 168, 76, 0.12); color: #2a231c; }

.ks-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ks-btn-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2a231c; color: #fff; border-radius: 10px; padding: 10px 18px;
    font-size: 0.9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ks-btn-dark:hover { color: #fff; background: #3d342a; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42, 35, 28, 0.22); }
.ks-btn-dark i { font-size: 1.05rem; }

.ks-hbox {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border: 1px solid rgba(42, 35, 28, 0.14); border-radius: 10px;
    background: #fff; color: #2a231c; font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ks-hbox:hover { color: #2a231c; border-color: #c9a84c; box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2); }
.ks-hbox i { font-size: 1.1rem; }
.ks-hbox-badge {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: #c9a84c; color: #2a231c; font-size: 0.68rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.ks-icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(42, 35, 28, 0.14);
    display: inline-flex; align-items: center; justify-content: center; color: #2a231c; background: #fff; text-decoration: none;
    font-size: 1.1rem;
}
.ks-icon-btn:hover { border-color: #c9a84c; color: #2a231c; }
.ks-icon-btn .ks-hbox-badge { top: -6px; right: -6px; }
.ks-user-toggle .ks-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #c9a84c, #b8963f);
    color: #2a231c; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

.ks-burger {
    display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(42, 35, 28, 0.14);
    background: #fff; color: #2a231c; font-size: 1.4rem; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Mobil çekmece ---------- */
.ks-drawer-overlay { position: fixed; inset: 0; background: rgba(42, 35, 28, 0.45); z-index: 1040; display: none; }
.ks-drawer-overlay.active { display: block; }
.ks-drawer {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; z-index: 1050;
    background: #fff; box-shadow: -10px 0 40px rgba(42, 35, 28, 0.2); transition: right .28s ease; overflow-y: auto;
    padding: 20px;
}
.ks-drawer.active { right: 0; }
.ks-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(42, 35, 28, 0.08); margin-bottom: 12px; }
.ks-drawer-close { border: 0; background: transparent; font-size: 1.4rem; color: #2a231c; }
.ks-drawer a.ks-drawer-item, .ks-drawer button.ks-drawer-item {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 12px 10px; border-radius: 10px; color: #2a231c; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: 0; background: transparent;
}
.ks-drawer .ks-drawer-item i { width: 22px; color: #c9a84c; font-size: 1.05rem; }
.ks-drawer .ks-drawer-item:hover { background: rgba(201, 168, 76, 0.12); }
.ks-drawer-sub { padding-left: 44px; font-size: 0.86rem; }
.ks-drawer-divider { height: 1px; background: rgba(42, 35, 28, 0.08); margin: 10px 0; }
.ks-drawer .ks-btn-dark { width: 100%; justify-content: center; margin-top: 8px; }
.ks-drawer .ks-hbox { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 1499px) {
    .ks-hbox-compact .ks-hbox-label { display: none; }
    .ks-hbox-compact .ks-hbox { padding: 10px 12px; }
    .ks-nav > a, .ks-nav > .dropdown > a { padding: 8px 10px; font-size: 0.9rem; }
    .ks-nav { margin-left: 6px; }
}
@media (max-width: 1199px) {
    .ks-hbox-label { display: none; }
    .ks-hbox { padding: 10px 12px; }
    .ks-nav > a, .ks-nav > .dropdown > a { padding: 8px 8px; font-size: 0.86rem; }
    .ks-btn-dark { padding: 10px 14px; }
}
@media (max-width: 991px) {
    .ks-nav, .ks-actions .ks-desktop-only { display: none !important; }
    .ks-burger { display: inline-flex; }
    .ks-header-inner { gap: 10px; }
    .ks-brand img { width: 44px; height: 44px; }
    .ks-brand-text { font-size: 1.25rem; }
}

/* ---------- Footer (açık zemin) ---------- */
.ks-footer {
    background: #fff; border-top: 1px solid rgba(42, 35, 28, 0.08);
    color: #5c4a36; margin-top: 60px;
}
.ks-footer-main { padding: 48px 0 28px; }
.ks-footer .ks-brand-text { font-size: 1.5rem; }
.ks-footer-about { font-size: 0.86rem; line-height: 1.6; color: #6b5d47; margin: 12px 0 16px; max-width: 280px; }
.ks-social { display: flex; gap: 10px; }
.ks-social a {
    width: 34px; height: 34px; border-radius: 50%; background: #2a231c; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.ks-social a:hover { background: #c9a84c; color: #2a231c; transform: translateY(-2px); }
.ks-footer h6 { font-size: 0.82rem; font-weight: 800; color: #2a231c; margin-bottom: 14px; letter-spacing: 0.2px; }
.ks-footer ul { list-style: none; padding: 0; margin: 0; }
.ks-footer ul li { margin-bottom: 9px; }
.ks-footer ul a { color: #6b5d47; font-size: 0.86rem; text-decoration: none; transition: color .15s ease; }
.ks-footer ul a:hover { color: #b8963f; }
.ks-newsletter {
    background: #f5f1e8; border-radius: 16px; padding: 20px 20px 18px; height: 100%; border: 1px solid rgba(201, 168, 76, 0.18);
}
.ks-newsletter h6 { margin-bottom: 4px; }
.ks-newsletter p { font-size: 0.8rem; color: #6b5d47; margin-bottom: 12px; }
.ks-newsletter form { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-newsletter input {
    flex: 1; min-width: 0; border: 1px solid rgba(42, 35, 28, 0.14); border-radius: 10px; padding: 10px 14px; font-size: 0.86rem; background: #fff;
}
.ks-newsletter input:focus { outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18); }
.ks-newsletter button {
    border: 0; border-radius: 10px; padding: 10px 18px; background: #c9a84c; color: #fff; font-weight: 700; font-size: 0.86rem; white-space: nowrap;
    transition: background .15s ease;
}
.ks-newsletter button:hover { background: #b8963f; }
.ks-newsletter .ks-newsletter-ok { display: none; font-size: 0.82rem; color: #1f9d5b; font-weight: 700; margin-top: 8px; }
.ks-footer-bottom {
    border-top: 1px solid rgba(42, 35, 28, 0.08); padding: 16px 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 0.78rem; color: #6b5d47;
}
.ks-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.ks-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ks-trust i { color: #1f9d5b; }
