/* Vitrin — kategori fotoğraf kartları ve iki sütunlu ürün vitrini */
.theme-vitrin { --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f5; --text: #18181b; --muted: #6b6b74; --faint: #a1a1aa; --line: rgba(24, 24, 27, .08); --radius: 22px; --price: var(--text); }
.theme-vitrin [data-section] { scroll-margin-top: 64px; }
body.theme-vitrin { letter-spacing: -.005em; }

/* Üst bölüm */
.top { padding: calc(12px + var(--safe-t)) 16px 6px; }
.top-tools { display: flex; justify-content: flex-end; }
.top-tools .tool { background: var(--surface-2); color: var(--text); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cover-tools { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; }
.brand { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.logo { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo span { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.top h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.meta .status-pill, .meta .table-pill { height: auto; padding: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.meta .table-pill { color: var(--primary-ink); }
.meta .table-pill::before { content: '·'; color: var(--faint); margin-inline-end: 2px; }
.cover { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 32%); }
.tagline { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.search-fake { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; margin-top: 14px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 15px; font-weight: 500; }
.search-fake .icon { color: var(--text); }

/* İşlemler: simgeli hap düğmeler */
.acts { padding: 10px 16px 2px; }
.act { height: 40px; padding: 0 14px 0 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 650; }
.act-ic { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.act-ic .icon { width: 16px; height: 16px; }
.banner { margin: 12px 16px 0; }

.head { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; padding: 0 2px 12px; }
.head .icon { color: var(--primary); width: 20px; height: 20px; }

/* Kategori fotoğraf kartları */
.tiles-wrap { padding: 24px 16px 6px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 1 / .82; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 85%, #fff), var(--primary)); color: #fff; transition: transform .25s var(--ease); }
.tile:active { transform: scale(.97); }
.tile.wide { grid-column: 1 / -1; aspect-ratio: 2.2 / 1; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.66)); }
.tile.no-img::after { background: radial-gradient(90% 90% at 100% 0%, rgba(255,255,255,.28), transparent 60%); }
.tile-in { position: relative; z-index: 1; padding: 12px 14px; display: flex; flex-direction: column; }
.tile b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tile small { font-size: 12px; opacity: .85; font-weight: 600; }

/* Yapışkan sekmeler */
.tabs { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; margin-top: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.tabs-row { flex: 1; display: flex; gap: 22px; overflow-x: auto; padding: 0 16px; }
.tabs-row a { flex-shrink: 0; position: relative; padding: 16px 0 14px; font-size: 14.5px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tabs-row a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs-row a.active { color: var(--text); }
.tabs-row a.active::after { transform: none; }
.tabs-search { width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0; box-shadow: -10px 0 14px -8px var(--bg); background: var(--bg); }

.main { max-width: 980px; margin: 0 auto; padding: 0 16px 30px; }

/* Popüler */
.pop { padding-top: 26px; }
.pop-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
.pcard { flex: 0 0 min(74vw, 300px); scroll-snap-align: start; }
.pcard .media { aspect-ratio: 16 / 10; border-radius: 20px; }
.pcard-in { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 2px 0; padding-inline-end: 44px; }
.pcard h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { font-weight: 700; color: var(--primary-ink); }
.pcard > .add { position: absolute; inset-inline-end: 0; bottom: -2px; }

/* Ürün vitrini */
.sec { padding-top: 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px 4px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sec-head span { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sec-desc { color: var(--muted); font-size: 14px; padding: 0 2px; }
.sec .sec-closed { margin: 6px 0 0; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 12px; }
.card .media { aspect-ratio: 1 / 1; border-radius: 20px; }
.card .media > img { transition: transform .5s var(--ease); }
.card:active .media > img { transform: scale(1.04); }
.card .ph b { font-size: 46px; }
.card .add { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 36px; height: 36px; box-shadow: 0 0 0 3px var(--surface), 0 8px 18px -6px rgba(0,0,0,.35); }
.flag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; font-size: 11px; font-weight: 750; padding: 4px 9px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.flag.dark { background: #18181b; color: #fff; }
.card-in { padding: 9px 2px 0; }
.card .price { display: block; font-weight: 800; font-size: 15.5px; color: var(--price); letter-spacing: -.01em; }
.card h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; margin-top: 1px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile.wide { grid-column: auto; aspect-ratio: 1 / .82; } }
@media (min-width: 900px) { .items { grid-template-columns: repeat(4, minmax(0, 1fr)); } .top, .tiles-wrap, .acts { max-width: 980px; margin-inline: auto; } }

.cart-bar { background: var(--text); }
.cart-count { border-radius: 50%; }
body.dm-on .cart-bar { background: var(--primary); }
body.dm-on .flag { background: #222226; color: #f4f1ea; }
@media (prefers-color-scheme: dark) { body.dm-auto .flag { background: #222226; color: #f4f1ea; } }
