/* ==========================================================================
   Miniko — mobil öncelikli tema
   Renk paleti: bej, adaçayı yeşili, kiremit ve toprak tonları.
   ========================================================================== */

:root {
    /* Ana renkler */
    --clay: #C0714E;            /* kiremit — birincil aksiyon */
    --clay-dark: #A65C3D;
    --clay-soft: #F5E6DD;
    --sage: #879B80;            /* adaçayı yeşili — ikincil */
    --sage-dark: #6F8468;
    --sage-soft: #E8EEE5;
    --sand: #D8C3A5;            /* bej */
    --sand-soft: #F2E8DA;

    /* Yüzeyler */
    --cream: #FBF8F3;
    --surface: #FFFFFF;
    --line: #EBE2D6;
    --line-strong: #DDD0BE;

    /* Metin */
    --ink: #332F2A;
    --ink-soft: #6F665B;
    --ink-faint: #9A9186;

    /* Durum */
    --danger: #B4453A;
    --danger-soft: #FBEAE8;
    --success: #4F7A4A;
    --success-soft: #E9F1E7;

    /* Ölçüler */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(51, 47, 42, .04);
    --shadow: 0 6px 20px rgba(51, 47, 42, .07);
    --shadow-lg: 0 14px 40px rgba(51, 47, 42, .1);

    --header-height: 62px;
    --age-bar-height: 58px;   /* tek satır yaş çipi; ürün tipi panele taşındı */
    --page-gutter: 20px;
    --max-width: 1240px;

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--clay);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* --- Duyuru şeridi ------------------------------------------------------- */

.announcement-bar {
    background: var(--sage);
    color: #fff;
    text-align: center;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
    padding: 8px var(--page-gutter);
}

/* --- Sabit header -------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clay);
    letter-spacing: -.02em;
    line-height: 1;
    flex-shrink: 0;
}
.logo span { color: var(--sage); }

/* Yüklenen logo: yükseklik sabit, genişlik orana göre. Header'ın yüksekliği
   sabit olduğu için logoyu ölçeklendirip taşmayı önlüyoruz. */
.logo-image {
    display: block;
    height: 34px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}
@media (min-width: 900px) {
    .logo-image { height: 40px; max-width: 240px; }
}

/* Footer'daki logo biraz daha küçük durur. */
.site-footer .logo-image { height: 30px; }

.header-nav {
    display: none;
    gap: 22px;
    font-size: .9375rem;
    color: var(--ink-soft);
    margin-inline: auto;
}
.header-nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.header-nav a:hover, .header-nav a.active { color: var(--clay); border-bottom-color: var(--clay); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: .875rem;
    cursor: pointer;
    transition: background .15s;
}
.icon-btn:hover { background: var(--sand-soft); }
.icon-btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.icon-btn .label { display: none; }

.cart-btn { position: relative; }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--clay);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    line-height: 1;
}
.cart-count[hidden] { display: none; }

@media (min-width: 900px) {
    :root { --header-height: 72px; --page-gutter: 24px; }
    .header-nav { display: flex; }
    .icon-btn .label { display: inline; }
}

/* --- Butonlar ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 14px;              /* hafif oval köşeler */
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .1s;
    text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--clay-dark); }

.btn-secondary { background: var(--sage); color: #fff; }
.btn-secondary:hover:not([disabled]) { background: var(--sage-dark); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover:not([disabled]) { border-color: var(--clay); color: var(--clay); }

.btn-ghost { background: var(--sand-soft); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--sand); }

.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not([disabled]) { background: var(--danger); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .8125rem; border-radius: 10px; }
.btn-pill { border-radius: var(--radius-pill); }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: 16px 8px; }

.hero-inner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--sand-soft) 0%, var(--sage-soft) 100%);
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

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

/* Görsel varken metnin okunurluğunu koruyan yumuşak gradyan.
   Mobilde içerik altta olduğu için aşağıdan yukarı; masaüstünde solda
   olduğu için soldan sağa koyulaşır. Böylece fotoğrafın geri kalanı
   kararmadan başlık okunur kalır. */
.hero-inner.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 38, 33, .58) 0%, rgba(43, 38, 33, .12) 52%, transparent 78%);
}

