/* YERBA-MATE.LV redesign layer "v2" (Deniss 2026-11-16: clean, elegant, easy to understand, built to sell; light shop,
   black only for Black Friday). PREVIEW ONLY: loaded by the layout's head script when the preview is on (?bw=a|b, kept in
   sessionStorage); every rule sits under html.ym2, so live visitors get none of it. Going live = load this file for all. */
html.ym2 { --display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; --r: 14px; --shadow: 0 1px 2px rgba(10, 31, 22, .05), 0 8px 24px rgba(10, 31, 22, .06); }
html.ym2 body { font-size: 16px; line-height: 1.55; background: #f7f6f1; font-variant-numeric: lining-nums; }
html.ym2 h1, html.ym2 h2, html.ym2 h3, html.ym2 h4 { letter-spacing: -.015em; line-height: 1.15; }
html.ym2 h1 { font-size: clamp(28px, 3.2vw, 42px); }
html.ym2 h2 { font-size: clamp(23px, 2.4vw, 32px); }
html.ym2 h3 { font-size: 18px; }
html.ym2 .section { padding-top: 48px; padding-bottom: 48px; }
html.ym2 .crumbs, html.ym2 .cathead__crumbs, html.ym2 .pdp__eyebrow, html.ym2 .product-card__brand { display: none; }

/* buttons: one shape, comfortable to tap */
html.ym2 .btn { min-height: 46px; padding: 12px 26px; border-radius: 999px; font-family: var(--body); font-size: 15.5px; font-weight: 700; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s, box-shadow .18s, transform .18s; }
html.ym2 .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(27, 67, 50, .18); }
html.ym2 .btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
html.ym2 .btn--outline:hover { box-shadow: none; }

