/* =============================================================
   little & GROWN — Brand Website
   Built entirely from the brand kit: colours, fonts, logo,
   patterns (sliced + scattered) and illustrations.
   ============================================================= */

/* ----------  FONTS  ---------- */
@font-face {
  font-family: "Garet";
  src: url("../assets/fonts/Garet-Book.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Marjolaine";          /* handwritten script */
  src: url("../assets/fonts/Marjolaine-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Postcard";            /* playful display */
  src: url("../assets/fonts/PostcardsFromPortugal-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Postcard";
  src: url("../assets/fonts/PostcardsFromPortugal-Oblique.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ----------  BRAND TOKENS  ---------- */
:root {
  /* Palette straight from L&G_Brand Colors */
  --cotton-cloud:   #FFFAF3;  /* light background */
  --cocoa-bark:     #66321B;  /* body text */
  --storybook-blue: #537DA0;  /* primary */
  --morning-mist:   #DFEAF3;  /* primary light */
  --clay-hearth:    #C56E41;  /* accent */
  --golden-harvest: #ECBD3E;  /* accent */
  --sprout-meadow:  #C1B556;  /* accent */
  --blush-bloom:    #DEBED3;  /* accent */

  --ink:   var(--cocoa-bark);
  --paper: var(--cotton-cloud);

  --font-body:    "Garet", "Trebuchet MS", system-ui, sans-serif;
  --font-script:  "Marjolaine", "Garet", cursive;
  --font-display: "Postcard", "Garet", sans-serif;

  --radius: 28px;
  --radius-lg: 44px;
  --shadow-soft: 0 18px 40px -22px rgba(102, 50, 27, .35);
  --shadow-card: 0 26px 60px -30px rgba(83, 125, 160, .55);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
section { position: relative; }

/* ----------  TYPE  ----------
   Big, important headings use Garet (bold) so they stay readable.
   The playful display + script faces are reserved for the hero
   showcase title and small accent words inside headings.          */
h1, h2, h3 { font-family: var(--font-body); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; }
.hero__title { font-family: var(--font-display); font-weight: 400; letter-spacing: .3px; }
.script { font-family: var(--font-script); font-weight: 400; }
/* a small handwritten accent word dropped inside a Garet heading */
h2 .accent, .section-head h2 .accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.18em;
  line-height: .9;
  color: var(--clay-hearth);
}
.values .section-head h2 .accent { color: var(--golden-harvest); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--storybook-blue);
  display: inline-block;
}

/* ----------  LAYOUT HELPERS  ---------- */
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.section-pad { padding-block: clamp(3rem, 5.5vw, 5.25rem); }
.center { text-align: center; }

/* ----------  BUTTONS  ---------- */
.btn {
  --bg: var(--storybook-blue);
  --fg: var(--cotton-cloud);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 24px 44px -20px rgba(102,50,27,.5); }
.btn:active { transform: translateY(-1px); }
.btn--clay   { --bg: var(--clay-hearth); }
.btn--gold   { --bg: var(--golden-harvest); --fg: var(--cocoa-bark); }
.btn--ghost  { --bg: transparent; --fg: var(--storybook-blue); box-shadow: inset 0 0 0 2px var(--storybook-blue); }
.btn--ghost:hover { --bg: var(--storybook-blue); --fg: var(--cotton-cloud); }

/* =============================================================
   SCATTERED BRAND DOODLES
   Clean, WHOLE shapes drawn as inline SVG (no cropping = no ugly
   cuts). They echo the motifs from the brand pattern sheets —
   sparkles, dots, leaves, flowers, waves, arches and the L&G mark —
   each rendered in a palette colour and floated around the page.
   ============================================================= */
.scatter { position: absolute; inset: 0; pointer-events: none; overflow: clip; z-index: 0; }
.doodle {
  position: absolute;
  width: var(--s, 54px); height: var(--s, 54px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: var(--o, .6);
  animation: bob var(--dur, 9s) ease-in-out infinite alternate;
}
/* On narrow screens the content fills the width — doodles would only
   collide with text, so keep them to roomy desktop layouts. */
@media (max-width: 820px) { .doodle { display: none; } }

/* sparkle */
.d-spark      { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c4 30 12 38 42 46-30 8-38 16-42 46-4-30-12-38-42-46 30-8 38-16 42-46z' fill='%23ECBD3E'/%3E%3C/svg%3E"); }
.d-spark-blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4c4 30 12 38 42 46-30 8-38 16-42 46-4-30-12-38-42-46 30-8 38-16 42-46z' fill='%23537DA0'/%3E%3C/svg%3E"); }
/* dot trio */
.d-dots       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23C56E41'%3E%3Ccircle cx='26' cy='42' r='12'/%3E%3Ccircle cx='62' cy='26' r='9'/%3E%3Ccircle cx='58' cy='68' r='14'/%3E%3C/g%3E%3C/svg%3E"); }
.d-dots-blue  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23537DA0'%3E%3Ccircle cx='26' cy='42' r='12'/%3E%3Ccircle cx='62' cy='26' r='9'/%3E%3Ccircle cx='58' cy='68' r='14'/%3E%3C/g%3E%3C/svg%3E"); }
/* leaf sprig */
.d-leaf       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 95C50 60 50 38 50 12' stroke='%23C1B556' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M50 46C30 41 22 29 24 15 40 17 50 27 50 46z' fill='%23C1B556'/%3E%3Cpath d='M50 62C70 57 78 45 76 31 60 33 50 43 50 62z' fill='%23C1B556'/%3E%3C/svg%3E"); }
/* flower */
.d-flower     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23DEBED3'%3E%3Ccircle cx='50' cy='26' r='18'/%3E%3Ccircle cx='74' cy='50' r='18'/%3E%3Ccircle cx='50' cy='74' r='18'/%3E%3Ccircle cx='26' cy='50' r='18'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='13' fill='%23ECBD3E'/%3E%3C/svg%3E"); }
/* wave */
.d-wave       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 44'%3E%3Cpath d='M6 22Q22 2 38 22T70 22T102 22T124 22' stroke='%23537DA0' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); aspect-ratio: 130/44; height: auto; }
/* arch */
.d-arch       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' stroke='%23C56E41' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); aspect-ratio: 100/62; height: auto; }
/* the L&G heart mark (whole, crisp) */
.d-mark       { background-image: url("../assets/logos/mark-stroke.svg"); }

@keyframes bob {
  from { transform: translateY(0)     rotate(var(--r, 0deg)); }
  to   { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 5deg)); }
}

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--cotton-cloud) 86%, transparent);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(102,50,27,.5); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.nav__logo img { height: 48px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-weight: 700; font-size: .95rem; position: relative; padding-block: .2rem;
  color: var(--storybook-blue);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--golden-harvest); border-radius: 3px; transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--morning-mist); align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2.4px; border-radius: 3px;
  background: var(--storybook-blue); transition: .3s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(6px) translateX(0); position: relative; top: -2.4px; }