.hero-content { position: relative; z-index: 1; padding: 28px 22px; max-width: 560px; }
.hero-inner.has-image .hero-content { color: #fff; }
.hero-inner.has-image .hero-subtitle { color: rgba(255, 255, 255, .92); }

.hero-title { font-size: 1.75rem; margin-bottom: .35em; letter-spacing: -.02em; }
.hero-subtitle { font-size: 1rem; color: var(--ink-soft); margin-bottom: 1.2em; }

/* Dekoratif zemin: hero görseli yüklenene kadar boş görünmemesi için. */
.hero-inner:not(.has-image)::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(192, 113, 78, .14);
}

@media (min-width: 768px) {
    .hero-inner { min-height: 440px; align-items: center; }
    .hero-content { padding: 48px 44px; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.0625rem; }

    .hero-inner.has-image::after {
        background: linear-gradient(to right, rgba(43, 38, 33, .60) 0%, rgba(43, 38, 33, .28) 42%, transparent 72%);
    }
}

/* --- Yaş filtresi (yatay kaydırılabilir) --------------------------------- */

/* Sayfa kaydıkça header'ın hemen altına yapışır, böylece kullanıcı her an
   yaş aralığı değiştirebilir. z-index header'ın (100) altında kalır. */
.age-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: rgba(251, 248, 243, .95);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
    padding-block: 9px 6px;
}

.filter-strip { padding-block: 18px 4px; }

.filter-scroll {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s ease;
}
.chip:hover { border-color: var(--sand); color: var(--ink); }
.chip.active {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
    font-weight: 600;
}

/* Ürün tipi çipleri yaş çiplerinden ayrışsın diye adaçayı tonunda. */
.chip-sage.active {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}

@media (min-width: 900px) { .filter-scroll { flex-wrap: wrap; overflow: visible; } }

/* --- Bölüm başlıkları ---------------------------------------------------- */

.section { padding-block: 26px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head .more { font-size: .875rem; color: var(--clay); font-weight: 600; white-space: nowrap; }
.section-sub { color: var(--ink-soft); font-size: .9375rem; margin: -8px 0 16px; }

/* --- Ürün grid ----------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* mobilde 2'li */
    gap: 14px;
}

@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--sand-soft);
    overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-media .placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--ink-faint);
    font-size: .8125rem;
    background: repeating-linear-gradient(135deg, var(--sand-soft) 0 12px, #EFE4D4 12px 24px);
}

/* --- Görsel karuseli (ürün kartı + detay galerisi) ----------------------- */

/* Dokunmatikte parmakla kaydırma tarayıcının kendi scroll'u ile çalışır;
   JS yalnızca oklar, noktalar ve aktif nokta takibi için gerekir. */
.media-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.media-track::-webkit-scrollbar { display: none; }

.media-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: block;
}
.media-slide .placeholder,
.product-media > .media-slide { display: grid; place-items: center; }

/* Masaüstü okları: kart üzerine gelince görünür, mobilde hiç gösterilmez. */
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    place-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    padding: 0;
}
.media-nav.prev { left: 8px; }
.media-nav.next { right: 8px; }
.media-nav:hover { background: #fff; }
.media-nav[disabled] { opacity: .35; cursor: default; }

@media (hover: hover) and (min-width: 700px) {
    .product-card:hover .media-nav,
    .gallery-main:hover .media-nav { display: grid; }
}

.media-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: auto;
}

.media-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 1px rgba(51, 47, 42, .18);
    cursor: pointer;
    transition: width .2s, background .2s;
}
.media-dot.active { width: 16px; border-radius: 3px; background: #fff; }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--clay);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: .02em;
}
.product-badge.sold-out { background: var(--ink-soft); }

.product-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-title {
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta { font-size: .75rem; color: var(--ink-faint); }

.product-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; padding-top: 4px; }
.product-price .now { font-size: 1.0625rem; font-weight: 700; }
.product-price .was { font-size: .8125rem; color: var(--ink-faint); text-decoration: line-through; }

.product-card .btn { margin-top: 8px; }

/* --- Kategori kartları ---------------------------------------------------- */

/* overflow-x:auto dikey eksende de kırpma yapar; hover'daki translateY(-2px)
   kartın üst kenarını (ve turuncu çerçevesini) kesiyordu. Üstte pay bırakıyoruz. */
