/* ============================================================
   byMarfă — coș, magazin, pagină produs, checkout, pagini legale
   ============================================================ */

/* ---------- drawer coș (bon) ---------- */
.drawer-ov { position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 11, .55); opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer-ov.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 101; width: min(460px, 100%); height: 100dvh;
  display: flex; flex-direction: column; background: var(--ink); color: var(--paper);
  transform: translateX(102%); transition: transform .55s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--dark-line); }
.drawer-x { width: 44px; height: 44px; border: 1.5px solid var(--paper); font: 400 22px/1 var(--f-mono); }
.drawer-x:hover { background: var(--paper); color: var(--ink); }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 22px 20px 40px; }

.receipt { background: var(--sheet); color: var(--ink); padding: 26px 22px 44px; font: 400 13px/1.45 var(--f-mono); }
.r-c { text-align: center; }
.r-logo { display: block; height: 76px; width: auto; margin: 0 auto 8px; }
.r-small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--g3); }
.r-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px dotted var(--g2); }
.r-item:last-of-type { border-bottom: 0; }
.r-nm { font-weight: 700; text-transform: uppercase; font-size: 12px; }
.r-nm a:hover { text-decoration: underline; }
.r-meta { color: var(--g3); font-size: 11px; }
.r-price { font-weight: 700; text-align: right; }
.r-ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.qty { display: inline-flex; align-items: center; height: 30px; border: 1.5px solid var(--ink); }
.qty button { width: 30px; height: 100%; font: 700 14px var(--f-mono); }
.qty button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.r-del { font-size: 11px; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; letter-spacing: .06em; }
.r-total { font-size: 17px; font-weight: 700; }
.r-note { font-size: 11px; color: var(--g3); margin: 8px 0 0; }
.r-empty { text-align: center; padding: 18px 0 6px; }
.r-empty p { margin: 8px 0 18px; }
.receipt .btn { border-color: var(--ink); }
.receipt .btn::before { background: var(--ink); }
.receipt .btn:hover { color: var(--paper); }
.receipt .btn-solid { background: var(--ink); color: var(--paper); }
.receipt .btn-solid::before { background: var(--sheet); }
.receipt .btn-solid:hover { color: var(--ink); }
.r-demo { border: 1.5px dashed var(--ink); padding: 8px 10px; font-size: 11px; margin-top: 12px; }

