/*
Theme Name: Twenty Twenty-Five Yens
Theme URI: https://yensbabyshop.example/
Description: Child theme of Twenty Twenty-Five for Yen's Baby Shop (WooCommerce). Soft lilac + cream, pink price accents, rounded pill buttons, clean product cards. WCAG AA, mobile-first.
Author: Yen's Baby Shop
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: twentytwentyfive-yens
*/

/* ============================================================
   Design tokens  (AA-verified palette preserved; storefront
   layer adds radius/spacing/type scale on top)
   ============================================================ */
:root {
  /* palette — preserved, AA-verified */
  --yens-lilac:      #c3b1e1; /* header / surfaces           */
  --yens-lilac-soft: #e7defb; /* light lilac surface (new)   */
  --yens-lilac-deep: #b09ad6; /* deeper lilac tile (new)     */
  --yens-ink:        #3a2d5c; /* primary text + buttons      */
  --yens-ink-2:      #5b4d7d; /* muted body text (AA 5.9:1)  */
  --yens-pink:       #f0608f; /* decorative accent (non-text)*/
  --yens-pink-text:  #c9256a; /* AA-safe pink for TEXT       */
  --yens-pink-cta:   #c9256a; /* pink CTA fill (white 4.56:1)*/
  --yens-pink-hover: #a81e59; /* pink CTA hover              */
  --yens-red:        #e0295a; /* discount / sale             */
  --yens-cream:      #fdf3d3; /* promo / notice              */
  --yens-cream-2:    #fff6dd; /* light cream surface (new)   */
  --yens-page:       #f6f2fb; /* page background             */
  --yens-card:       #ffffff; /* cards                       */

  /* one radius system */
  --yens-r-sm:  10px;   /* images, inputs, chips            */
  --yens-radius: 14px;  /* product / surface cards          */
  --yens-r-md:  18px;   /* section cards, dropdowns         */
  --yens-r-lg:  28px;   /* hero, bento tiles                */
  --yens-pill: 999px;   /* all buttons                      */

  /* elevation */
  --yens-shadow:    0 2px 10px rgba(58,45,92,.10);
  --yens-shadow-lg: 0 18px 44px rgba(58,45,92,.16);

  /* 8px spacing rhythm */
  --s1:8px; --s2:16px; --s3:24px; --s4:32px; --s5:48px; --s6:64px; --s7:96px;

  /* type scale 13 / 15 / 17 / 22 / 30 / 44 */
  --t-xs:.8125rem; --t-sm:.9375rem; --t-md:1.0625rem;
  --t-lg:1.375rem; --t-xl:1.875rem; --t-2xl:2.75rem;
}

/* ---- Page canvas ---- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--yens-page);
  color: var(--yens-ink);
  font-family: var(--wp--preset--font-family--manrope, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 132px; } /* clear sticky topbar on anchor jump */

/* shared inner container — 8px rhythm, no horizontal scroll */
*, *::before, *::after { box-sizing: border-box; } /* width:100% + padding must never exceed the viewport */
.yens-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}
/* belt-and-suspenders: decorative shapes can never cause sideways scroll */
body { overflow-x: clip; }

/* focus-visible rings everywhere interactive */
a:focus-visible,
summary:focus-visible,
button:focus-visible,
.yens-cta:focus-visible,
.yens-icon-link:focus-visible,
.yens-tile:focus-visible,
.yens-nav a:focus-visible,
.yens-cat__panel a:focus-visible {
  outline: 3px solid var(--yens-pink-text);
  outline-offset: 3px;
  border-radius: 8px;
}

/* the template-part wrappers must not paint their own surface */
.wp-block-template-part { margin: 0; }
header.wp-block-template-part,
footer.wp-block-template-part { background: transparent; color: var(--yens-ink); }

/* ============================================================
   Buttons — ink pill, white text (preserved AA system)
   Pink is reserved for the hero CTA + prices, used sparingly.
   ============================================================ */