/* =============================================================
   HERO
   ============================================================= */
.hero { padding-top: clamp(1.5rem, 3.5vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); overflow: visible; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  position: relative; z-index: 2;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--storybook-blue);
  line-height: .96;
}
/* the horizontal brand logo now stands in for the "little & GROWN" wordmark */
.hero__wordmark { display: block; width: min(100%, 480px); height: auto; margin-bottom: .35rem; }
.hero__title .amp { color: var(--clay-hearth); }
.hero__title .script {
  display: block; color: var(--clay-hearth);
  font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: .15em;
}
/* eyebrow tagline — handwritten (Marjolaine) in Sprout Meadow */
.hero__tagline {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: .01em;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #c1b556;
}
.hero__lead { font-size: 1.06rem; max-width: 52ch; margin-top: 1.4rem; color: color-mix(in srgb, var(--cocoa-bark) 88%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__trust small { font-weight: 700; letter-spacing: .04em; }
.stars { color: var(--golden-harvest); letter-spacing: 2px; font-size: 1.1rem; }

.hero__art { position: relative; margin-top: 1.5rem; }
.hero__card {
  position: relative; z-index: 2;
  background: var(--golden-harvest);
  border-radius: var(--radius-lg);
  padding: .7rem;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}
/* bigger media — crop so the subject reads large in the frame */
.hero__card img,
.hero__card video {
  display: block;
  border-radius: calc(var(--radius-lg) - 10px);
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 64%;
}
.hero__card video { object-position: center center; background: var(--morning-mist); }
.hero__badge {
  position: absolute; z-index: 3; width: 124px; height: auto; left: -34px; bottom: -26px;
  filter: drop-shadow(0 14px 20px rgba(83,125,160,.3));
  animation: spin-slow 26s linear infinite;
}
/* sun sits clear of the card so the top-right corner is never cut */
.hero__sun { position: absolute; z-index: 3; width: 88px; right: 6px; top: -56px; animation: bob 7s ease-in-out infinite alternate; }

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* =============================================================
   AFFIRMATION MARQUEE
   ============================================================= */
.marquee {
  background: var(--storybook-blue); color: var(--cotton-cloud);
  padding-block: 1rem; overflow: hidden; white-space: nowrap;
  border-block: 4px solid var(--cocoa-bark);
}
.marquee__track { display: inline-flex; gap: 2.6rem; animation: slide 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-script); font-size: 1.7rem; display: inline-flex; align-items: center; gap: 2.6rem;
}
.marquee span::after { content: "✦"; color: var(--golden-harvest); font-size: 1.1rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =============================================================
   STORY
   ============================================================= */
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
/* the photo frame sticks beside the long love-letter as you scroll it */
.story__art { position: sticky; top: 100px; align-self: start; }

/* photo slideshow — a rotated scrapbook frame with a gentle Ken Burns crossfade */
.story__slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  background: var(--blush-bloom); padding: 1rem; transform: rotate(-2deg);
  overflow: hidden;
}
.story__slide {
  position: absolute; inset: 1rem;
  width: calc(100% - 2rem); height: calc(100% - 2rem);
  object-fit: cover; border-radius: calc(var(--radius-lg) - 12px);
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease;
}
.story__slide.is-active {
  opacity: 1; transform: scale(1); z-index: 1;
  transition: opacity 1.1s ease, transform 6.5s ease;
}
.story__caption {
  position: absolute; left: 1.5rem; bottom: 1.4rem; z-index: 3;
  font-family: var(--font-script); font-size: 1.2rem; line-height: 1;
  color: var(--cocoa-bark); background: color-mix(in srgb, var(--cotton-cloud) 92%, transparent);
  padding: .4rem 1rem .32rem; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.story__dots { display: none; }
.story__dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--cotton-cloud) 55%, transparent); transition: .3s var(--ease);
}
.story__dot.is-active { background: var(--cotton-cloud); width: 22px; border-radius: 6px; }
.story__mark { position: absolute; width: 108px; right: -20px; top: -28px; z-index: 4; animation: bob 8s ease-in-out infinite alternate; }
.story h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--clay-hearth); margin-top: .6rem; }
.story p { margin-top: 1.1rem; font-size: 1.08rem; max-width: 52ch; }
.story__sign { font-family: var(--font-script); font-size: 1.9rem; color: var(--storybook-blue); margin-top: 1.4rem; }
.story__stats { display: flex; gap: 2.4rem; margin-top: 2rem; flex-wrap: wrap; }
.story__stats b { font-family: var(--font-display); font-size: 2.3rem; color: var(--golden-harvest); display: block; line-height: 1; }
.story__stats small { font-weight: 700; }

