/* ============================================================================
   VALYON — Shop v2 (archive-product). Ported from design_v2_shop/{shop,listing}.css.
   HARD-SCOPED to `.shop-v2` so its tokens + components never reach the rest of
   the site. The theme's main.css has top-level `.shop-hero` (388) and
   `.shop-toolbar` (393) rules + generic collisions (.eyebrow .price .stars
   .current .active …) — every rule below is `.shop-v2 `-prefixed AND the two
   bleed-prone bands are explicitly neutralized. Header/footer/announce stay
   theme-owned (not ported). Prices native EUR only; .p-price kept fluid for the
   later BG-currency plugin (Decision C).
   ========================================================================== */

/* ---- tokens (scoped) ---- */
.shop-v2 {
  --cream: #F7EFE3;
  --cream-soft: #FBF7F0;
  --peach: #F8E7D2;
  --dark: #1C1A16;
  --gold: #B8923E;
  --muted: #6E665B;
  --line: #E7DDCC;
  --gold-soft: rgba(184,146,62,.28);
  --shadow-sm: 0 2px 10px rgba(28,26,22,.05);
  --shadow-md: 0 14px 34px -12px rgba(28,26,22,.18);
  --shadow-lg: 0 30px 64px -20px rgba(28,26,22,.32);

  color: var(--dark);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 500px at 80% -5%, #FBF4E7, transparent 60%),
    var(--cream);
}
.shop-v2 * { box-sizing: border-box; }
.shop-v2 img { display: block; max-width: 100%; }
.shop-v2 a { color: inherit; text-decoration: none; }
.shop-v2 .serif { font-family: 'Playfair Display', serif; }
.shop-v2 .wrap { max-width: 1316px; margin: 0 auto; padding: 0 24px; }

/* eyebrow (neutralize the global .eyebrow which uses a different font/size/color) */
.shop-v2 .eyebrow { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.shop-v2 .eyebrow::before { content: ""; width: 32px; height: 1.5px; background: linear-gradient(90deg, var(--gold), rgba(184,146,62,.1)); }

/* buttons */
.shop-v2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-family: inherit; border: none; cursor: pointer; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 7px; transition: transform .22s, box-shadow .22s, filter .22s, background .22s; }
.shop-v2 .btn svg { transition: transform .22s; }
.shop-v2 .btn-primary { background: linear-gradient(180deg,#2b2620,#1C1A16); color: #fff; font-size: 15px; padding: 18px 26px; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); }
.shop-v2 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.65); }
.shop-v2 .btn-primary:hover svg { transform: translateX(4px); }

/* breadcrumb */
.shop-v2 .breadcrumb { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 14px 0; }
.shop-v2 .breadcrumb a:hover { color: var(--gold); }
.shop-v2 .breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ---- SHOP HERO (neutralize global .shop-hero bg/border + h1) ---- */
.shop-v2 .shop-hero { background: transparent; border: 0; padding: 40px 0 26px; text-align: center; }
.shop-v2 .shop-hero .eyebrow { justify-content: center; margin-bottom: 18px; }
.shop-v2 .shop-hero .eyebrow::after { content: ""; width: 32px; height: 1.5px; background: linear-gradient(270deg, var(--gold), rgba(184,146,62,.1)); }
.shop-v2 .shop-hero h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 46px; letter-spacing: -.015em; line-height: 1.08; margin: 0; color: var(--dark); }
.shop-v2 .shop-hero p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---- TOOLBAR (neutralize global .shop-toolbar) ---- */
.shop-v2 .shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0 0; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.shop-v2 .cat-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-v2 .cat-chip { font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.shop-v2 .cat-chip:hover { border-color: var(--gold-soft); color: var(--dark); }
.shop-v2 .cat-chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.shop-v2 .cat-chip .n { opacity: .55; font-weight: 600; margin-left: 5px; }
.shop-v2 .cat-chip.active .n { opacity: .7; }
.shop-v2 .toolbar-right { display: flex; align-items: center; gap: 18px; }
.shop-v2 .result-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.shop-v2 .result-count b { color: var(--dark); font-weight: 700; }
.shop-v2 .sort-wrap { position: relative; }
.shop-v2 .sort-wrap select { appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--dark); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px 42px 12px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.shop-v2 .sort-wrap select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,62,.13); }
.shop-v2 .sort-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }

/* ---- PRODUCT GRID (count-agnostic: 2 → 12) ---- */
.shop-v2 .product-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; padding: 40px 0 20px; }
.shop-v2 .pcard { flex: 1 1 308px; max-width: 392px; display: flex; flex-direction: column; background: var(--cream-soft); border: 1px solid rgba(184,146,62,.18); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
  --ca: #B8923E; --ca-rgb: 184,146,62; --ca-soft: rgba(184,146,62,.30); --cp1: #FBF4E7; --cp2: #F1E2C9; --cb1: #C8A24E; --cb2: #B0883A; --cglow: rgba(184,146,62,.5); }
.shop-v2 .pcard.lav { --ca: #6C4FAF; --ca-rgb: 108,79,175; --ca-soft: rgba(108,79,175,.30); --cp1: #F3EDFC; --cp2: #E1D3F5; --cb1: #8C6CCB; --cb2: #6C4FAF; --cglow: rgba(176,150,239,.55); }
.shop-v2 .pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ca-soft); }

.shop-v2 .pcard .p-media { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 70% 16%, var(--cp1), var(--cp2) 80%); overflow: hidden; }
/* With a card background photo (.surface-bg): the opaque media panel becomes a
   TRANSLUCENT accent wash so the photo texture flows through the bottle zone too,
   while the amber/lavender accent (--ca) is preserved as a tint. Sleep stays
   lilac-tinted, Flex gold-tinted; the photo shows underneath. */