.button,
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--yens-ink);
  color: #ffffff;
  border: none;
  border-radius: var(--yens-pill);
  padding: .7em 1.5em;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .15s ease, transform .05s ease;
}
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: #2c2247; /* darker ink — stays >12:1 on white text */
  color: #ffffff;
}
.button:active,
.woocommerce a.button:active { transform: translateY(1px); }
.button:focus-visible,
.wp-element-button:focus-visible,
.wc-block-components-button:focus-visible,
.woocommerce .button:focus-visible {
  outline: 3px solid var(--yens-pink-text);
  outline-offset: 2px;
}

/* ============================================================
   Prices — bold pink, AA-safe on white / page / cream
   ============================================================ */
.woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wc-block-components-product-price,
.wc-block-formatted-money-amount {
  color: var(--yens-pink-text);
  font-weight: 700;
}
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del,
.wc-block-components-product-price del {
  color: var(--yens-ink);
  opacity: .55;
  font-weight: 400;
}

/* ============================================================
   Product grid — responsive CSS grid (overrides Woo floats)
   Works for [products] shortcode + shop archive site-wide.
   ============================================================ */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax(0): long content must not widen a track */
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; } /* kill clearfix */

@media (min-width: 680px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
}
@media (min-width: 980px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Product cards — rounded, white, subtle hover lift */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product,
.wc-block-product,
li.wc-block-product {
  position: relative;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  background: var(--yens-card);
  border-radius: var(--yens-radius);
  padding: 14px;
  box-shadow: var(--yens-shadow);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover,
li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--yens-shadow-lg);
}
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img,
li.wc-block-product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--yens-r-sm);
  margin-bottom: var(--s1);
}
/* 2-line clamped title, consistent card height */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--yens-ink);
  line-height: 1.4;
  margin: .35em 0 .25em;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2.8em;
}
.woocommerce ul.products li.product .price {
  font-size: var(--t-md);
  margin: auto 0 var(--s1);
}
.woocommerce ul.products li.product .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Sale badge — red pill, positioned on the card */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  background: var(--yens-red);
  color: #ffffff;
  border-radius: var(--yens-pill);
  font-weight: 700;
  min-height: auto;
  min-width: auto;
  padding: .35em .8em;
  line-height: 1.2;
}

/* ============================================================
   Notices / promo — cream surface, ink text
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-store-notice,
.wc-block-components-notice-banner {
  background: var(--yens-cream);
  color: var(--yens-ink);
  border-top: 3px solid var(--yens-pink-text);
  border-radius: var(--yens-radius);
}
.woocommerce-error {
  background: #fdecf1;
  color: var(--yens-ink);
  border-top: 3px solid var(--yens-red);
  border-radius: var(--yens-radius);
}
.woocommerce-message .button,
.woocommerce-info .button { background: var(--yens-ink); color: #fff; }

/* ============================================================
   Cart / Checkout / My Account — surface polish
   ============================================================ */
.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #payment,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.wc-block-cart,
.wc-block-checkout {
  background: var(--yens-card);
  border-radius: var(--yens-radius);
  box-shadow: var(--yens-shadow);
}
.woocommerce table.shop_table th { color: var(--yens-ink); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--yens-pink-text);
  font-weight: 700;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection,
.woocommerce .quantity .qty { border-radius: var(--yens-r-sm); }

/* ============================================================
   STOREFRONT LAYER — Direction B "Playful Premium"
   ============================================================ */

/* ---- Sticky topbar: slim promo + glass header ---- */
.yens-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}
.yens-promo {
  background: linear-gradient(90deg, #3a2d5c 0%, #5b3b6e 55%, #7a3f78 100%);
  color: var(--yens-cream-2);
}
.yens-promo__text {
  margin: 0;
  padding: 7px 16px;
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
}

.yens-header {
  position: relative;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 45, 92, .09);
}
.yens-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 66px;
  padding-block: 10px;
}

/* brand */
.yens-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--yens-ink);
  font-weight: 800;
  font-size: var(--t-lg);
  line-height: 1;
  white-space: nowrap;
}
.yens-brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--yens-pill);
  background: linear-gradient(150deg, var(--yens-lilac-soft), var(--yens-lilac));
  font-size: 22px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.yens-brand__name em { font-style: normal; color: var(--yens-pink-text); }

