/* ═══════════════════════════════════════════════════════════════════
   shopping.css — stilurile comparatorului ADecvat Shopping.
   Se așază PESTE brand.css (sursa unică a mărcii: tokeni, .wm, .adx-*).
   Nu redefinește marca — doar suprafața de produs.
   ═══════════════════════════════════════════════════════════════════ */

/* Fonturile mărcii, self-hosted (copiate la deploy din build-ul site-ului) */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/fraunces-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+A720-A7FF;
}

/* ─── bază ─── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--graphite);
  background: #faf8f4;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; }
main { min-height: 60vh; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.shp-suffix {
  margin-left: 0.55rem; padding-left: 0.6rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  align-self: center;
}
.shp-suffix-dark { border-left-color: var(--line-dark); color: var(--muted-dark); }

/* ─── header: căutare + nav ─── */
.adx-header .adx-row { gap: 1rem; }
.shp-hsearch {
  display: flex; flex: 1; max-width: 430px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shp-hsearch:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18); }
.shp-hsearch input {
  flex: 1; min-width: 0; border: 0; padding: 0.55rem 1rem; font: inherit; font-size: 0.92rem;
  background: transparent; outline: none;
}
.shp-hsearch button {
  border: 0; background: var(--amber); color: var(--graphite);
  font: inherit; font-size: 0.88rem; font-weight: 600; padding: 0 1.1rem; cursor: pointer;
}
.shp-nav { display: flex; gap: 1.4rem; }
.shp-nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.shp-nav a:hover { color: var(--graphite); }
@media (max-width: 720px) {
  .adx-header .adx-row { flex-wrap: wrap; padding-block: 0.6rem; }
  .shp-hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .shp-nav { margin-left: auto; gap: 1rem; }
}

/* ─── layout comun ─── */
.shp-sec, .shp-hero, .shp-results, .shp-crumbs, .shp-product {
  max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.shp-sec { margin-block: clamp(2rem, 5vw, 3.2rem); }
.shp-sec h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em; margin: 0 0 1.1rem;
}
.shp-sec h1 { font-family: var(--font-serif); font-weight: 640; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.shp-sec h1 small { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 0.5rem; }
.shp-sub { color: var(--muted); font-size: 1.02rem; max-width: 46rem; }

/* ─── hero ─── */
.shp-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.shp-hero h1 {
  font-family: var(--font-serif); font-weight: 680; letter-spacing: -0.03em;
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.08; margin: 0 0 0.9rem;
}
.shp-hero .shp-sub { margin-inline: auto; }
.shp-bigsearch {
  display: flex; max-width: 620px; margin: 1.6rem auto 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  overflow: hidden; box-shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shp-bigsearch:focus-within { border-color: var(--amber); box-shadow: 0 10px 30px rgba(245, 179, 1, 0.16); }
.shp-bigsearch input { flex: 1; min-width: 0; border: 0; padding: 1rem 1.4rem; font: inherit; font-size: 1.02rem; background: transparent; outline: none; }
.shp-bigsearch button { border: 0; background: var(--amber); color: var(--graphite); font: inherit; font-size: 0.98rem; font-weight: 650; padding: 0 1.7rem; cursor: pointer; }
.shp-bigsearch button:hover { filter: brightness(1.04); }

/* ─── categorii ─── */
.shp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; }
.shp-cat {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.05rem 1.15rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.shp-cat:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 20, 20, 0.06); }
.shp-cat span { font-weight: 600; font-size: 0.98rem; }
.shp-cat small { color: var(--muted); font-size: 0.82rem; }

