/* ==========================================================================
   Our Bunny — pages.css
   Styles scoped to individual screens.
   ========================================================================== */

/* ============================================================ home: cats == */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat-tile {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-tile img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform var(--t-slow); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-label {
  position: absolute;
  left: .8rem; right: .8rem; bottom: .8rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.cat-label strong { font-family: var(--font-display); font-size: 1rem; }
.cat-label span { font-size: .75rem; color: var(--muted); display: block; }
.cat-label .ico { color: var(--coral); transition: transform var(--t-fast); }
.cat-tile:hover .cat-label .ico { transform: translateX(4px); }

/* ========================================================= home: flash ==== */
.flash {
  background: linear-gradient(125deg, var(--blush-soft), var(--peach-soft) 60%, var(--sky-soft));
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.flash::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(201,169,141,.5);
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
}
.flash-copy { position: relative; }
.flash h2 { margin: .5rem 0 .7rem; }

.countdown { display: flex; gap: .6rem; margin: 1.4rem 0; }
.cd-cell {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: .7rem .55rem;
  min-width: 68px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.cd-cell b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--coral); }
.cd-cell span { font-family: var(--font-util); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flash-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }

/* ========================================================= home: reviews == */
.review-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.6rem; right: 1.6rem;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--blush) 0 8px, transparent 8px 16px);
}
.review-card p { margin: .9rem 0 1.2rem; font-size: .96rem; }
.reviewer { display: flex; align-items: center; gap: .8rem; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--sky);
  flex: none;
}
.reviewer strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.reviewer span { font-size: .78rem; color: var(--muted); }

/* ======================================================= home: instagram == */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.insta-cell {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-2);
}
.insta-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.insta-cell:hover img { transform: scale(1.09); }
.insta-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(217,140,140,.55);  /* dusty rose with opacity */
  opacity: 0;
  transition: opacity var(--t);
}
.insta-cell:hover::after { opacity: 1; }
.insta-cell .ico {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t);
}
.insta-cell:hover .ico { opacity: 1; }

/* ====================================================== home: newsletter == */
.newsletter {
  background: linear-gradient(140deg, var(--sky-soft), var(--sage-soft));
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/patterns/hearts.svg") repeat;
  opacity: .5;
}
.newsletter > * { position: relative; }
.newsletter p { margin-inline: auto; max-width: 46ch; }
.news-form {
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin: 1.7rem auto 0;
}
.news-form .input { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ===================================================== home: brand story == */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-media { position: relative; }
.story-media img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.story-media::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px dashed var(--peach);
  border-radius: calc(var(--r-xl) + 12px);
  opacity: .55;
  pointer-events: none;
}
.story-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.8rem; }
.story-stats b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--coral); line-height: 1; }
.story-stats span { font-family: var(--font-util); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.value-list { display: grid; gap: .8rem; margin-top: 1.5rem; }
.value-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-soft); }
.value-list .ico { color: var(--sage); flex: none; margin-top: 2px; }

/* ================================================================= shop === */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 2.2rem; align-items: start; }
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.filters-head h3 { font-size: 1.1rem; }

.filter-group { border-bottom: 1px dashed var(--border); padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.filter-group:last-of-type { border-bottom: 0; margin-bottom: .4rem; padding-bottom: 0; }
.filter-group h4 {
  font-family: var(--font-util);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.filter-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

/* Pill filters ------------------------------------------------------------
   Replaces the old checkbox lists. The input stays in the DOM (so the
   existing change-delegation in shop.js still works and it remains
   keyboard-reachable) but is visually hidden behind the pill. */
.chip-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.chip-filter input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}
.chip-filter .chip-ico { display: inline-flex; color: var(--muted); transition: color var(--t-fast); }
.chip-filter .chip-ico .ico { width: 16px; height: 16px; }
.chip-filter:hover { border-color: var(--coral); color: var(--coral); }
.chip-filter:hover .chip-ico { color: var(--coral); }
.chip-filter:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--sky-soft); }
.chip-filter:has(input:checked) {
  border-color: var(--coral);
  background: var(--blush-soft);
  color: var(--coral);
}
.chip-filter:has(input:checked) .chip-ico { color: var(--coral); }

/* Fallback for browsers without :has() — JS mirrors the state onto the label */
.chip-filter.is-on {
  border-color: var(--coral);
  background: var(--blush-soft);
  color: var(--coral);
}
.chip-filter.is-on .chip-ico { color: var(--coral); }