/* nav (details-based, native, no JS) */
.yens-menu { position: static; margin-inline-start: var(--s2); }
.yens-menu summary { list-style: none; cursor: pointer; }
.yens-menu summary::-webkit-details-marker { display: none; }

.yens-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--yens-pill);
  background: var(--yens-lilac-soft);
  color: var(--yens-ink);
  font-weight: 700;
  font-size: var(--t-sm);
}
.yens-burger {
  width: 18px; height: 2px; background: var(--yens-ink);
  position: relative; border-radius: 2px;
}
.yens-burger::before,
.yens-burger::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--yens-ink); border-radius: 2px;
}
.yens-burger::before { top: -6px; }
.yens-burger::after  { top: 6px; }

.yens-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--yens-card);
  box-shadow: var(--yens-shadow-lg);
  border-radius: 0 0 var(--yens-r-md) var(--yens-r-md);
  padding: var(--s2);
  z-index: 100;
}
.yens-nav > a,
.yens-cat > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--yens-r-sm);
  text-decoration: none;
  color: var(--yens-ink);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: background .12s ease, color .12s ease;
}
.yens-nav > a:hover,
.yens-cat > summary:hover { background: var(--yens-lilac-soft); color: var(--yens-pink-text); }

/* category dropdown */
.yens-cat { position: relative; }
.yens-cat > summary { justify-content: space-between; gap: 6px; cursor: pointer; }
.yens-cat > summary::after {
  content: "▾"; font-size: .8em; transition: transform .15s ease; opacity: .7;
}
.yens-cat[open] > summary::after { transform: rotate(180deg); }
.yens-cat__panel {
  display: grid;
  gap: 2px;
  padding: 6px 0 0 8px;
}
.yens-cat__panel a {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  border-radius: var(--yens-r-sm);
  text-decoration: none; color: var(--yens-ink-2);
  font-size: var(--t-sm); font-weight: 500;
}
.yens-cat__panel a:hover { background: var(--yens-lilac-soft); color: var(--yens-pink-text); }

/* header actions (cart + account) — always visible */
.yens-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.yens-icon-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--yens-pill);
  text-decoration: none; color: var(--yens-ink);
  font-weight: 700; font-size: var(--t-sm);
  transition: background .12s ease;
}
.yens-icon-link:hover { background: var(--yens-lilac-soft); }
.yens-icon-link.yens-cart { background: var(--yens-ink); color: #fff; }
.yens-icon-link.yens-cart:hover { background: #2c2247; }
.yens-icon-link span[aria-hidden] { font-size: 17px; line-height: 1; }

/* desktop: force nav inline, hide the hamburger */
@media (min-width: 900px) {
  .yens-menu__toggle { display: none; }
  .yens-menu > .yens-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 4px;
  }
  .yens-cat__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    padding: var(--s1);
    background: var(--yens-card);
    box-shadow: var(--yens-shadow-lg);
    border-radius: var(--yens-r-md);
    z-index: 120;
  }
  .yens-cat:not([open]) .yens-cat__panel { display: none; }
  .yens-icon-link__label { display: inline; }
}
@media (max-width: 400px) {
  .yens-icon-link__label { display: none; } /* icons only on tiny screens */
  .yens-icon-link { padding: 0 12px; }
}

/* ---- HERO: lilac→cream gradient + CSS-only floating shapes ---- */
.yens-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--yens-lilac-soft) 0%, var(--yens-page) 48%, var(--yens-cream-2) 100%);
}
.yens-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: center;
  padding-block: clamp(40px, 8vw, 88px);
}
.yens-hero__shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.yens-hero__shapes .shape { position: absolute; display: block; }
.shape--1 {
  width: 320px; height: 320px; right: -80px; top: -70px;
  background: radial-gradient(circle at 30% 30%, rgba(240,96,143,.28), rgba(240,96,143,0) 70%);
  border-radius: 50%;
}
.shape--2 {
  width: 260px; height: 260px; left: -70px; bottom: -80px;
  background: radial-gradient(circle at 60% 40%, rgba(195,177,225,.55), rgba(195,177,225,0) 72%);
  border-radius: 50%;
}
.shape--dot {
  width: 90px; height: 90px; left: 8%; top: 22%;
  border: 3px solid rgba(195,177,225,.6);
  border-radius: 50%;
}
.shape--star { color: rgba(240,96,143,.55); font-size: 26px; line-height: 1; }
.shape.s1 { right: 14%; bottom: 18%; font-size: 34px; color: rgba(201,37,106,.4); }
.shape.s2 { left: 42%; top: 12%; }
.yens-hero__shapes .float { animation: none; }

