/* Tasarım dili emporio.com.tr ile aynı: sıcak siyah zemin, krem Cormorant Garamond başlıklar,
   ince Quicksand metin, altın vurgu, köşesiz ince çizgili kutular. */
:root {
  --bg: #100d0b;
  --bg-2: #14100e;
  --line: rgba(242, 235, 224, .1);
  --line-2: rgba(242, 235, 224, .07);
  --cream: #f2ebe0;
  --beige: #d6ccbe;
  --muted: #a99e90;
  --gold: #c6a664;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--beige); font: 300 14px/1.55 var(--sans); letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.eyebrow { margin: 0; font: 300 10.5px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--beige); }

/* ---------- Kapak ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: min(40vh, 340px); padding: 52px 24px 30px; text-align: center; background: var(--bg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(16,13,11,.35), rgba(16,13,11,.2) 40%, var(--bg)); }
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; }
.hero-logo { width: min(50vw, 210px); height: auto; display: block; }
.hero-rule { width: 32px; height: 1px; background: var(--gold); }
.lang { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; }
.lang button { border: 0; background: none; padding: 4px 0; color: var(--muted); font-weight: 400; }
.lang button.on { color: var(--cream); border-bottom: 1px solid var(--gold); }
.lang span { color: rgba(242,235,224,.25); }

/* ---------- Gezinme ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(16, 13, 11, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.sections { display: flex; justify-content: safe center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; border-bottom: 1px solid var(--line-2); }
.sections::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.sections button { flex: none; border: 0; background: none; padding: 11px 10px 9px; font-size: 10.5px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.sections button.on { color: var(--cream); border-bottom-color: var(--gold); }
.chips-row { display: flex; align-items: center; }
.chips { flex: 1; display: flex; gap: 18px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; scroll-padding: 0 20px; }
.chips button { flex: none; border: 0; background: none; padding: 2px 0; font-family: var(--serif); font-size: 15.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted); white-space: nowrap; }
.chips button.on { color: var(--gold); }
.search-btn { flex: none; border: 0; border-left: 1px solid var(--line-2); background: none; color: var(--beige); padding: 7px 14px; display: grid; place-items: center; }
.search { display: flex; gap: 10px; padding: 10px 20px 14px; }
.search[hidden] { display: none; }
.search input { flex: 1; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--cream); padding: 8px 0; font: 300 16px var(--sans); letter-spacing: .02em; outline: none; }
.search input:focus { border-bottom-color: var(--gold); }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 0 4px; }

main { min-height: 50vh; }
.loading, .empty { text-align: center; color: var(--muted); padding: 70px 20px; }

/* ---------- Kategori ---------- */
.cat { padding: 34px 16px 26px; border-bottom: 1px solid var(--line-2); scroll-margin-top: 92px; }
.cat-inner { max-width: 640px; margin: 0 auto; }
.cat-head { margin-bottom: 14px; }
.cat h2 { margin: 6px 0 0; font: 400 27px/1.15 var(--serif); color: var(--cream); letter-spacing: 0; }
.note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.cat-photo { margin: 0 0 6px; border: 1px solid var(--line); aspect-ratio: 5 / 2; overflow: hidden; background: var(--bg-2); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Ürün ---------- */
.item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.cat-items .item:first-child { border-top: 0; }
.item.has-img { cursor: pointer; }
.item-main { flex: 1; min-width: 0; }
.item-head { display: flex; align-items: baseline; gap: 12px; }
.item-name { flex: 1; margin: 0; font: 500 17.5px/1.2 var(--serif); color: var(--cream); letter-spacing: 0; }
.price { font: 400 13px/1.4 var(--sans); color: var(--gold); white-space: nowrap; letter-spacing: .04em; }
.desc { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.variants { margin: 4px 0 0; padding: 0; list-style: none; }
.variants li { display: flex; align-items: baseline; gap: 10px; padding: 1px 0; font-size: 13px; }
.variants .vn { color: var(--beige); }
.variants .dots { flex: 1; border-bottom: 1px dotted rgba(242,235,224,.18); transform: translateY(-4px); }
.tags { margin: 5px 0 0; font: 500 9.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(198, 166, 100, .8); }
.tags span + span::before { content: '·'; margin: 0 .7em; color: var(--muted); }
.thumb { width: 60px; height: 60px; flex: none; object-fit: cover; border: 1px solid var(--line); background: var(--bg-2); }
.sold .item-name, .sold .price, .sold .variants, .sold .desc { opacity: .4; }
.sold-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid rgba(198,166,100,.5); font: 500 9.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ---------- Alt bilgi ---------- */
footer { padding: 40px 16px calc(36px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 12.5px; display: grid; justify-items: center; gap: 10px; }
footer .foot-logo { width: 120px; opacity: .9; }
footer a { color: var(--gold); text-decoration: none; letter-spacing: .12em; }

/* ---------- Ürün görseli penceresi ---------- */
dialog#modal { border: 1px solid var(--line); padding: 0; border-radius: 0; width: min(92vw, 520px); max-height: 88vh; background: var(--bg-2); color: var(--beige); }
dialog#modal::backdrop { background: rgba(8, 6, 5, .8); }
#modalBody img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
#modalBody .mb { padding: 4px 22px 10px; }
#modalBody .item { border-top: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 0; background: rgba(16,13,11,.8); color: var(--cream); font-size: 15px; }

@media (max-width: 400px) {
  .sections { gap: 0; padding: 0 6px; }
  .sections button { padding: 11px 7px 9px; font-size: 10px; letter-spacing: .18em; }
}

@media (min-width: 760px) {
  .cat { padding: 48px 32px 36px; }
  .cat-photo { aspect-ratio: 3 / 1; }
  .chips { justify-content: safe center; }
}