/* Sort control ------------------------------------------------------------
   The old version was a bare browser <select> with a system arrow, which
   read as unstyled next to everything else. This is a soft pill with our
   own chevron and a proper focus ring. */
.sort-field { display: inline-flex; align-items: center; gap: .6rem; }
.sort-field > label {
  font-family: var(--font-util);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.sort-select { position: relative; display: inline-flex; align-items: center; }
.sort-select select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 185px;
  padding: .68rem 2.6rem .68rem 1.05rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.sort-select select:hover { border-color: var(--coral); }
.sort-select select:focus-visible {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px var(--blush-soft);
}
.sort-select > .ico {
  position: absolute;
  right: 1rem;
  pointer-events: none;
  color: var(--muted);
  width: 16px; height: 16px;
}
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.5rem;
}
.shop-bar .count-text { font-size: .9rem; color: var(--muted); }
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.filter-toggle { display: none; }

/* ====================================================== product details === */
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pd-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}
.pd-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pd-stage.zoomed img { transform: scale(2); }
.pd-zoom-hint {
  position: absolute;
  bottom: .8rem; right: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: var(--r-pill);
  padding: .4rem .8rem;
  font-size: .75rem;
  font-family: var(--font-util);
  color: var(--text-soft);
}
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.pd-thumb {
  width: 78px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--cream-2);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-3px); }
.pd-thumb.on { border-color: var(--coral); }

