/* Bayi vitrini — klasik mobilya mağazası görünümü (beyaz zemin, fotoğraf ağırlıklı).
   --accent bayinin "Vitrinim" sayfasında seçtiği renktir (düğmeler, bağlantılar, seçili filtreler). */
:root {
    --accent: #1F6F5C;
    --text: #1F2328;
    --muted: #6B7178;
    --line: #E7E8EA;
    --soft: #F6F6F4;
    --white: #FFFFFF;
    --wa: #1FAF54;          /* WhatsApp yeşili */
    --radius: 10px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Düğmeler ---- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; padding: 0 1.2rem;
         border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.s-btn svg { width: 18px; height: 18px; flex: none; }
.s-btn-accent { background: var(--accent); color: #fff; }
.s-btn-accent:hover { filter: brightness(1.08); }
.s-btn-wa { background: var(--wa); color: #fff; }
.s-btn-wa:hover { filter: brightness(1.06); }
.s-btn-line { background: var(--white); border-color: var(--line); color: var(--text); }
.s-btn-line:hover { border-color: var(--text); }
.s-btn-lg { height: 52px; font-size: 1rem; padding: 0 1.5rem; }
.s-btn-block { width: 100%; }

/* ---- Önizleme şeridi ---- */
.s-preview { background: #FFF4D6; color: #6B4E00; font-size: .85rem; text-align: center; padding: .55rem 1rem; }
.s-preview a { text-decoration: underline; font-weight: 600; }

/* ---- Üst iletişim şeridi ---- */
.s-topbar { background: var(--accent); color: #fff; font-size: .82rem; }
.s-topbar .s-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.s-topbar a { color: #fff; opacity: .95; }
.s-topbar-links { display: flex; gap: 1.2rem; }

/* ---- Başlık ---- */
.s-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.s-header-main { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
/* Vitrinde logo yok: bayinin adı yazı olarak */
.s-logo { display: flex; align-items: center; flex: none; min-width: 0; max-width: 34%; }
.s-logo-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.s-logo:hover .s-logo-name { color: var(--accent); }
/* Uzun vitrin adı: kesilmesin, küçülüp en çok iki satıra sığsın */
.s-logo-name.is-long { font-size: 1.05rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s-search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; }
.s-search input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
                  padding: 0 1rem; background: var(--soft); color: var(--text); }
.s-search input:focus { background: var(--white); border-color: var(--accent); outline: none; }
.s-search button { height: 44px; padding: 0 1.1rem; border: 0; border-radius: 0 8px 8px 0; background: var(--accent); color: #fff; cursor: pointer; }
.s-search button svg { width: 18px; height: 18px; display: block; }
.s-header-actions { display: flex; gap: .5rem; flex: none; }
.s-nav { border-top: 1px solid var(--line); }
.s-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; overflow-x: auto; scrollbar-width: none; }
.s-nav ul::-webkit-scrollbar { display: none; }
.s-nav a { display: block; padding: .8rem 0; font-weight: 500; font-size: .92rem; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; }
.s-nav a:hover, .s-nav a.is-on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Kapak ---- */
.s-hero { position: relative; margin-top: 1.25rem; border-radius: 14px; overflow: hidden; min-height: 380px; display: flex; align-items: center;
          background: linear-gradient(120deg, #F3F1EC 0%, #E9ECEA 100%); }
.s-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.s-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 65%, rgba(0,0,0,0) 100%); }
.s-hero-text { position: relative; z-index: 1; padding: 3rem clamp(1.5rem, 5vw, 4rem); max-width: 600px; }
.s-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .9rem; font-weight: 800; }
.s-hero p { font-size: 1.05rem; margin: 0 0 1.6rem; color: var(--muted); }
.s-hero.has-photo h1, .s-hero.has-photo p { color: #fff; }
.s-hero.has-photo p { opacity: .9; }
.s-hero-products { position: absolute; right: 4%; top: 0; bottom: 0; width: 50%; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.s-hero-products img { width: calc((100% - 2rem) / 3); aspect-ratio: 1; object-fit: cover; background: var(--white); border-radius: 14px;
                       box-shadow: 0 14px 34px rgba(16,24,40,.12); border: 4px solid var(--white); }
.s-hero-products img:nth-child(2) { transform: translateY(-22px); }
.s-hero-products img:only-child { width: 46%; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- Güven şeridi ---- */
.s-trust { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
           border: 1px solid var(--line); border-radius: 12px; }
.s-trust li { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; }
.s-trust li + li { border-left: 1px solid var(--line); }
.s-trust svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.s-trust b { display: block; font-size: .92rem; }
.s-trust span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* ---- Kategori kutuları ---- */
.s-section { padding: 2.5rem 0 0; }
.s-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.s-section-head h2 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.s-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.s-cat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow .2s, transform .2s; }
.s-cat:hover { box-shadow: 0 8px 22px rgba(16,24,40,.08); transform: translateY(-2px); }
.s-cat-img { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.s-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-cat:hover .s-cat-img img { transform: scale(1.05); }
.s-cat-name { padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.s-cat-name small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.s-cat-name i { font-style: normal; color: var(--accent); transition: transform .2s; }
.s-cat:hover .s-cat-name i { transform: translateX(3px); }

/* ---- Liste düzeni ---- */
.s-shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding: 2.5rem 0 3.5rem; align-items: start; }
.s-sidebar { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; padding-right: .3rem; }
.s-filter { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.s-filter:first-child { padding-top: 0; }
.s-filter h3 { font-size: .95rem; margin: 0 0 .7rem; }
.s-check { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; font-size: .92rem; }
.s-check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; flex: none; }
.s-check span:not(.s-dot) { flex: 1; }
.s-check small { color: var(--muted); font-size: .8rem; }
.s-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.s-price { display: flex; align-items: center; gap: .4rem; }
.s-price input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 .6rem; font-size: .9rem; }
.s-filter-apply { margin-top: .7rem; height: 38px; width: 100%; }
.s-filter-head { display: none; }

.s-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.s-toolbar p { margin: 0; color: var(--muted); }
.s-toolbar strong { color: var(--text); }
.s-toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 .8rem; background: var(--white); }
.s-filter-open { display: none; }
.s-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.s-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--soft);
          border: 1px solid var(--line); font-size: .85rem; }
.s-chip:hover { border-color: var(--text); }
.s-chip b { font-weight: 600; }
.s-chip-clear { font-size: .85rem; color: var(--accent); font-weight: 600; padding: .35rem .3rem; }

/* ---- Ürün kartları ---- */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.s-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
          transition: box-shadow .2s; }
.s-card:hover { box-shadow: 0 12px 28px rgba(16,24,40,.10); border-color: #D9DBDE; }
/* Katalog fotoğrafları 2:3; ürün ortadaki kare alanda. "cover" ile üst/alt beyaz boşluk kırpılır, ürün büyür. */
.s-card-img { aspect-ratio: 1; background: var(--soft); position: relative; overflow: hidden; }
.s-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .4s ease; }
.s-card-alt { opacity: 0; }
@media (hover: hover) {
    .s-card:hover .s-card-img img { transform: scale(1.03); }
    .s-card:hover .s-card-alt { opacity: 1; }
}
.s-card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.s-card-type { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.s-card-name { font-size: .92rem; font-weight: 500; line-height: 1.35; margin: 0; min-height: 2.5em;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-card-dim { font-size: .8rem; color: var(--muted); }
.s-card-price { margin-top: auto; padding-top: .3rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.s-card-price b { font-size: 1.15rem; font-weight: 700; }
.s-card-price s { color: var(--muted); font-size: .85rem; }
.s-ask { color: var(--accent); font-weight: 600; font-size: .9rem; }
/* Döviz karşılıkları (sadece admin'in döviz fiyatlarını açtığı bayilerde) */
.s-card-fx { display: flex; flex-wrap: wrap; gap: .3rem; font-variant-numeric: tabular-nums; }
.s-card-fx span { font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .4rem; }
.s-info-fx { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; font-variant-numeric: tabular-nums; }
.s-info-fx span { font-size: 1rem; font-weight: 700; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .7rem; }
.s-fx-note { flex-basis: 100%; margin-top: .4rem; }

.s-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; }
.s-empty h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.s-empty p { color: var(--muted); margin: 0 0 1.2rem; }

.s-pages { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-top: 2rem; }
.s-pages a, .s-pages span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); padding: 0 .7rem; font-size: .9rem; }
.s-pages a:hover { border-color: var(--text); }
.s-pages .is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Ürün sayfası ---- */
.s-crumb { padding: 1.1rem 0; font-size: .85rem; color: var(--muted); }
.s-crumb a:hover { color: var(--accent); }
.s-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; }
.s-gallery { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .8rem; min-width: 0; align-self: start; position: sticky; top: 150px; }
.s-thumbs { display: flex; flex-direction: column; gap: .5rem; max-height: 560px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.s-thumbs::-webkit-scrollbar { display: none; }
.s-thumbs button { width: 78px; height: 78px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 0; cursor: pointer; overflow: hidden; opacity: .75; transition: opacity .2s; }
.s-thumbs button:hover { opacity: 1; }
.s-thumbs button.is-on { border: 2px solid var(--accent); opacity: 1; }
.s-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.s-main-img { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: 14px; overflow: hidden; }
.s-main-img img { width: 100%; height: 100%; object-fit: cover; }
.s-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
             background: var(--white); cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.s-gal-prev { left: 12px; } .s-gal-next { right: 12px; }
.s-gal-count { position: absolute; bottom: 12px; right: 14px; font-size: .78rem; background: var(--white); border-radius: 999px; padding: .15rem .55rem; border: 1px solid var(--line); }

.s-info { min-width: 0; }
.s-info-type { color: var(--accent); font-weight: 600; font-size: .85rem; margin: 0 0 .4rem; }
.s-info h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .8rem; }
.s-info-code { font-size: .82rem; color: var(--muted); margin: 0 0 1.2rem; }
.s-info-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .7rem; padding: 1.1rem 1.2rem; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.s-info-price b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.s-info-price s { color: var(--muted); }
.s-highlights { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.s-highlights li { background: var(--soft); border-radius: 8px; padding: .65rem .8rem; font-size: .88rem; }
.s-highlights small { display: block; color: var(--muted); font-size: .75rem; }
.s-cta { display: grid; gap: .6rem; margin: 1.2rem 0 .8rem; }
.s-assure { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.s-assure li { display: flex; align-items: center; gap: .5rem; }
.s-assure svg { width: 16px; height: 16px; flex: none; color: var(--wa); }
.s-note { font-size: .82rem; color: var(--muted); margin: .2rem 0 0; }
.s-specs { margin-top: 1.5rem; }
.s-specs h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.s-specs table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.s-specs th, .s-specs td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.s-specs th { width: 42%; color: var(--muted); font-weight: 500; background: var(--soft); }
.s-related { padding-bottom: 3.5rem; }

.s-sticky { display: none; }

/* ---- Alt bilgi ---- */
.s-footer { background: #F4F5F6; border-top: 1px solid var(--line); padding: 2.8rem 0 1.5rem; margin-top: 1rem; }
.s-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.s-footer h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.s-footer h3 { font-size: .9rem; margin: 0 0 .7rem; }
.s-footer p { margin: 0 0 .45rem; color: var(--muted); font-size: .9rem; }
.s-footer a:hover { color: var(--accent); }
.s-footer-about { white-space: pre-line; }
.s-footer-copy { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; color: var(--muted); }

/* ---- Bulunamadı ---- */
.s-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.s-404 h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .6rem; }
.s-404 p { color: var(--muted); margin: 0 0 1.4rem; }

/* ---- Tablet ---- */
@media (max-width: 980px) {
    .s-shop { grid-template-columns: minmax(0, 1fr); }
    .s-filter-open { display: inline-flex; }
    .s-sidebar { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; top: 0; z-index: 60; background: var(--white);
                 padding: 0 1.2rem 1.2rem; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.15); }
    .s-sidebar.is-open { transform: none; }
    .s-filter-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white);
                     padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: .5rem; z-index: 1; }
    .s-filter-head strong { font-size: 1.05rem; }
    .s-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
    .s-product { grid-template-columns: minmax(0, 1fr); }
    .s-gallery { position: static; }
    .s-trust { grid-template-columns: 1fr 1fr; }
    .s-trust li:nth-child(odd) { border-left: 0; }
    .s-trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .s-hero-products { width: 45%; opacity: .55; }
    .s-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* ---- Telefon ---- */
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .s-topbar-links .s-hide-sm, .s-topbar-addr { display: none; }   /* adres alt bilgide var */
    .s-topbar .s-wrap { justify-content: flex-end; }
    .s-header-main { flex-wrap: wrap; gap: .7rem; min-height: 0; padding: .7rem 0; }
    .s-logo { max-width: 55%; }
    .s-logo-name { font-size: 1.15rem; }
    .s-header-actions { margin-left: auto; }
    .s-header-actions .s-btn span { display: none; }
    .s-header-actions .s-btn { width: 44px; padding: 0; }
    .s-search { order: 3; flex-basis: 100%; max-width: none; }
    .s-hero { min-height: 300px; }
    .s-hero-products { display: none; }
    .s-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .s-card-body { padding: .7rem .75rem .8rem; }
    .s-card-name { font-size: .85rem; }
    .s-card-price b { font-size: 1rem; }
    .s-gallery { grid-template-columns: minmax(0, 1fr); }
    .s-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .s-trust li { padding: .8rem; gap: .55rem; align-items: flex-start; }
    .s-trust svg { width: 22px; height: 22px; }
    .s-trust span { font-size: .75rem; }
    .s-info-price b { font-size: 1.7rem; }
    .s-thumbs button { width: 64px; height: 64px; }
    .s-highlights { grid-template-columns: 1fr 1fr; }
    .s-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line);
                padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); }
    body.has-sticky { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