/* =============================================================
   COLLECTIONS  (animal illustrations)
   ============================================================= */
.collections { background: var(--morning-mist); }
.section-head { max-width: 56ch; margin-inline: auto; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); color: var(--storybook-blue); margin-top: .5rem; }
.section-head p { margin-top: .9rem; font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.card {
  background: var(--cotton-cloud); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem; text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background: var(--accent, var(--golden-harvest));
}
.card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow-card); border-color: var(--accent); }
.card__img {
  height: 150px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--tint, var(--morning-mist)); border-radius: 22px;
}
.card__img img { height: 124px; width: auto; transition: transform .4s var(--ease); }
.card:hover .card__img img { transform: scale(1.08) rotate(2deg); }
.card h3 { font-size: 1.4rem; color: var(--cocoa-bark); }
.card p { font-size: .95rem; margin-top: .4rem; color: color-mix(in srgb, var(--cocoa-bark) 80%, transparent); }
.card__tag { display: inline-block; margin-top: .9rem; font-weight: 700; font-size: .85rem; color: var(--accent); }

/* =============================================================
   SHOP (Shopify Buy Button embed)
   Rendered with iframe:false so the component inherits the site's
   @font-face brand font (Garet) + palette. Colours come from the
   embed `options` config in index.html; these rules add the brand
   font everywhere, pill buttons, and cart/modal chrome (the cart
   and toggle mount at <body> level, outside .shop__embed).
   ============================================================= */