.shop-v2 .pcard.surface-bg .p-media { background: radial-gradient(120% 120% at 70% 16%, rgba(var(--ca-rgb), .20), rgba(var(--ca-rgb), .10) 80%); }
.shop-v2 .pcard .p-media::after { content: ""; position: absolute; width: 72%; height: 72%; left: 50%; top: 54%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.5), transparent 62%); }
.shop-v2 .pcard .p-media img { position: relative; z-index: 2; max-height: 80%; width: auto; filter: drop-shadow(0 20px 28px rgba(28,26,22,.28)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.shop-v2 .pcard:hover .p-media img { transform: translateY(-4px) scale(1.04); }
.shop-v2 .pcard .p-media .ph { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; color: #9b8d77; font-family: ui-monospace, monospace; font-size: 12px; text-align: center; padding: 20px; }

.shop-v2 .pcard .p-badge { position: absolute; top: 16px; left: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, var(--cb1), var(--cb2)); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 30px; box-shadow: 0 8px 18px -8px var(--cglow); }
.shop-v2 .pcard .p-wish { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.78); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; transition: all .2s; }
.shop-v2 .pcard .p-wish:hover { color: var(--ca); transform: scale(1.08); }
.shop-v2 .pcard .p-wish.on { color: var(--ca); }
.shop-v2 .pcard .p-wish.on svg { fill: var(--ca); stroke: var(--ca); }

.shop-v2 .pcard .p-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.shop-v2 .pcard .p-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ca); margin-bottom: 9px; }
.shop-v2 .pcard .p-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: .005em; display: block; }
.shop-v2 .pcard .p-sub { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.shop-v2 .pcard .p-rate { display: flex; align-items: center; gap: 9px; margin: 13px 0 12px; }
.shop-v2 .pcard .p-rate .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.shop-v2 .pcard .p-rate .rc { font-size: 13px; color: var(--muted); }
.shop-v2 .pcard .p-desc { font-size: 14px; color: #4d4639; line-height: 1.55; }
.shop-v2 .pcard .p-foot { margin-top: auto; padding-top: 18px; }
.shop-v2 .pcard .p-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-v2 .pcard .p-price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 28px; line-height: 1; }
.shop-v2 .pcard .p-price del { color: var(--muted); font-size: .6em; font-weight: 400; margin-right: 6px; }
.shop-v2 .pcard .p-price ins { text-decoration: none; }
.shop-v2 .pcard .p-actions { display: flex; gap: 10px; }
.shop-v2 .pcard .p-actions .btn-primary { flex: 1; font-size: 13px; padding: 15px 16px; }
.shop-v2 .pcard .p-view { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ca-soft); color: var(--dark); border-radius: 7px; padding: 0 18px; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; transition: all .2s; white-space: nowrap; }
.shop-v2 .pcard .p-view:hover { background: var(--ca); border-color: var(--ca); color: #fff; }

/* ---- PAGINATION (native Woo) ---- */
.shop-v2 .woocommerce-pagination ul, .shop-v2 .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 24px 0 10px; list-style: none; margin: 0; }
.shop-v2 .woocommerce-pagination li { margin: 0; }
.shop-v2 .woocommerce-pagination a, .shop-v2 .woocommerce-pagination span, .shop-v2 .pagination a, .shop-v2 .pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--dark); background: #fff; cursor: pointer; transition: all .2s; }
.shop-v2 .woocommerce-pagination a:hover, .shop-v2 .pagination a:hover { border-color: var(--gold-soft); color: var(--gold); }
.shop-v2 .woocommerce-pagination .current, .shop-v2 .pagination .current { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---- TRUST STRIP ---- */
.shop-v2 .shop-trust { margin-top: 56px; background: var(--cream-soft); border: 1px solid var(--gold-soft); border-radius: 18px; box-shadow: var(--shadow-md); padding: 34px 30px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.shop-v2 .shop-trust .st { display: flex; align-items: center; gap: 15px; position: relative; padding: 0 8px; }
.shop-v2 .shop-trust .st + .st::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-soft), transparent); }
.shop-v2 .shop-trust .st .ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(160deg,#FBEFDC,#F3E2C4); border: 1px solid var(--gold-soft); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.shop-v2 .shop-trust .st .t { font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; }
.shop-v2 .shop-trust .st .d { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* empty state */
.shop-v2 .shop-empty { text-align: center; padding: 50px 20px 30px; color: var(--muted); font-size: 17px; }
.shop-v2 .asset-missing { outline: 2px dashed var(--gold-soft); outline-offset: -2px; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .shop-v2 .shop-trust { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .shop-v2 .shop-trust .st:nth-child(3)::before { display: none; }
}
@media (max-width: 760px) {
  .shop-v2 .shop-hero { padding: 36px 0 24px; }
  .shop-v2 .shop-hero h1 { font-size: 32px; }
  .shop-v2 .shop-hero p { font-size: 15px; margin-top: 12px; }
  .shop-v2 .shop-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 0; }
  .shop-v2 .toolbar-right { justify-content: space-between; gap: 12px; }
  .shop-v2 .cat-filter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px; }
  .shop-v2 .cat-chip { flex: 0 0 auto; scroll-snap-align: start; }
  .shop-v2 .sort-wrap { flex: 1; }
  .shop-v2 .sort-wrap select { width: 100%; }
  .shop-v2 .product-grid { gap: 20px; padding: 30px 0 18px; }
  .shop-v2 .pcard { flex: 1 1 100%; max-width: none; }
  .shop-v2 .pcard .p-name { font-size: 22px; }
  .shop-v2 .shop-trust { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; margin-top: 44px; }
  .shop-v2 .shop-trust .st + .st::before { display: none; }
  .shop-v2 .shop-trust .st { padding: 0; }
}
@media (max-width: 420px) {
  .shop-v2 .pcard .p-actions { flex-direction: column; }
  .shop-v2 .pcard .p-view { padding: 13px 18px; }
}