.pd-info h1 { font-size: var(--step-3); margin: .5rem 0 .6rem; }
.pd-price { display: flex; align-items: baseline; gap: .8rem; margin: 1.1rem 0; }
.pd-price .now { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.pd-price .was { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.pd-price .off { color: var(--success); font-weight: 800; font-family: var(--font-util); }
.pd-block { margin-block: 1.35rem; }
.pd-block > h4 {
  font-family: var(--font-util);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.pd-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.pd-actions .btn { flex: 1 1 180px; }
.pd-usp { display: grid; gap: .7rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--border); }
.pd-usp li { display: flex; gap: .65rem; align-items: center; font-size: .9rem; color: var(--text-soft); }
.pd-usp .ico { color: var(--sage); }
.spec-table td { padding: .6rem .2rem; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.spec-table td:first-child { font-family: var(--font-util); font-weight: 700; width: 42%; color: var(--text); }

/* --- quick view ----------------------------------------------------------- */
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qv-media { background: var(--cream-2); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.qv-body { padding: 2rem; }

/* ================================================================= cart === */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: .9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cart-item:hover { border-color: var(--blush); box-shadow: var(--shadow-xs); }
.cart-item.removing { animation: fade-out .3s var(--ease) forwards; }
.cart-item img { width: 96px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); background: var(--cream-2); }
.cart-item h4 { font-size: 1.05rem; }
.cart-item .vari { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.cart-item .line-actions { display: flex; align-items: center; gap: .9rem; margin-top: .7rem; flex-wrap: wrap; }
.link-btn {
  font-family: var(--font-util);
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: color var(--t-fast);
}
.link-btn:hover { color: var(--coral); }
.cart-item .line-total { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; text-align: right; }

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.summary h3 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .93rem; color: var(--text-soft); }
.sum-row b { color: var(--text); font-family: var(--font-util); }
.sum-row.free b { color: var(--success); }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: .8rem;
  padding-top: .9rem;
  border-top: 2px dashed var(--border);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-row .input { padding: .65rem .9rem; }
.ship-bar { height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; margin: .5rem 0 .3rem; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--peach)); border-radius: 99px; transition: width var(--t-slow); }

/* ============================================================= checkout === */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.steps { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .55rem; font-family: var(--font-util); font-size: .85rem; font-weight: 700; color: var(--muted); }
.step i {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  font-style: normal;
  font-size: .8rem;
  border: 2px solid var(--border);
}
.step.on { color: var(--coral); }
.step.on i { background: var(--coral); color: #fff; border-color: var(--coral); }
.step.done i { background: var(--sage); color: #fff; border-color: var(--sage); }
.step-line { width: 42px; height: 2px; background-image: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.panel > h3 { font-size: 1.2rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.panel > h3 .ico { color: var(--coral); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.pay-option {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .7rem;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-option:hover { border-color: var(--blush); }
.pay-option.on { border-color: var(--coral); background: var(--blush-soft); }
.pay-option input { margin-top: 4px; accent-color: var(--coral); width: 18px; height: 18px; flex: none; }
.pay-option strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.pay-option span { font-size: .82rem; color: var(--muted); }
.pay-detail { display: none; padding: 1rem 0 .2rem; }

/* --- scan-to-pay QR ------------------------------------------------------ */
.upi-qr-block { max-width: 260px; }
.upi-qr-or {
  display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; color: var(--muted); margin-bottom: .6rem;
}
.upi-qr-or::before,
.upi-qr-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.upi-qr-img {
  display: block; width: 200px; height: 200px;
  background: #fff; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line);
}
.upi-qr-hint { font-size: .78rem; color: var(--muted); margin: .55rem 0 0; line-height: 1.45; }
.pay-option.on + .pay-detail { display: block; animation: fade-up .3s var(--ease); }
.mini-item { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.mini-item img { width: 52px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); background: var(--cream-2); }
.mini-item strong { display: block; font-size: .9rem; font-family: var(--font-display); }
.mini-item span { font-size: .76rem; color: var(--muted); }
.mini-item b { margin-left: auto; font-family: var(--font-util); }

/* ======================================================== order success === */
.success-hero { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.success-mark {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 1.6rem;
  animation: pop-in .6s var(--ease);
}
.success-mark .ico { width: 52px; height: 52px; color: var(--success); stroke-width: 2.4; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 2rem 0;
}
.order-meta div { background: var(--surface); padding: 1.1rem; text-align: center; }
.order-meta span { font-family: var(--font-util); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; }
.order-meta strong { font-family: var(--font-display); font-size: 1.05rem; }

/* =========================================================== track order = */
.track-line { display: grid; gap: 0; margin-top: 2rem; }
.track-step { display: grid; grid-template-columns: 42px 1fr; gap: 1.1rem; position: relative; padding-bottom: 2rem; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: "";
  position: absolute;
  left: 20px; top: 42px; bottom: 0;
  width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 12px);
}
.track-step:last-child::before { display: none; }
.track-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--muted);
  border: 2px solid var(--border);
  z-index: 1;
}
.track-step.done .track-dot { background: var(--sage); color: #fff; border-color: var(--sage); }
.track-step.now .track-dot { background: var(--coral); color: #fff; border-color: var(--coral); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,140,140,.5); }
  50%      { box-shadow: 0 0 0 12px rgba(217,140,140,0); }
}
.track-step h4 { font-size: 1.05rem; }
.track-step p { font-size: .88rem; margin-top: .2rem; }

/* ================================================================= auth === */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.auth-art {
  position: relative;
  background: linear-gradient(150deg, var(--blush-soft), var(--peach-soft) 55%, var(--sky-soft));
  display: grid;
  place-items: center;
  padding: 2.5rem;
  overflow: hidden;
}
.auth-art::before { content: ""; position: absolute; inset: 0; background: url("../images/patterns/hearts.svg") repeat; opacity: .55; }
.auth-art-inner { position: relative; text-align: center; max-width: 34ch; }
.auth-art img { width: 190px; margin: 0 auto 1.4rem; border-radius: 50%; box-shadow: var(--shadow-md); animation: float-soft 6s var(--ease) infinite; }
.auth-form-wrap { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem); }
.auth-card { width: min(100%, 430px); }
.auth-card h1 { font-size: var(--step-3); margin-bottom: .4rem; }
.auth-sep { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--muted); font-size: .82rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* ============================================================== profile === */
.acct-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.acct-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.acct-user { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--border); margin-bottom: 1rem; }
.acct-user .avatar { width: 74px; height: 74px; font-size: 1.7rem; margin: 0 auto .7rem; background: var(--coral); }
.acct-user strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.acct-user span { font-size: .82rem; color: var(--muted); }
.acct-nav { display: grid; gap: .15rem; }
.acct-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .68rem .8rem;
  border-radius: var(--r-md);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.acct-nav a:hover { background: var(--blush-soft); color: var(--coral); }
.acct-nav a.on { background: var(--coral); color: #fff; }
.acct-nav a.on .ico { color: #fff; }
.acct-nav .ico { color: var(--muted); width: 19px; height: 19px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 1rem;
}
.order-head .oid { font-family: var(--font-display); font-size: 1.05rem; }
.order-head .odate { font-size: .82rem; color: var(--muted); }
.order-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.order-thumbs img { width: 58px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); background: var(--cream-2); }
.addr-card {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem;
  font-size: .9rem;
  color: var(--text-soft);
  position: relative;
}
.addr-card.default { border-color: var(--coral); background: var(--blush-soft); }
.addr-card h5 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .35rem; color: var(--text); }

/* ================================================================ about === */
.video-hero {
  position: relative;
  min-height: clamp(440px, 72vh, 680px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: var(--cream-2);
}
.video-hero video, .video-hero .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-fallback { animation: drift 26s linear infinite alternate; }
@keyframes drift {
  from { transform: scale(1.08) translate(-1%, -1%); }
  to   { transform: scale(1.18) translate(1%, 1%); }
}
.video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,247,238,.35), rgba(255,247,238,.8));
}
.video-copy { position: relative; z-index: 2; padding: 2rem; width: min(100% - 2.5rem, 900px); }
.video-copy h1 { font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.05; }
.video-copy h1 em { font-style: normal; color: var(--coral); }
.video-copy p { margin-top: 1rem; font-size: var(--step-1); margin-inline: auto; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  transition: transform var(--t), box-shadow var(--t);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-ico {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: #3d6b3d;
  margin-bottom: 1rem;
}
.why-card:nth-child(2n) .why-ico { background: var(--blush-soft); color: var(--coral-deep); }
.why-card:nth-child(3n) .why-ico { background: var(--sky-soft); color: var(--blue); }
.why-card h4 { margin-bottom: .4rem; }
.why-card p { font-size: .92rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card {
  border-radius: var(--r-lg);
  padding: 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.mv-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(201,169,141,.45);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.timeline { display: grid; gap: 1.6rem; }
.timeline-item { display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem; align-items: start; }
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  padding-top: .1rem;
}
.timeline-body { border-left: 2px dashed var(--border); padding-left: 1.4rem; padding-bottom: .4rem; }

/* ============================================================== contact === */
.contact-layout { display: grid; grid-template-columns: 1fr 420px; gap: 2.2rem; align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.contact-card ul { display: grid; gap: 1rem; }
.contact-card li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-card .ico-wrap {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blush-soft);
  color: var(--coral);
  flex: none;
}
.contact-card strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.contact-card a, .contact-card span { font-size: .9rem; color: var(--text-soft); }
.contact-card a:hover { color: var(--coral); }
.map-large { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); height: 340px; }
.map-large iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================== policy ==== */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; align-items: start; }
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border-left: 2px dashed var(--border);
  padding-left: 1.1rem;
  display: grid;
  gap: .5rem;
}
.doc-toc a { font-size: .88rem; color: var(--muted); transition: color var(--t-fast), padding-left var(--t-fast); }
.doc-toc a:hover { color: var(--coral); padding-left: .25rem; }
.doc-body h2 { font-size: var(--step-2); margin-top: 2.4rem; margin-bottom: .7rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: var(--step-1); margin-top: 1.6rem; margin-bottom: .5rem; }
.doc-body p, .doc-body li { color: var(--text-soft); }
.doc-body p + p { margin-top: .8rem; }
.doc-body ul { display: grid; gap: .5rem; margin: .8rem 0 0 0; }
.doc-body ul li { display: flex; gap: .6rem; align-items: flex-start; }
.doc-body ul li::before { content: "♥"; color: var(--blush); flex: none; line-height: 1.6; }
.doc-updated { font-size: .84rem; color: var(--muted); font-family: var(--font-util); }

/* ================================================================== 404 === */
.err-page { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.err-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: .9; color: var(--coral); }
.err-code span { display: inline-block; animation: hop 2.4s var(--ease) infinite; }
.err-code span:nth-child(2) { animation-delay: .18s; color: var(--sky); }
.err-code span:nth-child(3) { animation-delay: .36s; }
.err-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.8rem; }

