/* Page sections for The Squishy Corner. Mobile-first; desktop at 900px+. */

/* Announcement + header */
.announce {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 9px 16px;
}
.announce strong { color: var(--accent); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  transition: transform 160ms var(--spring);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.logo small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 800; font-size: 0.95rem; padding: 10px 14px; border-radius: var(--radius-pill); }
.nav a:hover { background: var(--surface-tint); }
.cart-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 800;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: #fff;
  font-size: 0.8rem;
  display: inline-grid;
  place-items: center;
}

/* Hero (home) */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); overflow: hidden; }
.hero-inner {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 40px;
  align-items: center;
}
.hero-copy .badge { margin-bottom: 14px; }
.hero-copy h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero-copy h1 .squish-word { position: relative; z-index: 0; white-space: nowrap; }
.hero-copy h1 .squish-word::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 2px;
  height: 12px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 8px;
  z-index: -1;
}
.hero-copy p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 20px; max-width: 34ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-proof { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.hero-proof .faces { display: flex; }
.hero-proof .faces span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
}
.hero-proof .faces span:first-child { margin-left: 0; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius-lg); box-shadow: 0 24px 60px -24px rgba(58, 42, 38, 0.35); }
.hero-sticker {
  position: absolute;
  right: 12px; top: 12px;
  background: var(--cta); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -6px rgba(225, 77, 74, 0.6);
}

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 24px; max-width: 560px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); }

/* Product cards */
.product-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 160ms var(--spring), box-shadow 160ms ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(58, 42, 38, 0.3); }
.card-media { position: relative; aspect-ratio: 1; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-tag { color: var(--ink-soft); font-size: 0.95rem; }
.card-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.price-compare { color: var(--ink-soft); text-decoration: line-through; font-weight: 700; }
.card-cta { margin-top: 12px; }
.media-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 18px, #fff 18px, #fff 36px);
  color: var(--ink-soft); font-weight: 800; text-align: center; padding: 24px;
}

/* Perks */
.perk-row { display: grid; gap: 14px; }
.perk { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.perk-icon { width: 46px; height: 46px; flex: none; border-radius: 16px; background: var(--tint); display: grid; place-items: center; color: var(--accent-deep); }
.perk h3 { font-size: 1.02rem; margin-bottom: 2px; }
.perk p { color: var(--ink-soft); font-size: 0.92rem; }

/* Product page */
.crumbs { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); padding: 16px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; gap: 28px; padding: 20px 0 8px; }
.gallery { position: relative; }
.gallery-frame { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--border); background: var(--tint); }
.gallery-track { display: flex; transition: transform 280ms var(--ease-out); }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badge { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.gallery-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.7); padding: 0; }
.gallery-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.25); }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.92);
  font-size: 1.2rem; font-weight: 800; z-index: 2;
  display: grid; place-items: center;
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.buybox-rating { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.92rem; margin-bottom: 10px; }
.buybox-rating a { color: var(--ink-soft); }
.buybox h1 { font-size: 2.1rem; margin-bottom: 6px; }
.buybox .tagline { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 14px; }
.buybox-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.buybox-price-row .price { font-size: 1.9rem; }
.save-badge { background: var(--mint); color: var(--teal-deep); font-weight: 800; font-size: 0.85rem; padding: 5px 12px; border-radius: var(--radius-pill); }
.buybox-blurb { color: var(--ink-soft); margin-bottom: 18px; }
.qty-row { display: flex; gap: 12px; margin-bottom: 12px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 52px; min-height: 52px; border: 0; background: #fff; font-size: 1.4rem; font-weight: 800; }
.qty button:hover { background: var(--surface-tint); }
.qty output { min-width: 36px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.buybox .btn-primary { flex: 1; }
.trust-micro { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); margin-top: 12px; }
.buybox-perks { margin-top: 20px; display: grid; gap: 10px; }

/* Benefits */
.benefit-list { display: grid; gap: 14px; }
.benefit { background: #fff; border-radius: var(--radius-md); padding: 22px; border: 2px solid var(--border); }
.benefit-num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  background: var(--tint); color: var(--accent-deep);
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 10px;
}
.benefit h3 { margin-bottom: 6px; }
.benefit p { color: var(--ink-soft); }

/* Accordions */
.acc { border: 2px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.acc + .acc { margin-top: 12px; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; border: 0; background: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-align: left;
  min-height: 56px;
}
.acc-btn .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: 1.3rem; transition: transform 200ms var(--spring); }
.acc-btn[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--accent); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 260ms var(--ease-out); }
.acc-panel-inner { padding: 0 20px 20px; color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 4px; border-bottom: 1px dashed var(--border); vertical-align: top; }
.spec-table th { font-family: var(--font-display); font-weight: 600; width: 110px; color: var(--ink); padding-right: 16px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Reviews */
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.rating-big { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; }
.review-grid { display: grid; gap: 14px; }
.review { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.review-meta { font-size: 0.85rem; color: var(--ink-soft); }
.review-meta strong { color: var(--ink); display: block; font-size: 0.95rem; }
.review h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.review p { color: var(--ink-soft); font-size: 0.95rem; }

/* Bundles */
.bundle-grid { display: grid; gap: 14px; }
.bundle {
  position: relative; background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-md); padding: 22px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.bundle.featured { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(58, 42, 38, 0.4); }
.bundle-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 800;
  padding: 4px 14px; border-radius: var(--radius-pill); white-space: nowrap;
}
.bundle h3 { font-size: 1.2rem; }
.bundle .price { font-size: 1.6rem; }
.bundle-note { color: var(--ink-soft); font-size: 0.9rem; }
.bundle .btn { margin-top: 10px; min-height: 48px; }

/* Related */
.related-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.related-scroll .card { scroll-snap-align: start; }

/* Trust pages */
.prose { max-width: 680px; padding: 32px 0 56px; }
.prose h1 { margin-bottom: 12px; }
.prose .lede { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 28px; }
.prose .acc { margin-bottom: 12px; }

/* Lifestyle + section art */
.life-grid { display: grid; gap: 14px; }
.life-card { margin: 0; }
.life-card img { border-radius: var(--radius-lg); border: 2px solid var(--border); width: 100%; }
.life-card figcaption { font-weight: 800; text-align: center; padding: 10px 4px 0; }
.bundle-banner { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); border: 2px solid var(--border); margin-bottom: 18px; }
.about-art { width: 100%; border-radius: var(--radius-lg); border: 2px solid var(--border); margin: 8px 0 24px; }
.soon-art { width: min(280px, 70%); border-radius: var(--radius-lg); margin: 0 auto 24px; }
@media (min-width: 700px) {
  .life-grid { grid-template-columns: 1fr 1fr; }
  .bundle-banner { height: 300px; }
}

