/* Numerica Beans — temel stil. Derleme adımı yok; bu dosya doğrudan sunulur. */

/* Renkler tek yerde: numerica.nl logo mavisi #365a9e ve tonları. */
:root {
    --brand: #365a9e;
    --brand-dark: #2b4a85;
    --brand-deeper: #1f3766;
    --brand-mid: #2f5294;
    --brand-bright: #5a7cbf;
    --brand-soft: #dfe6f3;
    --brand-tint: #e6ecf7;
    --brand-pale: #b9c7e2;
    --brand-glow: rgba(124, 148, 192, 0.22);
    --brand-shade-rgb: 18, 32, 66;
    --cream: #f1e4b2;
    --paper: #fbfaf6;
    --ink: #0e1a33;
    --ink-soft: #4d5a73;
    --line: #dce0e9;
    --radius: 10px;
    --container: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
}

a:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--brand);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius);
    z-index: 10;
}

.skip-link:focus {
    left: 8px;
}

/* Üst bant */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1.125rem;
}

.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-switch__item {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.lang-switch__item.is-current {
    background: var(--brand);
    color: #fff;
}

/* Ana sayfa */
.eyebrow {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.how {
    padding: 64px 0;
}

.section-title {
    margin: 0 0 24px;
    font-size: 1.75rem;
    color: var(--brand-dark);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
}

.step {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.step::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.step__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
}

.step__text {
    margin: 0;
    color: var(--ink-soft);
}

/* Hata sayfası */
.error-page {
    padding: 96px 0;
    text-align: center;
}

.error-page__code {
    margin: 0;
    font-size: 4rem;
    font-weight: 800;
    color: var(--cream);
    -webkit-text-stroke: 2px var(--brand);
}

.error-page__title {
    margin: 0 0 8px;
    color: var(--brand-dark);
}

.button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.button:hover {
    background: var(--brand-dark);
}

/* Numune */
.sample-box {
    margin-top: 16px;
    padding: 16px;
}

.sample-box > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-dark);
}

.sample-box form {
    margin-top: 12px;
}

.sample-notice {
    margin: 12px 0 16px;
    padding: 12px 16px;
    border-left: 4px solid #c9a227;
    border-radius: 8px;
    background: var(--cream);
    color: #4d410c;
    font-size: 0.875rem;
}

.sample-notice__title {
    margin: 0 0 4px;
    font-weight: 700;
}

.sample-notice ul {
    margin: 0;
    padding-left: 18px;
}

.sample-notice li + li {
    margin-top: 4px;
}

.sample-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.input-wide {
    width: 180px;
}

.badge--sample-requested {
    background: var(--cream);
    color: #6b5a12;
}

.badge--sample-sent {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--sample-cancelled {
    background: #f1dede;
    color: #7a2626;
}

/* Genel yardımcılar */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.muted,
.empty {
    color: var(--ink-soft);
}

.narrow {
    max-width: 560px;
    padding-top: 40px;
    padding-bottom: 64px;
}

.section {
    padding: 56px 0;
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--brand);
    text-decoration: underline;
    cursor: pointer;
}

.button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.button--light {
    background: var(--cream);
    color: var(--brand-dark);
    margin-top: 24px;
}

.button--light:hover {
    background: #fff;
}

/* Ana menü */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    gap: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-weight: 600;
    font-size: 0.9375rem;
}

.main-nav > a,
.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.main-nav > a:hover,
.nav-dropdown > summary:hover {
    background: var(--paper);
    color: var(--brand-dark);
}

.main-nav > a.is-active,
.nav-dropdown > summary.is-active {
    color: var(--brand-dark);
    box-shadow: inset 0 -3px 0 var(--brand);
    border-radius: 8px 8px 0 0;
}

.main-nav > a.main-nav__cta {
    margin-left: 4px;
    background: var(--brand);
    color: #fff;
}

.main-nav > a.main-nav__cta:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* Hesabım açılır menüsü (JS'siz çalışır; app.js dışarı tıklayınca kapatır) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary {
    cursor: pointer;
    list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.nav-dropdown__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(28, 38, 32, 0.12);
}

.nav-dropdown__company {
    display: block;
    padding: 6px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-soft);
    font-weight: 400;
}