/* ============================================================ faq page ==== */
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.faq-cats .chip.on { background: var(--coral); color: #fff; border-color: var(--coral); }

/* ============================================== recently viewed rail ====== */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: .8rem;
  scroll-snap-type: x mandatory;
}
.rail > * { scroll-snap-align: start; }
/* ===================================================== home: age strip ====
   FirstCry-style circular photo row. Each .age-photo is a fixed 160x160
   circle; swap the placeholder SVGs in assets/images/lifestyle/ for real
   photos of children wearing your clothing whenever they're ready — the
   crop and sizing needs nothing else changed. */
.age-row {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.age-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
  width: 108px;
}
.age-photo {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.age-item:hover .age-photo { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-md); }
.age-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.age-item strong { font-family: var(--font-util); font-size: .82rem; font-weight: 700; text-align: center; }

@media (max-width: 640px) {
  .age-row { gap: 1rem; }
  .age-item { width: 84px; }
  .age-photo, .age-item .age-photo { width: 84px; height: 84px; }
}


/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-alt);
}
.about-hero .eyebrow { justify-content: center; display: flex; color: var(--coral); }
.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: .4rem;
}
.about-hero h1 em { color: var(--coral); font-style: normal; }
.about-hero p {
  max-width: 62ch;
  margin: 1rem auto 0;
  color: var(--text-soft);
}