.yens-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 var(--s2);
  padding: 6px 14px;
  border-radius: var(--yens-pill);
  background: rgba(255,255,255,.7);
  box-shadow: var(--yens-shadow);
  color: var(--yens-pink-text);
  font-weight: 700;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.yens-hero__title {
  margin: 0 0 var(--s3);
  font-size: clamp(2rem, 6vw, var(--t-2xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--yens-ink);
}
.yens-hero__title em {
  font-style: normal;
  color: var(--yens-pink-text);
  position: relative;
  white-space: nowrap;
  isolation: isolate; /* Safari: keeps the negative-z underline visible */
}
.yens-hero__title em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6%;
  height: .32em;
  background: rgba(240,96,143,.28);
  border-radius: var(--yens-pill);
  z-index: -1;
}
.yens-hero__sub {
  margin: 0 0 var(--s4);
  max-width: 46ch;
  font-size: var(--t-md);
  color: var(--yens-ink-2);
}
.yens-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* chunky rounded-full CTA — the ONE bold pink accent */
.yens-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 54px;
  padding: 16px 34px;
  border-radius: var(--yens-pill);
  background: var(--yens-pink-cta);
  color: #ffffff;
  font-weight: 800;
  font-size: var(--t-md);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(201,37,106,.30);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.yens-cta:hover {
  background: var(--yens-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(201,37,106,.38);
}
.yens-cta:active { transform: translateY(0); }
.yens-cta--ghost {
  background: transparent;
  color: var(--yens-ink);
  border: 2px solid var(--yens-ink);
  box-shadow: none;
}
.yens-cta--ghost:hover { background: var(--yens-ink); color: #fff; transform: translateY(-2px); }

.yens-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin: var(--s4) 0 0;
  padding: 0;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--yens-ink);
}
.yens-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }

/* hero product visual (real product, real price — ship-grade rule 2) */
.yens-hero__art {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.yens-pcard {
  position: relative;
  width: min(320px, 82vw);
  background: var(--yens-card);
  border-radius: var(--yens-r-lg);
  padding: var(--s3);
  box-shadow: var(--yens-shadow-lg);
}
.yens-pcard__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--yens-r-md);
  background: linear-gradient(150deg, var(--yens-lilac-soft), var(--yens-cream-2));
  margin-bottom: var(--s2);
}
.yens-pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.yens-chip img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.yens-pcard__badge {
  position: absolute;
  top: 18px; left: 18px;
  padding: 5px 13px;
  border-radius: var(--yens-pill);
  background: var(--yens-ink);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 800;
}
.yens-pcard__title {
  margin: 0 0 6px;
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--yens-ink);
  line-height: 1.35;
}
.yens-pcard__price {
  margin: 0;
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--yens-pink-text);
}
.yens-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: var(--yens-pill);
  background: rgba(255,255,255,.95);
  box-shadow: var(--yens-shadow);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--yens-ink);
  white-space: nowrap;
}
.yens-chip b { color: var(--yens-pink-text); font-weight: 800; }
.yens-chip--a { top: 6%; right: -2%; }
.yens-chip--b { bottom: 4%; left: -4%; }
/* ship-grade rule 4: decorative float animation CUT (was also the iOS scroll-jank source) */
.float { animation: none; }

@media (min-width: 900px) {
  .yens-hero__inner {
    grid-template-columns: 1.05fr .95fr;
    gap: var(--s6);
  }
}

/* ---- Section heading (shared) ---- */
.yens-section { padding-block: var(--s5) var(--s2); } /* tight bottom: heading sits near its grid */
.yens-section-head { max-width: 640px; margin: 0 auto var(--s5); text-align: center; }
.yens-section > .yens-section-head { margin-bottom: 0; }
.yens-section-head .yens-eyebrow { box-shadow: none; background: rgba(195,177,225,.28); }
.yens-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, var(--t-xl));
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--yens-ink);
}
.yens-section-sub { margin: 0; font-size: var(--t-md); color: var(--yens-ink-2); }