/* ---------- antet pagini ---------- */
.page-head { padding-block: clamp(36px, 6vw, 80px) clamp(24px, 3vw, 36px); border-bottom: 1.5px solid var(--ink); }
.page-title { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0 0; font: 400 clamp(68px, 13vw, 210px)/.84 var(--f-disp); text-transform: uppercase; letter-spacing: -.01em; padding-top: .08em; }
.page-title sup { flex: none; margin-top: .35em; border: 1.5px solid var(--ink); padding: 5px 8px; font: 700 clamp(13px, 1.4vw, 18px)/1 var(--f-mono); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; font: 700 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- magazin ---------- */
.shop-bar { position: sticky; top: var(--hdr); z-index: 40; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.shop-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 12px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--f-body); color: var(--ink); }
.select {
  height: 46px; padding: 0 38px 0 14px; border: 1.5px solid var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font: 700 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
.sort-wrap { position: relative; display: inline-flex; }
.sort-wrap .select { min-width: 236px; color: transparent; }
.sort-wrap .select option { color: var(--ink); background: var(--sheet); }
.sort-label {
  position: absolute; left: 15px; right: 38px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; pointer-events: none; white-space: nowrap; overflow: visible;
  font: 700 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.sort-label { gap: 8px; }
.sort-label .sort-arrow { flex: none; width: 12px; height: 8px; }
.tgl-btn { height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; }
.tgl-btn[aria-expanded="true"], .tgl-btn:hover { background: var(--ink); color: var(--paper); }
.filters { display: grid; gap: 10px; padding-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-row > .mono-label { width: 92px; flex: none; color: var(--g3); font-size: 11px; }
.chip { height: 34px; padding: 0 13px; border: 1.5px solid var(--ink); font: 700 11px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s; }
.chip:hover { background: var(--g1); }
.chip.on { background: var(--ink); color: var(--paper); }
.chip sup { font-size: 9px; margin-left: 3px; opacity: .6; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; margin-left: auto; }
.shop-main { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 120px); }
.shop-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.shop-meta button { text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }
.empty { border: 1.5px dashed var(--ink); padding: clamp(40px, 6vw, 80px) 24px; text-align: center; }
.empty h2 { font: 400 clamp(36px, 5vw, 64px)/1 var(--f-disp); text-transform: uppercase; margin: 0 0 10px; }
.empty p { margin: 0 auto 22px; max-width: 460px; color: var(--g3); }

/* casete de bifat */
.cbx { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--ink); background: var(--sheet); display: grid; place-items: center; cursor: pointer; }
.cbx:checked { background: var(--ink); }
.cbx:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

/* ---------- pagină produs ---------- */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); align-items: start; }
.gal-main { position: relative; aspect-ratio: 4 / 5; border: 1.5px solid var(--ink); overflow: hidden; background: var(--g1); }
.gal-main .ph-ico { width: 40%; }
.gal-main .v-img { object-fit: contain; background: var(--sheet); }
.gal-nav {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px;
  display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 0; transition: background .2s, color .2s;
}
.gal-nav::before { inset: auto; left: 14px; right: 14px; top: 50%; height: 13px; margin-top: -6.5px; }
.gal-nav:hover { background: var(--ink); color: var(--paper); }
.gal-prev::before { transform: scaleX(-1); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; z-index: 3; background: var(--ink); color: var(--paper); padding: 6px 9px; font: 700 11px/1 var(--f-mono); letter-spacing: .06em; }
.gal-main .ph-note { font-size: 12px; bottom: 20px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-height: 340px; overflow-y: auto; }
.gal-thumbs button { position: relative; aspect-ratio: 1; overflow: hidden; border: 1.5px solid var(--g2); }
.gal-thumbs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: calc(var(--hdr) + 24px); }
.pdp-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pdp-top .pc-lot { position: static; }
.pdp-title { margin: 16px 0 14px; font: 400 clamp(44px, 5.2vw, 82px)/.92 var(--f-disp); text-transform: uppercase; padding-top: .06em; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; font: 700 clamp(22px, 2.2vw, 30px) var(--f-mono); }
.pdp-price s { font-size: .6em; font-weight: 400; color: var(--g3); }
.pdp-block { padding-block: 20px; border-top: 1.5px solid var(--ink); }
.pdp-block:first-of-type { margin-top: 24px; }
.pdp-block-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cond { display: flex; align-items: center; gap: 12px; font: 700 13px var(--f-mono); }
.cond-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 150px; }
.cond-bar i { height: 12px; border: 1.2px solid var(--ink); }
.cond-bar i.f { background: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sz { min-width: 58px; height: 50px; padding: 0 14px; border: 1.5px solid var(--ink); font: 700 13px var(--f-mono); transition: background .2s, color .2s; }
.sz:hover:not(:disabled) { background: var(--g1); }
.sz.on { background: var(--ink); color: var(--paper); }
.sz:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.pdp-add { margin-top: 16px; }
.pdp-hint { margin: 10px 0 0; font: 400 12px var(--f-mono); color: var(--g3); }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--g2); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--g3); padding-top: 2px; }
.spec dd { margin: 0; }
.pdp-desc { margin: 0; color: #2b2b2b; white-space: pre-line; }
.pdp .acc summary { font-size: 16px; padding: 16px 0; }
.pdp .acc summary .pm { width: 26px; height: 26px; font-size: 16px; }
.pdp .acc .acc-a { font-size: 15px; padding-bottom: 18px; }
.related { padding-block: clamp(56px, 8vw, 110px); border-top: 1.5px solid var(--ink); }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 120px); align-items: start; }
.fs { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.fs-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.fs-h b { font: 700 12px var(--f-mono); }
.fs-h h2 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1 var(--f-disp); text-transform: uppercase; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.input { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--sheet); font: 500 15px var(--f-body); color: var(--ink); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
select.input { appearance: none; -webkit-appearance: none; background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.zone-info { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 14px; border: 1.5px dashed var(--ink); font: 400 12px/1.5 var(--f-mono); }
.zone-info b { font-weight: 700; }
.pay-opts { display: grid; gap: 10px; }
.pay { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border: 1.5px solid var(--ink); background: var(--sheet); cursor: pointer; transition: background .2s; }
.pay:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pay input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.pay input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pay b { display: block; font: 700 14px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.pay small { display: block; margin-top: 4px; color: var(--g3); font-size: 14px; }
.pay .pills { margin-top: 10px; }
.pay.is-off { opacity: .45; cursor: not-allowed; }
.pay.is-off input { cursor: not-allowed; }
.co-note { margin: 0 0 18px; padding: 14px; background: var(--ink); color: var(--paper); font: 400 12px/1.55 var(--f-mono); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin: 6px 0 20px; cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.co-err { margin: 12px 0 0; padding: 12px 14px; border: 1.5px solid var(--ink); font: 700 12px/1.5 var(--f-mono); }
.co-aside { position: sticky; top: calc(var(--hdr) + 24px); }
.co-aside, .done-rc { filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
.co-lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font: 700 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g3); }
.co-lock svg { width: 14px; height: 14px; }

/* ---------- confirmare ---------- */
.done { min-height: calc(100dvh - var(--hdr) - 34px); display: grid; place-items: center; padding-block: 64px; text-align: center; }
.done-title { margin: 18px 0 16px; font: 400 clamp(90px, 20vw, 280px)/.82 var(--f-disp); text-transform: uppercase; padding-top: .08em; }
.done p { max-width: 560px; margin: 0 auto 12px; font-size: 18px; }
.done .receipt { max-width: 380px; margin: 28px auto; text-align: left; }
.done-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- pagini legale ---------- */
.legal { max-width: 860px; padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 120px); }
.legal h2 { margin: 44px 0 12px; font: 400 clamp(28px, 3vw, 40px)/1 var(--f-disp); text-transform: uppercase; }
.legal h3 { margin: 24px 0 8px; font: 700 14px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.legal p, .legal li { color: #2b2b2b; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { background: var(--ink); color: var(--paper); padding: 1px 5px; font: 700 .85em var(--f-mono); }
.legal-meta { font: 400 12px var(--f-mono); color: var(--g3); }
.tbl-wrap { overflow-x: auto; border: 1.5px solid var(--ink); margin: 16px 0; }
.tbl { width: 100%; border-collapse: collapse; font: 400 13px var(--f-mono); min-width: 560px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px dashed var(--g2); vertical-align: top; }
.tbl th { background: var(--ink); color: var(--paper); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tbl tr:last-child td { border-bottom: 0; }
.model-form { border: 1.5px dashed var(--ink); padding: 18px 20px; font: 400 13px/1.6 var(--f-mono); background: var(--sheet); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pdp-grid, .co-grid { grid-template-columns: 1fr; }
  .pdp-info, .co-aside { position: static; }
  .co-aside { order: -1; }
  .check-inline { margin-left: 0; }
}
@media (max-width: 700px) {
  .chip-row > .mono-label { width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .gal-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-bar { position: static; }
}
