/* RAVEE STUDIO — Home (desktop first)
   Visual authority: Design/Mockups/ravee-studio-home-day-spacious-v3.png
   Tokens are working values from Docs/02_DESIGN_SYSTEM.md. */

:root {
  --ink: #103c51;
  --ink-soft: #35677b;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --leaf: #4e9a69;
  --teal: #064c52;
  --sky: #48b9e2;
  --sky-pale: #c8eff8;
  --coral: #ef7988;
  --yellow: #f4cf6b;
  --blush: #f7c1c4;

  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Kalam", "Comic Sans MS", cursive;
  --font-brand: "Fredoka", "DM Sans", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4.7vw, 68px);
  --header-h: 58px;
  --shadow-soft: 0 10px 28px rgba(16, 60, 81, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-200px); /* far enough to stay hidden under iOS Safari's status bar */
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Scalloped section edges ----------
   Each section brings its own scalloped top edge up into the previous one,
   colored with --sc (default: the section's own background). */

.scallop {
  --sw: 60px;
  --sh: 22px;
  position: relative;
}

.scallop-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: var(--sh);
  background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--sc) calc(100% - 1px), transparent 100%) 0 0 /
    var(--sw) var(--sh) repeat-x;
  pointer-events: none;
}

.band {
  height: 34px;
}

.band-sky {
  --sc: var(--sky);
  background: var(--sky);
}

.band-cream {
  --sc: var(--cream);
  background: var(--cream);
  height: 40px;
}

.band-pale {
  --sc: var(--sky-pale);
  background: var(--sky-pale);
  height: 40px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: 3.6vw;
  pointer-events: none;
}

/* Slides away while scrolling down; main.js toggles .is-hidden. The extra 24px also hides the shadow. */
.site-header {
  transition: transform 0.28s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
}


.header-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1340px;
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 40px;
  background: rgba(255, 250, 240, 0.98);
  border-radius: 0 0 36px 36px;
  box-shadow: var(--shadow-soft);
  transition: height 0.2s ease, box-shadow 0.2s ease;
}

/* Shrinks after the page starts scrolling so it covers less content. */
.site-header.is-compact .header-inner {
  height: 50px;
  box-shadow: 0 6px 18px rgba(16, 60, 81, 0.12);
}

.site-header.is-compact .brand img {
  height: 40px;
}

.brand img {
  height: 48px;
  width: auto;
  transition: height 0.2s ease;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
}

.site-nav a:hover {
  color: var(--leaf);
}

.has-sub {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: -18px;
  min-width: 250px;
  padding: 12px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.submenu::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 16px;
}