.nav-dropdown__panel a,
.nav-dropdown__logout {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-dropdown__panel a:hover,
.nav-dropdown__logout:hover {
    background: var(--paper);
    color: var(--brand-dark);
}

.nav-dropdown__logout {
    color: #7a2626;
}

/* Hamburger butonu: masaüstünde gizli. */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-dark);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Açıkken üç çizgi çarpıya döner. */
.site-header.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Masaüstünde giriş zaten menüde; bu buton yalnızca dar ekranda görünür. */
.header-login {
    display: none;
}

/* Dar ekran: logo · giriş · dil · hamburger; menü butona basınca altta tam genişlikte açılır. */
@media (max-width: 760px) {
    .header-login {
        order: 1;
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        margin-left: auto;
        padding: 0 14px;
        border-radius: 999px;
        background: var(--brand);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .header-login + .lang-switch {
        margin-left: 0;
    }
}

/* Giriş butonu da sığsın diye çok dar ekranda marka adı gizlenir; logo kalır. */
@media (max-width: 480px) {
    .site-header--guest .brand__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        flex-wrap: wrap;
        gap: 10px;
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand__name {
        font-size: 1rem;
    }

    .lang-switch {
        order: 1;
        gap: 2px;
        margin-left: auto;
    }

    .nav-toggle {
        order: 2;
        display: flex;
    }

    .main-nav {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 8px 0 12px;
        border-top: 1px solid var(--line);
    }

    /* Betik yüklüyse menü kapalı başlar; yüklenmezse açık kalır (kimse menüsüz kalmaz). */
    .js .main-nav {
        display: none;
    }

    .js .site-header.is-open .main-nav {
        display: flex;
        animation: menu-open 0.2s ease-out;
    }

    .main-nav > a,
    .nav-dropdown > summary {
        padding: 12px 8px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .main-nav > a.is-active,
    .nav-dropdown > summary.is-active {
        box-shadow: inset 3px 0 0 var(--brand);
        border-radius: 0 8px 8px 0;
    }

    .main-nav > a.main-nav__cta {
        margin: 8px 0 0;
        justify-content: center;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown > summary {
        justify-content: space-between;
    }

    .nav-dropdown__panel {
        position: static;
        min-width: 0;
        margin: 4px 0 0 12px;
        padding: 0 0 0 8px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }
}

@keyframes menu-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sayfa başlığı */
.page-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 32px 0 24px;
}

.page-head h1 {
    margin: 0 0 4px;
    color: var(--brand-dark);
}

.page-head p {
    margin: 0;
    color: var(--ink-soft);
}

.page-head p.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 0.875rem;
}

.page-head__actions .button {
    margin: 0;
}

/* Katalog */
.catalog {
    display: grid;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 64px;
}

/* Liste görünümünde tablo tam genişlik kullansın diye filtreler üstte yatay şerit. */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0 16px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px 0;
}

.lot-table__name {
    min-width: 16rem;
}

.filters__score {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    padding: 0;
}

.filters__score legend {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.filters__score label {
    flex: 1;
}

.filters__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.filters__actions .button {
    margin-top: 0;
}

.catalog__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 12px;
}

.catalog__summary .button {
    margin: 0;
}

.catalog__count {
    margin: 0;
    color: var(--ink-soft);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--line);
    color: var(--ink);
}

.badge--active,
.badge--approved {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--reserved,
.badge--draft {
    background: var(--cream);
    color: #6b5a12;
}

.badge--import-applied {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--import-preview {
    background: var(--cream);
    color: #6b5a12;
}

.badge--sold_out,
.badge--blocked,
.badge--archived,
.badge--import-discarded {
    background: #f1dede;
    color: #7a2626;
}

.price {
    font-size: 1.0625rem;
    font-weight: 700;
}

.price--pending {
    color: var(--ink-soft);
}

.price {
    color: var(--brand-dark);
}

.price__unit {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.price-box .price--large {
    font-size: 1.75rem;
    font-weight: 800;
}

/* Ana sayfa */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: min(78vh, 680px);
    display: flex;
    align-items: center;
    background: var(--brand-dark);
    color: var(--cream);
}

/* Görsel yavaşça yakınlaşır (video hissi, video maliyeti olmadan). */
.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08) translateX(-1.5%);
    }
}

/* Başlık okunsun diye görselin solu koyu yeşile kararır. */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(var(--brand-shade-rgb), 0.92) 0%, rgba(var(--brand-shade-rgb), 0.7) 45%, rgba(var(--brand-shade-rgb), 0.1) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 72px;
    padding-bottom: 72px;
}