.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 0 8px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-card {
    flex-shrink: 0;
    min-width: 132px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
    font-size: .875rem;
    font-weight: 500;
    transition: border-color .15s, transform .15s;
}
.category-card:hover { border-color: var(--clay); transform: translateY(-2px); }

/* --- Güven şeridi --------------------------------------------------------- */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: var(--sage-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin: 8px 0;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--ink-soft); }
.trust-item svg { width: 20px; height: 20px; color: var(--sage-dark); flex-shrink: 0; }

@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(4, 1fr); padding: 20px 24px; } }

/* --- Katalog sayfası ------------------------------------------------------ */

.catalog-head { padding-block: 18px 4px; }
.catalog-head h1 { margin-bottom: 6px; }

.catalog-layout { display: block; padding-top: 20px; }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.result-count { font-size: .875rem; color: var(--ink-soft); }

.filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 18px;
}

/* Mobilde panel kapalı başlar: ölçümde ürün ızgarası sayfanın 1037px aşağısında
   başlıyordu, yani müşteri tam bir ekran boyu kaydırmadan hiçbir ürün
   göremiyordu. Başlık bir <button>, gövde onun açıp kapattığı bölge. */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 0;
    background: none;
    border: 0;
    font: inherit;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.filter-toggle-label { flex: 1; }

.filter-toggle-badge {
    background: var(--sage-soft);
    color: var(--sage-dark);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    font-size: .75rem;
    font-weight: 600;
}

/* Aşağı bakan ok; panel açılınca yukarı döner. */
.filter-toggle-arrow {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-right: 2px solid var(--ink-soft);
    border-bottom: 2px solid var(--ink-soft);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.filter-toggle[aria-expanded="true"] .filter-toggle-arrow {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.filter-body { display: none; padding-top: 14px; }
.filter-toggle[aria-expanded="true"] + .filter-body { display: block; }

/* JS kapalıysa panelin açık kalması _Layout'taki <noscript> bloğunda çözülür. */
.filter-group + .filter-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-group h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 10px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }

.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: .875rem;
    cursor: pointer;
    background: var(--cream);
    transition: all .15s;
}
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip:hover { border-color: var(--sand); }
.check-chip:has(input:checked) { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-dark); font-weight: 600; }

.select-control {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-family: inherit;
    font-size: .875rem;
    color: var(--ink);
    cursor: pointer;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clay-soft);
    color: var(--clay-dark);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: .8125rem;
    font-weight: 500;
    transition: background .15s;
}
.active-filter:hover { background: var(--sand); color: var(--ink); }
.active-filter span[aria-hidden] { font-size: 1rem; line-height: 1; opacity: .7; }
.active-filter.clear { background: transparent; color: var(--ink-soft); text-decoration: underline; }
.active-filter.clear:hover { background: transparent; color: var(--clay); }

@media (min-width: 1000px) {
    .catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }

    /* Yan sütunda yer sorunu yok: panel her zaman açık, başlık gizli. */
    .filter-toggle { display: none; }
    .filter-body { display: block; padding-top: 0; }
    /* Yapışkan yaş çubuğunun altında konumlanır, altına kaymaz. */
    .filter-panel {
        position: sticky;
        top: calc(var(--header-height) + var(--age-bar-height) + 16px);
        margin-bottom: 0;
        max-height: calc(100vh - var(--header-height) - var(--age-bar-height) - 32px);
        overflow-y: auto;
    }
}

/* --- Ürün detay ----------------------------------------------------------- */

.product-detail { padding-block: 18px 40px; }

.detail-grid { display: grid; gap: 22px; }

@media (min-width: 900px) {
    .detail-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
    .detail-info { position: sticky; top: calc(var(--header-height) + 20px); }

    /* Ölçümde galeri 1440x900 ekranda 603x804 çıkıyordu: görsel tek başına
       ekranın tamamını dolduruyor, fiyat ve sepete ekle butonu görünmüyordu.
       Genişliği tavanlıyoruz ki 3/4 oranından çıkan yükseklik ekrana sığsın
       (yükseklik = genişlik x 4/3, o yüzden tavan 3/4 ile çarpılıyor). */
    .detail-gallery { display: flex; flex-direction: column; align-items: center; }
    .gallery-main,
    .gallery-thumbs { width: 100%; max-width: calc((100vh - 240px) * 3 / 4); }
}