/* header + free delivery line: quieter */
html.ym2 .shipbar__card { box-shadow: none; border-radius: 999px; padding-top: 8px; padding-bottom: 8px; background: #fff; }

/* page heads */
html.ym2 .page-head { padding-top: 34px; padding-bottom: 22px; }
html.ym2 .page-head .lead, html.ym2 .lead { font-size: 17px; color: var(--muted); max-width: 62ch; }
html.ym2 .chip { padding: 9px 18px; font-size: 14.5px; font-weight: 600; }

/* product cards: photo, name, price, one full-width action */
html.ym2 .product-grid { gap: 22px; }
html.ym2 .product-card { border: 1px solid rgba(27, 67, 50, .09); border-radius: var(--r); box-shadow: none; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
html.ym2 .product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(27, 67, 50, .18); }
html.ym2 .product-card__media img { padding: 16px; }
html.ym2 .product-card__body { padding: 14px 16px 16px; gap: 6px; }
html.ym2 .product-card__name { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
html.ym2 .product-card__size { font-size: 13.5px; }
html.ym2 .product-card__foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
html.ym2 .product-card__price { font-size: 21px; font-weight: 700; color: var(--forest); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
html.ym2 .product-card__price s { order: 2; margin: 0; font-size: 14.5px; }
html.ym2 .product-card__from { font-size: 13px; margin: 0; }
html.ym2 .product-card__foot .btn { width: 100%; }
html.ym2 .discbadge { border-radius: 999px; font-weight: 700; }

/* product page: name, price, choice, buy - then the reasons */
html.ym2 .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
html.ym2 .pdp__mediacol { position: sticky; top: 90px; }
html.ym2 .pdp__media { border-radius: 18px; border: 1px solid rgba(27, 67, 50, .09); background: #fff; }
html.ym2 .pdp__info { display: flex; flex-direction: column; }
html.ym2 .pdp__info > * { order: 20; }
html.ym2 .pdp__info > h1 { order: 1; font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 6px; }
html.ym2 .pdp__info > .pdp__sub { order: 2; margin: 0 0 4px; color: var(--muted); }
html.ym2 .pdp__info > .pdp__pricerow { order: 3; margin: 14px 0 6px; }
html.ym2 .pdp__info > .pdp__avail { order: 4; margin: 0 0 16px; font-weight: 600; }
html.ym2 .pdp__info > .pdp__group, html.ym2 .pdp__info > form { order: 5; }
html.ym2 .pdp__info > .pdp__buy { order: 6; }
html.ym2 .pdp__info > .trust { order: 7; margin: 16px 0 8px; }
html.ym2 .pdp__info > .pdp__mb { order: 8; }
html.ym2 .pdp__info > .pdp__why { order: 9; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
html.ym2 .pdp__price { font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
html.ym2 .pdp__compare { font-size: 18px; }
html.ym2 .btn--buy { height: 54px; font-size: 17px; }
html.ym2 .qty { height: 54px; }
html.ym2 .trust__item { border-radius: 12px; background: #fff; border: 1px solid rgba(27, 67, 50, .09); }
html.ym2 .pdp__why-title { font-size: 19px; }

/* cart: lines, then one clear total and one big button */
html.ym2 .cart-page h1 { margin-bottom: 18px; }
html.ym2 .cart-table { border-radius: var(--r); border-color: rgba(27, 67, 50, .09); }
html.ym2 .cart-table td { font-size: 15.5px; padding: 16px; }
html.ym2 .cart-line-total { font-weight: 700; font-size: 17px; }
html.ym2 .cart-subtotal { font-size: 18px; margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; }
html.ym2 .cart-subtotal strong { font-size: 26px; font-family: var(--body); }
html.ym2 .cart-reward { border-radius: var(--r); border-color: rgba(27, 67, 50, .09); }
html.ym2 .cart-reward__title { font-size: 17px; }
html.ym2 .cart-page .btn:not(.btn--sm) { min-height: 56px; font-size: 17px; padding-left: 44px; padding-right: 44px; margin-top: 18px; }

/* forms: checkout, account, contact */
html.ym2 input[type="text"], html.ym2 input[type="email"], html.ym2 input[type="tel"], html.ym2 input[type="password"], html.ym2 input[type="search"], html.ym2 input[type="number"], html.ym2 select, html.ym2 textarea { min-height: 48px; border-radius: 12px; font-size: 16px; font-family: var(--body); }
html.ym2 .label, html.ym2 label.label { font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--forest); }
html.ym2 .account-form, html.ym2 .checkout-summary { border-radius: var(--r); }
html.ym2 .checkout-total { font-size: 22px; }
html.ym2 .checkout-page .btn { min-height: 54px; font-size: 16.5px; }

/* footer stays dark green; a touch more air */
html.ym2 .acc summary, html.ym2 .acc__head { font-size: 17px; }

/* Black Friday bar under the header on every page of the preview (v2 js builds it from the cart panel's data) */
html.ym2 .bfbar { background: #0b0b0a; color: #f5f1e8; font-size: 14.5px; }
html.ym2 .bfbar__in { display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
html.ym2 .bfbar__title { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
html.ym2 .bfbar__steps { display: flex; gap: 16px; }
html.ym2 .bfbar__steps b { color: #f2c230; font-weight: 700; margin-right: 5px; }
html.ym2 .bfbar__count { color: rgba(245, 241, 232, .7); font-variant-numeric: tabular-nums; }
html.ym2 .bfbar__count b { color: #fff; }
html.ym2 .bfbar a { color: #0b0b0a; background: #f2c230; border-radius: 999px; padding: 5px 16px; font-weight: 700; text-decoration: none; }
html.ym2 .bfbar a:hover { background: #ffd24d; }
html.ym2 .bfnote { order: 3; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 10px; padding: 10px 14px; border-radius: 12px; background: #0b0b0a; color: #f5f1e8; font-size: 14.5px; }
html.ym2 .bfnote strong { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
html.ym2 .bfnote b { color: #f2c230; margin-right: 4px; }

@media (max-width: 760px) {
  html.ym2 .section { padding-top: 32px; padding-bottom: 32px; }
  html.ym2 .btn { padding: 11px 18px; font-size: 15px; white-space: normal; text-align: center; min-width: 0; }
  html.ym2 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.ym2 .product-card__media img { padding: 10px; }
  html.ym2 .product-card__body { padding: 10px 12px 12px; }
  html.ym2 .product-card__name { font-size: 14.5px; }
  html.ym2 .product-card__price { font-size: 18px; }
  html.ym2 .product-card__foot .btn { min-height: 40px; padding: 8px 10px; font-size: 13.5px; }
  html.ym2 .pdp { grid-template-columns: 1fr; gap: 18px; }
  html.ym2 .pdp__mediacol { position: static; }
  html.ym2 .pdp__price { font-size: 34px; }
  html.ym2 .cart-subtotal strong { font-size: 24px; }
  html.ym2 .cart-page .btn { width: 100%; }
  html.ym2 .bfbar { font-size: 13px; }
  html.ym2 .bfbar__in { gap: 4px 12px; padding-top: 7px; padding-bottom: 7px; }
  html.ym2 .bfbar__steps { gap: 10px; }
  html.ym2 .bfbar__count { display: none; }
}

/* Deniss 2026-11-16: no small promise line under the hero buttons in this design */
html.ym2 .hero__trust { display: none; }

/* Deniss 2026-11-16: the four hero numbers fit on one line (desktop/tablet) */
@media (min-width: 761px) { html.ym2 .hero__stats { flex-wrap: nowrap; gap: clamp(10px, 1.5vw, 20px); font-size: clamp(11px, 1vw, 13px); white-space: nowrap; } html.ym2 .hero__stats strong { font-size: 1.15em; } }

/* Deniss 2026-11-16: hero photo a little smaller and inside the frame, same gap above and below (48px like the sections) */
@media (min-width: 761px) { html.ym2 .hero { padding-top: 48px; padding-bottom: 48px; } html.ym2 .hero__media { align-self: center; } html.ym2 .hero__media img { height: auto; min-height: 0; max-height: 360px; aspect-ratio: 3 / 2; box-shadow: 0 8px 22px rgba(27, 67, 50, .12); } }

/* Deniss 2026-11-16: page heads use the full width on desktop - no empty right side. Category intro runs in two columns, the product counter is dropped, lead texts are not capped. */
@media (min-width: 900px) { html.ym2 .cathead__row { display: block; } html.ym2 .cathead__main { max-width: none; width: 100%; } html.ym2 .cathead__intro { max-width: none; columns: 2; column-gap: 56px; } html.ym2 .cathead__intro p { break-inside: avoid; margin: 0 0 12px; } html.ym2 .cathead__count { display: none; } html.ym2 .page-head .lead, html.ym2 .lead { max-width: none; } }

/* cart: the Subtotal row shows the discounted sum, this line under it says what was saved (Deniss 2026-11-16) */
.bwc-saved { margin: 4px 0 14px; text-align: right; font-size: 16px; font-family: var(--body); color: #1b4332; font-variant-numeric: lining-nums; }
.bwc-saved strong { font-weight: 700; }

/* cart: the old subtotal crossed out before the discounted one (Kaspars 2026-11-16 12:40) */
.cart-subtotal .bwc-old { margin-left: auto; margin-right: 12px; font-size: 18px; font-weight: 400; color: var(--muted); text-decoration-thickness: 2px; }