.shop { background: var(--morning-mist); position: relative; overflow: hidden; }
.shop .section-head h2 { color: var(--storybook-blue); }
.shop .wrap { position: relative; z-index: 1; }
/* the shop's background animation is made from the brand flowers & stars:
   flowers drift gently, stars twinkle (scale + fade + spin) */
.doodle.drift   { animation: doodle-drift var(--dur, 13s) ease-in-out infinite alternate; }
.doodle.twinkle { animation: doodle-twinkle var(--dur, 7s) ease-in-out infinite; }
@keyframes doodle-drift {
  from { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  to   { transform: translate(16px, -26px) rotate(calc(var(--r, 0deg) + 14deg)); }
}
@keyframes doodle-twinkle {
  0%, 100% { transform: scale(.72) rotate(0deg); opacity: .3; }
  50%      { transform: scale(1.12) rotate(28deg); opacity: .9; }
}
/* transparent wrapper so the product cards sit directly on the mist,
   exactly like the old collection cards did */
.shop__embed {
  margin-top: 3rem;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* brand font across the whole component, cart and toggle */
.shopify-buy__product, .shopify-buy__product *,
.shopify-buy__cart, .shopify-buy__cart *,
.shopify-buy__modal, .shopify-buy__modal *,
.shopify-buy__cart-toggle, .shopify-buy__cart-toggle * {
  font-family: var(--font-body) !important;
  letter-spacing: 0;
}
/* With iframe:false the SDK doesn't inject its config colours, so the
   palette is driven here (Sprout Meadow buttons, cocoa text, etc.) */
.shopify-buy__btn,
.shopify-buy__btn--cart-checkout,
.shopify-buy__cart__submit {
  background-color: var(--sprout-meadow) !important;
  color: var(--cocoa-bark) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color .25s ease, transform .25s ease !important;
}
/* iframe:false drops the default button padding, so "View product" was a
   cramped 26px sliver — give it real pill proportions. */
.shopify-buy__product .shopify-buy__btn {
  display: block !important;
  width: 100% !important;
  margin-top: 4px !important;
  padding: .82rem 1.4rem !important;
  background-color: var(--storybook-blue) !important;
  color: var(--cotton-cloud) !important;
  border-radius: 12px !important;
  line-height: 1.2 !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  box-shadow: 0 8px 18px -10px rgba(83,125,160,.55);
}
.shopify-buy__product .shopify-buy__btn:hover {
  background-color: #446a8c !important;
  transform: translateY(-1px);
}
/* same treatment for the "Next page" pagination button, centred under the grid */
.shopify-buy__collection-pagination-button {
  display: block !important;
  width: fit-content !important;
  margin: 2.75rem auto 0 !important;
  padding: .7rem 1.9rem !important;
  background: transparent !important;
  color: var(--storybook-blue) !important;
  border: 1.5px solid rgba(83,125,160,.4) !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  font-size: .9rem !important;
  letter-spacing: .04em;
}
.shopify-buy__collection-pagination-button:hover {
  background: var(--storybook-blue) !important;
  color: var(--cotton-cloud) !important;
  transform: translateY(-1px);
}
.shopify-buy__btn:hover,
.shopify-buy__btn--cart-checkout:hover,
.shopify-buy__cart__submit:hover { background-color: #aea34d !important; transform: translateY(-2px); }

/* product card typography */
.shopify-buy__product__title { color: var(--cocoa-bark) !important; font-weight: 700 !important; }
.shopify-buy__product__price,
.shopify-buy__product__actual-price { color: var(--storybook-blue) !important; font-weight: 700 !important; }
.shopify-buy__product__compare-price { color: color-mix(in srgb, var(--cocoa-bark) 50%, transparent) !important; }

/* modal product title in storybook blue */
.shopify-buy__modal .shopify-buy__product__title,
.shopify-buy__modal-product .shopify-buy__product__title { color: var(--storybook-blue) !important; }

/* floating cart toggle */
.shopify-buy__cart-toggle {
  background-color: var(--sprout-meadow) !important;
  color: var(--cocoa-bark) !important;
}
.shopify-buy__cart-toggle:hover { background-color: #aea34d !important; }

/* NOTE: the modal, cart and toggle render in their own iframes (Shopify's
   default), so they're themed via the embed `options` config in index.html,
   not by these page rules. Keeping the product grid iframe-free is what lets
   it inherit Garet above. */

/* ----------  Product grid + image sizing  ----------
   With iframe:false the SDK's own grid/image styles do NOT apply, so the
   products were stacking full-width with un-sized (550px) images — the
   "broken" cards. These rules lay the collection out as centred cards and
   trap each product photo inside a fixed square box so it can't overflow. */
.shopify-buy__collection-products {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 !important;
}
/* premium card: cream, hairline border, soft layered shadow, subtle lift */
.shopify-buy__product {
  position: relative;
  overflow: hidden;
  flex: 0 1 268px;
  width: auto !important;
  max-width: 300px !important;
  margin: 0 !important;
  float: none !important;
  background: #fffdf8;
  border: 1px solid rgba(102, 50, 27, .09);
  border-radius: 20px;
  padding: 14px 16px 20px;
  box-shadow: 0 1px 2px rgba(102,50,27,.04), 0 16px 34px -24px rgba(102,50,27,.3);
  text-align: left;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s ease;
}
.shopify-buy__product::before { content: none !important; }
.shopify-buy__product:hover {
  transform: translateY(-8px);
  box-shadow: 0 2px 4px rgba(102,50,27,.05), 0 30px 55px -28px rgba(102,50,27,.42);
  border-color: rgba(83,125,160,.3);
}

/* refined image frame — one soft consistent tint, taller ratio, clean corners */
.shopify-buy__product-img-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 104% !important;
  margin: 0 0 16px !important;
  overflow: hidden;
  border-radius: 14px;
  background: #f4ede2;
}
.shopify-buy__product__variant-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform .7s var(--ease);
}
.shopify-buy__product:hover .shopify-buy__product__variant-img { transform: scale(1.05); }
/* premium = clean product photos (no doodles on the images) */
.shopify-buy__product-img-wrapper::before,
.shopify-buy__product-img-wrapper::after { content: none !important; }

.shopify-buy__product__title { display: block; margin: 0 0 3px; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.shopify-buy__product__price { display: block; margin-top: 2px; font-size: 1rem; }
/* iframe:false leaves Shopify's "Regular price" a11y label visible — hide it
   so only the plain price (₱80.00) shows. */
.shop__embed .visuallyhidden,
.shop__embed .shopify-buy__visually-hidden { display: none !important; }
.shopify-buy__product__actual-price { font-size: 1rem; }
.shopify-buy__product .shopify-buy__btn-wrapper { margin-top: 16px; }

@media (max-width: 600px) { .shopify-buy__product { flex: 1 1 100%; max-width: 340px !important; } }

/* =============================================================
   AFFIRMATIONS GALLERY
   ============================================================= */
.affirmations { background: var(--blush-bloom); }
.affirm__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; align-items: center; }
.affirm__item {
  background: var(--cotton-cloud); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow-soft); transition: transform .4s var(--ease);
}
.affirm__item:nth-child(odd) { transform: rotate(-2deg); }
.affirm__item:nth-child(even) { transform: rotate(2deg); }
.affirm__item:hover { transform: rotate(0) translateY(-8px) scale(1.03); }
.affirm__item img { width: 100%; }

/* =============================================================
   VALUES
   ============================================================= */
.values { background: var(--clay-hearth); color: var(--cotton-cloud); }
.values .section-head h2 { color: var(--cotton-cloud); }
.values .eyebrow { color: var(--golden-harvest); }
.values .section-head p { color: color-mix(in srgb, var(--cotton-cloud) 88%, transparent); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.value {
  background: color-mix(in srgb, var(--cotton-cloud) 12%, transparent);
  border: 2px solid color-mix(in srgb, var(--cotton-cloud) 30%, transparent);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  transition: transform .4s var(--ease), background .3s ease;
}
.value:hover { transform: translateY(-8px); background: color-mix(in srgb, var(--cotton-cloud) 20%, transparent); }
.value__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--golden-harvest); color: var(--cocoa-bark); font-size: 1.7rem; margin-bottom: 1.1rem; font-family: var(--font-script); }
.value h3 { font-size: 1.5rem; }
.value p { margin-top: .6rem; color: color-mix(in srgb, var(--cotton-cloud) 90%, transparent); }

