/* Westin Gourmet — stil public. Fără framework: 1 fișier, zero dependențe. */
:root {
  --ink: #1b1a17;
  --ink-soft: #5b564e;
  --paper: #fbf9f5;
  --card: #ffffff;
  --line: #e4ded2;
  --brand: #7a2e2e;
  --brand-dark: #5d2020;
  --accent: #b08445;
  --ok: #2f6b43;
  --warn: #8a5a12;
  --radius: 10px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(27,26,23,.06), 0 6px 20px rgba(27,26,23,.05);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem;
}
.skip:focus { left: 8px; top: 8px; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- header ---------- */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.head-inner {
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between; padding-block: .9rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  background: var(--brand); color: #fff; font-family: var(--serif);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }

.search { display: flex; gap: .4rem; flex: 1 1 260px; max-width: 460px; }
.search input {
  flex: 1 1 auto; min-width: 0; padding: .55rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--paper);
}
.search button {
  padding: .55rem 1rem; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; font: inherit; cursor: pointer;
}
.search button:hover { background: var(--brand-dark); }
.search-big { max-width: 560px; margin-block: 1rem 2rem; }

.mainnav { background: var(--ink); }
.mainnav ul {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: thin;
}
.mainnav a {
  display: block; padding: .7rem .9rem; color: #f3ece0;
  text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.mainnav a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-block: .7rem; }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0;
  font-size: .87rem; color: var(--ink-soft);
}
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #2a201c, #4a2a24 60%, var(--brand));
  color: #f7efe2; border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 4vw, 3.5rem); margin-block: 1.25rem 2rem;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--accent); margin: 0 0 .6rem;
}
.lede { font-size: 1.06rem; max-width: 56ch; color: #ece0cf; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

.btn {
  display: inline-block; padding: .62rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #241a0d; font-weight: 600; }
.btn-primary:hover { background: #c4954f; color: #241a0d; }
.btn-primary[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: inherit; }

/* ---------- secțiuni ---------- */
.section { margin-block: 2.5rem; }
.section-h {
  border-bottom: 1px solid var(--line); padding-bottom: .45rem; margin-bottom: 1.2rem;
}
.page-head { margin-block: 1rem 1.5rem; }
.count { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.empty {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--ink-soft);
}

.dept-grid, .trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.dept-grid a {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.dept-grid a:hover { border-color: var(--accent); }
.dept-name { font-family: var(--serif); font-size: 1.05rem; }
.dept-count { font-size: .8rem; color: var(--ink-soft); }

.trust-grid li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem;
}
.trust-grid h3 { margin-bottom: .25em; }
.trust-grid p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- grilă produse ---------- */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent); }
.card-media { position: relative; display: block; background: #f4efe6; }
.card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.badge {
  position: absolute; top: .5rem; left: .5rem; font-size: .7rem;
  padding: .2rem .5rem; border-radius: 999px; color: #fff; letter-spacing: .02em;
}
.badge-out { background: #6b6b6b; }
.badge-sale { background: var(--brand); }
.card-body { padding: .8rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-size: .98rem; margin: 0; line-height: 1.3; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: underline; }
.card-desc { font-size: .83rem; color: var(--ink-soft); margin: 0; }
.card-price { margin: auto 0 0; font-size: 1.02rem; }
.card-price del { color: var(--ink-soft); font-size: .85rem; margin-right: .35rem; }

/* ---------- pagină produs ---------- */
.product {
  display: grid; gap: clamp(1.2rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: 1fr; margin-block: 1rem 2rem;
}
@media (min-width: 820px) { .product { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); } }
/* galerie: diapozitive mari derulabile (scroll-snap), săgeţi, miniaturi, ecran complet */
.gallery { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.gallery-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-nav, .gallery-zoom {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer;
}
.gallery-nav { top: 50%; transform: translateY(-50%); font-size: 1.9rem; line-height: 1; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-zoom { top: 10px; right: 10px; }
.gallery-zoom svg { width: 20px; height: 20px; }
.gallery-nav[hidden], .gallery-zoom[hidden] { display: none; }
.gallery-nav:hover, .gallery-zoom:hover { background: #fff; }
.gallery-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); margin: 0;
  padding: .1rem .65rem; border-radius: 999px; background: rgba(27,26,23,.66); color: #fff;
  font-size: .8rem; pointer-events: none;
}
.thumbs {
  display: flex; gap: .5rem; list-style: none; margin: .6rem 0 0; padding: 0 0 .35rem;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin;
}
.thumbs > li { flex: none; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: none; cursor: pointer;
}
.thumb img { width: 76px; height: 76px; object-fit: cover; display: block; border-radius: 6px; border: 1px solid var(--line); }
.thumb[aria-current="true"] { border-color: var(--brand); }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15,14,12,.95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15,14,12,.95); }
.lb-img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .9rem; }
html.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gallery-track, .thumbs { scroll-behavior: auto; } }
.sku { font-size: .82rem; color: var(--ink-soft); margin-top: -.3rem; }
.price-row { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.price { font-size: 1.7rem; font-family: var(--serif); }
.price-row del { color: var(--ink-soft); }
.stock { font-size: .82rem; padding: .18rem .55rem; border-radius: 999px; }
.stock.in { background: #e6f1e9; color: var(--ok); }
.stock.out { background: #f1ece6; color: var(--ink-soft); }
.buy { display: flex; gap: .6rem; align-items: center; margin-block: 1.2rem .5rem; }
.buy input {
  width: 78px; padding: .55rem; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit;
}
.note { font-size: .8rem; color: var(--ink-soft); }

.rte { max-width: 72ch; }
.rte img { border-radius: 6px; margin-block: .8rem; }
.rte table { width: 100%; border-collapse: collapse; margin-block: 1rem; }
.rte td, .rte th { border: 1px solid var(--line); padding: .5rem; text-align: left; }
.rte ul, .rte ol { padding-left: 1.3rem; }
.cat-intro { margin-block: 1rem; }

/* ---------- toolbar, subcategorii, paginare ---------- */
.toolbar {
  display: flex; gap: .6rem; align-items: center;
  margin-block: 1rem; font-size: .9rem;
}
.toolbar select {
  padding: .45rem .6rem; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: var(--card);
}
.subcats ul {
  display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.subcats a {
  display: block; padding: .35rem .8rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .87rem; color: var(--ink);
}
.subcats a:hover { border-color: var(--accent); }

.pager {
  display: flex; gap: .35rem; flex-wrap: wrap; align-items: center;
  justify-content: center; margin-block: 2rem;
}
.pager a, .pager-cur {
  min-width: 38px; padding: .4rem .6rem; text-align: center;
  border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; background: var(--card); font-size: .9rem;
}
.pager-cur { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager-gap { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: 3rem; }
.err-code { font-family: var(--serif); font-size: 4rem; color: var(--line); margin: 0; }
.err form { justify-content: center; margin-inline: auto; }

.cms { margin-block: 1rem 3rem; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink); color: #d9d2c6; margin-top: 3rem; padding-block: 2.2rem 1rem;
  font-size: .9rem;
}
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.site-foot a { color: #ece3d4; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .3rem; }
.foot-brand { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 0 0 .5rem; }
.foot-h {
  text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  color: var(--accent); margin: 0 0 .6rem;
}
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem;
  padding-top: .9rem; font-size: .8rem; color: #a9a29a;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- opțiuni și bundle ---------- */
.opts { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--card); }
.opts th, .opts td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.opts thead th {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); border-bottom: 2px solid var(--line);
}
.opts .r, .opts td.r { text-align: right; }
.opts code { font-size: .84em; color: var(--ink-soft); }

.bundle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bundle-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .6rem .8rem; display: flex; gap: .45rem; align-items: baseline; font-size: .92rem;
}
.bq { color: var(--brand); font-weight: 700; }
.bopt { color: var(--ink-soft); font-size: .82rem; font-style: normal; margin-left: auto; }

/* ---------- FAQ (AEO: conţinut vizibil, nu doar JSON-LD) ---------- */
.faq { max-width: 74ch; display: grid; gap: .5rem; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  padding: .8rem 1rem; cursor: pointer; font-weight: 600; font-size: .96rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-weight: 700; flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: #faf7f2; }
.faq-a { padding: 0 1rem 1rem; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- coş în antet ---------- */
.basket-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--ink); text-decoration: none; flex: none;
}
.basket-link svg { width: 24px; height: 24px; }
.basket-link:hover { color: var(--brand); }
.basket-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: .7rem; line-height: 18px; text-align: center; padding: 0 4px;
}

/* ---------- coş ---------- */
.basket { display: grid; gap: .6rem; margin-block: 1rem; }
.bline {
  display: grid; gap: .8rem; align-items: center;
  grid-template-columns: 88px 1fr 84px 88px 32px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem;
}
.bline-img img { border-radius: 6px; object-fit: cover; width: 88px; height: 88px; }
.bline-info h2 { font-size: 1rem; margin: 0 0 .2rem; }
.bline-info h2 a { color: var(--ink); text-decoration: none; }
.bline-info h2 a:hover { color: var(--brand); text-decoration: underline; }
.bline-sku, .bline-unit { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.bline-unit del { margin-right: .3rem; }
.bline-qty input {
  width: 100%; padding: .45rem; text-align: center; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.bline-total { margin: 0; text-align: right; font-weight: 600; }
.bline-rm {
  background: none; border: 0; font-size: 1.4rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: .2rem .4rem; border-radius: 4px;
}
.bline-rm:hover { color: #a32222; background: #fbe9e9; }
.basket-foot { margin-block: 1rem; }

.totals {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; max-width: 420px;
  margin-left: auto; box-shadow: var(--shadow);
}
.totals dl {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0 0 1rem;
}
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand {
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: .5rem;
}
.free { color: var(--ok); }
.hint-ship { font-size: .84rem; color: var(--accent); margin: 0 0 .8rem; }
.btn-wide { display: block; width: 100%; text-align: center; }

/* ---------- checkout ---------- */
.test-banner {
  background: #fff8e6; border: 1px solid #e8d49a; border-radius: var(--radius);
  padding: .7rem 1rem; font-size: .88rem; margin: .6rem 0 0;
}
.test-banner code { background: #fff; padding: .1rem .35rem; border-radius: 3px; }
.checkout {
  display: grid; gap: 1.6rem; margin-block: 1rem 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .co-summary { position: sticky; top: 1rem; }
}
.co-form { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; }
.co-form h2 { font-size: 1.1rem; margin-top: 1.4rem; }
.co-form h2:first-of-type { margin-top: 0; }
.co-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.co-grid .f { margin: 0; }
.co-grid .f-wide { grid-column: 1 / -1; }
.co-grid label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .25rem; }
.co-grid input {
  width: 100%; padding: .6rem .7rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.co-grid input:focus { background: #fff; }
.fh { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: .25rem; }
.card-el {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; background: var(--paper); margin-block: .6rem 1rem;
}
#pay-btn { margin-top: .4rem; font-size: 1.05rem; padding: .8rem; }
#pay-btn:disabled { opacity: .6; cursor: wait; }

.co-summary { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; }
.co-summary h2 { font-size: 1.05rem; }
.co-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.co-lines li {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem;
  font-size: .89rem; align-items: baseline;
}
.col-q { color: var(--brand); font-weight: 600; }
.col-p { font-variant-numeric: tabular-nums; }
.co-totals {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem;
  margin: 0; border-top: 1px solid var(--line); padding-top: .8rem;
}
.co-totals dt { color: var(--ink-soft); font-size: .9rem; }
.co-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.co-totals .grand { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.co-back { margin: 1rem 0 0; font-size: .88rem; }

/* ---------- confirmare ---------- */
.conf { text-align: center; padding-block: 2.5rem 1.5rem; }
.conf-tick {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%;
  background: #e4f3e9; color: var(--ok); font-size: 2.2rem; line-height: 66px;
}
.conf-pending .conf-tick { background: #fbf0dd; color: var(--warn); }
.conf-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.conf-table th, .conf-table td {
  padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left;
}
.conf-table .r, .conf-table td.r { text-align: right; }
.conf-table tfoot td, .conf-table tfoot th { border-bottom: 0; padding-block: .3rem; }
.conf-table tfoot tr.total th, .conf-table tfoot tr.total td {
  border-top: 2px solid var(--line); font-size: 1.02rem;
}
.addr-block { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; display: inline-block; }
.muted { color: var(--ink-soft); }

/* ---------- mobil ---------- */
@media (max-width: 640px) {
  .bline {
    grid-template-columns: 64px 1fr 32px;
    grid-template-areas: "img info rm" "img qty total";
    row-gap: .5rem;
  }
  .bline-img { grid-area: img; }
  .bline-img img { width: 64px; height: 64px; }
  .bline-info { grid-area: info; }
  .bline-qty { grid-area: qty; max-width: 90px; }
  .bline-total { grid-area: total; text-align: left; align-self: center; }
  .bline-rm { grid-area: rm; align-self: start; }
  .totals { max-width: none; }
}

/* ---------- ţinte de atingere: minim 44x44 pe ecrane cu touch ----------
   WCAG 2.5.5 şi Apple HIG cer 44px. Aplicăm doar pe pointer:coarse, ca pe
   desktop să nu umflăm inutil interfaţa. */
@media (pointer: coarse), (max-width: 820px) {
  .bline-rm {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .site-foot a, .foot-legal a, .crumbs a {
    display: inline-block; min-height: 44px; line-height: 44px;
  }
  .site-foot li { margin-bottom: 0; }
  .recaptcha-notice a { line-height: 1.5; min-height: 0; }
  .basket-link { width: 48px; height: 48px; }
  .bline-qty input { min-height: 44px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding-block: 1.5rem 3rem; }
.legal h2 { margin-top: 2rem; }
.legal-meta { color: var(--ink-soft); font-size: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.legal-table th { background: #f3eee4; }
.legal-table code { font-size: .85em; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .6rem; } }

/* ---------- cookie consent ---------- */
.consent[hidden], .consent-modal[hidden] { display: none; }
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 9500;
  width: min(460px, calc(100% - 32px)); background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem; font-size: .92rem;
}
.consent p { margin: 0 0 .7rem; }
.consent-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.consent-actions .btn { min-height: 44px; flex: 1 1 130px; color: var(--brand); }
.consent .btn-link, .consent-modal .btn-link, .btn-link.consent-open {
  background: none; border: 0; padding: .5rem .2rem; min-height: 44px; font: inherit;
  color: var(--brand); text-decoration: underline; cursor: pointer;
}
.consent-modal {
  position: fixed; inset: 0; z-index: 9600; display: grid; place-items: center;
  background: rgba(27,26,23,.55); padding: 16px;
}
.consent-panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  width: min(480px, 100%); max-height: 100%; overflow: auto; padding: 1.2rem;
}
.consent-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; min-height: 44px;
}
.consent-row input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
.site-foot .btn-link.consent-open { color: #ece3d4; padding: 0; text-align: left; }
.legal .btn { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 560px) {
  .consent { padding: .8rem .9rem; font-size: .88rem; }
  .consent p { margin-bottom: .5rem; }
}
