/* SuperCovoare — stil site public */
:root {
  /* Paletă „bordeaux heritage” */
  --bg: #f5efe6;          /* ivoire */
  --paper: #fffcf7;       /* hârtie */
  --ink: #2a1418;         /* text: brun-bordeaux foarte închis */
  --ink-2: #4d3237;
  --muted: #7a6466;
  --line: #e2d4c6;
  --madder: #7b1e2e;      /* bordeaux — culoarea principală */
  --madder-dark: #5a1220;
  --deep: #3d0c16;        /* bordeaux închis — fundaluri întunecate */
  --saffron: #b8975a;     /* aur antic */
  --gold-light: #d9c08f;
  --on-deep: #f3e7e2;     /* text pe fundal închis */
  --on-deep-muted: #c9aeb1;
  --img-bg: #f5efe6;      /* aceeași cu fundalul paginii: fără ramă în jurul fotografiilor */
  --ok: #3f6b4a;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--madder); }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(26px, 2.8vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--madder); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Chenarul țesut (motivul de bordură) ---------- */
.border-band {
  height: 18px;
  background:
    linear-gradient(45deg, transparent 37%, var(--saffron) 37% 63%, transparent 63%) 0 0 / 18px 18px,
    linear-gradient(-45deg, transparent 37%, var(--saffron) 37% 63%, transparent 63%) 0 0 / 18px 18px,
    var(--madder);
  border-top: 3px solid var(--deep);
  border-bottom: 3px solid var(--deep);
}
.border-band.thin { height: 10px; background-size: 10px 10px, 10px 10px, auto; border-width: 2px; }

/* ---------- Antet ---------- */
.site-header { background: var(--paper); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 18px; flex-wrap: nowrap; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 16px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--madder); }
.header-search { margin-left: auto; position: relative; }
.header-search input {
  width: 230px; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a6466' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 11px 50% no-repeat;
}
.header-phone { white-space: nowrap; font-weight: 600; text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid var(--madder);
  background: var(--madder); color: #fff; font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--madder); }
.btn.ghost:hover { background: var(--madder); color: #fff; border-color: var(--madder); }
.btn.wa { background: #1f7a4d; border-color: #1f7a4d; }
.btn.wa:hover { background: #165c3a; border-color: #165c3a; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--madder); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Erou ---------- */
.hero { background: var(--paper); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 42ch; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-help { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; max-width: 46ch; }
.hero-help a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.hero-rug { position: relative; margin: 0; }
.hero-rug a { display: block; text-decoration: none; }
.hero-rug img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--img-bg); }
.gallery-label {
  position: absolute; left: -28px; bottom: 28px; background: var(--paper); padding: 16px 20px; max-width: 290px;
  border-left: 4px solid var(--madder); box-shadow: 0 10px 30px rgba(61, 12, 22, .16);
}
.gallery-label .gl-name { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.gallery-label .gl-meta { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.gallery-label .gl-price { font-weight: 600; }

/* ---------- Secțiuni ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.section-head a { white-space: nowrap; }

.cat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-list a { background: var(--paper); padding: 26px 26px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.cat-list a:hover { background: #fbf6f0; color: var(--ink); }
.cat-list a:hover h3 { color: var(--madder); }
.cat-list p { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-list .count { margin-top: auto; font-size: 14px; color: var(--ink-2); }

.unique-band { background: var(--deep); color: var(--on-deep); }
.unique-band h2 { color: #fff; }
.unique-band .section-head p { color: var(--on-deep-muted); }
.unique-band a { color: #fff; }
.unique-band .card .soldout { color: var(--gold-light); }
.unique-band .card .card-meta, .unique-band .card .card-price small { color: var(--on-deep-muted); }
.unique-band .card .tag { border-left-color: var(--saffron); }
.unique-band a:hover, .unique-band .card a.card-link:hover h3 { color: var(--gold-light); }

/* ---------- Carduri produs ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; }
.card a.card-link { text-decoration: none; display: block; }
.card .card-img { position: relative; background: var(--img-bg); aspect-ratio: 4 / 5; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a.card-link:hover .card-img img { transform: scale(1.03); }
.card .tag {
  position: absolute; left: 0; top: 14px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 4px 10px 4px 12px; border-left: 3px solid var(--madder);
}
.card .tag.sale { border-left-color: var(--saffron); }
.card .tag + .tag.sale { top: 46px; }
.card-body { padding-top: 14px; }
.card h3 { font-size: 20px; line-height: 1.25; }
.card a.card-link:hover h3 { color: var(--madder); }
.card-meta { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.card-price { font-weight: 600; }
.card-price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.card .soldout { color: var(--madder); font-size: 14px; font-weight: 600; }

/* ---------- Catalog ---------- */
.page-head { background: var(--paper); padding: 36px 0 30px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.page-head p.lead { color: var(--ink-2); max-width: 70ch; margin: 12px 0 0; }

.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 36px 24px 72px; }
.filters { font-size: 15px; }
.filters details.mobile-filters > summary { display: none; }
.f-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.f-group:first-child { padding-top: 0; }
.f-group h3 { font-family: var(--text); font-weight: 600; font-size: 15px; margin: 0 0 10px; letter-spacing: 0; }
.f-group ul { list-style: none; margin: 0; padding: 0; }
.f-group li + li { margin-top: 4px; }
.f-group .more[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 2px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--madder); margin: 0; }
.check .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.swatch.multi { background: conic-gradient(#9b2335, #b8893b, #3e5c44, #1f2f4f, #9b2335); }
.f-cats a { text-decoration: none; color: var(--ink-2); display: block; padding: 2px 0; }
.f-cats a[aria-current="page"] { color: var(--madder); font-weight: 600; }
.f-cats ul ul { padding-left: 14px; }
.price-row { display: flex; gap: 8px; align-items: center; }
.price-row input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 15px; background: var(--paper); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 14px; cursor: pointer; }
.size-chip input:checked + span { background: var(--madder); color: #fff; border-color: var(--madder); }
.size-chip input:focus-visible + span { outline: 2px solid var(--madder); outline-offset: 2px; }
.filters .apply { margin-top: 18px; width: 100%; }
.js .filters .apply { display: none; }
.js .filters .price-apply { display: inline-flex; }
.price-apply { display: none; margin-top: 8px; padding: 7px 14px; font-size: 14px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); }
.toolbar select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.chip:hover { border-color: var(--madder); }
.chip svg { width: 10px; height: 10px; }
.empty { background: var(--paper); border: 1px solid var(--line); padding: 40px; text-align: center; }
.empty h2 { margin-bottom: 8px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); background: var(--paper); text-decoration: none; border-radius: var(--radius); }
.pager span[aria-current] { background: var(--madder); color: #fff; border-color: var(--madder); }

/* ---------- Pagina produs ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding: 32px 24px 64px; }
.gallery-main { background: var(--img-bg); aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease-out; }
.gallery-main.is-hover img { transform: scale(var(--zoom, 2.2)); transition: none; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); color: var(--ink-2); font-size: 13px; padding: 6px 10px; border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(42, 20, 24, .12); pointer-events: none;
}
.gallery-main.is-hover .zoom-hint { opacity: 0; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(42, 20, 24, .12); opacity: .92; transition: opacity .15s, border-color .15s, color .15s;
}
.g-nav:hover, .g-nav:focus-visible { opacity: 1; border-color: var(--madder); color: var(--madder); }
.g-prev { left: 12px; } .g-next { right: 12px; }
.gallery-main.is-hover .g-nav { opacity: .55; }
@media (max-width: 640px) { .g-nav { width: 38px; height: 38px; } .g-prev { left: 8px; } .g-next { right: 8px; } }

/* Vizualizare pe tot ecranul (fundal deschis, fără mască închisă) */
.lb { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 15px; color: var(--ink-2); }
.lb-bar .lb-tip { color: var(--muted); font-size: 14px; }
.lb-close, .lb-nav { background: var(--paper); border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { border-color: var(--madder); color: var(--madder); }
.lb-stage { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb-stage img.no-zoom { cursor: default; }
.lb.is-zoom .lb-stage { overflow: auto; display: block; cursor: grab; }
.lb.is-zoom .lb-stage img { height: auto; max-width: none; max-height: none; cursor: zoom-out; display: block; margin: 0 auto; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; box-shadow: 0 4px 14px rgba(42, 20, 24, .12); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb.is-zoom .lb-nav { display: none; }
@media (hover: none) { .gallery-main.is-hover img { transform: none; } }
@media (max-width: 640px) { .lb-bar .lb-tip { display: none; } .lb-nav { width: 40px; height: 40px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 76px; aspect-ratio: 4 / 5; }
.thumbs button[aria-current="true"] { border-color: var(--madder); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.p-info h1 { font-size: clamp(30px, 3.4vw, 42px); }
.p-sku { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.p-short { font-size: 18px; color: var(--ink-2); }
.p-unique-note { display: flex; gap: 12px; padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--saffron); margin: 20px 0; font-size: 15px; }
.p-price { font-family: var(--display); font-size: 34px; margin: 22px 0 4px; }
.p-price del { font-family: var(--text); font-size: 18px; color: var(--muted); margin-left: 10px; }
.p-vat { color: var(--muted); font-size: 14px; }
.p-sizes { border: 0; padding: 0; margin: 24px 0 0; }
.p-sizes legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.p-sizes .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt span { display: block; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; border-radius: var(--radius); line-height: 1.35; }
.size-opt strong { display: block; font-weight: 600; }
.size-opt small { color: var(--muted); font-size: 13px; }
.size-opt input:checked + span { border-color: var(--madder); box-shadow: inset 0 0 0 1px var(--madder); background: #fbf4f1; }
.size-opt input:focus-visible + span { outline: 2px solid var(--madder); outline-offset: 2px; }
.size-opt.out span { color: var(--muted); }
.stock { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--madder); }
.p-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 10px; }
.p-cta-note { color: var(--muted); font-size: 14px; }

.specs { margin: 34px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.specs dd a { text-decoration: none; border-bottom: 1px solid var(--line); }

.p-desc { max-width: none; }
.p-desc p, .p-desc li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.p-desc h2 { margin-bottom: 18px; }
.p-desc p, .p-desc li { font-size: 18px; line-height: 1.7; color: var(--ink-2); }

/* ---------- Subsol ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 48px 24px; }
.site-footer .logo, .site-footer .logo:hover { color: var(--on-deep); text-decoration: none; }
.site-footer h3 { color: #fff; font-family: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer .social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(217, 192, 143, .45); border-radius: 999px; color: var(--on-deep); font-size: 14px; line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.site-footer .social-btn:hover, .site-footer .social-btn:focus-visible { background: var(--saffron); border-color: var(--saffron); color: var(--deep); text-decoration: none; }
.social-btn svg { flex: none; }
/* Pictograma ANPC SAL (Ordinul ANPC 270/2026: 250×50) și sigla procesatorului de plăți */
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding: 0 24px 28px; }
.footer-badges .badge-sal { display: flex; align-items: center; width: 250px; height: 50px; }
.footer-badges .badge-sal img { display: block; height: 50px; width: auto; }
.footer-badges .badge-sal:hover { text-decoration: none; opacity: .92; }
.footer-badges .badge-anpc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-badges .anpc-link { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--on-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-badges .anpc-link:hover { color: #fff; }
.footer-badges .badge-pay { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--on-deep-muted); }
.footer-badges .badge-pay img { display: block; height: 36px; width: auto; }
@media (max-width: 640px) {
  .footer-badges { padding: 0 16px 24px; flex-direction: column; align-items: flex-start; }
  .footer-badges .badge-pay { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; font-size: 14px; color: var(--on-deep-muted); }

/* ---------- 404 ---------- */
.notfound { padding: 96px 24px; text-align: center; }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search input { width: 180px; }
}
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 12px 18px; padding: 14px 0; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); padding: 8px 12px; font: inherit; border-radius: var(--radius); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header-search { order: 5; width: 100%; margin: 0; }
  .header-search input { width: 100%; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-rug { order: -1; }
  .gallery-label { left: 12px; bottom: 12px; }
  .cat-list { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .filters details.mobile-filters > summary {
    display: flex; justify-content: space-between; cursor: pointer; list-style: none; padding: 12px 16px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; margin-bottom: 18px;
  }
  .filters details.mobile-filters > summary::-webkit-details-marker { display: none; }
  .filters details.mobile-filters[open] > summary { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .filters details.mobile-filters[open] .f-inner { background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 16px; margin-bottom: 18px; }
  .product { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .catalog, .product, .footer-grid { padding-left: 16px; padding-right: 16px; }
  .grid, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card h3 { font-size: 17px; }
  .cat-list { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding: 24px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Liste lungi de filtre: primele 6 valori, restul la cerere */
.js .f-group li.more { display: none; }
.f-group.expanded li.more { display: list-item; }
.f-more-btn { margin-top: 8px; font-size: 14px; }
fieldset.f-group { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
[hidden] { display: none !important; }

/* ---------- Prima pagină: mozaicul de categorii ---------- */
.home-cats { padding: 28px 0 40px; background: var(--paper); }
.cat-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 270px; gap: 14px; }
.cat-mosaic.cat-count-1 { grid-template-columns: 1fr; }
.cat-mosaic.cat-count-2, .cat-mosaic.cat-count-3 { grid-template-columns: 2fr 1fr; }
.cat-tile { position: relative; display: block; overflow: hidden; background: var(--img-bg); text-decoration: none; color: #fff; border-radius: var(--radius); }
.cat-tile.is-big { grid-row: span 2; }
.cat-mosaic.cat-count-4 .cat-tile.is-big { grid-row: span 3; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile-text {
  position: absolute; left: 16px; bottom: 16px; right: auto; max-width: calc(100% - 32px); z-index: 1;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-left: 4px solid var(--madder);
  box-shadow: 0 8px 24px rgba(42, 20, 24, .14);
}
.cat-tile-name { font-family: var(--display); font-size: 25px; line-height: 1.15; }
.cat-tile.is-big .cat-tile-name { font-size: clamp(32px, 3.4vw, 46px); }
.cat-tile-count { font-size: 14px; color: var(--muted); }
.cat-tile.is-big .cat-tile-text { left: 28px; bottom: 28px; padding: 18px 24px; }
.cat-tile.is-big .cat-tile-text::before { content: ""; width: 56px; height: 3px; background: var(--saffron); margin-bottom: 12px; }
.cat-tile:hover { color: var(--ink); }
.cat-tile:focus-visible { outline-offset: 3px; }

/* ---------- Promoții: bandă distinctă, bordeaux cu chenar auriu ---------- */
.promo-band {
  position: relative; background: var(--madder); color: var(--on-deep);
  border-top: 3px solid var(--deep); border-bottom: 3px solid var(--deep);
}
.promo-band::before, .promo-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background:
    linear-gradient(45deg, transparent 37%, var(--saffron) 37% 63%, transparent 63%) 0 0 / 10px 10px,
    linear-gradient(-45deg, transparent 37%, var(--saffron) 37% 63%, transparent 63%) 0 0 / 10px 10px,
    var(--deep);
}
.promo-band::before { top: 0; }
.promo-band::after { bottom: 0; }
.promo-band h2 { color: #fff; }
.promo-band .section-head p { color: var(--gold-light); }
.promo-band a { color: #fff; }
.promo-band .card a.card-link:hover h3, .promo-band a:hover { color: var(--gold-light); }
.promo-band .card .card-meta, .promo-band .card del { color: #e3c9cc; }
.promo-band .card-price { font-size: 19px; }
.promo-band .card .tag.sale { background: var(--saffron); color: var(--deep); border-left-color: var(--deep); font-size: 15px; }
.card del { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }

/* ---------- Recomandate pe categorii ---------- */
.rec-group + .rec-group { margin-top: 48px; }
.rec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rec-head h3 { font-size: 24px; }
.rec-head a { white-space: nowrap; font-size: 15px; }

@media (max-width: 900px) {
  .cat-mosaic, .cat-mosaic.cat-count-2, .cat-mosaic.cat-count-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cat-tile.is-big, .cat-mosaic.cat-count-4 .cat-tile.is-big { grid-column: 1 / -1; grid-row: span 2; }
  .grid.promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .home-cats { padding: 16px 0 28px; }
  .cat-mosaic { gap: 10px; grid-auto-rows: 170px; }
  .cat-tile-name { font-size: 18px; }
  .cat-tile-text { left: 14px; right: 14px; bottom: 12px; }
  .grid.promo-grid { grid-template-columns: 1fr; gap: 16px; }
  .promo-grid .card a.card-link { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
  .promo-grid .card-body { padding-top: 0; }
  .rec-head { flex-direction: column; gap: 4px; }
}

/* ---------- Pagini de text (termeni, retur, GDPR...) ---------- */
.legal-page { background: var(--paper); }
.prose { max-width: none; font-size: 17px; line-height: 1.75; color: var(--ink-2); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose h2, .prose h3, .prose h4 { text-align: left; hyphens: manual; }
.prose h2 { font-size: 28px; margin: 0 0 18px; color: var(--ink); }
.prose h3 { font-family: var(--text); font-weight: 600; font-size: 19px; margin: 34px 0 10px; color: var(--ink); }
.prose h4 { font-family: var(--text); font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--madder); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; hyphens: manual; }

/* ---------- Logo (ștampilă + nume, imagine SVG) ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 66px; width: auto; }
.site-footer .logo-img { height: 64px; }
@media (max-width: 640px) { .site-header .logo-img { height: 48px; } }
/* Antet: doar numele SuperCovoare, mare și lizibil */
.site-header .logo { flex: none; }
.site-header .logo-img { height: 60px; width: auto; max-width: none; }
.header-row { min-height: 88px; }
@media (max-width: 640px) { .site-header .logo-img { height: 44px; } .header-row { min-height: 0; } }

/* ---------- Prima pagină: bara de filtre, pe un singur rând ---------- */
.fbar { position: relative; z-index: 5; margin-bottom: 16px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--saffron); border-radius: var(--radius); }
.fbar-row { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.fb-drop { position: relative; flex: 0 1 auto; }
.fb-drop > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; color: var(--ink); white-space: nowrap; user-select: none;
}
.fb-drop > summary::-webkit-details-marker { display: none; }
.fb-drop > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; margin-left: 2px; }
.fb-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.fb-drop > summary:hover, .fb-drop[open] > summary { border-color: var(--madder); color: var(--madder); }
.fb-drop.has-value > summary { border-color: var(--madder); background: #fbf3ee; }
.fb-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--madder); color: #fff; font-size: 12px; font-weight: 600; }
.fb-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 360px; overflow: auto;
  padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(42, 20, 24, .16);
}
.fb-drop-right .fb-pop { left: auto; right: 0; }
.fb-pop-more { min-width: 300px; }
.fb-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--radius); cursor: pointer; font-size: 15px; }
.fb-opt:hover { background: var(--bg); }
.fb-opt input { accent-color: var(--madder); margin: 0; flex: none; }
.fb-opt span { flex: 1; }
.fb-opt small { color: var(--muted); font-size: 13px; }
.fb-opt em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.fb-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.fb-dot.multi { background: conic-gradient(#7b1e2e, #b8975a, #3f6b4a, #2f4f7a, #7b1e2e); }
.fb-sub + .fb-sub { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.fb-sub-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 8px; }
.fb-pop-fit { min-width: 290px; padding: 12px; }
.fb-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.fb-fit { display: flex; align-items: end; gap: 8px; }
.fb-fit label { flex: 1; font-size: 13px; color: var(--muted); }
.fb-fit input { width: 100%; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; color: var(--ink); margin-top: 3px; }
.fb-fit > span { padding-bottom: 9px; color: var(--muted); }
.fb-reset { margin-left: auto; font-size: 14px; white-space: nowrap; padding: 0 6px; }
.fb-submit { margin-left: auto; height: 42px; white-space: nowrap; flex: none; }
.fb-reset:not([hidden]) + .fb-submit { margin-left: 0; }

@media (max-width: 900px) {
  .fbar-row { flex-wrap: wrap; }
  .fb-drop { flex: 1 1 calc(50% - 6px); }
  .fb-drop > summary { justify-content: space-between; }
  .fb-pop, .fb-drop-right .fb-pop { left: 0; right: 0; min-width: 0; }
  .fb-reset { margin-left: 0; }
  .fb-submit { flex: 1 0 100%; margin-left: 0; }
}

/* ---------- Antet bordeaux cu litere aurii ---------- */
.site-header { background: var(--madder); color: var(--gold-light); }
.site-header .border-band.thin { background-color: var(--deep); }
.nav a { color: var(--gold-light); }
.nav a:hover, .nav a[aria-current="page"] { color: #f3dfae; border-bottom-color: var(--saffron); }
.header-phone, .header-phone:hover { color: var(--gold-light); }
.header-search input {
  background-color: rgba(61, 12, 22, .35); border-color: rgba(217, 192, 143, .45); color: #f3e7e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23d9c08f' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
}
.header-search input::placeholder { color: rgba(217, 192, 143, .75); }
.header-search input:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }
.site-header :focus-visible { outline-color: var(--gold-light); }
@media (max-width: 900px) {
  .site-header .menu-toggle { color: var(--gold-light); border-color: rgba(217, 192, 143, .5); }
  .site-header .nav a { border-bottom-color: rgba(217, 192, 143, .2); }
}

/* =================================================================
   Coș de cumpărături, finalizare comandă, pagina comenzii
   ================================================================= */

/* ---------- Butonul coșului din antet ---------- */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  color: var(--gold-light); text-decoration: none; border: 1px solid rgba(217, 192, 143, .45); border-radius: var(--radius);
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.cart-btn:hover { color: #f3dfae; border-color: var(--saffron); background: rgba(61, 12, 22, .25); }
.cart-count {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: var(--deep);
  font-size: 12px; line-height: 21px; text-align: center; font-weight: 700;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.checkout-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 15px; }

/* ---------- Pagina produsului: cumpărare ---------- */
.p-buy { margin: 0; }
.p-cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 22px 0 8px; }
.btn-cart { padding: 15px 24px; font-size: 17px; }
.btn[disabled], .btn[disabled]:hover { background: #cdbfb4; border-color: #cdbfb4; color: #fff; cursor: not-allowed; }
.btn.ghost[disabled], .btn.ghost[disabled]:hover { background: transparent; color: #b7a79c; border-color: #ddd0c4; }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-added { background: var(--ok); border-color: var(--ok); }
.p-perks { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.p-perks li { padding-left: 24px; position: relative; }
.p-perks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.p-ask { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.p-ask a { color: var(--ink); font-weight: 600; }

/* ---------- Sertarul coșului ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(42, 20, 24, .45); opacity: 0; transition: opacity .25s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(42, 20, 24, .18);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); outline: none;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-x { background: none; border: 0; padding: 8px; margin: -8px; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
.drawer-x:hover { color: var(--madder); }
.drawer-msg { margin: 14px 22px 0; padding: 10px 12px; background: #eef5ef; color: var(--ok); font-size: 15px; border-left: 3px solid var(--ok); }
.drawer-msg.error { background: #fbeceb; color: var(--madder); border-left-color: var(--madder); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer-empty { text-align: center; padding: 48px 8px; color: var(--muted); }
.drawer-empty .btn { margin-top: 16px; }
.d-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.d-line:last-child { border-bottom: 0; }
.d-line img { width: 72px; height: 90px; object-fit: cover; background: var(--img-bg); }
.d-name { font-family: var(--display); font-size: 18px; line-height: 1.2; text-decoration: none; display: block; }
.d-meta { color: var(--muted); font-size: 14px; margin: 3px 0 8px; }
.d-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.d-qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink); }
.d-qty button:disabled { color: #cbbdb1; cursor: default; }
.d-qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; }
.d-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.d-price { font-weight: 600; white-space: nowrap; }
.d-price del { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.d-remove { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.d-remove:hover { color: var(--madder); }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; background: #fbf7f1; }
.drawer-sum { display: flex; justify-content: space-between; font-size: 18px; }
.drawer-sum strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.drawer-note { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.drawer-free { font-size: 14px; margin: 0 0 10px; padding: 8px 10px; background: #f4ecdd; border-radius: var(--radius); }
.btn-block { width: 100%; }
.drawer-link { display: block; text-align: center; margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- Pagini de magazin: comun ---------- */
.page-head.slim { padding: 26px 0 22px; }
.page-head.slim h1 { font-size: clamp(30px, 3.6vw, 42px); }
.shop-wrap { padding-top: 28px; padding-bottom: 72px; }
.notice { padding: 12px 16px; background: #f4ecdd; border-left: 3px solid var(--saffron); margin-bottom: 18px; font-size: 15px; }
.notice.error { background: #fbeceb; border-left-color: var(--madder); color: var(--madder-dark); }
.summary { background: var(--paper); border: 1px solid var(--line); padding: 22px 22px 20px; }
.summary h2 { font-size: 24px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-size: 18px; font-weight: 600; }
.sum-row.total span:last-child { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.small-muted { color: var(--muted); font-size: 14px; }

/* ---------- Coșul (pagina) ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-lines { background: var(--paper); border: 1px solid var(--line); padding: 0 22px; }
.cline { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cline:last-of-type { border-bottom: 0; }
.cline-img img { width: 110px; height: 138px; object-fit: cover; background: var(--img-bg); }
.cline-name { font-family: var(--display); font-size: 22px; line-height: 1.2; text-decoration: none; }
.cline-meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.tag-inline { color: var(--madder); font-weight: 600; }
.cline-price del { color: var(--muted); font-size: 14px; margin-left: 4px; }
.cline-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.qty select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qty-fixed { color: var(--muted); font-size: 15px; }
.cline-total { font-weight: 600; font-size: 18px; white-space: nowrap; }
.free-hint { font-size: 14px; background: #f4ecdd; padding: 8px 10px; margin: 6px 0 0; }
.summary .btn-block { margin-top: 18px; }
.continue { display: block; text-align: center; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.trust { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- Finalizarea comenzii ---------- */
.checkout-wrap { padding-top: 30px; padding-bottom: 80px; }
.checkout-title { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 22px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.co-step { background: var(--paper); border: 1px solid var(--line); padding: 22px 24px 8px; margin-bottom: 18px; }
.co-step h2 { font-size: 23px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-step h2 .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--madder); color: #fff; font-family: var(--text);
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.opt { font-family: var(--text); font-weight: 400; color: var(--muted); font-size: 13px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-field { margin-bottom: 16px; min-width: 0; }
.f-field.span-2 { grid-column: span 2; }
.f-field label, .sub-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.sub-label { margin: 6px 0 12px; }
.f-field input, .f-field select, .f-field textarea, .lookup input {
  width: 100%; padding: 12px 13px; border: 1px solid #d8c8b8; border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: 2px solid var(--madder); outline-offset: 0; border-color: var(--madder); }
.f-field [aria-invalid="true"] { border-color: var(--madder); background: #fff8f7; }
.f-err { color: var(--madder); font-size: 14px; margin: 5px 0 0; font-weight: 600; }
.f-help { font-size: 13px; color: var(--muted); margin: 5px 0 0; min-height: 0; }
.f-help:empty { display: none; }
.f-help.ok { color: var(--ok); }
.with-btn { display: flex; gap: 8px; flex-wrap: wrap; }
.with-btn input { flex: 1 1 160px; min-width: 0; }
.btn.sm { padding: 9px 12px; font-size: 14px; white-space: nowrap; }

.choices { display: grid; gap: 10px; margin-bottom: 18px; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid #d8c8b8; border-radius: var(--radius); background: #fff; cursor: pointer;
}
.choice[hidden] { display: none; }
.choice input { width: 18px; height: 18px; accent-color: var(--madder); margin: 0; }
.choice:has(input:checked) { border-color: var(--madder); box-shadow: inset 0 0 0 1px var(--madder); background: #fdf8f6; }
.choice:has(input:focus-visible) { outline: 2px solid var(--madder); outline-offset: 2px; }
.choice-title { display: block; font-weight: 600; }
.choice-note { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.choice-price { font-weight: 600; white-space: nowrap; }
.choice-cards { display: flex; gap: 4px; }
.choice-cards img { display: block; height: 26px; width: auto; }
.pickup-info { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; }

.seg { display: inline-flex; border: 1px solid #d8c8b8; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: #fff; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.seg label + label span { border-left: 1px solid #d8c8b8; }
.seg input:checked + span { background: var(--madder); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--madder); outline-offset: -4px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 15px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--madder); flex: none; }
.check-line[hidden] { display: none; }

.co-side .sticky { position: sticky; top: 20px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.mini-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-img { position: relative; }
.mini-img img { width: 56px; height: 70px; object-fit: cover; background: var(--img-bg); }
.mini-q { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink-2); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.mini-name { font-size: 15px; line-height: 1.3; }
.mini-name small { display: block; color: var(--muted); font-size: 13px; }
.mini-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.edit-cart { display: inline-block; font-size: 14px; margin: 6px 0 10px; color: var(--ink-2); }
.terms { margin-top: 18px; font-size: 14px; }
.terms.has-err span { color: var(--madder); }
.btn-order { margin-top: 4px; padding: 16px 20px; font-size: 17px; }
.legal-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* ---------- Pagina comenzii ---------- */
.order-wrap { padding-top: 32px; padding-bottom: 80px; max-width: 1080px; }
.order-hero { background: var(--paper); border: 1px solid var(--line); padding: 32px 32px 28px; text-align: center; margin-bottom: 22px; }
.order-hero.is-success { border-top: 4px solid var(--ok); }
.order-hero.is-cancelled { border-top: 4px solid var(--muted); }
.ok-mark { color: var(--ok); margin: 0 auto 10px; }
.order-no { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.order-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.order-lead { color: var(--ink-2); max-width: 56ch; margin: 12px auto 20px; }
.order-hero form { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 720px; counter-reset: s; }
.steps li { position: relative; font-size: 13px; color: var(--muted); padding-top: 30px; }
.steps li::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--paper); border: 2px solid #d3c3b4; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #e3d6c9; }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.done::after { background: var(--ok); }
.bank-box { background: #fbf6ee; border: 1px solid var(--line); border-left: 4px solid var(--saffron); padding: 20px 24px; margin-bottom: 22px; }
.bank-box h2 { font-size: 24px; margin-bottom: 12px; }
.bank-box dl { margin: 0 0 12px; display: grid; gap: 6px; }
.bank-box dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; font-weight: 600; word-break: break-word; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.bank-box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.order-card { background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 18px; }
.order-card h2 { font-size: 22px; margin-bottom: 10px; }
.order-card h3 { font-family: var(--text); font-size: 15px; font-weight: 600; margin: 14px 0 4px; }
.order-card p { margin: 0 0 8px; font-size: 15px; }
.lookup { max-width: 460px; background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.lookup .f-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.test-pay { max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px dashed var(--saffron); padding: 32px; text-align: center; }
.test-pay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 1000px) {
  .checkout, .cart-layout, .order-grid { grid-template-columns: 1fr; }
  .co-side .sticky { position: static; }
}
@media (max-width: 900px) {
  .cart-btn { order: 3; }
  .menu-toggle { order: 2; }
  .cart-label { display: none; }
}
@media (max-width: 640px) {
  .p-cta { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .f-field.span-2 { grid-column: auto; }
  .co-step { padding: 18px 16px 4px; }
  .summary { padding: 18px 16px; }
  .cart-lines { padding: 0 14px; }
  .cline { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .cline-img img { width: 80px; height: 100px; }
  .cline-name { font-size: 19px; }
  .cline-total { grid-column: 2; font-size: 16px; }
  .order-hero { padding: 24px 16px; }
  .steps li { font-size: 11px; }
  .bank-box dl div { grid-template-columns: 1fr; gap: 0; }
  .with-btn { flex-direction: column; }
  .choice-cards img { height: 20px; }
  .checkout-secure { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-backdrop { transition: none; }
  .cart-count.bump { animation: none; }
}
/* Antetul cu numele mare: telefonul și căutarea fac loc meniului pe ecrane medii */
@media (max-width: 1500px) { .header-phone { display: none; } }
@media (max-width: 1280px) {
  .header-row { gap: 20px; }
  .header-search input { width: 180px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .site-header .logo-img { height: 50px; }
  .nav { gap: 13px; }
  .nav a { font-size: 15px; }
  .header-search input { width: 150px; }
  .cart-label { display: none; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  .site-header .logo-img { height: 46px; }
  .header-row { gap: 16px; }
  .nav { gap: 11px; }
  .header-search input { width: 120px; }
}

/* ---------- Antet: totul încape pe rând, coșul nu mai iese din cadru ---------- */
.site-header .header-row { max-width: 1440px; }
.site-header .logo, .nav, .header-phone, .cart-btn { flex: none; }
.header-search { flex: 0 1 260px; min-width: 130px; }
.header-search input { width: 100%; }
@media (max-width: 1500px) { .header-phone { display: none; } }
@media (min-width: 1420px) { .header-phone { display: inline; } }
@media (max-width: 1240px) and (min-width: 901px) {
  .site-header .logo-img { height: 50px; }
  .header-row { gap: 18px; }
  .nav { gap: 13px; }
  .nav a { font-size: 15px; }
  .cart-label { display: none; }
}
@media (max-width: 1060px) and (min-width: 901px) {
  .site-header .logo-img { height: 44px; }
  .header-row { gap: 14px; }
  .nav { gap: 10px; }
  .nav a { font-size: 14.5px; }
  .header-search { min-width: 110px; }
}
@media (max-width: 980px) and (min-width: 901px) {
  .site-header .logo-img { height: 38px; }
  .header-row { gap: 12px; }
  .nav { gap: 8px; }
  .nav a { font-size: 14px; }
  .header-search { min-width: 88px; }
}
@media (max-width: 900px) {
  .header-search { flex: 1 1 100%; min-width: 0; }
}

/* ---------- Banner cookie-uri (consent.js) ---------- */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--on-deep); cursor: pointer; text-align: left; }
.linkbtn:hover { color: #fff; text-decoration: underline; }
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; width: 100%; max-width: 640px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--saffron); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(42, 20, 24, .22); padding: 20px 22px; }
.cc-title { font-family: var(--display); font-size: 21px; font-weight: 400; margin: 0 0 6px; }
.cc-text { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.5; }
.cc-text a { color: var(--madder); }
.cc-prefs { display: grid; gap: 10px; margin: 0 0 16px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.cc-prefs[hidden] { display: none; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.cc-opt input { margin-top: 3px; accent-color: var(--madder); width: 16px; height: 16px; flex: none; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.cc-actions .btn { padding: 10px 18px; font-size: 15px; }
.cc-actions .btn[hidden] { display: none; }
.cc-link { margin-right: auto; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--madder); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) {
  .cc { left: 8px; right: 8px; bottom: 8px; }
  .cc-box { padding: 16px; }
  .cc-actions .btn { flex: 1 1 40%; }
  .cc-link { width: 100%; text-align: left; }
}