/* =============================================================
   JOURNAL
   ============================================================= */
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.post {
  background: var(--cotton-cloud); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.post__media { height: 180px; display: grid; place-items: center; background: var(--tint, var(--sprout-meadow)); }
.post__media img { height: 140px; width: auto; }
.post__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-hearth); }
.post h3 { font-size: 1.35rem; margin-top: .5rem; color: var(--storybook-blue); }
.post p { font-size: .96rem; margin-top: .5rem; }
.post__more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--clay-hearth); }
.post__more::after { content: " →"; }

/* =============================================================
   NEWSLETTER
   ============================================================= */
.news { background: var(--morning-mist); color: var(--cocoa-bark); overflow: clip; }
.news__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.news .eyebrow { color: var(--clay-hearth); }
.news h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--storybook-blue); }
.news p { margin-top: .8rem; font-size: 1.08rem; max-width: 44ch; }
.news__form { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.news__form input {
  flex: 1 1 240px; padding: 1rem 1.3rem; border-radius: 999px; border: 2px solid var(--storybook-blue);
  background: var(--cotton-cloud); color: var(--cocoa-bark); font: inherit; min-width: 0;
}
.news__form input::placeholder { color: color-mix(in srgb, var(--cocoa-bark) 50%, transparent); }
.news__form .btn { --bg: var(--clay-hearth); --fg: var(--cotton-cloud); }
.news__note { font-size: .85rem; margin-top: .9rem; font-weight: 600; }
.news__art { position: relative; }
/* frame the scene on a cotton card so it sits cleanly on the mist;
   in-flow (not absolute) so it centres against the copy with no overflow.
   object-fit:cover + a set ratio trims the empty sky so there's no dead
   space below the field. */
.news__art .field {
  display: block; width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  background: var(--cotton-cloud); padding: .7rem; border: 2px solid #fff;
}
.news__art .sun-sm { position: absolute; width: 80px; top: -30px; right: 14px; animation: spin-slow 30s linear infinite; z-index: 2; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--storybook-blue); color: var(--cotton-cloud); padding-top: clamp(2.4rem,4.5vw,3.4rem); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 1.6rem 2rem; }
.footer__brand img { height: 82px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer__brand p { max-width: 34ch; color: color-mix(in srgb, var(--cotton-cloud) 85%, transparent); }
.footer__addr { margin-top: .9rem; font-size: .82rem; line-height: 1.6; color: color-mix(in srgb, var(--cotton-cloud) 70%, transparent); }
.footer h4 { font-family: var(--font-body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1rem; color: var(--golden-harvest); }
.footer__links a { display: block; padding-block: .35rem; color: color-mix(in srgb, var(--cotton-cloud) 90%, transparent); transition: color .2s, padding-left .2s; }
.footer__links a:hover { color: var(--golden-harvest); padding-left: 6px; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.social {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--morning-mist)); color: var(--cocoa-bark);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.social svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.social:hover { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 12px 20px -8px rgba(0,0,0,.45); }
.footer__bottom {
  margin-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--cotton-cloud) 25%, transparent);
  padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: color-mix(in srgb, var(--cotton-cloud) 80%, transparent);
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero__grid, .story__grid, .news__inner { grid-template-columns: 1fr; }
  .story__art { order: -1; position: static; top: auto; }
  .story__slider { max-width: 440px; margin-inline: auto; }
  .cards, .affirm__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid, .journal__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news__art { min-height: 200px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cotton-cloud); padding: 1rem 1.5rem 1.8rem;
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s var(--ease);
    border-bottom: 4px solid var(--golden-harvest);
  }
  .nav__links.open { transform: none; visibility: visible; }
  .nav__links a { padding-block: .9rem; width: 100%; }
  .nav__links a::after { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__toggle span { background: transparent; }
  .nav.open .nav__toggle span::before { transform: rotate(45deg); top: 0; }
  .nav.open .nav__toggle span::after { transform: rotate(-45deg); top: -2.4px; }
}
@media (max-width: 560px) {
  .cards, .affirm__grid, .values__grid, .journal__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { width: 96px; left: -10px; }
  .story__stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   ALL-PRODUCTS CATALOG PAGE (products.html)
   Dynamically populated from the Shopify Storefront API + search.
   ============================================================= */
.catalog { background: var(--morning-mist); position: relative; overflow: hidden; min-height: 72vh; }
.catalog__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.2rem;
  flex-wrap: wrap; max-width: 620px; margin: 2.2rem auto 0;
}
.catalog__search { position: relative; flex: 1 1 320px; }
.catalog__search input {
  width: 100%; padding: .95rem 1.3rem .95rem 3rem;
  border-radius: 999px; border: 1.5px solid rgba(102,50,27,.16);
  background: var(--cotton-cloud); color: var(--cocoa-bark); font: inherit; min-width: 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.catalog__search input:focus { outline: none; border-color: var(--storybook-blue); box-shadow: 0 0 0 4px rgba(83,125,160,.14); }
.catalog__search input::placeholder { color: color-mix(in srgb, var(--cocoa-bark) 50%, transparent); }
.catalog__search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--storybook-blue); opacity: .7; pointer-events: none; }
.catalog__count { font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--storybook-blue); white-space: nowrap; }