.gallery-main {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .media-nav { width: 38px; height: 38px; font-size: 1.4rem; }
.gallery-main .placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-faint);
    background: repeating-linear-gradient(135deg, var(--sand-soft) 0 14px, #EFE4D4 14px 28px);
}

.gallery-thumbs { display: flex; gap: 9px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs { justify-content: flex-start; }
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex-shrink: 0;
    width: 62px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--sand-soft);
}
.gallery-thumb.active { border-color: var(--clay); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-eyebrow { font-size: .8125rem; color: var(--ink-faint); letter-spacing: .03em; text-transform: uppercase; }

.detail-title { font-size: 1.5rem; font-weight: 600; margin: 6px 0 10px; letter-spacing: -.02em; }

/* Fiyat bilinçli olarak net ve büyük. */
.detail-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.detail-price .now { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.detail-price .was { font-size: 1.0625rem; color: var(--ink-faint); text-decoration: line-through; }
.detail-price .save {
    background: var(--clay-soft); color: var(--clay-dark);
    font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
}

.detail-short { color: var(--ink-soft); font-size: .9375rem; margin: 12px 0 20px; }

@media (min-width: 900px) {
    .detail-title { font-size: 1.9rem; }
    .detail-price .now { font-size: 2.25rem; }
}

/* --- Beden (ay) seçimi — kare kutucuklar ---------------------------------- */

.size-section { margin-bottom: 20px; }

.size-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.size-label .hint { font-weight: 400; color: var(--ink-faint); font-size: .8125rem; }

.size-grid { display: flex; flex-wrap: wrap; gap: 9px; }

.size-box {
    position: relative;
    min-width: 60px;
    height: 56px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
    overflow: hidden;
}
.size-box:hover:not(.disabled) { border-color: var(--clay); }
.size-box input { position: absolute; opacity: 0; pointer-events: none; }
.size-box:has(input:checked) { border-color: var(--clay); background: var(--clay); color: #fff; }

/* Stokta olmayan bedenler gizlenmez, üzerine çizgi çekilir. */
.size-box.disabled {
    color: var(--ink-faint);
    background: var(--cream);
    border-color: var(--line);
    cursor: not-allowed;
}
.size-box.disabled::after {
    content: '';
    position: absolute;
    left: -10%;
    top: 50%;
    width: 120%;
    height: 1.5px;
    background: var(--ink-faint);
    transform: rotate(-24deg);
    opacity: .8;
}

.size-error { color: var(--danger); font-size: .8125rem; margin-top: 8px; }
.size-error[hidden] { display: none; }

/* --- Adet + sepete ekle ---------------------------------------------------- */

.buy-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
}
.qty-control button {
    width: 42px;
    height: 100%;
    min-height: 48px;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--ink-soft);
    cursor: pointer;
}
.qty-control button:hover { background: var(--sand-soft); color: var(--ink); }
.qty-control input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: var(--ink);
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row .btn { flex: 1; min-height: 48px; }

/* --- Akordiyon ------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--line); margin-top: 24px; }

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 2px;
    background: none;
    border: none;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}
.accordion-trigger .icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    position: relative;
    transition: transform .22s ease;
}
.accordion-trigger .icon::before,
.accordion-trigger .icon::after {
    content: '';
    position: absolute;
    background: var(--ink-soft);
    border-radius: 2px;
    transition: opacity .22s ease;
}
.accordion-trigger .icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.accordion-trigger .icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.accordion-trigger[aria-expanded="true"] .icon::after { opacity: 0; }

.accordion-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
}
.accordion-panel .inner {
    padding: 0 2px 18px;
    color: var(--ink-soft);
    font-size: .9375rem;
    white-space: pre-line;   /* admin panelindeki satır sonları korunur */
}
.accordion-panel .inner dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.accordion-panel .inner dt { font-weight: 600; color: var(--ink); }
.accordion-panel .inner dd { margin: 0; }

/* --- Sepet ----------------------------------------------------------------- */

.cart-layout { display: grid; gap: 22px; padding-block: 20px 48px; }

@media (min-width: 900px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
    .cart-summary { position: sticky; top: calc(var(--header-height) + 20px); }
}

.cart-list { display: flex; flex-direction: column; gap: 12px; }

