/* ==========================================================================
   SAFE HANDS ESSENTIALS - store design system (third identity)
   Distinct from the Safe Hands site (blue/terracotta/cards) AND the hub
   (paper/serif/editorial). Retail: fresh teal, white, pill buttons, big
   friendly tap targets, rounded-2xl cards. Light mode only. No frameworks.
   ========================================================================== */

:root {
  --teal:        #0e5e5a;   /* primary brand */
  --teal-deep:   #0a4441;   /* hover / active */
  --teal-bright: #15837d;   /* secondary surfaces, gradients */
  --aqua:        #eef7f6;   /* tinted background sections */
  --aqua-deep:   #d7ecea;   /* tile gradients, borders */
  --char:        #22302e;   /* text */
  --char-soft:   #51625f;   /* secondary text (4.5:1 on white & aqua) */
  --mari:        #8a5800;   /* marigold accent, badges (AA on white/aqua) */
  --mari-soft:   #fdf3e0;   /* badge background */
  --line:        #dbe5e3;   /* hairlines */
  --white:       #ffffff;
  --radius:      20px;
  --radius-pill: 999px;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --shadow-card: 0 1px 2px rgba(14, 94, 90, 0.06), 0 6px 18px rgba(14, 94, 90, 0.07);
  --shadow-lift: 0 2px 4px rgba(14, 94, 90, 0.08), 0 12px 28px rgba(14, 94, 90, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light only; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--mari); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--char); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- header ---------- */
.shop-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.shop-header-inner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0;
}
.shop-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.22rem; letter-spacing: -0.02em;
  color: var(--char); text-decoration: none; line-height: 1.1;
  display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0;
}
.shop-logo .mark {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; font-weight: 800;
}
.shop-logo small {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--char-soft);
}
.shop-nav { display: flex; gap: 0.2rem; flex-wrap: wrap; margin-left: auto; }
.shop-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--char-soft); text-decoration: none;
  padding: 0.55rem 0.85rem; border-radius: var(--radius-pill);
  min-height: 44px; display: inline-flex; align-items: center;
}
.shop-nav a:hover, .shop-nav a[aria-current="true"] { background: var(--aqua); color: var(--teal-deep); }

.cart-btn {
  position: relative; margin-left: 0.4rem; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1.15rem; border-radius: var(--radius-pill);
  min-height: 44px;
}
.cart-btn:hover { background: var(--teal-deep); color: #fff; }
.cart-count {
  background: #fff; color: var(--teal-deep);
  font-size: 0.78rem; font-weight: 800; line-height: 1;
  border-radius: var(--radius-pill); padding: 0.28rem 0.55rem; min-width: 1.5em;
  text-align: center;
}

/* ---------- hero ---------- */
.shop-hero {
  background: linear-gradient(160deg, var(--aqua) 0%, #ffffff 70%);
  padding: 3rem 0 2.6rem;
}
.shop-hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.4rem; align-items: center;
}
.hero-img {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5; max-height: 430px;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
@media (max-width: 760px) {
  .shop-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-img { aspect-ratio: 16 / 10; max-height: 240px; order: -1; }
}
.shop-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.12;
  letter-spacing: -0.025em; margin: 0 0 0.9rem; max-width: 22ch;
}
.shop-hero h1 span { color: var(--teal); }
.shop-hero p { max-width: 56ch; color: var(--char-soft); font-size: 1.12rem; margin: 0 0 1.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 0.4rem; list-style: none; }
.hero-points li {
  background: #fff; border: 1px solid var(--aqua-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  color: var(--teal-deep);
  padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-points li::before { content: "✓"; font-weight: 800; color: var(--teal-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-pill); cursor: pointer; text-decoration: none;
  padding: 0.78rem 1.6rem; min-height: 48px; border: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: #fff; color: var(--teal-deep);
  border: 2px solid var(--aqua-deep);
}
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-deep); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- sections ---------- */
.shop-section { padding: 2.6rem 0 1.2rem; }
.shop-section.tint { background: var(--aqua); border-radius: 0; padding: 2.6rem 0; }
.section-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem); letter-spacing: -0.02em; margin: 0;
}
.section-head .sub { color: var(--char-soft); font-size: 0.95rem; }
.section-head .all-link { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }

/* ---------- category tiles (photo cards) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--char);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.cat-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--char); }
.cat-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--aqua); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.cat-tile:hover .cat-photo img { transform: scale(1.04); }
.cat-photo .cat-ico {
  position: absolute; left: 0.8rem; bottom: 0.8rem;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(14, 94, 90, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.cat-photo .cat-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.cat-tile-body { padding: 1rem 1.2rem 1.1rem; }
.cat-tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin: 0 0 0.3rem; }
.cat-tile p { color: var(--char-soft); font-size: 0.9rem; margin: 0 0 0.5rem; }
.cat-tile .cat-n { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--teal); }

/* category page banner */
.cat-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-top: 1rem; aspect-ratio: 16 / 5; background: var(--aqua);
}
@media (max-width: 640px) { .cat-banner { aspect-ratio: 16 / 9; } }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-banner .cat-banner-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(180deg, rgba(20,30,28,0) 35%, rgba(20,30,28,0.72));
}
.cat-banner h2 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem); margin: 0; letter-spacing: -0.02em;
}
.cat-banner .sub { color: rgba(255,255,255,0.92); font-size: 0.95rem; }

/* representative-image note */
.img-note { font-size: 0.78rem; color: var(--char-soft); margin-top: 0.45rem; }
.prod-hero-art.photo { background: none; }
.prod-hero-art.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.prod-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.prod-art {
  height: 118px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--aqua), var(--aqua-deep));
}
.prod-art svg { width: 54px; height: 54px; stroke: var(--teal); fill: none; stroke-width: 1.6; opacity: 0.9; }
.prod-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; margin: 0 0 0.35rem; }
.prod-body h3 a { color: var(--char); text-decoration: none; }
.prod-body h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.prod-body p { color: var(--char-soft); font-size: 0.88rem; margin: 0 0 0.75rem; flex: 1; }
.claim-badge {
  align-self: flex-start;
  background: var(--mari-soft); color: var(--mari);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: 0.75rem;
}
.prod-actions { display: flex; gap: 0.5rem; }
.prod-actions .btn { padding: 0.55rem 1rem; min-height: 44px; font-size: 0.9rem; flex: 1; }

/* ---------- product page ---------- */
.prod-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; padding: 2.2rem 0 1rem; }
.prod-hero-art {
  border-radius: var(--radius); min-height: 260px;
  background: linear-gradient(150deg, var(--aqua), var(--aqua-deep));
  display: flex; align-items: center; justify-content: center;
}
.prod-hero-art svg { width: 110px; height: 110px; stroke: var(--teal); fill: none; stroke-width: 1.4; }
.prod-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.02em;
  line-height: 1.15; margin: 0.2rem 0 0.7rem;
}
.prod-hero .lede { color: var(--char-soft); font-size: 1.08rem; margin: 0 0 1.1rem; }
.qty-row { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; flex-wrap: wrap; }
.qty-ctl {
  display: inline-flex; align-items: center; border: 2px solid var(--aqua-deep);
  border-radius: var(--radius-pill); overflow: hidden;
}
.qty-ctl button {
  width: 46px; height: 46px; border: none; background: #fff;
  font-size: 1.3rem; font-weight: 700; color: var(--teal-deep); cursor: pointer;
}
.qty-ctl button:hover { background: var(--aqua); }
.qty-ctl input {
  width: 52px; height: 46px; border: none; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--char);
}
.qty-ctl input::-webkit-outer-spin-button, .qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-ctl input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.price-note {
  background: var(--aqua); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 1rem 0; font-size: 0.95rem; color: var(--char);
}
.price-note strong { font-family: var(--font-display); }

.prod-details { max-width: 46rem; padding-bottom: 1rem; }
.prod-details h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 1.8rem 0 0.6rem; }
.prod-details ul { padding-left: 1.3rem; }
.prod-details li { margin-bottom: 0.4rem; color: var(--char); }
.prod-details li::marker { color: var(--teal-bright); }
.prod-details p { color: var(--char); }

/* ---------- toast (added-to-order feedback) ---------- */
.shop-toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(20px);
  background: var(--char); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300; box-shadow: var(--shadow-lift); max-width: 92vw; text-align: center;
}
.shop-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- cart / order page ---------- */
.cart-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
.cart-item .ci-name { font-family: var(--font-display); font-weight: 700; flex: 1; min-width: 0; }
.cart-item .ci-name small { display: block; font-weight: 500; color: var(--char-soft); font-size: 0.8rem; }
.ci-remove {
  background: none; border: none; color: var(--char-soft); cursor: pointer;
  font-size: 0.85rem; text-decoration: underline; padding: 0.5rem; min-height: 44px;
}
.ci-remove:hover { color: #a33; }
.cart-empty {
  text-align: center; padding: 3rem 1rem; color: var(--char-soft);
  background: var(--aqua); border-radius: var(--radius);
}

.order-form { max-width: 40rem; }
.order-form .field { margin-bottom: 1.05rem; }
.order-form label {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.92rem; margin-bottom: 0.35rem;
}
.order-form label .opt { font-weight: 500; color: var(--char-soft); }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 0.78rem 1rem; font-size: 1rem; font-family: var(--font-body);
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--char);
  min-height: 48px;
}
.order-form textarea { min-height: 90px; resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none; border-color: var(--teal-bright);
}
.form-error { color: #a33; font-size: 0.88rem; margin-top: 0.3rem; display: none; }
.field.invalid input, .field.invalid select { border-color: #c66; }
.field.invalid .form-error { display: block; }

.order-success {
  background: var(--aqua); border: 2px solid var(--aqua-deep); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center;
}
.order-success h2 { font-family: var(--font-display); font-weight: 800; margin: 0 0 0.6rem; }
.order-success p { color: var(--char); max-width: 46ch; margin: 0.4rem auto; }

/* ---------- steps strip (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--aqua-deep); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.1rem; counter-increment: step; position: relative;
}
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--font-display); font-weight: 800; margin-bottom: 0.7rem;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0 0 0.3rem; }
.step p { color: var(--char-soft); font-size: 0.9rem; margin: 0; }

/* ---------- info/trust content ---------- */
.info-body { max-width: 46rem; padding: 0.4rem 0 2rem; }
.info-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 1.9rem 0 0.6rem; }
.info-body li { margin-bottom: 0.45rem; }
.info-body li::marker { color: var(--teal-bright); }

.crumbs { font-size: 0.85rem; color: var(--char-soft); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--line); }
.crumbs a { color: var(--char-soft); }
.crumbs a:hover { color: var(--teal); }