.catalog__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem; margin-top: 2.6rem; position: relative; z-index: 1;
}
.pcard {
  display: flex; flex-direction: column;
  background: #fffdf8; border: 1px solid rgba(102, 50, 27, .09); border-radius: 20px;
  padding: 14px 16px 20px; text-align: left;
  box-shadow: 0 1px 2px rgba(102,50,27,.04), 0 16px 34px -24px rgba(102,50,27,.3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(102,50,27,.05), 0 30px 55px -28px rgba(102,50,27,.42); border-color: rgba(83,125,160,.3); }
.pcard__img { position: relative; width: 100%; aspect-ratio: 1/1.04; border-radius: 14px; overflow: hidden; background: #f4ede2; margin-bottom: 16px; }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; color: var(--cocoa-bark); margin: 0 0 3px; }
.pcard__price { font-weight: 700; font-size: 1rem; color: var(--storybook-blue); }
.pcard__btn {
  display: block; width: 100%; margin-top: auto; padding-top: 16px;
}
.pcard__btn button {
  width: 100%; padding: .82rem 1.4rem; border: none; cursor: pointer;
  background: var(--storybook-blue); color: var(--cotton-cloud);
  border-radius: 12px; font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  box-shadow: 0 8px 18px -10px rgba(83,125,160,.55); transition: background .25s ease, transform .25s ease;
}
.pcard__btn button:hover { background: #446a8c; transform: translateY(-1px); }
.pcard__btn button[disabled] { background: color-mix(in srgb, var(--cocoa-bark) 22%, transparent); color: var(--cotton-cloud); cursor: not-allowed; box-shadow: none; transform: none; }

.catalog__status { text-align: center; margin-top: 3rem; font-size: 1.05rem; color: color-mix(in srgb, var(--cocoa-bark) 75%, transparent); position: relative; z-index: 1; }
/* skeleton loading cards */
.pcard--skeleton { pointer-events: none; }
.pcard--skeleton .pcard__img { background: linear-gradient(100deg, #efe7db 30%, #f6f0e7 50%, #efe7db 70%); background-size: 200% 100%; animation: skeleton 1.3s ease-in-out infinite; }
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 480px) { .catalog__grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* =============================================================
   CAROUSEL RAILS  (products · testimonials · journal)
   Horizontal scroll-snap track with arrow buttons. The arrows appear
   only when the cards overflow — i.e. once there are enough of them to
   scroll (a few cards just centre themselves like a normal row).
   ============================================================= */
.lg-rail { position: relative; margin-top: 3rem; z-index: 1; }
.lg-rail__track {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 4px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lg-rail__track::-webkit-scrollbar { display: none; }
.lg-rail__track > * {
  flex: 0 0 min(86%, 340px);
  scroll-snap-align: start;
  margin: 0;
}
/* few cards → centre them instead of stranding them at the left edge */
.lg-rail:not(.is-scrollable) .lg-rail__track { justify-content: center; }
.lg-rail__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 48px; height: 48px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer;
  background: #fffdf8; color: var(--cocoa-bark);
  border: 1px solid rgba(102,50,27,.12);
  box-shadow: 0 12px 28px -12px rgba(102,50,27,.55);
  font-size: 1.6rem; line-height: 1; padding: 0 0 3px;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, opacity .2s ease;
}
.lg-rail__nav:hover { background: var(--sprout-meadow); color: #fff; transform: translateY(-50%) scale(1.08); }
.lg-rail__nav--prev { left: -8px; }
.lg-rail__nav--next { right: -8px; }
.lg-rail.is-scrollable .lg-rail__nav { display: grid; }
.lg-rail__nav[disabled] { opacity: .28; pointer-events: none; }
@media (max-width: 720px) { .lg-rail__nav { display: none !important; } }

/* shop rail: reuse the same scroller on the Shopify products flex.
   The wrapper .lg-rail--shop is created in JS once Shopify renders. */
.lg-rail--shop .shopify-buy__collection-products {
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 4px 18px;
  scrollbar-width: none;
}
.lg-rail--shop .shopify-buy__collection-products::-webkit-scrollbar { display: none; }
/* Pin each card's width and forbid shrinking so extra products OVERFLOW into a
   scroll instead of compressing to fit (the squished look — worst on mobile,
   where the base rule sets flex:1 1 100%). */
.lg-rail--shop .shopify-buy__product {
  scroll-snap-align: start;
  flex: 0 0 262px !important;
  width: 262px !important;
  max-width: 262px !important;
}
@media (max-width: 600px) {
  .lg-rail--shop .shopify-buy__product {
    flex: 0 0 80% !important;
    width: 80% !important;
    max-width: 320px !important;
  }
}
.lg-rail--shop:not(.is-scrollable) .shopify-buy__collection-products { justify-content: center; }

/* =============================================================
   TESTIMONIALS (dynamic, from the CMS)
   ============================================================= */
.testimonials { background: var(--cotton-cloud); position: relative; overflow: hidden; }
.testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; margin-top: 3rem; position: relative; z-index: 1; }
.testi {
  margin: 0; display: flex; flex-direction: column; gap: .9rem;
  background: #fffdf8; border: 1px solid rgba(102,50,27,.08); border-radius: 22px;
  padding: 1.8rem 1.7rem; box-shadow: 0 16px 34px -26px rgba(102,50,27,.3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testi:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -28px rgba(102,50,27,.4); }
.testi__stars { color: var(--golden-harvest); letter-spacing: 2px; font-size: 1rem; }
.testi__quote { margin: 0; color: var(--cocoa-bark); font-size: 1.02rem; line-height: 1.6; }
.testi__quote p { margin: 0 0 .5rem; } .testi__quote p:last-child { margin-bottom: 0; }
.testi__by { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .3rem; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.testi__avatar--letter { display: grid; place-items: center; background: var(--storybook-blue); color: var(--cotton-cloud); font-family: var(--font-display); font-size: 1.2rem; }
.testi__meta { display: flex; flex-direction: column; line-height: 1.3; }
.testi__meta strong { color: var(--cocoa-bark); font-weight: 700; }
.testi__meta small { color: color-mix(in srgb, var(--cocoa-bark) 60%, transparent); font-size: .82rem; }

/* =============================================================
   BLOG POST PAGE (post.php)
   ============================================================= */
.post-page { background: var(--cotton-cloud); padding-block: clamp(2rem,5vw,4rem); min-height: 72vh; }
.post-article { width: min(100% - 3rem, 760px); margin-inline: auto; }
.post-back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--storybook-blue); margin-bottom: 1.6rem; }
.post-back:hover { text-decoration: underline; }
.post-cat { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-hearth); }
.post-page h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--cocoa-bark); line-height: 1.14; margin: .4rem 0; letter-spacing: -.012em; }
.post-meta { color: color-mix(in srgb, var(--cocoa-bark) 55%, transparent); font-size: .9rem; margin-bottom: 1.6rem; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; max-height: 440px; object-fit: cover; background: var(--morning-mist); }
.post-content { color: var(--cocoa-bark); font-size: 1.1rem; line-height: 1.75; }
.post-content h1, .post-content h2, .post-content h3 { font-family: var(--font-body); font-weight: 800; color: var(--storybook-blue); margin: 1.7rem 0 .6rem; line-height: 1.2; }
.post-content p { margin: 0 0 1.15rem; }
.post-content a { color: var(--storybook-blue); text-decoration: underline; }
.post-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 1rem 0; }
.post-content ul, .post-content ol { margin: 0 0 1.15rem 1.4rem; }
.post-content li { margin: .3rem 0; }
.post-content blockquote { border-left: 4px solid var(--golden-harvest); margin: 1.3rem 0; padding: .3rem 0 .3rem 1.2rem; font-style: italic; color: color-mix(in srgb, var(--cocoa-bark) 85%, transparent); }
.post-content em { font-style: italic; } .post-content strong { font-weight: 700; }