.cart-line {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}
.cart-line-media { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--sand-soft); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line-title { font-size: .9375rem; font-weight: 500; }
.cart-line-meta { font-size: .8125rem; color: var(--ink-faint); }
.cart-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cart-line-price { font-weight: 700; }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; padding: 7px 0; }
.summary-row.total { font-size: 1.125rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary-note { font-size: .8125rem; color: var(--sage-dark); background: var(--sage-soft); padding: 10px 12px; border-radius: 10px; margin: 12px 0; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-soft); }
.empty-state h2 { color: var(--ink); }

/* --- Formlar / kimlik ------------------------------------------------------ */

.auth-page { display: grid; place-items: center; padding: 28px var(--page-gutter) 56px; }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--ink-soft); font-size: .9375rem; margin-bottom: 22px; }

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 14px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.btn-google:hover { border-color: var(--ink-faint); background: var(--cream); }
.btn-google svg { width: 19px; height: 19px; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-faint);
    font-size: .8125rem;
    margin: 18px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.form-row { display: grid; gap: 14px; }
@media (min-width: 480px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .875rem; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font-size: 1rem;              /* iOS'ta odaklanınca zoom olmaması için 16px */
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(192, 113, 78, .13);
}
textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.5; }

.form-hint { font-size: .75rem; color: var(--ink-faint); margin-top: 5px; }

.field-error { color: var(--danger); font-size: .8125rem; margin-top: 5px; display: block; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: .875rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-warn { background: #FCF2E2; color: #8A5B22; }

.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--ink-soft); }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--clay); }

.auth-foot { text-align: center; font-size: .875rem; color: var(--ink-soft); margin-top: 18px; }
.auth-foot a { color: var(--clay); font-weight: 600; }

/* --- Ekmek kırıntısı ------------------------------------------------------- */

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--ink-faint); padding: 14px 0 0; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb .sep { opacity: .6; }

/* --- Sayfalama -------------------------------------------------------------- */

.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: .875rem;
}
.pagination .current { background: var(--clay); border-color: var(--clay); color: #fff; font-weight: 600; }

/* --- Bildirim (toast) ------------------------------------------------------- */

.toast-host {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 380px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .875rem;
    box-shadow: var(--shadow-lg);
    animation: toast-in .22s ease;
}
.toast.error { background: var(--danger); }

@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
    background: var(--sand-soft);
    border-top: 1px solid var(--line);
    padding: 34px 0 24px;
    margin-top: 34px;
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }

.footer-grid h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: .9375rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--clay); }
.footer-about { font-size: .9375rem; color: var(--ink-soft); max-width: 46ch; }

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
    font-size: .8125rem;
    color: var(--ink-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

/* --- Hareket azaltma tercihi ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Tek sayfa ödeme ------------------------------------------------------- */

.checkout { padding-block: 20px 48px; }
.checkout > h1 { margin-bottom: 4px; }

.checkout-layout { display: grid; gap: 22px; margin-top: 20px; }

@media (min-width: 960px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
    .checkout-summary { position: sticky; top: calc(var(--header-height) + 16px); }
}

.checkout-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}
.checkout-step > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.step-no {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--clay-soft);
    color: var(--clay-dark);
    font-size: .8125rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

@media (min-width: 560px) {
    .form-row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
}

/* --- Seçenek listesi (kargo) ---------------------------------------------- */