.about-main { background: var(--bg-alt); padding-top: 0; }
.about-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.about-row-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-row-2 .panel-card { display: flex; flex-direction: column; }
.about-row-2 .founders { flex: 1; }

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.panel-title {
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin-bottom: 1.6rem;
  position: relative;
  padding-bottom: .9rem;
}
.panel-title::after {
  content: "\2665";
  position: absolute;
  left: 50%;
  bottom: -.1rem;
  transform: translateX(-50%);
  font-size: .7rem;
  color: var(--coral);
  background: var(--surface);
  padding: 0 .4rem;
}
.panel-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .35rem;
  width: 72px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--border);
}

/* --- Our Story ----------------------------------------------------------- */
.story-flex { display: flex; align-items: flex-start; gap: 1.2rem; }
.story-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--coral);
}
.story-badge .ico { width: 42px; height: 42px; }
.story-flex p { color: var(--text-soft); font-size: .94rem; }
.story-flex p + p { margin-top: .7rem; }

/* --- Our Values ---------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.value-card { text-align: center; padding: 0 .5rem; position: relative; }
.value-card + .value-card::before {
  content: "";
  position: absolute;
  left: -.25rem; top: 12%;
  width: 1px; height: 76%;
  background: var(--border);
}
.value-ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto .7rem;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--coral);
}
.value-ico .ico { width: 26px; height: 26px; }
.value-card h4 { font-size: .95rem; margin-bottom: .3rem; }
.value-card p { font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* --- Founders ------------------------------------------------------------ */
.founders { display: flex; align-items: center; gap: 1.4rem; }
.founders-photo {
  flex: none;
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blush-soft);
  display: grid;
  place-items: center;
}
.founders-photo img { width: 100%; height: 100%; object-fit: cover; }
.founders blockquote {
  font-style: italic;
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.65;
}
.founders-name { font-weight: 700; margin-top: 1rem; }
.founders-role { font-size: .85rem; color: var(--muted); }

/* --- Watch our story ----------------------------------------------------- */
.about-video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
}
.about-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-video::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
  pointer-events: none;
  z-index: 1;
}
.about-video-copy {
  position: absolute;
  left: 1.2rem; top: 1.1rem;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
  pointer-events: none;
}
.about-video-copy strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.about-video-copy span { font-size: .9rem; }

/* --- trust badge strip --------------------------------------------------- */
.ab-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
  margin-bottom: 2rem;
}
.ab-badge { display: flex; align-items: center; gap: .8rem; position: relative; }
.ab-badge + .ab-badge::before {
  content: "";
  position: absolute;
  left: -.5rem; top: 10%;
  width: 1px; height: 80%;
  background: var(--border);
}
.ab-badge-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blush-soft);
  color: var(--coral);
}
.ab-badge-ico .ico { width: 22px; height: 22px; }
.ab-badge strong { display: block; font-size: .92rem; }
.ab-badge span { font-size: .8rem; color: var(--muted); }

/* --- family / socials ---------------------------------------------------- */
.about-family { text-align: center; padding: 1rem 0 .5rem; }
.about-family h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.about-family h2 em { color: var(--coral); font-style: normal; }
.about-family p { color: var(--text-soft); margin-top: .5rem; }
.family-socials { display: flex; justify-content: center; gap: .9rem; margin-top: 1.2rem; }
.family-socials a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--coral);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.family-socials a:hover {
  transform: translateY(-3px);
  background: var(--coral);
  color: var(--white);
}

@media (max-width: 900px) {
  .about-row, .about-row-2 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .value-card:nth-child(odd) + .value-card::before { display: block; }
  .value-card:nth-child(3)::before { display: none; }
  .ab-badges { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .ab-badge:nth-child(3)::before { display: none; }
  .founders { flex-direction: column; text-align: center; gap: 1rem; }
  .founders blockquote { font-size: .9rem; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-card + .value-card::before { display: none; }
  .ab-badges { grid-template-columns: 1fr; }
  .ab-badge + .ab-badge::before { display: none; }
  .story-flex, .founders { flex-direction: column; text-align: center; }
  .founders blockquote { text-align: left; }
}