/* ---------- footer ---------- */
.shop-footer { margin-top: 3rem; background: var(--char); color: #cfdedb; }
.shop-footer-inner { padding: 2rem 0 2.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.shop-footer h4 { font-family: var(--font-display); color: #fff; font-size: 0.95rem; margin: 0 0 0.6rem; }
.shop-footer ul { list-style: none; margin: 0; padding: 0; }
.shop-footer li { margin-bottom: 0.4rem; }
.shop-footer a { color: #cfdedb; text-decoration: none; font-size: 0.92rem; }
.shop-footer a:hover { color: #fff; text-decoration: underline; }
.shop-footer .fineprint { font-size: 0.78rem; color: #9fb5b1; margin-top: 0.8rem; }
.shop-footer .site-version { color: #9fb5b1 !important; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .shop-nav { display: none; }            /* nav lives in footer on phones; cart stays */
  .prod-hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .prod-hero-art { min-height: 180px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .ci-name { flex-basis: 100%; }
}

/* ==========================================================================
   MOTION SYSTEM - transforms/opacity only; all disabled under reduced motion
   ========================================================================== */

/* scroll reveals (class applied by shop.js via IntersectionObserver) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* hero entrance */
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
.shop-hero h1 { animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.shop-hero p { animation: heroRise 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
.shop-hero .hero-points { animation: heroRise 0.7s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
.shop-hero .hero-ctas { animation: heroRise 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-img { animation: heroPhoto 0.9s 0.1s ease both; }

/* header gains depth once the page scrolls */
.shop-header { transition: box-shadow 0.25s ease; }
.shop-header.scrolled { box-shadow: 0 4px 18px rgba(14, 94, 90, 0.12); }

/* cart badge pop */
@keyframes badgePop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-count.pop { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cartNudge { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }
.cart-btn.nudge { animation: cartNudge 0.45s ease; }

/* fly-to-cart dot */
.fly-dot {
  position: fixed; z-index: 400; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 2px 8px rgba(14, 94, 90, 0.45);
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.65s ease;
}

/* add-button confirmation state */
.btn[data-add].added { background: var(--moss, #1f5c45); background: var(--teal-deep); }
.btn[data-add].added::after { content: " ✓"; }

/* button press */
.btn:active { transform: scale(0.97); }

/* product card image zoom to match cat tiles */
.prod-art { overflow: hidden; }
.prod-art svg { transition: transform 0.3s ease; }
.prod-card:hover .prod-art svg { transform: scale(1.12); }

/* real product photos: white-background supplier shots, contained not cropped */
.prod-art.photo { background: #fff; border-bottom: 1px solid var(--line); height: 158px; }
.prod-art.photo img {
  width: 100%; height: 100%; object-fit: contain; padding: 0.6rem;
  transition: transform 0.3s ease;
}
.prod-card:hover .prod-art.photo img { transform: scale(1.06); }
.prod-hero-art.photo.product { background: #fff; border: 1px solid var(--line); }
.prod-hero-art.photo.product img { object-fit: contain; padding: 1.2rem; }

/* qty bump */
@keyframes qtyBump { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.qty-ctl input.bump { animation: qtyBump 0.25s ease; }

/* trust ticker strip */
.ticker {
  overflow: hidden; background: var(--char); color: #e8f1ef;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  padding: 0.55rem 0; white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 3rem; padding-left: 1rem; animation: tickerMove 28s linear infinite; will-change: transform; }
.ticker span { display: inline-flex; align-items: center; gap: 0.55rem; }
.ticker span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); flex-shrink: 0; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* order success: drawn check */
.success-check { width: 76px; height: 76px; margin: 0 auto 0.8rem; display: block; }
.success-check circle {
  fill: none; stroke: var(--teal); stroke-width: 2.5;
  stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: drawRing 0.7s ease forwards;
}
.success-check path {
  fill: none; stroke: var(--teal); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: drawTick 0.45s 0.55s ease forwards;
}
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .success-check circle, .success-check path { stroke-dashoffset: 0; animation: none; }
}

/* cart item exit */
.cart-item { transition: opacity 0.3s ease, transform 0.3s ease; }
.cart-item.leaving { opacity: 0; transform: translateX(26px); }

@media print {
  .shop-header, .shop-footer, .prod-actions, .cart-btn, .ticker { display: none !important; }
}

/* price chips */
.price-chip {
  display: inline-flex; align-items: baseline; gap: 0.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--teal-deep); margin-bottom: 0.6rem;
}
.price-chip small { font-size: 0.68rem; font-weight: 600; color: var(--char-soft); }
.price-chip.quote {
  font-size: 0.78rem; font-weight: 700; color: var(--char-soft);
  background: var(--aqua); padding: 0.28rem 0.7rem; border-radius: var(--radius-pill);
}
.prod-hero .price-chip { font-size: 1.5rem; margin-bottom: 0; }
.prod-hero .price-chip.quote { font-size: 0.85rem; }

/* ==========================================================================
   3D LAYER - tilt physics, depth, ambient float (composite-only transforms)
   ========================================================================== */

/* tilt scene: cards lean toward the pointer with layered depth */
.tilt-scene { perspective: 900px; }
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tilt.tilting { transition: box-shadow 0.18s ease; }
.tilt .prod-art, .tilt .cat-photo { transform: translateZ(26px); }
.tilt .prod-body, .tilt .cat-tile-body { transform: translateZ(14px); }
.tilt .prod-actions .btn { transform: translateZ(8px); }

/* moving light sheen */
.tilt::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--shx, 50%) var(--shy, 50%),
              rgba(255,255,255,0.42), rgba(255,255,255,0) 55%);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; z-index: 3;
}
.tilt.tilting::after { opacity: 1; }
.prod-card, .cat-tile { position: relative; }

/* deeper lift while tilting */
.prod-card.tilting, .cat-tile.tilting {
  box-shadow: 0 6px 14px rgba(14, 94, 90, 0.12), 0 28px 60px rgba(14, 94, 90, 0.22);
}

/* hero: floating 3D composition */
.hero-scene { perspective: 1100px; position: relative; }
.hero-img {
  transform-style: preserve-3d;
  animation: heroPhoto 0.9s 0.1s ease both, heroFloat 7s 1.2s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
  25%      { transform: rotateX(1.6deg) rotateY(-2.2deg) translateY(-7px); }
  60%      { transform: rotateX(-1.2deg) rotateY(1.8deg) translateY(4px); }
}

/* ambient orbs behind the hero */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.9), var(--aqua-deep) 58%, rgba(14,94,90,0.18));
  box-shadow: inset -10px -14px 28px rgba(14, 94, 90, 0.18), 0 18px 38px rgba(14, 94, 90, 0.14);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 { width: 120px; height: 120px; top: -34px; right: -26px; }
.orb-2 { width: 64px; height: 64px; bottom: 8%; left: -38px; animation-delay: -3s; animation-duration: 11s; }
.orb-3 { width: 38px; height: 38px; top: 18%; left: -20px; animation-delay: -6s; animation-duration: 8s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  40%      { transform: translateY(-16px) translateX(6px) scale(1.04); }
  75%      { transform: translateY(8px) translateX(-5px) scale(0.97); }
}

/* 3D press on primary buttons */
.btn-primary {
  box-shadow: 0 4px 0 var(--teal-deep), 0 10px 18px rgba(14, 94, 90, 0.25);
  transform: translateY(-2px);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--teal-deep), 0 14px 24px rgba(14, 94, 90, 0.3); }
.btn-primary:active { transform: translateY(1px) scale(0.99); box-shadow: 0 1px 0 var(--teal-deep), 0 4px 8px rgba(14, 94, 90, 0.2); }

/* logo mark: slow 3D coin spin on hover */
.shop-logo .mark { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.shop-logo:hover .mark { transform: rotateY(360deg); }

@media (prefers-reduced-motion: reduce) {
  .hero-img, .orb { animation: none !important; }
  .tilt, .tilt .prod-art, .tilt .cat-photo, .tilt .prod-body, .tilt .cat-tile-body { transform: none !important; }
  .tilt::after { display: none; }
}

/* 3D fixes: clip ambient layer, no orbs on small screens */
.shop-hero { overflow: hidden; }
@media (max-width: 760px) { .orb { display: none; } }
