/* TamEticaret shared storefront base.
   Maps storefront variables onto the design tokens served at /design/tokens.css.
   Layouts keep the shop accent; this file never assigns it.
   Fallbacks are the previous values, used when the token file is absent. */
:root {
  --font: var(--te-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif);
  --font-head: var(--font);
  --ink: var(--te-color-ink, #1f2933);
  --muted: var(--te-color-muted, #5f6b7a);
  --line: var(--te-color-line, #e3e7ec);
  --bg: var(--te-color-bg, #fafbfc);
  --card: var(--te-color-surface, #fff);
  --head-bg: var(--te-color-surface, #fff);
  --head-ink: var(--ink);
  --nav-bg: var(--te-color-surface, #fff);
  --nav-ink: var(--ink);
  --foot-bg: var(--te-color-surface, #fff);
  --foot-ink: var(--muted);
  --warn: var(--te-color-danger, #b42318);
  --radius: var(--te-radius-md, 10px);
  --gap: var(--te-space-4, .9rem);
  --wrap: var(--te-wrap, 1180px);
  --store-size: 15px;
  --store-leading: 1.5;
  --store-strong: 600;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--store-size)/var(--store-leading) var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; font-weight: var(--store-strong); }
h1 { font-size: 1.5rem; margin: .4rem 0 .85rem; }
h2 { font-size: 1.15rem; margin: 1.35rem 0 .65rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.preview-bar { margin: 0; padding: .5rem 1rem; background: var(--te-color-ink, #111827); color: var(--te-color-accent-ink, #fff); font-size: .9rem; text-align: center; }
.preview-bar a { color: var(--te-color-lime, #bdee23); }
.impersonate-bar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; background: #111827; color: #fff; }
.impersonate-bar button { min-height: 2.2rem; padding: 0 .9rem; border: 0; border-radius: 999px; background: #bdee23; color: #111827; font-weight: 700; cursor: pointer; }
.demo-bar { margin: 0; padding: .65rem 1rem .75rem; background: var(--te-color-ink, #141a2e); color: var(--te-color-accent-ink, #fff); text-align: center; }
.demo-bar-title { margin: 0; font-weight: 800; letter-spacing: .04em; }
.demo-bar-text { margin: .15rem 0 .5rem; font-size: .9rem; }
.demo-themes { display: flex; flex-wrap: wrap; gap: .35rem .75rem; justify-content: center; }
.demo-themes a { color: var(--te-color-lime, #bdee23); text-decoration: none; }
.announce { margin: 0; padding: .45rem 1rem; background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .92rem; }
.card-compare { color: var(--muted); font-weight: 500; font-size: .85em; margin-right: .3rem; }
.slides { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 1.25rem; }
.slide { flex: 0 0 min(100%, 720px); scroll-snap-align: start; display: grid; grid-template-columns: 1.2fr 1fr; gap: .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slide img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; display: block; }
.slide div { padding: 1rem; }
.slide h2 { margin: 0 0 .35rem; }
.strips, .brands ul, .stories ul, .mosaic-block .mosaic { list-style: none; padding: 0; }
.strips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.strips li { background: var(--card); border: 1px dashed var(--accent); border-radius: var(--radius); padding: .45rem .7rem; }
.strips span { font-weight: 800; letter-spacing: .04em; }
.brands ul, .stories ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.brands a, .stories a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .6rem; text-decoration: none; color: var(--ink); }
.brands img { display: block; width: 140px; height: auto; }
.reviews { margin-top: 1.25rem; }
.review-score { font-weight: 700; margin-bottom: 0; }
.review-author { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .slide { grid-template-columns: 1fr; } }
.demo-themes a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.topbar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .9rem; padding: .4rem 1rem; }

.site-head { background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--te-z-nav, 5); }
.head-row { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .75rem 1rem; }
.brand { display: flex; align-items: center; font-weight: 650; font-size: 1.15rem; color: var(--head-ink); text-decoration: none; }
.brand img { height: 40px; width: auto; }
.search { flex: 1 1 18rem; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .6rem .8rem; border: 2px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--card); color: var(--ink); }
.search input:focus { border-color: var(--accent); }
.search button { border-radius: 0 var(--radius) var(--radius) 0; }
.head-links { display: flex; gap: 1rem; margin-left: auto; }
.head-links a { color: var(--head-ink); text-decoration: none; font-weight: 600; }
.cat-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; overflow: visible; padding: .55rem 1rem; max-width: var(--wrap); margin: 0 auto; }
.site-head > .cat-nav,
.site-head > .cat-menu { background: var(--nav-bg); }
.site-head > .cat-menu .cat-nav,
.head-row .cat-menu .cat-nav,
.site-head > .cat-nav { display: flex; flex-wrap: wrap; justify-content: center; max-width: var(--wrap); margin: 0 auto; padding: .55rem 1rem; overflow: visible; }
.cat-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cat-toggle-label { display: none; margin: 0; }
.head-row .cat-menu { display: contents; }
.cat-nav a { color: var(--nav-ink); text-decoration: none; white-space: nowrap; font-weight: 500; }
.menu-icon { display: inline-block; width: 18px; height: 18px; margin-right: .35rem; vertical-align: -3px; object-fit: contain; }
.cat-nav a:hover, .head-links a:hover { color: var(--accent); }

main { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.banner { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 1.75rem 1.5rem; margin: 0 0 1.5rem; }
.banner h2 { margin: 0 0 .4rem; font-size: 1.4rem; font-weight: var(--store-strong); }
.banner p { margin: 0 0 .9rem; }
.banner a { display: inline-block; background: var(--accent-ink); color: var(--accent); font-weight: 700; text-decoration: none; padding: .55rem 1.1rem; border-radius: var(--radius); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

main ul:not(.chips), .grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
main ul:not(.chips) > li, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; display: flex; flex-direction: column; gap: .3rem; }
main ul:not(.chips) > li > a:first-child, .card-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.card-price { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.card-vat { font-size: .8rem; color: var(--muted); }
.card-go { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); display: block; overflow-x: auto; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
form { margin: .5rem 0; }
label { display: block; margin: .5rem 0; color: var(--muted); font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; max-width: 100%; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea { display: block; width: 100%; max-width: 28rem; margin-top: .25rem; }
input[type=number] { width: 5.5rem; }
button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: var(--radius); padding: .55rem .95rem; background: var(--accent); color: var(--accent-ink); }
button:hover { filter: brightness(.94); }
button[value=essential] { background: transparent; color: var(--ink); border: 1px solid var(--line); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--te-color-focus, var(--accent)); outline-offset: 2px; }
/* T-333: the ring goes round the whole search box; on the field itself it was cut off by the rounded box. */
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--te-color-focus, var(--accent)); outline-offset: 2px; }
[role=alert], .sold-out { color: var(--warn); font-weight: 700; }

.site-foot { background: var(--foot-bg); color: var(--foot-ink); border-top: 1px solid var(--line); padding: 1.5rem 1rem; text-align: center; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; }
.foot-links a { color: var(--foot-ink); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; }
.foot-name { margin: .75rem 0 0; font-weight: 600; }
.foot-note { margin: .35rem 0 0; }
.powered { margin: .85rem 0 0; }
.powered a { display: inline-flex; align-items: center; text-decoration: none; }
.powered img { height: 2.9rem; width: auto; opacity: 1; }
.powered a:hover img { filter: brightness(1.12); }
.powered-dark { display: none; }
body[data-theme="temel"] .powered-light,
body[data-theme="moda"] .powered-light { display: none; }
body[data-theme="temel"] .powered-dark,
body[data-theme="moda"] .powered-dark { display: block; }
.te-breadcrumb { align-items: center; }
.te-breadcrumb span { color: var(--muted); }
.te-breadcrumb > * + *::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.theme-mark { margin: 0; padding: .35rem 1rem 0; text-align: right; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--te-shadow-md, 0 6px 24px rgba(15, 23, 42, .14)); z-index: 10; }
.cookie-bar p { margin: 0 0 .5rem; }
.cookie-bar form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
iframe[data-help-id="store.checkout.frame"] { width: 100%; min-height: 640px; border: 0; }

/* Dock shell for temel and moda: logo, search, account, cart, category bar, footer. */
body[data-theme="temel"] .site-head,
body[data-theme="moda"] .site-head { border-bottom: 0; box-shadow: var(--te-shadow-sm, 0 1px 2px rgba(17, 24, 39, .06)); }
body[data-theme="temel"] .brand,
body[data-theme="moda"] .brand { font-size: 1.35rem; letter-spacing: -.03em; }
body[data-theme="temel"] .search input,
body[data-theme="moda"] .search input,
body[data-theme="temel"] .search button,
body[data-theme="moda"] .search button { min-height: 2.75rem; }
body[data-theme="temel"] .head-links a,
body[data-theme="moda"] .head-links a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
body[data-theme="temel"] .head-links a.cart-link,
body[data-theme="moda"] .head-links a.cart-link { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
body[data-theme="temel"] .head-links a.cart-link:hover,
body[data-theme="moda"] .head-links a.cart-link:hover { color: var(--accent-ink); }
body[data-theme="temel"] .cat-menu,
body[data-theme="moda"] .cat-menu { background: var(--te-color-nav, #141a2e); color: var(--te-color-nav-ink, #dfe6f5); --nav-ink: var(--te-color-nav-ink, #dfe6f5); }
body[data-theme="temel"] .cat-nav a,
body[data-theme="moda"] .cat-nav a,
body[data-theme="temel"] .cat-toggle-label,
body[data-theme="moda"] .cat-toggle-label { color: var(--te-color-nav-ink, #dfe6f5); font-weight: 600; }
body[data-theme="temel"] .cat-nav a:hover,
body[data-theme="moda"] .cat-nav a:hover { color: var(--te-color-lime, #bdee23); }
body[data-theme="temel"] .site-foot,
body[data-theme="moda"] .site-foot { background: var(--te-color-nav, #141a2e); color: var(--te-color-nav-ink, #dfe6f5); border-top: 0; text-align: left; }
body[data-theme="temel"] .foot-links,
body[data-theme="moda"] .foot-links { justify-content: flex-start; }
body[data-theme="temel"] .foot-links a,
body[data-theme="moda"] .foot-links a,
body[data-theme="temel"] .foot-note,
body[data-theme="moda"] .foot-note { color: var(--te-color-nav-ink, #dfe6f5); }
body[data-theme="temel"] .foot-name,
body[data-theme="moda"] .foot-name { color: var(--te-color-surface, #fff); }

nav[data-help-id="store.list.pages"] { display: flex; flex-wrap: wrap; gap: var(--te-space-2, .4rem); align-items: center; margin: var(--te-space-4, 1rem) 0; }
nav[data-help-id="store.list.pages"] a, nav[data-help-id="store.list.pages"] span { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); color: var(--ink); }
nav[data-help-id="store.list.pages"] [aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
img[data-help-id="store.list.cover"] { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; background: var(--line); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.card-fallback { display: block; width: 100%; aspect-ratio: 1; background: var(--line); }
.listing { display: block; }
.filter-bar { margin: 0 0 1rem; }
.filter-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.filter-open { display: none; }
.filter-panel { display: block; }
.filter-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.filter-links a { color: var(--ink); text-decoration: none; }
.filter-links a[aria-current="true"] { font-weight: 700; color: var(--accent); }
.swatch { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; border: 1px solid var(--line); vertical-align: -0.1rem; }
.swatch-bej { background: #d8c3a5; } .swatch-beyaz { background: #f7f7f5; } .swatch-civit { background: #2c3e66; }
.swatch-gri { background: #8d8d8d; } .swatch-kahve { background: #6b4a32; } .swatch-kirmizi { background: #b43333; }
.swatch-kum { background: #c2a36b; } .swatch-lacivert { background: #1e2a4a; } .swatch-mavi { background: #2c6cb0; }
.swatch-mor { background: #6d4ea0; } .swatch-nane { background: #7dbea3; } .swatch-pembe { background: #e7a3b8; }
.swatch-sade { background: #e6d3c4; } .swatch-siyah { background: #1c1c1c; } .swatch-tas { background: #b7aea4; }
.swatch-vanilya { background: #f3e0b5; } .swatch-yesil { background: #3d7a45; } .swatch-zeytin { background: #6b7040; }
.result-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 .8rem; }
.result-count { margin: 0; font-weight: 700; }
.result-sort, .result-view { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.result-sort a, .result-view a { color: var(--ink); text-decoration: none; }
.result-sort a[aria-current="true"], .result-view a[aria-current="true"] { font-weight: 700; color: var(--accent); }
.filter-chips { margin: 0 0 .8rem; }
main ul.grid.list { grid-template-columns: 1fr; }
fieldset.te-field { border: 0; margin: .4rem 0; padding: 0; }
@media (min-width: 841px) {
  .listing { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .filter-panel { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; }
}
@media (max-width: 840px) {
  .filter-open { display: inline-flex; align-items: center; margin: 0 0 .6rem; padding: .55rem .9rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; }
  .filter-panel { display: none; }
  .filter-toggle:checked ~ .filter-panel { display: block; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.28rem; }
  .head-row { gap: .6rem; }
  .search { order: 3; flex-basis: 100%; }
  main { padding: 1rem .85rem 2.5rem; }
  main ul:not(.chips), .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cookie-bar button { flex: 1; }
  .head-row .cat-menu { display: block; flex-basis: 100%; order: 4; }
  .site-head > .cat-menu .cat-toggle-label,
  .head-row .cat-menu .cat-toggle-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; font-weight: 700; cursor: pointer; color: var(--nav-ink); }
  .cat-toggle-label::after { content: "+"; font-size: 1.25rem; line-height: 1; }
  .cat-toggle:checked + .cat-toggle-label::after { content: "\2212"; }
  .site-head > .cat-menu .cat-nav,
  .head-row .cat-menu .cat-nav { display: none; }
  .site-head > .cat-menu .cat-toggle:checked ~ .cat-nav,
  .head-row .cat-menu .cat-toggle:checked ~ .cat-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: visible; }
  .site-head > .cat-menu .cat-nav a,
  .head-row .cat-menu .cat-nav a { padding: .7rem 1rem; border-top: 1px solid var(--line); white-space: normal; }
}

@media (max-width: 600px) {
  body[data-theme="temel"] main ul:not(.chips),
  body[data-theme="moda"] main ul:not(.chips) { grid-template-columns: 1fr; }
  body[data-theme="temel"] main button,
  body[data-theme="moda"] main button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
.account-menu { position: relative; }
.account-menu-check, .account-nav-check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.account-menu-button, .account-nav-open { cursor: pointer; font-weight: 700; }
.account-menu-panel { display: none; position: absolute; right: 0; z-index: 20; min-width: 16rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.account-menu:hover .account-menu-panel, .account-menu:focus-within .account-menu-panel, .account-menu-check:checked ~ .account-menu-panel { display: grid; gap: .35rem; }
.account-menu-panel a, .account-menu-panel button { display: flex; gap: .4rem; align-items: center; color: var(--ink); background: transparent; border: 0; text-align: left; text-decoration: none; padding: .25rem 0; }
.account-menu-name, .account-nav-name { font-weight: 750; margin: 0; }
.account-nav-mail { color: var(--muted); margin: 0 0 .6rem; }
.ico { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.account-app { display: flex; gap: 1rem; align-items: flex-start; }
.account-nav { width: 16rem; flex: none; display: grid; gap: .25rem; }
.account-nav a { color: var(--ink); text-decoration: none; }
.account-nav a[aria-current="page"] { font-weight: 750; }
.account-main { flex: 1; min-width: 0; }
.account-nav-open { display: none; }
.foot-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.foot-columns a, .foot-social a { display: block; color: inherit; text-decoration: none; }
.foot-news { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.foot-pay { display: flex; gap: .5rem; align-items: center; }
.pay-mark { width: 3rem; height: 2rem; fill: none; stroke: currentColor; }
.foot-cookie { font-size: .85rem; }
@media (max-width: 800px) {
  .foot-columns { grid-template-columns: 1fr 1fr; }
  .account-app { flex-direction: column; }
  .account-nav-open { display: inline-block; }
  .account-nav { display: none; width: 100%; }
  .account-nav-check:checked ~ .account-nav { display: grid; }
  .account-menu-panel { position: absolute; top: calc(100% + .35rem); right: 0; bottom: auto; left: auto; width: min(16rem, calc(100vw - 1.5rem)); min-width: 0; max-height: min(24rem, 70dvh); overflow: auto; border-radius: var(--radius, 12px); box-shadow: 0 16px 40px rgb(15 23 42 / 16%); }
}


/* D-019 storefront foundation: clear hierarchy, tactile cards and compact mobile grids. */
.home-cats,
.home-products,
.rail,
.brands,
.stories { margin: clamp(1.75rem, 4vw, 3.5rem) 0; }
.home-cats > h2,
.rail > h2,
.brands > h2,
.stories > h2 { margin: 0 0 1rem; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.025em; }
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .75rem;
  margin: 0;
}
.home-category-grid > li {
  min-height: 5.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.home-category-grid > li > a {
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.home-category-grid > li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 32, 54, .07);
}
.category-arrow { color: var(--accent); font-size: 1.2rem; }
.home-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  align-items: stretch;
  gap: clamp(.7rem, 1.5vw, 1.2rem);
}
.home-product-grid > .card {
  min-width: 0;
  padding: .8rem;
  overflow: hidden;
  border-color: var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-product-grid > .card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 12px 28px rgba(20, 32, 54, .08);
}
.home-product-grid .card-media {
  width: 100%;
  border-radius: calc(var(--radius) * .75);
  background: color-mix(in srgb, var(--line) 55%, var(--card));
}
.home-product-grid .card-media img { transition: transform .35s ease; }
.home-product-grid .card:hover .card-media img { transform: scale(1.035); }
.home-product-grid .card-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  margin-top: .35rem;
  line-height: 1.4;
}
.home-product-grid .card-price { font-variant-numeric: tabular-nums; }
.home-product-grid .card-vat { font-size: .76rem; }
.home-product-grid .card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin-top: .55rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .7);
}
.home-product-grid .card-go:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.slides { padding: .15rem .1rem .65rem; scrollbar-width: thin; }
.slide { box-shadow: 0 8px 24px rgba(20, 32, 54, .045); }
.slide img { min-height: 12rem; }
.strips li { border-style: solid; }
.banner { box-shadow: 0 12px 32px rgba(20, 32, 54, .08); }
.brand img { object-fit: contain; }
@media (max-width: 640px) {
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .home-category-grid > li { min-height: 4.5rem; }
  .home-category-grid > li > a { padding: .75rem; font-size: .9rem; }
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .home-product-grid > .card { padding: .55rem; }
  .home-product-grid .card-name { font-size: .92rem; min-height: 2.7em; }
  .home-product-grid .card-price { font-size: 1rem; }
  .home-product-grid .card-go { width: 100%; font-size: .82rem; }
  .home-cats,
  .home-products,
  .rail,
  .brands,
  .stories { margin: 1.8rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-category-grid > li,
  .home-product-grid > .card,
  .home-product-grid .card-media img { transition: none; }
  .home-category-grid > li:hover,
  .home-product-grid > .card:hover { transform: none; }
}

.home-stack { --stack-gap: 1.25rem; }
.home-stack[data-density="compact"] { --stack-gap: .4rem; }
.home-stack[data-density="roomy"] { --stack-gap: 2.4rem; }
.home-stack > .stack-section { margin: 0 0 var(--stack-gap); }
.stack-richtext, .stack-footer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.35rem; }
.stack-footer { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.stack-footer h2, .stack-richtext h2 { margin-top: 0; }
.stack-footer p, .stack-richtext p { margin: .35rem 0 0; }
.stack-footer-copy { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.stack-footer[data-align="center"] .stack-footer-copy { flex-direction: column; text-align: center; justify-content: center; }
/* Closing band with a picture (T-257): behind the text with a shade, or beside it. */
.stack-footer[data-image] { overflow: hidden; padding: 0; }
.stack-footer[data-image] .stack-footer-img { display: block; object-fit: cover; }
.stack-footer[data-image="cover"] { position: relative; min-height: 15rem; display: grid; }
.stack-footer[data-image="cover"] .stack-footer-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-footer[data-image="cover"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .62), rgb(0 0 0 / .25)); }
.stack-footer[data-image="cover"] .stack-footer-copy { position: relative; z-index: 1; color: #fff; padding: 2rem 1.6rem; }
.stack-footer[data-image="cover"] .stack-footer-copy h2, .stack-footer[data-image="cover"] .stack-footer-copy p { color: #fff; }
.stack-footer[data-image="side"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.stack-footer[data-image="side"] .stack-footer-img { width: 100%; height: 100%; min-height: 14rem; }
.stack-footer[data-image="side"] .stack-footer-copy { padding: 1.6rem 1.8rem; flex-direction: column; align-items: flex-start; justify-content: center; }
@media (max-width: 720px) { .stack-footer[data-image="side"] { grid-template-columns: 1fr; } .stack-footer[data-image="side"] .stack-footer-img { min-height: 11rem; } }
.stack-alt, .stack-go { display: inline-block; margin-top: .8rem; padding: .55rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.stack-alt { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.stack-go { background: var(--accent); color: var(--accent-ink); }

/* D-022: category and search result hierarchy. */
.page-head {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(125deg, var(--card), color-mix(in srgb, var(--accent) 5%, var(--card)));
}
.page-head h1 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -.03em; }
.listing { gap: clamp(1rem, 2vw, 1.5rem); }
.filter-panel .te-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(20, 32, 54, .045);
}
.filter-panel .te-field + .te-field { padding-top: .65rem; border-top: 1px solid var(--line); }
.filter-panel legend { margin-bottom: .45rem; color: var(--ink); font-weight: 750; }
.filter-panel .te-input { width: 100%; }
.filter-panel .te-btn { min-height: 2.7rem; }
.result-bar {
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.result-sort a, .result-view a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.result-sort a[aria-current="true"], .result-view a[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.category-product-grid, .search-product-grid { align-items: stretch; }
.category-product-grid > .empty, .search-product-grid > .empty {
  display: flex;
  grid-column: 1 / -1;
  min-height: 8rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
}
.search-product-grid { margin-top: .5rem; }
@media (max-width: 840px) {
  .filter-panel .te-card { max-height: min(65vh, 36rem); overflow: auto; }
  .mobile-filters .filter-panel .te-card,
  .filter-drawer .filter-panel .te-card { max-height: none; overflow: visible; }
  .filter-open { min-height: 2.7rem; border-radius: 999px; }
  .result-bar { align-items: flex-start; }
  .result-sort, .result-view { width: 100%; }
}
@media (max-width: 640px) {
  .page-head { padding: .9rem 1rem; }
  .result-bar { gap: .55rem; }
  .category-product-grid, .search-product-grid { gap: .6rem; }
}

/* Social proof on the product page (T-307). */
.gallery { position: relative; }
.proof-sticker { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .45rem .7rem; border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 12px rgb(0 0 0 / 18%); }
.proof-liked { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 .35rem; padding: .2rem .6rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .8rem; font-weight: 700; }
.proof-views { margin: .35rem 0; color: var(--muted, #475569); font-size: .9rem; }
.proof-views strong { color: #ea580c; }
/* Coupon the shop shows on the cart and product pages (T-300). */
.coupon-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .6rem 0; padding: .6rem .8rem; border: 1px dashed var(--accent, #15803d); border-radius: .6rem; background: color-mix(in srgb, var(--accent, #15803d) 8%, #fff); color: var(--ink, #1f2933); font-size: .9rem; }
.coupon-offer p { margin: 0; }
.coupon-offer form { margin: 0; }
/* Product offer on the product page (T-301). */
.promo-badge { display: inline-block; margin: .4rem 0; padding: .3rem .7rem; border-radius: 999px; background: var(--accent, #15803d); color: var(--accent-ink, #fff); font-size: .85rem; font-weight: 700; }

/* "Birlikte Al" bundle card on the product page (T-306). */
.bundle-offer { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius, 12px); background: var(--card, #fff); }
.bundle-offer header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.bundle-offer h2 { margin: 0; font-size: 1.05rem; }
.bundle-saving { padding: .2rem .6rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .8rem; font-weight: 700; }
.bundle-body { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.bundle-items { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bundle-items li { display: flex; align-items: center; gap: .5rem; }
.bundle-items a { display: grid; justify-items: center; gap: .25rem; width: 7rem; color: inherit; font-size: .78rem; text-align: center; text-decoration: none; }
.bundle-items img { width: 6rem; height: 6rem; object-fit: cover; border-radius: .5rem; border: 1px solid var(--line, #e2e8f0); }
.bundle-plus { font-size: 1.4rem; font-weight: 700; color: var(--muted, #64748b); }
.bundle-buy { display: grid; gap: .5rem; margin-left: auto; }
.bundle-buy p { margin: 0; }
.bundle-buy s { color: var(--muted, #64748b); }
.bundle-buy strong { color: var(--accent, #ea580c); font-size: 1.15rem; }
.bundle-buy form { margin: 0; }
/* Product campaigns box (T-305). */
.product-campaigns { margin: .8rem 0; padding: .7rem .9rem; border: 1px solid var(--line, #e5e7eb); border-radius: .7rem; background: var(--surface, #fff); color: var(--ink, #1f2933); }
.product-campaigns-title { margin: 0 0 .45rem; font-weight: 700; font-size: .95rem; }
.product-campaigns ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.product-campaigns .campaign-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.product-campaigns .campaign-item .coupon-offer, .product-campaigns .campaign-item .promo-badge { margin: 0; }
.product-campaigns .campaign-ship::before { content: "🚚"; }