.option-list { display: flex; flex-direction: column; gap: 9px; }

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.option-row:hover { border-color: var(--sand); }
.option-row input { accent-color: var(--clay); width: 18px; height: 18px; flex-shrink: 0; }
.option-row:has(input:checked) { border-color: var(--clay); background: #FFFCFA; }

.option-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.option-title { font-size: .9375rem; font-weight: 600; }
.option-meta { font-size: .8125rem; color: var(--ink-faint); }
.option-price { font-weight: 700; white-space: nowrap; }
.option-price.free { color: var(--success); }

/* --- Bireysel / kurumsal seçici ------------------------------------------- */

.segmented {
    display: inline-flex;
    padding: 3px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
    display: block;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.segment:has(input:checked) span { background: var(--clay); color: #fff; font-weight: 600; }

/* --- Kart alanı ----------------------------------------------------------- */

.card-box {
    background: linear-gradient(135deg, #FBF8F3 0%, #F4EDE3 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .75rem;
    color: var(--ink-soft);
    margin: 12px 0 0;
    line-height: 1.5;
}
.secure-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--sage-dark); margin-top: 1px; }

/* --- Ödeme özeti ---------------------------------------------------------- */

.checkout-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.checkout-summary > h2 { font-size: 1rem; margin-bottom: 14px; }

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    max-height: 290px;
    overflow-y: auto;
}

.summary-item { display: flex; align-items: center; gap: 10px; }
.summary-item-media {
    width: 44px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sand-soft);
    flex-shrink: 0;
}
.summary-item-media img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.summary-item-name {
    font-size: .8125rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.summary-item-meta { font-size: .75rem; color: var(--ink-faint); }
.summary-item-price { font-size: .8125rem; font-weight: 700; white-space: nowrap; }

.consent-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}
.consent-box .checkbox-row { align-items: flex-start; font-size: .8125rem; line-height: 1.5; }
.consent-box .checkbox-row input { margin-top: 2px; flex-shrink: 0; }
.consent-box a { color: var(--clay); font-weight: 600; text-decoration: underline; }

[data-consent-hint][hidden] { display: none; }

/* --- 3D Secure katmanı ---------------------------------------------------- */

.threeds-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(43, 38, 33, .6);
    display: grid;
    place-items: center;
    padding: 16px;
}
.threeds-overlay[hidden] { display: none; }

.threeds-frame {
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    height: min(86vh, 660px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.threeds-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
    font-weight: 600;
}
.threeds-head button {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 0 4px;
}
.threeds-frame iframe { flex: 1; width: 100%; border: none; }

/* --- Sipariş tamamlandı --------------------------------------------------- */

.order-done { text-align: center; padding: 26px 0 12px; }
.order-done-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: grid;
    place-items: center;
}
.order-done-icon svg { width: 32px; height: 32px; }

.order-detail-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 860px) { .order-detail-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; } }

.order-address { line-height: 1.7; font-size: .9375rem; margin: 0; }

/* --- Yasal metin sayfaları ------------------------------------------------ */

.legal-page { max-width: 760px; margin-inline: auto; padding-block: 24px 48px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-body { white-space: pre-line; color: var(--ink-soft); line-height: 1.75; }

/* --- Genel modal (sözleşme önizlemesi) ----------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: rgba(43, 38, 33, .58);
    display: grid;
    place-items: end center;
    padding: 0;
}
.modal[hidden] { display: none; }

.modal-panel {
    background: var(--surface);
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modal-up .24s ease;
}

@keyframes modal-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (min-width: 700px) {
    .modal { place-items: center; padding: 20px; }
    .modal-panel { border-radius: var(--radius-lg); max-height: 86vh; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: .9375rem;
    flex-shrink: 0;
}
.modal-head button {
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 0 4px;
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.modal-foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--cream);
    flex-shrink: 0;
}

/* Onay metni içindeki bağlantı görünümlü buton */
.consent-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--clay);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.consent-link:hover { color: var(--clay-dark); }

/* --- Sözleşme metni ------------------------------------------------------- */

.contract { font-size: .875rem; line-height: 1.7; color: var(--ink-soft); }

.contract-title {
    font-size: 1rem;
    text-align: center;
    letter-spacing: .04em;
    color: var(--ink);
    margin-bottom: 18px;
}

.contract-block { margin-bottom: 22px; }
.contract-block h3 {
    font-size: .8125rem;
    letter-spacing: .05em;
    color: var(--ink);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.contract-block h4 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-faint);
    margin: 14px 0 6px;
}

.contract-dl {
    display: grid;
    grid-template-columns: minmax(96px, auto) 1fr;
    gap: 4px 14px;
    margin: 0;
}
.contract-dl dt { color: var(--ink-faint); }
.contract-dl dd { margin: 0; color: var(--ink); }

.contract-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.contract-table th {
    text-align: left;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    padding: 7px 8px;
    border-bottom: 1px solid var(--line);
}
.contract-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.contract-table .num { text-align: right; white-space: nowrap; }
.contract-table tfoot td { border-bottom: none; padding: 4px 8px; }
.contract-table tfoot tr.grand td {
    font-weight: 700;
    color: var(--ink);
    border-top: 1px solid var(--line-strong);
    padding-top: 9px;
}