/* ─── grile de produse ─── */
.shp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.shp-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.shp-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(20, 20, 20, 0.07); }
.shp-imgwrap { position: relative; display: block; aspect-ratio: 1/1; background: #fff; }
.shp-imgwrap img { width: 100%; height: 100%; object-fit: contain; padding: 0.8rem; }
.shp-imgwrap.noimg::after { content: "fără imagine"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.8rem; background: #faf8f4; }
.shp-imgwrap.noimg img { display: none; }
.shp-off {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--amber); color: var(--graphite);
  font-size: 0.74rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 999px;
}
.shp-cbody { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.85rem 0.95rem 1rem; flex: 1; }
.shp-ctitle {
  font-size: 0.9rem; font-weight: 550; line-height: 1.35; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.45em;
}
.shp-ctitle:hover { color: var(--amber-text); }
.shp-cprice { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
.shp-cprice s { color: var(--muted); font-size: 0.82rem; font-weight: 400; font-family: var(--font-sans); margin-left: 0.35rem; }
.shp-cmeta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; }
.shp-store {
  font-size: 0.74rem; color: var(--muted); background: #f4f1ea;
  padding: 0.16rem 0.55rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shp-compare { font-size: 0.78rem; font-weight: 600; color: var(--amber-text); text-decoration: none; white-space: nowrap; }
.shp-compare:hover { text-decoration: underline; }
.shp-go {
  display: inline-flex; justify-content: center; align-items: center;
  border: 1px solid var(--graphite); border-radius: 999px;
  padding: 0.45rem 0.9rem; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: background 0.13s ease, color 0.13s ease;
}
.shp-go:hover { background: var(--graphite); color: var(--white); }

/* ─── rezultate + filtre ─── */
.shp-results { display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem; margin-block: 1.8rem 3rem; }
.shp-filters { display: flex; flex-direction: column; gap: 0.5rem; align-self: start; position: sticky; top: 84px; }
.shp-filters details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.85rem;
}
.shp-filters summary { cursor: pointer; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.02em; }
.shp-flist { display: flex; flex-direction: column; margin-top: 0.5rem; max-height: 260px; overflow: auto; }
.shp-flist a {
  display: flex; justify-content: space-between; gap: 0.6rem;
  padding: 0.32rem 0.4rem; border-radius: 7px; font-size: 0.86rem; text-decoration: none; color: var(--graphite);
}
.shp-flist a small { color: var(--muted); }
.shp-flist a:hover { background: #faf8f4; }
.shp-flist a.on { background: var(--graphite); color: var(--white); }
.shp-flist a.on small { color: var(--muted-dark); }
.shp-price { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.shp-price input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.5rem; font: inherit; font-size: 0.85rem; }
.shp-price button { border: 1px solid var(--graphite); background: none; border-radius: 8px; padding: 0.35rem 0.7rem; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.shp-price button:hover { background: var(--graphite); color: var(--white); }
.shp-reset { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 0.3rem; }
.shp-rhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.7rem; margin-bottom: 1.1rem; }
.shp-rhead h1 { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 640; letter-spacing: -0.02em; margin: 0; }
.shp-rhead h1 small { font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; margin-left: 0.45rem; }
.shp-sort { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.shp-sort select { font: inherit; font-size: 0.88rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.shp-pag { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.shp-pag a { font-weight: 600; color: var(--graphite); text-decoration: none; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.shp-pag a:hover { border-color: var(--amber); }
.shp-empty { background: var(--white); border: 1px dashed var(--line); border-radius: 14px; padding: 2.2rem; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .shp-results { grid-template-columns: 1fr; }
  .shp-filters { position: static; flex-direction: row; flex-wrap: wrap; }
  .shp-filters details { flex: 1 1 200px; }
  .shp-filters details:not([open]) { align-self: start; }
  .shp-reset { align-self: center; }
}

/* ─── pagina de produs ─── */
.shp-crumbs { margin-top: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.shp-crumbs a { color: var(--muted); text-decoration: none; }
.shp-crumbs a:hover { color: var(--graphite); }
.shp-product {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(1.4rem, 4vw, 2.6rem);
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem); margin-block: 1rem 2rem;
}
.shp-pimg { aspect-ratio: 1/1; position: relative; }
.shp-pimg img { width: 100%; height: 100%; object-fit: contain; }
.shp-pimg.noimg::after { content: "fără imagine"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #faf8f4; border-radius: 12px; }
.shp-pinfo h1 { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 640; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.7rem; }
.shp-pmeta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.shp-pdesc { color: var(--muted); font-size: 0.95rem; }
.shp-oh { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 640; margin: 1.4rem 0 0.6rem; }
.shp-offers { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.shp-offers td { padding: 0.7rem 0.6rem; border-top: 1px solid var(--line); vertical-align: middle; }
.shp-offers tr:first-child td { border-top: 0; }
.shp-omerch { font-weight: 600; }
.shp-oavail { color: var(--muted); font-size: 0.85rem; }
.shp-oprice { font-family: var(--font-serif); font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.shp-oprice s { font-family: var(--font-sans); font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.shp-offers .shp-go { white-space: nowrap; }
.shp-offers tr:first-child .shp-go { background: var(--amber); border-color: var(--amber); }
.shp-offers tr:first-child .shp-go:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.shp-note { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) {
  .shp-product { grid-template-columns: 1fr; }
  .shp-offers td { padding-inline: 0.3rem; }
  .shp-offers .shp-oavail { display: none; }
}

/* ─── magazine ─── */
.shp-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.shp-mcard {
  display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.15rem;
}
.shp-mname { font-weight: 650; }
.shp-mdomain { font-size: 0.85rem; color: var(--muted); }
.shp-mcount { font-size: 0.8rem; color: var(--muted); }
.shp-mcard a { font-size: 0.85rem; font-weight: 600; color: var(--amber-text); text-decoration: none; margin-top: 0.4rem; }
.shp-mcard a:hover { text-decoration: underline; }

/* ─── pagini de conținut ─── */
.shp-prose { max-width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.4rem); }
.shp-prose h1 { margin-top: 0; }
.shp-prose h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.shp-prose a { color: var(--amber-text); }
.shp-prose ul { padding-left: 1.2rem; }