.submenu a:hover {
  background: var(--sky-pale);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-button:hover {
  background: rgba(72, 185, 226, 0.18);
}

.icon-button svg {
  width: 26px;
  height: 26px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(16, 60, 81, 0.16);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(16, 60, 81, 0.16);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.btn-primary:hover {
  background: #438a5d;
  box-shadow: 0 3px 0 rgba(16, 60, 81, 0.2), 0 10px 18px rgba(78, 154, 105, 0.28);
}

.btn-outline {
  background: var(--paper);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-outline:hover {
  background: #fff;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 12.5px;
  gap: 8px;
}

.btn-sm svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */

.hero {
  --hero-h: clamp(520px, 46.5vw, 680px);
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: #cdeaf5;
}

/* PLACEHOLDER background. Replace with the real Hero art (Docs/07 A2/A3). */
.hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 55% at 68% 45%, rgba(255, 244, 214, 0.85), transparent 70%),
    radial-gradient(ellipse 30% 38% at 20% 30%, rgba(112, 176, 128, 0.5), transparent 70%),
    radial-gradient(ellipse 26% 42% at 92% 70%, rgba(112, 176, 128, 0.45), transparent 70%),
    linear-gradient(180deg, #8fd0ec 0%, #cdeaf5 55%, #e9e2c8 100%);
}

[data-theme="night"] .hero-art {
  background:
    radial-gradient(ellipse 28% 42% at 72% 55%, rgba(255, 205, 120, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 38% at 20% 30%, rgba(60, 130, 120, 0.5), transparent 70%),
    linear-gradient(180deg, #0f2f4d 0%, #1d4d6b 60%, #2b5a6a 100%);
}

.placeholder-tag {
  position: absolute;
  right: 20px;
  bottom: 44px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.hero-inner {
  position: relative;
  padding-top: clamp(130px, 13.4vw, 192px);
  padding-bottom: 56px;
}

.hero-copy {
  max-width: 370px;
  margin-left: clamp(0px, 4.4vw, 64px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1101px) {
  /* Line breaks follow the approved mockup; the typeface is still a working proposal. */
  .hero h1 span {
    display: block;
  }
}

[data-theme="night"] .hero h1 {
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 26px 0 0 4px;
  font-family: var(--font-hand);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  transform: rotate(-7deg);
  transform-origin: left center;
}

[data-theme="night"] .hero-note {
  color: var(--cream);
}

.hero-note svg {
  width: 22px;
  height: 22px;
}

/* ---------- Section titles ---------- */

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-title--light {
  font-weight: 400;
  color: var(--cream);
}

/* The icon hangs outside the heading so the words stay centred like the mockup. */
.section-title--with-icon {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.section-title-icon {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%);
}

/* Narrow screens have no room beside the heading: put the icon back in the row. */
@media (max-width: 640px) {
  .section-title-icon {
    position: static;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    transform: none;
  }
}

.sparkle {
  width: 30px;
  height: 30px;
  color: var(--leaf);
  flex: none;
}

.section-title--light .sparkle {
  color: var(--cream);
}

.sparkle--r {
  transform: scaleX(-1);
}

/* ---------- New Releases ---------- */

.releases {
  --sc: var(--cream);
  background: var(--cream);
  padding: 44px 0 78px;
}

.section-head {
  position: relative;
  margin-bottom: 40px;
}

.view-all {
  position: absolute;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M1 3.5C8 1 14 5.5 22 3s14-2.6 22 0 10 1.5 15-.5' fill='none' stroke='%23103c51' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    left bottom / 100% 6px no-repeat;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transform: translateY(-50%);
}

.view-all svg {
  width: 20px;
  height: 20px;
}

.deco {
  position: absolute;
  pointer-events: none;
}

.deco-star {
  width: 42px;
  height: 42px;
  color: #f4a37a;
}

.deco-star--l {
  left: 2.2vw;
  top: 40px;
  transform: rotate(-10deg);
}

.deco-star--r {
  right: 1.8vw;
  bottom: 150px;
  transform: rotate(10deg);
}

.releases-empty {
  margin: 8px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  margin-bottom: 14px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 60, 81, 0.1), inset 0 0 0 5px rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-grid li:nth-child(1) .product-art {
  transform: rotate(-1.1deg);
}
.product-grid li:nth-child(2) .product-art {
  transform: rotate(0.8deg);
}
.product-grid li:nth-child(3) .product-art {
  transform: rotate(-0.7deg);
}
.product-grid li:nth-child(4) .product-art {
  transform: rotate(1.1deg);
}

.product-card:hover .product-art {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 16px 28px rgba(16, 60, 81, 0.16), inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.product-art > svg {
  width: 58%;
  height: auto;
}

.art-pink {
  background: linear-gradient(150deg, #fbe4e4, #f3d6d9);
}
.art-mint {
  background: linear-gradient(150deg, #e2f3e6, #cfe8d8);
}
.art-sand {
  background: linear-gradient(150deg, #f3ecdc, #e6dcc4);
}
.art-sky {
  background: linear-gradient(150deg, #dbf0f8, #c6e6f2);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-coral {
  background: var(--coral);
}
.badge-blue {
  background: #3e9fd8;
}
.badge-green {
  background: var(--leaf);
}

.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.product-meta {
  margin-top: 3px;
  font-size: 14.5px;
  color: #5c8fae;
}

.product-meta span {
  margin: 0 5px;
  color: #a7c3d3;
}

.product-price {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.product-actions .btn:last-child {
  flex: 1;
}

/* ---------- Shop by Category ---------- */

.categories {
  --sc: var(--leaf);
  --sw: 74px;
  --sh: 30px;
  background: var(--leaf);
  padding: 62px 0 46px;
}

.categories .container {
  max-width: 1440px;
}

.categories .section-title {
  margin-bottom: 42px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 244px;
  padding: 18px 12px 22px;
  border-radius: 62px 70px 54px 66px / 66px 58px 72px 60px;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 -12px 20px rgba(16, 60, 81, 0.07), inset 0 4px 0 rgba(255, 255, 255, 0.55),
    0 8px 0 rgba(6, 76, 82, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-grid li:nth-child(2n) .category-card {
  border-radius: 70px 58px 66px 54px / 58px 68px 60px 72px;
}

.category-card:hover {
  transform: translateY(-6px) rotate(-1.2deg);
  box-shadow: inset 0 -12px 20px rgba(16, 60, 81, 0.07), inset 0 4px 0 rgba(255, 255, 255, 0.55),
    0 14px 0 rgba(6, 76, 82, 0.22);
}

.category-grid li:nth-child(2n) .category-card:hover {
  transform: translateY(-6px) rotate(1.2deg);
}

.category-card svg {
  transition: transform 0.25s ease;
}

.category-card:hover svg {
  transform: scale(1.06) rotate(-2deg);
}

.category-card svg {
  width: 82%;
  max-height: 122px;
  flex: none;
}

.category-card span {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tile-cream {
  background: #fffaf0;
}
.tile-sky {
  background: #bfe8f6;
}
.tile-blush {
  background: #f8c3c7;
}
.tile-yellow {
  background: #f7db82;
}

/* ---------- Free Resource ---------- */

.freebie {
  --sc: var(--sky);
  --sw: 74px;
  --sh: 26px;
  background: var(--sky);
  padding: 46px 0 50px;
  color: #fff;
}

.freebie-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 170px;
  align-items: center;
  gap: 24px;
}

.freebie-copy {
  text-align: center;
  padding-left: 40px;
}

.freebie h2 {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.85vw, 26px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.sparkle-coral {
  width: 30px;
  height: 30px;
  margin-top: -6px;
  color: #f7a08d;
}

.freebie-copy p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0.94;
}

.freebie-form .field {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 60, 81, 0.12);
}

.freebie-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.freebie-form input[type="email"]:focus-visible {
  outline: none;
}

.freebie-form .field:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.freebie-form .btn {
  height: 46px;
}

.freebie-error {
  margin: 10px 0 0;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fde8ea;
  color: #8a2c3a;
  font-size: 14px;
}

.freebie-done {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(16, 60, 81, 0.12);
}

.freebie-done a {
  font-weight: 700;
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.freebie-demo {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding-left: 6px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.consent input::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--leaf);
  border-bottom: 3px solid var(--leaf);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.consent input:checked::after {
  opacity: 1;
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  transform: rotate(-9deg);
}

.hand-note--white {
  color: #fff;
}

.hand-note svg {
  display: inline-block;
  width: 26px;
  height: 26px;
  vertical-align: -4px;
}

.deco-cloud {
  width: 96px;
  height: 60px;
}

.deco-cloud--a {
  left: 14px;
  top: 78px;
}

.deco-cloud--b {
  left: 50px;
  top: 126px;
  width: 74px;
  height: 46px;
}

/* ---------- About ---------- */

.about {
  --sc: var(--cream);
  --sw: 74px;
  --sh: 26px;
  background: var(--cream);
  padding: 62px 0 74px;
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 440px 1fr 330px;
  align-items: center;
  gap: 44px;
}

/* PLACEHOLDER image. Replace with A5 and keep the organic mask. */
.about-art {
  position: relative;
  aspect-ratio: 1.7 / 1;
  border-radius: 48% 52% 46% 54% / 58% 50% 50% 42%;
  background:
    radial-gradient(ellipse 32% 50% at 64% 70%, #d9c3a4, transparent 70%),
    radial-gradient(ellipse 35% 50% at 30% 55%, #8fb59a, transparent 72%),
    linear-gradient(160deg, #f6e9d1, #cfe3d8);
  overflow: hidden;
}

.about-art .placeholder-tag {
  bottom: 14px;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
}

.deco-heart {
  left: 20px;
  bottom: -18px;
  width: 44px;
  height: 44px;
  color: #f4a3a8;
  transform: rotate(-12deg);
}

.about-copy h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.wordmark b,
.wordmark--footer b {
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-copy p {
  max-width: 36rem;
  font-size: 17.5px;
  line-height: 1.68;
  color: #4a86a6;
}

.about-note {
  position: relative;
  justify-self: center;
  padding: 10px 46px;
}

.sticky {
  position: relative;
  padding: 30px 34px 32px;
  background: #d8e9b4;
  font-family: var(--font-hand);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  transform: rotate(-6deg);
  clip-path: polygon(2% 3%, 30% 0, 62% 3%, 98% 1%, 100% 34%, 97% 70%, 100% 98%, 62% 100%, 30% 97%, 3% 100%, 0 66%, 3% 32%);
  filter: drop-shadow(0 6px 10px rgba(16, 60, 81, 0.14));
}

.about-note::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 28px;
  background: rgba(247, 219, 130, 0.72);
  box-shadow: 0 2px 4px rgba(16, 60, 81, 0.12);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 16% 8%, 84% 8%, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 84% 92%, 16% 92%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}

.sticky svg {
  display: inline-block;
  width: 26px;
  height: 26px;
  vertical-align: -4px;
}

.deco-sprig {
  width: 92px;
  height: 78px;
}

.deco-sprig--l {
  left: -18px;
  bottom: 0;
  transform: rotate(-20deg);
}

.deco-sprig--r {
  right: -18px;
  bottom: -6px;
  transform: scaleX(-1) rotate(-14deg);
}

/* ---------- Footer ---------- */

.site-footer {
  --sc: var(--teal);
  --sw: 66px;
  --sh: 26px;
  background: var(--teal);
  color: var(--cream);
  padding: 44px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(var(--fcols, 3), minmax(0, 1fr));
  gap: 0;
}

.footer-grid > * {
  padding: 8px 40px;
}

.footer-grid > * + * {
  border-left: 1px solid rgba(255, 250, 240, 0.4);
}

.wordmark--footer {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.footer-brand p:last-child {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 250, 240, 0.92);
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer li a {
  font-size: 16.5px;
  color: rgba(255, 250, 240, 0.95);
}

.site-footer li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 14.5px;
  color: rgba(255, 250, 240, 0.9);
}

.deco-sprig--fl,
.deco-sprig--fr {
  bottom: 12px;
  width: 78px;
  height: 66px;
  opacity: 0.95;
}

.deco-sprig--fl {
  left: 2.4vw;
  transform: rotate(-18deg);
}

.deco-sprig--fr {
  right: 2.4vw;
  transform: scaleX(-1) rotate(-18deg);
}

/* ---------- Shop page ---------- */

.site-nav a[aria-current="page"] {
  color: var(--leaf);
  box-shadow: 0 2px 0 var(--leaf);
}

.page-banner {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: linear-gradient(180deg, #a6dbf0 0%, #d6f0f8 100%);
  color: var(--ink);
}

/* Real photo banners: swapped by shop.js via data-cat on .banner-art.
   Every source image keeps a calm, low-detail left zone, so a light left-side
   scrim is enough for the heading/breadcrumb to stay readable without a card. */
.banner-art {
  position: absolute;
  inset: 0;
  background-color: #cdeaf5;
  background-size: cover;
  background-position: center;
}

.banner-art[data-cat="all"] {
  background-image: url("../img/art/banner-all.jpg");
}
.banner-art[data-cat="worksheets"] {
  background-image: url("../img/art/banner-worksheets.jpg");
}
.banner-art[data-cat="excel"] {
  background-image: url("../img/art/banner-excel.jpg");
}
.banner-art[data-cat="notion"] {
  background-image: url("../img/art/banner-notion.jpg");
}
.banner-art[data-cat="software"] {
  background-image: url("../img/art/banner-software.jpg");
}
.banner-art[data-cat="bundles"] {
  background-image: url("../img/art/banner-bundles.jpg");
}
.banner-art[data-cat="free"] {
  background-image: url("../img/art/banner-free.jpg");
}
.banner-art[data-cat="support"] {
  background-image: url("../img/art/banner-support.jpg");
  background-position: center 18%;
}
/* About: B9 maker's desk (no woman, so it doesn't repeat the A5 v2 scene below) */
.banner-art[data-cat="about"] {
  background-image: url("../img/art/banner-about.jpg");
  background-position: center 40%;
}

.banner-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.72) 0%, rgba(255, 250, 240, 0.38) 32%, transparent 58%);
}


.banner-inner {
  position: relative;
  padding-top: 110px;
  padding-bottom: 56px;
}

.crumbs {
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.6;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.banner-sub {
  max-width: 34rem;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.shop {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  background: var(--cream);
  padding: 44px 0 96px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.search {
  position: relative;
  flex: 1;
}

.search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  color: var(--ink-soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 54px;
  padding: 0 22px 0 54px;
  border: 2px solid var(--sky-pale);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(72, 185, 226, 0.14);
}

.search input::placeholder {
  color: #7fa3b5;
}

.search input:focus-visible {
  outline: none;
  border-color: var(--sky);
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.sort select {
  appearance: none;
  height: 54px;
  padding: 0 46px 0 22px;
  border: 2px solid var(--sky-pale);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1.5 1.5 5.5 5.5 5.5-5.5' fill='none' stroke='%23103c51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 14px no-repeat;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.sort select:focus-visible {
  outline: none;
  border-color: var(--sky);
}

.filters-toggle {
  display: none;
}

.shop-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 44px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 70px;
  transition: top 0.28s ease;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 34px 42px 36px 46px / 42px 34px 46px 36px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(16, 60, 81, 0.1), inset 0 0 0 4px rgba(255, 255, 255, 0.7);
  scrollbar-width: thin;
}

.filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.filters-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fgroup {
  padding: 14px 0;
  border-top: 1.5px dashed rgba(53, 103, 123, 0.28);
}

.fgroup summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.fgroup summary::-webkit-details-marker {
  display: none;
}

.fgroup summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.fgroup[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.fbody {
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.fgroup--flat {
  display: grid;
  gap: 4px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

.opt:hover {
  background: rgba(200, 239, 248, 0.5);
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-soft);
  border-radius: 7px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.box-radio {
  border-radius: 50%;
}

.opt input:checked + .box {
  border-color: var(--leaf);
  background: var(--leaf);
}

.opt input:checked + .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 7px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(40deg);
}

.opt input:checked + .box-radio::after {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.opt input:focus-visible + .box {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.opt-label {
  flex: 1;
}

.opt-count {
  font-size: 14px;
  color: #6f97ab;
}

.chips {
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}

.chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 4px 8px;
  border: 2px solid var(--sky-pale);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:last-child {
  grid-column: 1 / -1;
}

/* Longer labels ("Homeschool" can't wrap) take two columns so they never spill out. */
.chip--wide {
  grid-column: span 2;
}

.chip:hover span {
  border-color: var(--sky);
}

.chip input:checked + span {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 22px;
}

.results-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sky-pale);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.active-filters button::after {
  content: "×";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
}

.active-filters button:hover {
  background: #b4e6f3;
}

.product-grid--shop {
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 22px;
}

.opt[hidden],
.product-grid[hidden] {
  display: none;
}

.product-grid--shop li[hidden] {
  display: none;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 20px;
  border-radius: 40px 48px 42px 52px / 48px 40px 52px 42px;
  background: var(--paper);
  text-align: center;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7), 0 8px 22px rgba(16, 60, 81, 0.08);
}

.empty[hidden],
.rv-form[hidden] {
  display: none;
}

.empty svg,
.empty img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.empty h2 {
  font-family: var(--font-display);
  font-size: 24px;
}

.empty p {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.sample-note {
  margin-top: 40px;
  font-size: 14px;
  color: #7fa3b5;
  text-align: center;
}

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .filters {
    position: static;
    max-height: none;
    display: none;
  }

  .filters.is-open {
    display: block;
  }

  .filters.is-open .filters-done.is-empty {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
  }

  .filters.is-open .filters-done {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
  }

  .product-grid--shop {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .toolbar {
    flex-wrap: wrap;
  }

  .search {
    flex-basis: 100%;
  }

  .sort label {
    display: none;
  }

  .product-grid--shop {
    grid-template-columns: 1fr;
  }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .active-filters {
    justify-content: flex-start;
  }
}

/* ---------- Product Detail page ---------- */

.product-art-link {
  display: block;
}

.product-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 15px;
}

.pd {
  padding-top: 90px;
  background: var(--cream);
}

.crumbs--page {
  margin-bottom: 26px;
}

.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 76px;
}

.pd-gallery {
  position: sticky;
  top: 70px;
  transition: top 0.28s ease;
}

/* When the header slides away, sticky panels move up into the freed space. */
.header-hidden .filters,
.header-hidden .pd-gallery {
  top: 16px;
}

.pd-main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 40px 46px 42px 50px / 46px 40px 50px 42px;
  box-shadow: 0 14px 34px rgba(16, 60, 81, 0.12), inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.pd-main > svg {
  width: 56%;
  height: auto;
  transition: transform 0.35s ease;
}

.pd-main[data-view="1"] > svg {
  transform: scale(1.55) translate(9%, 5%);
}

.pd-main[data-view="2"] > svg {
  transform: rotate(-7deg) scale(0.9);
}

.pd-main[data-view="3"] > svg {
  transform: scale(1.2) rotate(5deg) translate(-6%, 2%);
}

.pd-main .badge {
  top: 20px;
  left: 22px;
  padding: 6px 20px;
  font-size: 14px;
}

.pd-main .placeholder-tag {
  bottom: 16px;
  right: 18px;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.pd-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 60, 81, 0.1);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pd-thumb svg {
  width: 62%;
  height: auto;
}

.pd-thumb:hover {
  transform: translateY(-2px);
}

.pd-thumb[aria-pressed="true"] {
  border-color: var(--leaf);
}

.pd-buy {
  padding: 34px 34px 30px;
  border-radius: 40px 46px 42px 50px / 46px 40px 50px 42px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(16, 60, 81, 0.1), inset 0 0 0 5px rgba(255, 255, 255, 0.75);
}

.pd-cat {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
}

.pd-cat:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-buy h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.2;
  font-weight: 700;
}

.pd-blurb {
  margin-top: 12px;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pd-spec {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px 0;
  border-top: 1.5px dashed rgba(53, 103, 123, 0.28);
  border-bottom: 1.5px dashed rgba(53, 103, 123, 0.28);
}

.pd-spec > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
}

.pd-spec dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c8fae;
}

.pd-spec dd {
  margin: 0;
  font-size: 16.5px;
  font-weight: 500;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--sky-pale);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pd-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
}

.pd-price-now {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.pd-price-note {
  font-size: 14px;
  color: #6f97ab;
}

.pd-license {
  margin-top: 20px;
}

.pd-license label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-license select {
  appearance: none;
  width: 100%;
  height: 54px;
  padding: 0 46px 0 20px;
  border: 2px solid var(--sky-pale);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1.5 1.5 5.5 5.5 5.5-5.5' fill='none' stroke='%23103c51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 14px no-repeat;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.pd-license select:focus-visible {
  outline: none;
  border-color: var(--sky);
}

.pd-license-note {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pd-license-note--flat {
  margin-top: 18px;
}

.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-license .text-link {
  margin-top: 4px;
  font-size: 14.5px;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pd-actions .btn:first-child {
  flex: 1 1 200px;
}

.pd-perks {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.pd-perks li {
  position: relative;
  padding-left: 26px;
}

.pd-perks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--leaf);
  border-bottom: 2.5px solid var(--leaf);
  transform: rotate(40deg);
}

.pd-section {
  padding: 8px 0 72px;
  background: var(--cream);
}

.pd-section h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.pd-about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.section-icon-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-icon-head img {
  flex: none;
  width: 52px;
  height: 52px;
}

.section-icon-head h2 {
  margin-bottom: 0;
}

.pd-about p {
  max-width: 40rem;
  margin-bottom: 14px;
  font-size: 17.5px;
  line-height: 1.7;
  color: #3f7896;
}

.pd-included {
  padding: 26px 30px;
  border-radius: 34px 40px 36px 44px / 40px 34px 44px 36px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 60, 81, 0.09), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.pd-included h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-included ul {
  display: grid;
  gap: 10px;
}

.pd-included li {
  position: relative;
  padding-left: 28px;
  font-size: 16.5px;
  line-height: 1.45;
}

.about-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid rgba(16, 60, 81, 0.12);
  text-align: center;
}

.about-cta p {
  width: 100%;
  font-size: 17px;
  color: var(--ink-soft);
}

.pd-included li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 3px solid var(--leaf);
  border-bottom: 3px solid var(--leaf);
  transform: rotate(40deg);
}

/* FAQ accordion */

.faq {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  background: var(--cream);
  padding: 56px 0 100px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-group-title {
  margin: 44px 0 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-item {
  padding: 0 26px;
  border-radius: 28px 32px 26px 34px / 32px 26px 34px 28px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(16, 60, 81, 0.07);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item p {
  max-width: none;
  padding-bottom: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: #3f7896;
}

/* Legal documents (Policies landing + the individual policy pages) */

.legal {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  background: var(--cream);
  padding: 56px 0 100px;
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
}

.legal-notice {
  margin-bottom: 32px;
  padding: 16px 22px;
  border-radius: 20px;
  background: var(--sky-pale);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.legal-updated {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.legal-doc h2 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.legal-doc h2:first-of-type {
  margin-top: 28px;
}

.legal-doc p {
  max-width: none;
  margin-bottom: 14px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #3f7896;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 16px 22px;
  display: grid;
  gap: 8px;
}

.legal-doc li {
  font-size: 16.5px;
  line-height: 1.6;
  color: #3f7896;
}

.legal-doc strong {
  color: var(--ink);
}

.legal-doc a {
  color: var(--leaf);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Details the owner must fill in before launch */
.legal-todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(244, 207, 107, 0.45);
  color: var(--ink);
  font-weight: 700;
}

.legal-footer-note {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(16, 60, 81, 0.12);
  font-size: 15px;
  color: var(--ink-soft);
}

/* Policies landing page */

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 10px auto 0;
}

.policy-card {
  display: block;
  padding: 26px 28px;
  border-radius: 30px 36px 28px 38px / 36px 28px 38px 30px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(16, 60, 81, 0.07);
  transition: transform 0.2s ease;
}

.policy-card:hover {
  transform: translateY(-3px);
}

.policy-card h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18.5px;
  color: var(--ink);
}

.policy-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works, and .icon-intro (shared: an intro icon + paragraph, also used on FAQ, Policies, License Terms) */

.how {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  background: var(--cream);
  padding: 56px 0 100px;
}

.icon-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto 72px;
}

.icon-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.icon-intro p {
  font-size: 17.5px;
  line-height: 1.68;
  color: #4a86a6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  padding: 30px 22px 26px;
  border-radius: 30px 36px 28px 38px / 36px 28px 38px 30px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(16, 60, 81, 0.07);
  text-align: center;
}

.step-card img {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: block;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--leaf);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.step-card h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

.step-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.step-card .text-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
}

@media (max-width: 1100px) {
  .icon-intro {
    grid-template-columns: 1fr;
    max-width: 420px;
    text-align: center;
  }

  .icon-intro img {
    max-width: 200px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Preview (watermarked pages) */

.pd-preview {
  --sc: var(--sky-pale);
  --sw: 66px;
  --sh: 24px;
  background: var(--sky-pale);
  padding: 56px 0 72px;
}

.pd-preview .section-title {
  margin-bottom: 10px;
}

.pd-preview-sub {
  margin-bottom: 34px;
  text-align: center;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.pv {
  display: grid;
  grid-template-columns: 56px minmax(0, 420px) 56px;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pv-nav {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(16, 60, 81, 0.16);
  transition: transform 0.15s ease;
}

.pv-nav:hover {
  transform: translateY(-2px);
}

.pv-nav svg {
  width: 26px;
  height: 26px;
}

.pv-prev svg {
  transform: scaleX(-1);
}

.pv-stage {
  text-align: center;
}

.pv-caption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pv-page {
  position: relative;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fbe8ea 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(115, 160, 190, 0.32) 34px 36px) 0 14% / calc(100% - 64px) 74% no-repeat,
    #fff;
  background-position: 0 0, 32px 14%, 0 0;
  box-shadow: 0 14px 30px rgba(16, 60, 81, 0.16);
}

.pv-page[data-variant="1"] {
  background:
    linear-gradient(180deg, #e2f3e6 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(78, 154, 105, 0.35) 58px 60px) 32px 16% / calc(100% - 64px) 62% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 58px, rgba(78, 154, 105, 0.35) 58px 60px) 32px 16% / calc(100% - 64px) 62% no-repeat,
    #fff;
}

.pv-page[data-variant="2"] {
  background:
    linear-gradient(180deg, #f3ecdc 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 26% 34%, rgba(72, 185, 226, 0.4) 0 42px, transparent 43px),
    radial-gradient(circle at 70% 34%, rgba(247, 193, 196, 0.6) 0 42px, transparent 43px),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(115, 160, 190, 0.3) 30px 32px) 32px 58% / calc(100% - 64px) 34% no-repeat,
    #fff;
}

.pv-page[data-variant="3"] {
  background:
    linear-gradient(180deg, #dbf0f8 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(78, 154, 105, 0.25) 0 30%, transparent 30%) 32px 20% / calc(100% - 64px) 16% no-repeat,
    linear-gradient(90deg, rgba(72, 185, 226, 0.28) 0 55%, transparent 55%) 32px 44% / calc(100% - 64px) 16% no-repeat,
    linear-gradient(90deg, rgba(247, 193, 196, 0.5) 0 42%, transparent 42%) 32px 68% / calc(100% - 64px) 16% no-repeat,
    #fff;
}

/* Diagonal repeating watermark. */
.pv-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140'%3E%3Ctext x='110' y='76' text-anchor='middle' transform='rotate(-30 110 70)' font-family='Arial,Helvetica,sans-serif' font-size='19' font-weight='700' letter-spacing='3' fill='%23103c51' fill-opacity='.13'%3ERAVEE STUDIO%3C/text%3E%3C/svg%3E") 0 0 / 220px 140px;
  pointer-events: none;
}

.pv-thumbs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.pv-thumb {
  width: 64px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pv-thumb:hover {
  transform: translateY(-2px);
}

.pv-thumb[aria-pressed="true"] {
  border-color: var(--leaf);
}

.pv-page--mini {
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(16, 60, 81, 0.14);
}

.pv-page--mini::after {
  background-size: 110px 70px;
}

.pv-page--mini[data-variant="0"] {
  background:
    linear-gradient(180deg, #fbe8ea 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(115, 160, 190, 0.32) 9px 10px) 8px 16% / calc(100% - 16px) 74% no-repeat,
    #fff;
}

.pv-page--mini[data-variant="1"] {
  background:
    linear-gradient(180deg, #e2f3e6 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(78, 154, 105, 0.35) 14px 15px) 8px 18% / calc(100% - 16px) 62% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(78, 154, 105, 0.35) 14px 15px) 8px 18% / calc(100% - 16px) 62% no-repeat,
    #fff;
}

.pv-page--mini[data-variant="2"] {
  background:
    linear-gradient(180deg, #f3ecdc 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 26% 36%, rgba(72, 185, 226, 0.4) 0 9px, transparent 10px),
    radial-gradient(circle at 70% 36%, rgba(247, 193, 196, 0.6) 0 9px, transparent 10px),
    #fff;
}

.pv-page--mini[data-variant="3"] {
  background:
    linear-gradient(180deg, #dbf0f8 0 9%, transparent 9%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(78, 154, 105, 0.25) 0 30%, transparent 30%) 8px 22% / calc(100% - 16px) 14% no-repeat,
    linear-gradient(90deg, rgba(72, 185, 226, 0.28) 0 55%, transparent 55%) 8px 46% / calc(100% - 16px) 14% no-repeat,
    #fff;
}

/* Bundle contents */

.pd-bundle {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  padding-top: 56px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 30px 34px 32px 38px / 34px 30px 38px 32px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(16, 60, 81, 0.09), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bundle-item--only {
  transition: none;
}

a.bundle-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 60, 81, 0.14), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.bundle-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 92px;
  aspect-ratio: 5 / 4;
  border-radius: 22px;
}

.bundle-art svg {
  width: 70%;
  height: auto;
}

.bundle-text {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
  color: #5c8fae;
}

.bundle-text strong {
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--ink);
}

.bundle-total {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-soft);
}

.bundle-total strong {
  color: var(--ink);
}

/* Reviews */

.pd-reviews {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  padding-top: 36px;
}

.pd-reviews.scallop {
  padding-top: 56px;
}

.rv-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.rv-summary {
  padding: 24px 24px 22px;
  border-radius: 32px 38px 34px 42px / 38px 32px 42px 34px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 60, 81, 0.09), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.rv-avg {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rv-avg strong {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.rv-avg span {
  color: var(--ink-soft);
}

.rv-count {
  margin: 6px 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.rv-empty {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.rv-bars {
  display: grid;
  gap: 8px;
}

.rv-bars li {
  display: grid;
  grid-template-columns: 14px 1fr 20px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rv-bars .bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecd9;
}

.rv-bars .bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #edb13d;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  width: 20px;
  height: 20px;
  color: #e1d9c4;
}

.star.is-on {
  color: #edb13d;
}

.stars--lg .star {
  width: 26px;
  height: 26px;
}

.rv-list {
  display: grid;
  gap: 22px;
}

.rv-item {
  padding-bottom: 22px;
  border-bottom: 1.5px dashed rgba(53, 103, 123, 0.28);
}

.rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.rv-date {
  font-size: 14px;
  color: #6f97ab;
}

.rv-item p {
  max-width: 44rem;
  font-size: 16.5px;
  line-height: 1.6;
}

.rv-images {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.rv-images img,
.rv-previews img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
}

.rv-reply {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--sky-pale);
}

.rv-reply p {
  margin-top: 4px;
  font-size: 15.5px;
}

.rv-note {
  margin-top: 16px;
  font-size: 14px;
  color: #7fa3b5;
}

.rv-form-wrap {
  margin-top: 26px;
}

.rv-form-wrap summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.rv-form-wrap summary::-webkit-details-marker {
  display: none;
}

.rv-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-top: 20px;
  padding: 26px 28px;
  border-radius: 34px 40px 36px 44px / 40px 34px 44px 36px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 60, 81, 0.09), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.contact {
  --sc: var(--cream);
  --sw: 66px;
  --sh: 24px;
  background: var(--cream);
  padding: 56px 0 110px;
}

.contact-lede {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
}

.contact .demo-note {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.contact .rv-form {
  margin: 36px auto 0;
}

.contact .empty {
  max-width: 620px;
  margin: 36px auto 0;
}

.rv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-block label,
.stars-input legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field-block input[type="text"],
.field-block input[type="email"],
.field-block textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--sky-pale);
  border-radius: 22px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.field-block select {
  appearance: none;
  width: 100%;
  height: 52px;
  padding: 0 46px 0 18px;
  border: 2px solid var(--sky-pale);
  border-radius: 22px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1.5 1.5 5.5 5.5 5.5-5.5' fill='none' stroke='%23103c51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center / 14px no-repeat;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

.field-block select:focus-visible {
  outline: none;
  border-color: var(--sky);
}

.field-block input[readonly] {
  background: #f4f0e4;
  color: var(--ink-soft);
}

.field-block textarea {
  resize: vertical;
}

.field-block input:focus-visible,
.field-block textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
}

.field-block input[type="file"] {
  font-size: 15px;
  color: var(--ink-soft);
}

/* The native "choose file" button, restyled as a site pill with a full-size tap target. */
.field-block input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.field-block input[type="file"]::file-selector-button:hover {
  background: var(--sky-pale);
}

.hint {
  margin-top: 6px;
  font-size: 13.5px;
  color: #6f97ab;
}

.hint-inline {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #6f97ab;
}

.stars-input {
  margin: 0;
  padding: 0;
  border: 0;
}

.stars-radios {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.stars-radios input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stars-radios label {
  cursor: pointer;
  color: #e1d9c4;
  transition: transform 0.12s ease;
}

.stars-radios label svg {
  width: 34px;
  height: 34px;
}

.stars-radios label:hover,
.stars-radios label:hover ~ label,
.stars-radios input:checked ~ label {
  color: #edb13d;
}

.stars-radios label:hover {
  transform: scale(1.12);
}

.stars-radios input:focus-visible + label {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 8px;
}

.rv-previews {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.rv-error {
  padding: 10px 16px;
  border-radius: 16px;
  background: #fde4e6;
  font-size: 15px;
  font-weight: 500;
  color: #9b2b3b;
}

.rv-error[hidden] {
  display: none;
}

/* Owner preview of a draft/hidden product (only a signed-in admin sees it) */
.pd-preview-note {
  margin-block: 0 18px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff4d6;
  color: var(--ink);
  font-size: 15px;
  text-align: center;
}

.pd-missing {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: 90px 120px; /* block only, so .container keeps its side gutters */
  text-align: center;
}

.pd-missing svg,
.pd-missing img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.pd-missing h1 {
  font-family: var(--font-display);
  font-size: 30px;
}

.pd-missing p {
  margin-bottom: 10px;
  color: var(--ink-soft);
}

/* 404 page (404.html reuses .pd-missing) */
.notfound {
  padding-top: 136px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pd-missing .notfound-help {
  margin: 8px 0 0;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .pd-about,
  .rv-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* Tablets keep gallery | details side by side so price and Add to Cart stay near the top. */
  .pd-top {
    gap: 28px;
  }

  .pd-gallery {
    position: static;
  }

  .bundle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pd-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .pd-buy {
    padding: 26px 22px 24px;
  }

  /* Both buttons full width, instead of one full and one half. */
  .pd-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .pd-spec > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pv {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .pv-nav {
    width: 44px;
    height: 44px;
  }

  .rv-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Real artwork (from Design/Assets, optimized in assets/img/art) ---------- */

/* The frame reproduces "cover" sizing with a known aspect ratio, so handwritten overlays
   (positioned in % and sized in cqw) stay aligned with the painting at any viewport width. */
.hero-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(var(--hero-h) * 2.0595));
  aspect-ratio: 1800 / 874;
  transform: translate(-50%, -50%);
  container-type: inline-size;
  background: url("../img/art/hero-day.jpg") center / 100% 100% no-repeat;
}

[data-theme="night"] .hero-frame {
  background-image: url("../img/art/hero-night.jpg");
}

.paper-note {
  position: absolute;
  left: 32.6%;
  top: 15.5%;
  width: 6.1%;
  padding: 1.5cqw 0.5cqw 1.3cqw;
  background: #f8f1de;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.55cqw;
  font-weight: 500;
  line-height: 1.12;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 0.4cqw 1cqw rgba(16, 60, 81, 0.2);
}

.paper-note::before {
  content: "";
  position: absolute;
  top: -0.9cqw;
  left: 50%;
  width: 36%;
  height: 1.7cqw;
  background: rgba(244, 207, 107, 0.78);
  transform: translateX(-50%) rotate(2deg);
}

.paper-note svg {
  display: inline-block;
  width: 1.3cqw;
  height: 1.3cqw;
  vertical-align: -0.2cqw;
}

.hand {
  position: absolute;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.6cqw;
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}

[data-theme="night"] .hand {
  color: var(--cream);
}

.hand .arrow {
  position: absolute;
  width: 2.2cqw;
  height: 3.3cqw;
}

.hand--print {
  left: 50.6%;
  top: 14.6%;
  transform: rotate(-4deg);
}

.hand--print .arrow {
  left: 78%;
  top: 70%;
}

.hand--templates {
  left: 66.4%;
  top: 14.8%;
  transform: rotate(-2deg);
}

.hand--templates .arrow {
  left: 78%;
  top: 100%;
}

.hand--ideas,
[data-theme="night"] .hand--ideas {
  left: 93.6%;
  top: 16%;
  width: 4.2%;
  font-size: 0.84cqw; /* Kalam is wider than Caveat; 0.95cqw spilled past the note's edge */
  line-height: 1.02;
  text-align: center;
  color: var(--ink);
  transform: rotate(-2deg);
}

.product-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art:has(> img)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.category-card img {
  flex: none;
  width: auto;
  max-width: 88%;
  height: 150px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.category-card:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.about-art {
  background: url("../img/art/about-studio-v2.jpg") center / cover no-repeat;
}

.pd-main > img,
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pd-main > img {
  position: absolute;
  inset: 0;
}

.pd-main[data-view="1"] > img,
.pd-thumb[data-view="1"] img {
  transform: scale(1.6);
  transform-origin: 72% 38%;
}

.pd-main[data-view="2"] > img,
.pd-thumb[data-view="2"] img {
  transform: scale(1.35);
  transform-origin: 22% 72%;
}

.pd-main[data-view="3"] > img,
.pd-thumb[data-view="3"] img {
  transform: scale(1.2);
  transform-origin: 80% 80%;
}

.bundle-art {
  overflow: hidden;
}

.bundle-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet/phone Hero: the art sits on top in full, the headline and buttons below it
   (a translucent card over the art hid the woman and cat on small screens). */
@media (max-width: 1100px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--cream);
  }

  [data-theme="night"] .hero {
    background: #12344d;
  }

  .paper-note,
  .hand {
    display: none;
  }

  /* Tablet: the wide desktop art (A2/A3) fits in full. */
  .hero-art {
    position: relative;
    inset: auto;
    aspect-ratio: 1800 / 874;
    overflow: hidden;
  }

  .hero-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    aspect-ratio: auto;
    transform: none;
    background-size: cover;
    background-position: center;
  }

  .hero-inner {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .hero-copy {
    max-width: 620px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(27px, 4.6vw, 36px);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 22px;
  }

  .hero-note {
    margin-top: 30px;
    font-size: 26px;
    transform: rotate(-4deg);
  }

  /* Scalloped edge where the art meets the copy, like every other section join. */
  .hero-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 20px;
    background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--cream) calc(100% - 1px), transparent 100%) 0 0 / 56px 20px repeat-x;
  }

  [data-theme="night"] .hero-art::after {
    background-image: radial-gradient(ellipse 50% 100% at 50% 100%, #12344d calc(100% - 1px), transparent 100%);
  }

  .hero-note br {
    display: none;
  }
}

/* Phone: the dedicated portrait art (A8), cropped around the woman and cat. */
@media (max-width: 640px) {
  .hero-art {
    aspect-ratio: auto;
    height: min(112vw, 480px);
  }

  .hero-frame {
    background-image: url("../img/art/hero-mobile-day.jpg");
    background-position: center 36%; /* keeps her head clear of the header */
  }

  [data-theme="night"] .hero-frame {
    background-image: url("../img/art/hero-mobile-night.jpg");
  }

  .hero-inner {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-note {
    font-size: 24px;
  }
}

/* ---------- Paper grain and scroll reveal ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Only needed where the filters sit behind the toggle (≤1100 px). */
.filters-done {
  display: none;
}

/* ---------- Cart, Checkout, Confirmation, My Library (demo commerce) ---------- */

.commerce {
  min-height: 70vh;
  padding: 90px 0 100px;
  background: var(--cream);
}

.commerce-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}

.commerce-sub {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
}

.commerce-text {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #3f7896;
}

.commerce-fine {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.demo-note {
  margin: 14px 0 26px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(244, 207, 107, 0.3);
  font-size: 14px;
  color: var(--ink);
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.commerce-layout[hidden],
.commerce .empty[hidden] {
  display: none;
}

.commerce-card {
  margin-bottom: 22px;
  padding: 26px 28px;
  border-radius: 34px 40px 36px 44px / 40px 34px 44px 36px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 60, 81, 0.08), inset 0 0 0 4px rgba(255, 255, 255, 0.75);
}

.commerce-summary {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
  transition: top 0.28s ease;
}

.header-hidden .commerce-summary {
  top: 16px;
}

.commerce-cta {
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

.commerce-back {
  justify-self: center;
  font-size: 15px;
}

/* Cart lines */
.cart-lines {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(16, 60, 81, 0.06);
}

.cart-thumb,
.co-thumb,
.lib-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
}

.cart-thumb img,
.co-thumb img,
.lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb {
  width: 72px;
  height: 72px;
}

.cart-line-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.cart-line-name:hover {
  text-decoration: underline;
}

.cart-line-meta {
  margin: 2px 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.cart-remove,
.lib-back,
.commerce button.text-link {
  padding: 6px 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.cart-remove {
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-line-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

/* Coupon */
.coupon-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 2px solid var(--sky-pale);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ink);
}

.coupon-row input::placeholder {
  text-transform: none;
}

.coupon-row .btn {
  height: 44px;
}

.coupon-msg {
  min-height: 1em;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--leaf);
}

.coupon-msg.is-error {
  color: #9b2b3b;
}

/* Summary rows */
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 15.5px;
  color: var(--ink);
}

.sum-row span:last-child {
  text-align: right;
}

.sum-row.is-discount {
  color: var(--leaf);
  font-weight: 700;
}

.sum-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed rgba(16, 60, 81, 0.25);
  font-size: 19px;
  font-weight: 700;
}

.sum-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.sum-edit {
  margin-top: 10px;
  font-size: 14.5px;
}

/* Checkout */
.co-form {
  display: grid;
  gap: 16px;
}

/* The Payment block (hidden for all-free orders) keeps the form's own spacing. */
#co-payment {
  display: grid;
  gap: 16px;
}
#co-payment[hidden] {
  display: none;
}

.co-form .commerce-sub,
.co-form .commerce-text {
  margin-bottom: 0;
}

.co-pay-title {
  margin-top: 10px;
}

.co-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.co-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--leaf);
}

.co-consent[hidden],
#co-region-row[hidden] {
  display: none;
}

.co-consent {
  padding: 16px 18px;
  border: 2px solid var(--sky-pale);
  border-radius: 20px;
  background: #fff;
}

.co-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(16, 60, 81, 0.25);
}

.co-lines li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.co-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.co-line-text strong,
.co-line-text small {
  display: block;
}

.co-line-text small {
  color: var(--ink-soft);
  font-size: 13px;
}

/* Confirmation + My Library */
.confirm-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.confirm-head p {
  max-width: 34rem;
  color: #3f7896;
}

.confirm-check {
  width: 72px;
  height: 72px; /* the d-check symbol draws its own green circle and tick */
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.lib-list,
.lib-orders {
  display: grid;
  gap: 12px;
}

.lib-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 60, 81, 0.1);
}

.lib-item:last-child {
  border-bottom: 0;
}

.lib-thumb {
  width: 64px;
  height: 64px;
}

.lib-item-info strong,
.lib-item-info small {
  display: block;
}

.lib-item-info small {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.lib-extra {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
}

.lib-extra code {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--sky-pale);
  font-size: 13.5px;
}

.lib-update {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(200, 239, 248, 0.6);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.lib-update-badge {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Where Stripe's card form will sit (demo placeholder). */
.co-stripe {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 2px dashed rgba(16, 60, 81, 0.25);
  border-radius: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.co-stripe svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink-soft);
}

.co-required {
  color: #9b2b3b;
}

.lib-auth {
  max-width: 520px;
  margin: 10px auto 0;
}

.lib-auth .commerce-title {
  margin-bottom: 12px;
}

/* Cloudflare Turnstile bot check (My Library sign-in, free checkouts, Home freebie).
   "interaction-only": out of the layout until Cloudflare asks the visitor to click (.is-shown). */
.lib-check,
.co-check-bot,
.freebie-check {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.lib-check.is-shown,
.co-check-bot.is-shown,
.freebie-check.is-shown {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  margin: 4px 0 6px;
}

.lib-form {
  display: grid;
  gap: 14px;
}

.lib-back {
  justify-self: center;
  font-size: 14.5px;
}

.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.lib-order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 60, 81, 0.1);
}

.lib-order small {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .commerce-layout,
  .confirm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-summary {
    position: static;
  }

  /* Checkout on narrow screens: show what's being bought before the Pay button. */
  #checkout-layout .commerce-summary {
    order: -1;
  }
}

@media (max-width: 640px) {
  .commerce-card {
    padding: 22px 18px;
  }

  .cart-line {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }

  .cart-thumb {
    width: 60px;
    height: 60px;
  }

  .cart-line-price {
    grid-column: 2;
  }

  .lib-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .lib-thumb {
    width: 56px;
    height: 56px;
  }

  .lib-item .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .lib-head {
    flex-direction: column;
  }
}

/* ---------- Extra Teacher License Certificate ---------- */

.cert-intro {
  margin-bottom: 22px;
}

.cert-intro .commerce-title {
  margin-bottom: 10px;
}

.cert-edit-title {
  margin: 14px 0 0;
  font-size: 18px;
}

.cert-locked {
  padding: 12px 16px;
  border-radius: 18px;
  background: #f4f0e4;
  font-weight: 700;
  color: var(--ink);
}

.cert-locked span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Post-purchase certificate setup on the confirmation page. */
.cert-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border: 2px solid rgba(78, 154, 105, 0.35);
}

.cert-setup .commerce-sub,
.cert-setup .commerce-text {
  margin-bottom: 0;
}

.cert-setup-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cert-setup-fields .field-block:last-child {
  grid-column: 1 / -1;
}

.cert-setup .btn {
  justify-self: start;
}

.cert-setup.is-done {
  border-color: rgba(78, 154, 105, 0.6);
}

.lib-cert-note {
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .cert-setup-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .cert-setup .btn {
    justify-self: stretch;
    justify-content: center;
  }
}

.cert-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cert-form {
  display: grid;
  gap: 14px;
}

.cert {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 40px 34px;
  border: 10px double rgba(78, 154, 105, 0.55);
  border-radius: 28px;
  background: var(--paper);
  text-align: center;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(16, 60, 81, 0.08);
}

.cert-logo {
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

.cert-kicker {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cert-line {
  font-size: 15px;
  color: var(--ink-soft);
}

.cert-name,
.cert-product {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cert-name {
  font-family: var(--font-hand);
  font-size: 34px;
  color: var(--teal);
}

.cert-scope {
  max-width: 30rem;
  font-size: 15.5px;
  line-height: 1.55;
}

.cert-message {
  max-width: 30rem;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(200, 239, 248, 0.5);
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cert-message[hidden] {
  display: none;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  margin-top: 14px;
  font-size: 13.5px;
}

.cert-meta dt {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cert-fine {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .cert-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Preview first, so typing shows the result right above the form. */
  .cert {
    order: -1;
  }
}

@media (max-width: 640px) {
  .cert {
    padding: 30px 18px 24px;
    border-width: 7px;
  }

  .cert-kicker {
    font-size: 20px;
  }
}

/* Print / Save as PDF: only the certificate. */
@media print {
  .site-header,
  .site-footer,
  .band,
  .crumbs,
  .demo-note,
  .no-print,
  .to-top,
  .toast,
  .skip-link {
    display: none !important;
  }

  body::after {
    display: none;
  }

  body,
  .commerce {
    background: #fff;
    padding: 0;
    min-height: 0;
  }

  .cert-layout {
    display: block;
  }

  .cert {
    box-shadow: none;
    margin: 20mm auto 0;
    max-width: 170mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- Sale prices (automatic markdowns) ---------- */

.price-was {
  margin-left: 6px;
  font-weight: 500;
  font-size: 0.82em;
  color: var(--ink-soft);
  text-decoration-thickness: 1.5px;
}

.price-off {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

.cart-line-price .price-was,
.cart-line-price .price-off,
.co-lines .price-was,
.co-lines .price-off {
  display: block;
  margin: 2px 0 0;
  text-align: right;
}

.cart-line-price .price-off,
.co-lines .price-off {
  width: fit-content;
  margin-left: auto;
}

.pd-sale {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #b84a5a; /* darker coral: 4.5:1 on cream */
}

/* On Product Detail the big serif price would make the struck price look just as loud. */
.pd-price-now .price-was {
  font-family: var(--font-ui);
  font-size: 0.48em;
  font-weight: 500;
  vertical-align: 0.35em;
}

.pd-price-now .price-off {
  font-family: var(--font-ui);
  vertical-align: 0.6em;
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 95;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
  padding: 18px 20px;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 14px 34px rgba(16, 60, 81, 0.18);
}

.cookie-banner a {
  font-weight: 700;
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-demo {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    line-height: 1.4;
  }

  .cookie-actions .btn {
    flex-basis: 120px;
    height: 36px;
  }
}

@media print {
  .cookie-banner {
    display: none !important;
  }
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--sky-pale);
}

.to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 20px;
    width: 46px;
    height: 46px;
  }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  max-width: min(90vw, 420px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Basic tablet/mobile safety net (proper pass comes after desktop approval) ---------- */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
    padding: 0 22px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    order: 4;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 3.6vw;
    right: 3.6vw;
    padding: 12px 22px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    pointer-events: auto;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
    background: transparent;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .freebie-inner,
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .freebie-copy {
    padding-left: 0;
  }

  .hand-note {
    text-align: center;
    transform: rotate(-4deg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
  }
}

@media (max-width: 640px) {
  .header-actions .icon-button:not(.cart-button) {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-all {
    position: static;
    display: flex;
    justify-content: center;
    margin: 14px auto 0;
    transform: none;
    width: fit-content;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > * + * {
    border-left: 0;
  }
}

/* ---------- Tablet/phone pass (2026-09-28) ---------- */

@media (max-width: 1100px) {
  /* Clouds sat on top of the Free Resource text once the section stacked. */
  .deco-cloud {
    display: none;
  }

  /* Page banners on tablets and phones: show the calm left side of each photo and add a
     stronger scrim, since a centred crop puts the busy middle of the art behind the text. */
  .banner-art[data-cat] {
    background-position: 22% 30%;
  }

  .banner-art::after {
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.86) 0%, rgba(255, 250, 240, 0.6) 55%, rgba(255, 250, 240, 0.15) 100%);
  }

  /* Tablet footer: brand across the top, then Shop | Help side by side. */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > :nth-child(2) {
    border-left: 0;
  }

  /* The nav is out of flow here, so push the icons to the right next to the menu button. */
  .header-actions {
    justify-self: end;
  }

  /* Roomier tap targets in the opened mobile menu. */
  .site-nav > ul > li > a {
    display: block;
    padding: 11px 2px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    place-content: center;
    justify-items: center;
  }
}

/* Search and My Library move into the menu on phones, where their header icons are hidden. */
.nav-phone-only {
  display: none;
}

@media (max-width: 640px) {
  .nav-phone-only {
    display: block;
  }

  .section-title {
    gap: 10px;
    font-size: 23px;
  }

  .section-title .sparkle {
    width: 20px;
    height: 20px;
  }

  /* Stronger banner scrim on phones: the lede runs across the plants in every photo. */
  .banner-art::after {
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.92) 0%, rgba(255, 250, 240, 0.82) 60%, rgba(255, 250, 240, 0.55) 100%);
  }

  .notfound-actions {
    flex-direction: column;
    justify-self: stretch;
  }

  .notfound-actions .btn {
    justify-content: center;
  }

  .deco-star--l {
    display: none;
  }

  /* Sprigs flipped with scaleX(-1) hang past the screen edge on phones. */
  .deco-sprig--r {
    right: -4px;
  }

  .rv-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
  }

  .rv-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-block input,
  .field-block select,
  .field-block textarea {
    min-width: 0;
    max-width: 100%;
  }

  .sticky {
    padding: 24px 26px 26px;
    font-size: 28px;
  }

  /* Legal tables (e.g. retention periods): stack label over value. */
  .legal-doc tr {
    display: grid;
  }

  .legal-doc td {
    padding: 2px 0 !important;
  }

  .legal-doc tr + tr {
    margin-top: 10px;
  }

  .freebie h2 {
    white-space: normal;
    font-size: 19px;
    letter-spacing: 0.01em;
    justify-content: center;
  }

  .freebie h2 .sparkle-coral {
    width: 22px;
    height: 22px;
  }

  .freebie-copy p br {
    display: none;
  }

  /* Email field and button stack instead of squeezing side by side. */
  .freebie-form .field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 26px;
  }

  .freebie-form .btn {
    justify-content: center;
  }

  .footer-grid > * {
    padding: 8px 4px;
  }

  .site-footer li a {
    display: inline-block;
    padding-block: 5px;
  }

  .copyright {
    padding-bottom: 56px; /* room for the corner sprigs */
  }
}

/* Smallest phones (e.g. 320px): product-card buttons no longer fit side by side at full padding. */
@media (max-width: 420px) {
  /* Keeps two-word headings like "SEND US A MESSAGE" on one line with their sparkles. */
  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .btn-sm {
    padding: 0 12px;
    gap: 6px;
  }

  .product-actions {
    flex-wrap: wrap;
  }

  .product-actions .btn {
    flex: 1 1 120px;
    justify-content: center;
  }
}

/* Bigger tap areas for small inline links (visual size unchanged). */
.crumbs a,
.view-all {
  padding-block: 10px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Reviews in D1 (T8): sample tag, the reviewer's own reply, and its form */
.rv-sample {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a5b06;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}
.rv-reply--author { background: var(--paper); border: 1px solid rgba(16, 60, 81, 0.12); }
.rv-add-reply { margin-top: 8px; font-size: 14px; }
.rv-reply-form { display: grid; gap: 8px; margin-top: 10px; }
.rv-reply-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(16, 60, 81, 0.2); border-radius: 12px; font: inherit; }
.rv-reply-form .btn { justify-self: start; }

/* Store-wide sale announcement (main.js): a slim teal bar above the header pill. The page moves
   down by the bar's height so nothing hides behind it. */
:root { --announce-h: 34px; }
html.has-announce body { padding-top: var(--announce-h); }
.site-announce {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--announce-h);
  margin-inline: -3.6vw;
  padding: 4px 44px;
  background: var(--teal);
  color: var(--cream);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.site-announce p { margin: 0; }
.site-announce-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.site-announce-close:focus-visible { outline: 2px solid var(--cream); }
@media (max-width: 640px) {
  :root { --announce-h: 40px; }
  .site-announce { font-size: 12.5px; padding-inline: 36px 40px; }
}
@media print { .site-announce { display: none; } html.has-announce body { padding-top: 0; } }
.rv-verified {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e5f3ea;
  color: #2f6b45;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}
.rv-write-note { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
/* My Library review block (owner, 2026-10-04: buyers review here) */
.lib-review { margin-top: 10px; }
.lib-review-done { display: grid; gap: 4px; font-size: 14px; }
.lib-review-text { margin: 0; }
.lib-review-stars { color: #d9a52a; letter-spacing: 1px; margin-right: 4px; }
.lib-review-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.lib-review-update { justify-self: start; font-size: 14px; }
.lib-review-form { margin-top: 8px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(16, 60, 81, 0.1); }
.lib-review-title { margin: 0 0 4px; font-weight: 700; }
.lib-review-actions { display: flex; gap: 14px; align-items: center; }

/* With the announcement bar the visible header is taller: sticky panels and anchor jumps sit below it. */
html.has-announce { scroll-padding-top: calc(76px + var(--announce-h)); }
html.has-announce:not(.header-hidden) .filters,
html.has-announce:not(.header-hidden) .pd-gallery { top: calc(70px + var(--announce-h)); }
html.has-announce:not(.header-hidden) .commerce-summary { top: calc(76px + var(--announce-h)); }
@media (max-width: 480px) { .site-announce-extra { display: none; } }
