/* ============================
   Global Temel Stiller (site.css)
   ============================ */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #525a67;
    --border: #e5e5e5;
    --border-strong: #d8d8d8;
    --accent: #16a34a;
    --accent-2: #0f6b2f;
    --accent-soft: #eaf7ef;
    --max: 1120px;
    --gap: 24px;
    --soft: #ffffff;
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: -0.01em;
    text-rendering: geometricPrecision;
    zoom: 0.85;
    /* Sayfanın genel boyutunu %85'e küçültür (Ekran ölçeği %100 olan PC'ler için ideal) */
}

@media (max-width: 980px) {
    body {
        zoom: 1; /* Reset zoom on mobile so 100vh works correctly */
    }
}

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

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: "Montserrat Alternates", system-ui, sans-serif;
}

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

button,
input {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* Base surfaces */
main {
    flex: 1 0 auto;
    padding-top: 8px;
}

/* Utilities */
.btn-block {
    width: 100%;
}

.danger {
    color: #b42318;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--border-strong);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ============================
   Header
   ============================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 6px 8px;
}

.brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.brand-logo {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-link {
    color: var(--muted);
    padding: 8px 6px;
    border-bottom: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    border-bottom-color: rgba(0, 0, 0, 0.16);
}

.auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search */
.top-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    justify-self: center;
    width: min(560px, 100%);
    position: relative;
}

.top-search input[type="search"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--surface);
    border-radius: var(--radius);
}

.top-search input[type="search"]::placeholder {
    color: #8a8a8a;
}

.top-search input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    padding: 10px;
    display: none;
    z-index: 20;
}

.top-search:focus-within .suggest {
    display: block;
}

.suggest-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px 10px;
    color: rgba(11, 18, 32, 0.56);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.suggest-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}

.suggest-item a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
}

.suggest-item a:hover {
    background: rgba(22, 163, 74, 0.08);
}

.suggest-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
}

.suggest-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 13px;
}

.suggest-sub {
    color: rgba(11, 18, 32, 0.56);
    font-size: 12px;
    margin-top: 2px;
}

.suggest-price {
    font-weight: 900;
    color: rgba(11, 18, 32, 0.78);
    font-size: 12px;
    white-space: nowrap;
}

/* ============================
   Buttons
   ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
}

.btn:hover {
    border-color: rgba(0, 0, 0, 0.22);
    color: var(--text);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-solid {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn-solid:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
}

/* Subnav */
.subnav {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--surface);
}

.subnav-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 0;
    overflow: auto;
    scrollbar-width: thin;
}

.subnav-link {
    white-space: nowrap;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.subnav-link:hover {
    color: var(--text);
    border-bottom-color: rgba(0, 0, 0, 0.18);
}

/* ============================
   Forms
   ============================ */

.form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.label {
    font-size: 13px;
    color: var(--muted);
}

.input {
    padding: 11px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    background: var(--surface);
}

.input:focus {
    outline: 2px solid rgba(22, 163, 74, 0.45);
    outline-offset: 2px;
}

/* ============================
   Cart / Checkout
   ============================ */

.cart,
.checkout,
.auth-page {
    padding: 18px 0 54px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}

.cart-list {
    margin-top: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item:first-child {
    border-top: 0;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f7f7;
    padding: 10px;
}

.cart-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cart-title:hover {
    color: var(--accent-2);
}

.cart-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.cart-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qty {
    font-weight: 800;
    color: var(--text);
    padding: 0 4px;
}

.cart-price {
    font-weight: 900;
    letter-spacing: -0.02em;
    align-self: start;
}

.summary-title {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.summary-rows {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.sum-row.total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text);
    font-weight: 900;
}

.auth-layout {
    display: grid;
    justify-items: center;
}

.auth-box {
    width: min(520px, 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px;
}

/* ============================
   Footer
   ============================ */

.site-footer {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 36px 0 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr auto;
    gap: 24px;
    align-items: start;
}

.brand--footer {
    padding: 0;
}

.footer-note {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 42ch;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.footer-title {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-link {
    display: block;
    padding: 6px 0;
    color: var(--text);
}

.footer-link:hover {
    color: var(--accent-2);
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 160ms ease, border-color 160ms ease;
}

.social:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--muted);
}

/* ============================
   Responsive (global)
   ============================ */

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .top-search {
        justify-self: stretch;
        width: 100%;
    }

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

    .footer-social {
        justify-content: flex-start;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .auth .btn {
        padding: 10px 12px;
    }

    .top-search {
        grid-template-columns: 1fr;
    }

    .header-inner {
        grid-template-columns: 1fr;
    }

    .auth {
        justify-content: space-between;
    }

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

    .cart-item {
        grid-template-columns: auto 1fr;
    }

    .cart-price {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* ============================
   Premium overrides (global)
   ============================ */

:root {
    --max: 1200px;
    --radius: 12px;
    --ring: rgba(22, 163, 74, 0.5);
    --line: rgba(15, 23, 42, 0.10);
    --line-2: rgba(15, 23, 42, 0.16);
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #ffffff;
    --text: #0b1220;
    --muted: #5a6472;
    --accent: #16a34a;
    --accent-2: #0f6b2f;
    --accent-soft: #eaf7ef;
}

body {
    line-height: 1.55;
    letter-spacing: -0.012em;
    background: var(--bg);
}

.container {
    width: min(var(--max), calc(100% - 48px));
}

::selection {
    background: rgba(22, 163, 74, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.site-header {
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-inner {
    gap: 16px;
    padding: 16px 0;
}

.brand {
    padding: 6px 10px;
    border-radius: 999px;
}

.brand-logo {
    border-radius: 10px;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.top-search {
    width: min(640px, 100%);
}

.top-search input[type="search"] {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 14px;
}

.top-search input[type="search"]:hover {
    border-color: var(--line-2);
}

.btn {
    border-color: var(--line);
    padding: 11px 14px;
    font-weight: 600;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.95);
}

.btn-solid {
    background: linear-gradient(180deg, #1bb954 0%, var(--accent) 100%);
    border-color: rgba(15, 23, 42, 0.06);
}

.btn-solid:hover {
    background: linear-gradient(180deg, #169e49 0%, var(--accent-2) 100%);
    border-color: rgba(15, 23, 42, 0.08);
}

.subnav {
    background: rgba(255, 255, 255, 0.86);
}

.subnav-inner {
    gap: 16px;
    padding: 10px 0 12px;
}

.subnav-link {
    border-bottom-width: 2px;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
}

.subnav-link:hover {
    border-bottom-color: rgba(22, 163, 74, 0.35);
    color: var(--text);
}

.cart-list,
.auth-box {
    border-color: rgba(15, 23, 42, 0.10);
}

.input {
    border-color: rgba(15, 23, 42, 0.12);
    padding: 12px 14px;
}

.input:hover {
    border-color: rgba(15, 23, 42, 0.18);
}

.input:focus {
    outline-color: var(--ring);
}

.cart-thumb {
    border-radius: 16px;
}

.cart-item {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.sum-row.total {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.site-footer {
    background: rgba(255, 255, 255, 0.8);
}

.footer-title {
    color: rgba(11, 18, 32, 0.54);
}

.social {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.75);
}

.social:hover {
    border-color: rgba(22, 163, 74, 0.22);
}

@media (max-width: 520px) {
    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .btn {
        padding: 11px 12px;
    }
}