.home-hero__logo {
    display: block;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

@media (max-width: 760px) {
    .home-hero__logo {
        width: 84px;
        height: 84px;
    }
}

.home-hero__title {
    margin: 0 0 16px;
    max-width: 16ch;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 1.05;
    color: #fff;
}

.home-hero__lead {
    margin: 0;
    max-width: 48ch;
    font-size: 1.125rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero__actions .button {
    margin-top: 0;
}

.home-hero__login {
    margin: 16px 0 0;
    color: rgba(241, 228, 178, 0.9);
}

.home-hero__login a {
    color: #fff;
    font-weight: 600;
}

.button--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(241, 228, 178, 0.7);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.home-stats {
    background: var(--brand);
    color: var(--cream);
}

.home-stats__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 96px;
    text-align: center;
    padding-top: 22px;
    padding-bottom: 22px;
}

.home-stats strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.1;
    color: #fff;
}

.home-stats span {
    font-size: 0.875rem;
}

.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-card__body {
    padding: 18px 20px 22px;
}

.feature-card h3 {
    margin: 0 0 8px;
    color: var(--brand-dark);
}

.feature-card p {
    margin: 0;
    color: var(--ink-soft);
}

.section--paper {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--brand-dark);
}

.home-cta__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(var(--brand-shade-rgb), 0.72);
}

.home-cta__content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.home-cta h2 {
    margin: 0 auto 12px;
    max-width: 24ch;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
}

.home-cta p {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--cream);
}

/* Hareket hassasiyeti olan kullanıcıda görsel sabit kalır. */
@media (prefers-reduced-motion: reduce) {
    .home-hero__image {
        animation: none;
    }
}

/* Katalog listesi */
.lot-table td {
    vertical-align: middle;
}