/* Madde metinleri satır sonları korunarak gösterilir. */
.contract-body { white-space: pre-line; }

.contract-hint { color: var(--ink-faint); font-size: .8125rem; font-style: italic; }

/* --- Header arama --------------------------------------------------------- */

/* Masaüstünde satır içi arama; mobilde gizli (yerine ikon + çekmece). */
.header-search { display: none; }

.search-toggle { display: inline-flex; }

@media (min-width: 900px) {
    .header-search {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 1 260px;
        background: var(--cream);
        border: 1px solid var(--line);
        border-radius: var(--radius-pill);
        padding: 7px 14px;
        transition: border-color .15s, background .15s;
    }
    .header-search:focus-within { border-color: var(--clay); background: #fff; }
    .header-search svg { width: 17px; height: 17px; color: var(--ink-faint); flex-shrink: 0; }
    .header-search input {
        border: none;
        background: none;
        outline: none;
        font: inherit;
        font-size: .875rem;
        color: var(--ink);
        width: 100%;
        min-width: 0;
    }
    .header-search input::-webkit-search-cancel-button { cursor: pointer; }

    .search-toggle { display: none; }
}

.search-drawer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding-block: 10px 12px;
}
.search-drawer[hidden] { display: none; }

.search-drawer form { display: flex; gap: 8px; }
.search-drawer input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font-size: 1rem;          /* iOS'ta odaklanınca zoom olmaması için */
    font-family: inherit;
    color: var(--ink);
    background: var(--cream);
}
.search-drawer input:focus { outline: none; border-color: var(--clay); background: #fff; }

/* --- Sipariş geçmişi ------------------------------------------------------ */

.order-history { display: flex; flex-direction: column; gap: 14px; }

.order-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.order-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.order-row-number { font-weight: 700; font-size: .9375rem; display: block; }
.order-row-date { font-size: .8125rem; color: var(--ink-faint); }
.order-row-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.order-row-items { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.order-row-item { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.order-row-meta { display: block; font-size: .75rem; color: var(--ink-faint); }
.order-row-price { white-space: nowrap; font-weight: 600; }

.order-row-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.order-row-total { font-weight: 700; }

/* Fatura çıktısındaki logo. */
.invoice-logo img { height: 34px; width: auto; max-width: 200px; object-fit: contain; }

/* --- Çerez onay bandı ------------------------------------------------------- */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 320;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(51, 47, 42, .1);
    /* Telefonlarda alt çentik/gezinme çubuğunun altına düşmesin. */
    padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px));
}

.cookie-consent-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-consent-inner p {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.cookie-consent-inner a { color: var(--clay); text-decoration: underline; }

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cookie-consent-actions .btn { flex: 1 1 auto; }

@media (min-width: 720px) {
    .cookie-consent-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .cookie-consent-actions .btn { flex: 0 0 auto; }
}

/* --- Kayıtlı kartlar -------------------------------------------------------- */

.saved-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.saved-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.saved-card:has(input:checked) {
    border-color: var(--clay);
    box-shadow: 0 0 0 1px var(--clay) inset;
}
.saved-card input { accent-color: var(--clay); }

.saved-card-body { display: flex; flex-direction: column; gap: 2px; }
.saved-card-name { font-weight: 600; font-size: .9375rem; }
.saved-card-meta { font-size: .75rem; color: var(--ink-faint); }

.save-card-row { margin-top: 4px; }

.card-list { display: flex; flex-direction: column; gap: 10px; }
.card-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.card-list-row .saved-card-body { gap: 3px; }

/* Kargo seçeneğinin altındaki "ilk sipariş" gibi ücretsizlik nedeni. */
.option-price-note {
    display: block;
    font-size: .6875rem;
    font-weight: 500;
    color: var(--ink-faint);
    margin-top: 2px;
    white-space: nowrap;
}
.option-price.free .option-price-note { color: var(--success); }

/* Sayfa altındaki buton satırı. Düz <p> içinde bırakılırsa mobilde satırlar
   üst üste biniyordu: satır yüksekliği butonun yüksekliğinden küçük kalıyor. */
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.page-actions .btn { flex: 0 1 auto; }

/* Filtre grubunun başlığı altındaki küçük açıklama. */
.filter-hint {
    margin: -4px 0 8px;
    font-size: .75rem;
    color: var(--ink-faint);
}