/* Footer */
.site-footer { border-top: 2px solid var(--border); margin-top: 56px; padding: 40px 0; background: #fff; }
/* Extra clearance only on pages with the sticky buy bar (product pages). */
body.has-sticky .site-footer { padding-bottom: 112px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; max-width: 30ch; }
.footer-col h3 { font-size: 1rem; margin-bottom: 12px; }
.footer-col a { display: block; text-decoration: none; color: var(--ink-soft); font-weight: 700; padding: 6px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Sticky buy bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-top: 2px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 260ms var(--ease-out);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; gap: 12px; max-width: var(--max-width); margin: 0 auto; }
.sticky-info { flex: 1; min-width: 0; }
.sticky-info strong { display: block; font-family: var(--font-display); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-info span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 800; }
.sticky-bar .btn { min-height: 48px; padding: 10px 24px; flex: none; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(58, 42, 38, 0.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(420px, 100%);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 280ms var(--ease-out);
  box-shadow: -20px 0 60px rgba(58, 42, 38, 0.25);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--border); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: #fff; font-size: 1.3rem; line-height: 1; }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; }
.cart-empty .btn { margin-top: 16px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 2px solid var(--border); }
.cart-item h3 { font-size: 0.98rem; }
.cart-item .unit { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
.cart-item .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mini-qty { display: inline-flex; align-items: center; gap: 2px; border: 2px solid var(--border); border-radius: var(--radius-pill); }
.mini-qty button { width: 32px; height: 32px; border: 0; background: none; font-weight: 800; font-size: 1.05rem; }
.mini-qty output { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.9rem; }
.cart-remove { border: 0; background: none; color: var(--ink-soft); font-size: 0.82rem; font-weight: 800; text-decoration: underline; padding: 6px; }
.cart-line-total { font-family: var(--font-display); font-weight: 700; }
.drawer-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 2px solid var(--border); }
.subtotal-row { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; }
.subtotal-row strong { font-family: var(--font-display); font-size: 1.2rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 0.92rem;
  padding: 12px 22px; border-radius: var(--radius-pill);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--spring);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Coming soon */
.soon-hero { text-align: center; padding: 48px 0; max-width: 560px; margin: 0 auto; }

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .perk-row { grid-template-columns: repeat(3, 1fr); }
  .perk { flex-direction: column; }
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
  .bundle-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .related-scroll { grid-auto-columns: 40%; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.6rem; }
  .nav { display: flex; }
  .cart-btn { margin-left: 8px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-copy h1 { font-size: 3.2rem; }
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 28px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .buybox h1 { font-size: 2.5rem; }
  .section { padding: 64px 0; }
}

/* ---- Mobile polish ---- */
html, body { overflow-x: clip; }

@media (max-width: 699px) {
  .wrap { padding-inline: 16px; }
  .logo { font-size: 0.92rem; gap: 8px; }
  .logo small { display: none; }
  .logo-mark { width: 34px; height: 34px; border-radius: 12px; }
  .cart-btn { padding: 8px 12px; font-size: 0.9rem; gap: 6px; }
  .announce { font-size: 0.8rem; }
  .hero-inner { padding-top: 24px; padding-bottom: 32px; gap: 20px; }
  .hero-copy h1 { font-size: 2.05rem; }
  .hero-copy p { font-size: 1rem; margin-bottom: 16px; }
  .hero-sticker { font-size: 0.85rem; padding: 8px 14px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 18px; }
  .buybox h1 { font-size: 1.8rem; }
  .buybox-price-row .price { font-size: 1.6rem; }
  .pdp { gap: 20px; }
  .benefit, .bundle, .perk { padding: 18px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .site-footer { margin-top: 40px; }
  .toast { bottom: 76px; font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .qty-row { flex-direction: column; }
  .qty { align-self: stretch; }
  .qty output { flex: 1; }
  .qty-row .btn { width: 100%; }
  .hero-cta-row .btn { flex: 1 1 100%; }
  .hero-copy h1 { font-size: 1.85rem; }
  .sticky-bar .btn { padding: 10px 16px; font-size: 0.95rem; }
  .sticky-info span { display: none; }
  .crumbs { font-size: 0.78rem; }
}