/* the shortcode product grids get the same rhythm + width.
   Scoped to the shortcode wrapper only — a bare .woocommerce rule
   also hits page-level wrappers on cart/checkout (double gutters). */
.wp-block-shortcode > .woocommerce,
.woocommerce.columns-4 {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--s2) clamp(16px, 5vw, 40px) var(--s5);
}

/* ---- BENTO categories ---- */
.yens-bento { padding-block: var(--s6) var(--s5); }
.yens-bento__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
.yens-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: var(--s3);
  border-radius: var(--yens-r-lg);
  text-decoration: none;
  color: var(--yens-ink);
  overflow: hidden;
  box-shadow: var(--yens-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.yens-tile:hover { transform: translateY(-4px); box-shadow: var(--yens-shadow-lg); }
.yens-tile__emoji {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(58,45,92,.18));
}
.yens-tile__name { font-size: var(--t-lg); font-weight: 800; line-height: 1.2; }
.yens-tile__cta {
  margin-top: 6px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--yens-ink);
  opacity: .8;
}
.yens-tile:hover .yens-tile__cta { text-decoration: underline; opacity: 1; }

/* distinct pastel surfaces (lilac / cream tints — pink stays accent) */
.yens-tile--fashion    { background: linear-gradient(150deg, #d9c9f2, var(--yens-lilac)); }
.yens-tile--mainan     { background: linear-gradient(150deg, var(--yens-cream-2), #fbe6b4); }
.yens-tile--perawatan  { background: linear-gradient(150deg, #fbe0ec, #f6cbdd); }
.yens-tile--makan      { background: linear-gradient(150deg, var(--yens-lilac-soft), #d4c4ef); }
.yens-tile--susu       { background: linear-gradient(150deg, #fbead0, #f6dca6); }
.yens-tile--perlengkapan { background: linear-gradient(150deg, var(--yens-lilac), var(--yens-lilac-deep)); }
.yens-tile--perlengkapan .yens-tile__cta { opacity: .95; }

/* bento sizing: fashion is the big feature tile */
.yens-tile--fashion { grid-column: span 2; min-height: 190px; }

@media (min-width: 760px) {
  .yens-bento__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; }
  .yens-tile { min-height: 0; }
  .yens-tile--fashion { grid-column: span 2; grid-row: span 2; }
  .yens-tile--mainan  { grid-column: span 2; }
  .yens-tile--susu    { grid-column: span 2; }
  .yens-tile--perlengkapan { grid-column: span 2; }
}

/* ---- TRUST strip ---- */
.yens-trust {
  background: linear-gradient(150deg, var(--yens-lilac-soft), var(--yens-cream-2));
  padding-block: var(--s6);
  margin-top: var(--s5);
}
.yens-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.yens-trust__item {
  background: var(--yens-card);
  border-radius: var(--yens-r-md);
  padding: var(--s3);
  box-shadow: var(--yens-shadow);
}
.yens-trust__item .ic {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 12px;
  border-radius: var(--yens-pill);
  background: linear-gradient(150deg, var(--yens-lilac-soft), var(--yens-lilac));
  font-size: 24px;
}
.yens-trust__item h3 { margin: 0 0 5px; font-size: var(--t-md); font-weight: 800; color: var(--yens-ink); }
.yens-trust__item p  { margin: 0; font-size: var(--t-sm); color: var(--yens-ink-2); }
@media (min-width: 620px) { .yens-trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .yens-trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- FOOTER ---- */
.yens-footer {
  background: var(--yens-ink);
  color: #ece6f6;
  margin-top: 0;
}
.yens-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  padding-block: var(--s6) var(--s5);
}
.yens-footer__brand .yens-brand { color: #fff; }
.yens-footer__brand .yens-brand__name em { color: var(--yens-pink); }
.yens-footer__brand p { margin: var(--s2) 0 0; font-size: var(--t-sm); color: #c8bede; max-width: 42ch; }
.yens-footer__brand .yens-pay {
  margin-top: var(--s2);
  font-weight: 700; color: #fff;
}
.yens-footer__col h3 {
  margin: 0 0 var(--s2);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #b6a8d6;
}
.yens-footer__col a {
  display: block;
  padding: 8px 0;
  min-height: 40px;
  color: #ece6f6;
  text-decoration: none;
  font-size: var(--t-sm);
  transition: color .12s ease, padding-inline-start .12s ease;
}
.yens-footer__col a:hover { color: var(--yens-pink); padding-inline-start: 5px; }
.yens-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  justify-content: space-between;
  padding-block: var(--s3);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--t-xs);
  color: #b6a8d6;
}
.yens-footer__base p { margin: 0; }
@media (min-width: 760px) {
  .yens-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
}

/* ============================================================
   Mobile-first cart button width (preserved)
   ============================================================ */
@media (max-width: 480px) {
  .woocommerce ul.products li.product .button,
  .wc-block-components-button { width: 100%; text-align: center; }
}

/* ============================================================
   MOBILE FIXES (iOS) — overlap, overflow, jank, zoom
   ============================================================ */
@media (max-width: 899px) {
  /* hero chips: static below the card — they overlapped the card text */
  .yens-hero__art { min-height: 0; grid-template-rows: auto auto; gap: var(--s2); }
  .yens-chip { position: static; max-width: 100%; white-space: normal; }
  .yens-chip--a, .yens-chip--b { inset: auto; }

  /* header must fit 320–430px: icon-only controls, tight gaps */
  .yens-header__inner { gap: 8px; }
  .yens-menu { margin-inline-start: 0; }
  .yens-brand { font-size: var(--t-md); }
  .yens-brand__mark { width: 34px; height: 34px; font-size: 18px; }
  .yens-menu__toggle,
  .yens-icon-link {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .yens-menu__toggle { gap: 0; font-size: 0; } /* "Menu" is a text node — font-size:0 hides it */
  .yens-icon-link__label { display: none; }

  /* backdrop-filter blur janks iOS scrolling — solid header on mobile */
  .yens-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* open nav must scroll in landscape (it is ~420px tall) */
  .yens-nav {
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  [id] { scroll-margin-top: 84px; }

  /* iOS auto-zooms focused inputs under 16px */
  input, select, textarea,
  .select2-search__field,
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce .quantity .qty { font-size: 16px; }

  /* long hero em must be allowed to wrap */
  .yens-hero__title em { white-space: normal; }
}
@media (max-width: 600px) {
  /* the 3-line promo would permanently eat ~120px of sticky viewport */
  .yens-promo { display: none; }
  [id] { scroll-margin-top: 80px; }
}
@media (max-width: 480px) {
  .yens-tile { min-width: 0; padding: 64px 16px 16px; }
  .yens-tile__name { font-size: var(--t-md); overflow-wrap: anywhere; }
  .woocommerce ul.products li.product .button {
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 420px) {
  .yens-brand__name { display: none; } /* mark-only brand on the smallest phones */
}
@media (max-width: 360px) {
  .yens-bento__grid { grid-template-columns: 1fr; }
  .yens-tile--fashion { grid-column: auto; }
}

/* transform hovers only where a real pointer exists (no sticky-hover on touch) */
@media (hover: none), (pointer: coarse) {
  .woocommerce ul.products li.product:hover,
  .yens-cta:hover,
  .yens-cta--ghost:hover,
  .yens-tile:hover { transform: none; }
}

/* logged-in admin bar sits above the sticky topbar */
.admin-bar .yens-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .yens-topbar { top: 46px; } }

/* ============================================================
   BRAND MOTIF — scalloped "baby blanket" edges (ownable device)
   ============================================================ */
.yens-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 14px;
  z-index: 3;
  background: radial-gradient(circle at 14px 18px, var(--yens-page) 13px, transparent 14px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.yens-trust::before {
  content: "";
  display: block;
  height: 14px;
  margin-top: -1px;
  background: radial-gradient(circle at 14px -4px, var(--yens-page) 13px, transparent 14px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
}

/* ============================================================
   Reduced motion — kill all decorative movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