.lot-table__name a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.lot-table__name a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.lot-table__notes {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.lot-table__price {
    text-align: right;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.lot-table tbody tr:hover {
    background: #fdfbf4;
}

.lot-table tr.is-sold-out {
    opacity: 0.6;
}

.lot-table .badge + .badge {
    margin-top: 4px;
}

.lot-table__action {
    white-space: nowrap;
}

/* Teklif listesindeki lotlar açık yeşil; müşteri neyi eklediğini listede görsün. */
.lot-table tr.is-in-cart,
.lot-table tr.is-in-cart:hover {
    background: var(--brand-tint);
}

.lot-table tr.is-in-cart td:first-child {
    border-left: 4px solid var(--brand);
}

.in-cart-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.row-cart-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.row-cart-form input[type="number"] {
    width: 4.5em;
    padding: 4px 6px;
}

.row-cart-form__unit {
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

.row-cart-form .button--small {
    margin: 0;
}

/* Dar ekranda her satır bir karta dönüşür; başlıklar data-label'dan gelir. */
@media (max-width: 760px) {
    .lot-table thead {
        display: none;
    }

    .lot-table,
    .lot-table tbody,
    .lot-table tr,
    .lot-table td {
        display: block;
        width: 100%;
    }

    .lot-table tr {
        padding: 12px;
        border-bottom: 1px solid var(--line);
    }

    .lot-table td {
        padding: 2px 0;
        border: 0;
        text-align: left;
    }

    /* Etiket ve değer aynı hizada; büyük fiyat rakamı etiketi aşağı itmesin. */
    .lot-table td[data-label] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
    }

    .lot-table td[data-label]::before {
        content: attr(data-label) ":";
        color: var(--ink-soft);
        font-size: 0.8125rem;
    }

    .lot-table .badge + .badge {
        margin-top: 0;
    }

    .lot-table tr.is-in-cart td:first-child {
        border-left: 0;
    }

    .lot-table tr.is-in-cart {
        border-left: 4px solid var(--brand);
    }

    .lot-table__name {
        margin-bottom: 4px;
    }

    .lot-table__action {
        padding-top: 10px;
    }

    .row-cart-form {
        justify-content: flex-start;
    }

    .lot-table .price {
        font-size: 1.25rem;
    }

    .lot-table .price--pending {
        font-size: 0.9375rem;
    }

    /* Parmakla basılabilir boyut. */
    .row-cart-form .button--small {
        flex: 1;
        padding: 10px 12px;
    }
}

/* Teklif listesi ve teklifler */
.page-body {
    padding-top: 32px;
    padding-bottom: 64px;
}

.count-badge {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

.qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-form__unit {
    color: var(--ink-soft);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.table.cart-table .cart-table__money {
    font-size: 1.0625rem;
    color: var(--brand-dark);
    white-space: nowrap;
}

/* Dar ekranda teklif listesi satırları karta dönüşür (katalogdaki gibi).
   ".table.cart-table" öneki: dosyanın ilerisindeki genel .table kurallarını
   (dolgu, alt çizgi) yensin; yoksa kart düzeni bozulur. */
@media (max-width: 760px) {
    .table.cart-table thead {
        display: none;
    }

    .table.cart-table,
    .table.cart-table tbody,
    .table.cart-table tr,
    .table.cart-table td {
        display: block;
        width: 100%;
    }

    .table.cart-table tbody tr {
        position: relative;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .table.cart-table td {
        padding: 4px 0;
        border: 0;
    }

    .table.cart-table td[data-label]::before {
        content: attr(data-label) ": ";
        color: var(--ink-soft);
        font-size: 0.8125rem;
    }

    .table.cart-table td.cart-table__name {
        padding: 0 72px 6px 0;
        font-weight: 600;
    }

    .table.cart-table td.cart-table__remove {
        position: absolute;
        top: 14px;
        right: 16px;
        width: auto;
        padding: 0;
    }

    .table.cart-table .qty-form {
        display: inline-flex;
        flex-wrap: wrap;
    }

    .table.cart-table .cart-table__money {
        font-size: 1.125rem;
    }

    .table.cart-table tfoot tr {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
        padding: 14px 16px;
    }

    .table.cart-table tfoot th {
        padding: 0;
        border: 0;
        font-size: 1.0625rem;
    }

    .table.cart-table tfoot th:empty {
        display: none;
    }
}

.qty-form input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #cfc7aa;
    border-radius: 8px;
    font: inherit;
}

.table tfoot th {
    border-top: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.9375rem;
}

.pre-line {
    white-space: pre-line;
}

.question-form {
    margin-top: 32px;
}

.badge--quote-new,
.badge--quote-quoted {
    background: var(--cream);
    color: #6b5a12;
}

.badge--quote-reviewing,
.badge--quote-accepted {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--quote-rejected,
.badge--quote-expired {
    background: #f1dede;
    color: #7a2626;
}

/* Proforma ve sipariş */
.proforma-card {
    margin: 16px 0;
}

.proforma-card.is-inactive {
    opacity: 0.6;
}

.proforma-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.proforma-card p {
    margin: 6px 0;
}

.input-small {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #cfc7aa;
    border-radius: 8px;
    font: inherit;
}

.form-grid__full {
    grid-column: 1 / -1;
    margin-top: 0;
}

.timeline {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.timeline__step {
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

.timeline__step.is-done {
    background: var(--brand-soft);
    border-color: var(--brand-pale);
    color: var(--brand-dark);
}

.timeline__step.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.timeline__label {
    display: block;
}

.timeline__date {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.event-list {
    padding-left: 18px;
}

.event-list li {
    margin-bottom: 8px;
}

.badge--proforma-sent,
.badge--order-payment_pending,
.badge--order-customs_issue {
    background: var(--cream);
    color: #6b5a12;
}

.badge--proforma-accepted,
.badge--order-paid,
.badge--order-ordered_from_supplier,
.badge--order-picked_up,
.badge--order-in_transit,
.badge--order-at_customs,
.badge--order-customs_cleared,
.badge--order-delivered {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--proforma-superseded,
.badge--proforma-expired,
.badge--order-cancelled {
    background: #f1dede;
    color: #7a2626;
}

/* Fiyat listesi önizlemesi */
.admin-section {
    margin-top: 32px;
}

/* Üste hizalı: bir alanın altındaki açıklama metni diğer alanları aşağı itmesin.
   Buton, etiket yüksekliği kadar aşağıdan başlayıp giriş kutularıyla aynı hizaya gelir. */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 16px;
    margin-top: 16px;
}

.form-inline h3 {
    width: 100%;
    margin: 0 0 12px;
    font-size: 1rem;
}

.form-inline .field {
    flex: 1 1 180px;
}

.form-inline > .button {
    margin: 25px 0 16px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.field input[type="file"] {
    padding: 6px;
    background: #fff;
}

.row--invalid td {
    color: var(--ink-soft);
    background: #faf6ea;
}

.change--up {
    color: #a12828;
    font-weight: 700;
}

.change--down {
    color: var(--brand-dark);
    font-weight: 700;
}

.change--significant {
    background: #f6dddd;
    border-radius: 4px;
    padding: 0 4px;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 0;
    list-style: none;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.sticky-actions .button {
    margin-top: 0;
}

.button--secondary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid var(--brand);
}

/* Lot detayı */
.lot-detail {
    padding-top: 24px;
    padding-bottom: 64px;
}

.breadcrumb {
    margin: 0 0 16px;
}

.lot-detail__grid {
    display: grid;
    gap: 32px;
}

/* minmax(0, …): uzun ürün adı ya da görsel sütunu taşırıp diğerini sıkıştırmasın. */
@media (min-width: 900px) {
    .lot-detail__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .lot-detail__aside {
        position: sticky;
        top: 24px;
    }
}

.lot-detail__image {
    display: block;
    width: 100%;
    max-height: 420px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--cream);
}

.lot-detail__aside .price-box {
    margin: 0;
}

.lot-detail__aside .button {
    margin: 8px 8px 0 0;
}

.cart-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.button--small {
    margin: 0 8px 0 0;
    padding: 4px 12px;
    font-size: 0.875rem;
}

.static-page h2 {
    margin-top: 28px;
    color: var(--brand-dark);
}

.button--block {
    display: block;
    width: 100%;
    text-align: center;
}

.lot-detail__main h1 {
    margin: 0 0 8px;
    line-height: 1.2;
    color: var(--brand-dark);
}

.eyebrow--dark {
    color: var(--ink-soft);
}

.lot-detail__subtitle {
    margin: 24px 0 8px;
    font-size: 1.125rem;
}

.price-box {
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.price-box .price {
    margin: 0;
    font-size: 1.125rem;
}

.price-box .button {
    margin-top: 0;
}

.price-box__note {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

.specs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
}

.specs dt {
    font-weight: 600;
    color: var(--ink-soft);
}

.specs dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Formlar */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.form-card .button {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 0 24px;
}

@media (min-width: 800px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid .form-actions {
        grid-column: 1 / -1;
    }
}

.field {
    margin-bottom: 16px;
}

.field label,
.field__label,
.checkbox-group legend {
    display: block;
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.field__optional {
    font-weight: 400;
    color: var(--ink-soft);
}

.field input:not([type="checkbox"]),
.field select,
.field textarea,
.filters input:not([type="checkbox"]) {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cfc7aa;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:not([type="checkbox"]):focus {
    outline: 2px solid var(--brand);
    outline-offset: 0;
    border-color: var(--brand);
}

.field--checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field--checkbox label {
    margin: 0;
    font-weight: 400;
}

.checkbox-group {
    border: 0;
    padding: 0;
    margin: 0;
}

.field .checkbox-group__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.field__hint {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.field__error {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #a12828;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #a12828;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-thumb {
    border-radius: 8px;
    object-fit: cover;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.alert--success {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.alert--error {
    background: #f6dddd;
    color: #7a2626;
}

.alert--notice {
    background: var(--cream);
    color: #4d410c;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Yönetim paneli */
.admin-header {
    background: var(--brand-dark);
    color: #fff;
}

.admin-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
}

.brand--small {
    color: #fff;
    font-size: 1rem;
}

.brand__tag {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(241, 228, 178, 0.18);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
}

.admin-header__user a,
.admin-header__user .link-button {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.admin-header__user a:hover,
.admin-header__user .link-button:hover {
    color: #fff;
    text-decoration: underline;
}

.admin-nav {
    background: var(--brand-deeper);
}

.admin-nav__inner {
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.is-active {
    color: #fff;
    border-bottom-color: var(--cream);
}

.admin-nav__divider {
    width: 1px;
    margin: 10px 8px;
    background: rgba(255, 255, 255, 0.2);
}

.count-badge--alert {
    background: #d9822b;
}

.admin-main {
    padding-top: 24px;
    padding-bottom: 64px;
}

.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-head h1 {
    margin: 0;
}

.admin-head .button {
    margin-top: 0;
}

/* position: gizli etiketler (visually-hidden, absolute) kaydırma kutusunun
   dışına kaçıp telefonda bütün sayfayı yana genişletmesin. */
.table-wrap {
    position: relative;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table th {
    font-size: 0.8125rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.stat__value {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.stat__label {
    margin: 0;
    color: var(--ink-soft);
}


/* Alt bilgi: dalgalı geçiş, süzülen çekirdekler, renkli zemin */
.site-footer {
    position: relative;
    margin-top: 48px;
    color: rgba(241, 228, 178, 0.88);
    font-size: 0.9375rem;
}

.site-footer__wave {
    position: relative;
    height: 70px;
    overflow: hidden;
    line-height: 0;
}

/* SVG iki ekran genişliğinde; yarısı kadar kaydırılınca dalga kesintisiz döner. */
.site-footer__wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.site-footer__wave-back {
    fill: var(--brand-bright);
    opacity: 0.55;
    animation: footer-wave 18s linear infinite;
}

.site-footer__wave-front {
    fill: var(--brand-dark);
    animation: footer-wave 11s linear infinite reverse;
}

@keyframes footer-wave {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.site-footer__body {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(241, 228, 178, 0.12), transparent 40%),
        radial-gradient(circle at 85% 70%, var(--brand-glow), transparent 45%),
        linear-gradient(160deg, var(--brand-dark) 0%, var(--brand-mid) 55%, var(--brand-deeper) 100%);
    background-size: 160% 160%, 160% 160%, 100% 100%;
    animation: footer-glow 16s ease-in-out infinite alternate;
}

@keyframes footer-glow {
    from {
        background-position: 0% 0%, 100% 100%, 0 0;
    }

    to {
        background-position: 100% 60%, 0% 40%, 0 0;
    }
}

/* Süzülen kahve çekirdekleri (dekoratif) */
.site-footer__beans {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-footer__bean {
    position: absolute;
    bottom: -40px;
    width: 18px;
    fill: rgba(241, 228, 178, 0.1);
    stroke: rgba(241, 228, 178, 0.22);
    stroke-width: 1.2;
    animation: bean-float 22s linear infinite;
}

.site-footer__bean path {
    fill: none;
}

.site-footer__bean:nth-child(1) { left: 6%; width: 18px; animation-delay: 0s; }
.site-footer__bean:nth-child(2) { left: 18%; width: 12px; animation-delay: -4s; animation-duration: 26s; }
.site-footer__bean:nth-child(3) { left: 32%; width: 22px; animation-delay: -9s; }
.site-footer__bean:nth-child(4) { left: 47%; width: 14px; animation-delay: -2s; animation-duration: 28s; }
.site-footer__bean:nth-child(5) { left: 61%; width: 20px; animation-delay: -7s; }
.site-footer__bean:nth-child(6) { left: 74%; width: 12px; animation-delay: -11s; animation-duration: 24s; }
.site-footer__bean:nth-child(7) { left: 86%; width: 24px; animation-delay: -5s; }
.site-footer__bean:nth-child(8) { left: 95%; width: 16px; animation-delay: -13s; animation-duration: 30s; }

@keyframes bean-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-480px) rotate(200deg);
        opacity: 0;
    }
}

.site-footer__grid {
    position: relative;
    display: grid;
    gap: 28px;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    padding-top: 36px;
    padding-bottom: 40px;
}

@media (max-width: 960px) {
    .site-footer__grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.site-footer__about img {
    display: block;
    margin-bottom: 12px;
}

.site-footer__about p {
    margin: 0 0 16px;
    max-width: 34ch;
}

.site-footer__cta {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.site-footer__heading {
    margin: 0 0 12px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 8px;
}

/* Bağlantı altında soldan sağa açılan krem çizgi */
.site-footer nav a,
.site-footer__contact a {
    position: relative;
    color: rgba(241, 228, 178, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer nav a::after,
.site-footer__contact a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-footer nav a:hover,
.site-footer__contact a:hover {
    color: #fff;
}

.site-footer nav a:hover::after,
.site-footer__contact a:hover::after {
    transform: scaleX(1);
}

.site-footer__contact {
    font-style: normal;
    line-height: 1.75;
}

.site-footer__contact strong {
    color: #fff;
}

.site-footer__reg {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.site-footer__bottom {
    position: relative;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.8125rem;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-footer__top {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__top:hover {
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* Hareket hassasiyeti olan kullanıcıda alt bilgi sabit kalır. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-footer__wave-back,
    .site-footer__wave-front,
    .site-footer__body,
    .site-footer__bean {
        animation: none;
    }

    .site-footer__bean {
        display: none;
    }
}
