/* =========================================================
   HER LITTLE RITUALS: BRAND THEME
   Colours sampled from the logo. Loaded after style.css and
   before responsive.css, so the existing breakpoints still win.
   Palette:  petal #FBD3DB (logo field)   rose #E45C84 (logo ink)
             ribbon #F29DB4               rosewood #B03A5F (text-safe rose)
             berry #3F1627 (text, dark bands)
========================================================= */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); }

:root {
  /* ---- Brand palette (raw values: only used to build the roles below) ---- */
  --petal: #fbd3db;
  --ribbon: #f29db4;
  --white: #ffffff;
  --cream: #fff8f9;
  --blush: #fff1f4;
  --pink-light: #fde6eb;
  --rose: #e45c84;
  --rose-dark: #9e3057;
  /* was #b03a5f: now 5.1:1 on petal, 6.6:1 on cream */
  --brown: #3f1627;
  --berry-deep: #2b0e1a;

  /* ---- Semantic roles: use THESE in components ---- */
  --color-bg: var(--cream);
  --color-surface: #fffbfc;
  --color-surface-raised: var(--white);
  --color-surface-tint: var(--blush);
  --color-surface-brand: var(--petal);
  --color-surface-inverse: var(--brown);

  --color-text: var(--brown);
  --color-text-muted: #76535f;
  --color-text-subtle: #7a5663;
  /* was #96707d (4.08:1): now 6.0:1 */
  --color-text-inverse: var(--white);
  --color-text-on-inverse: var(--petal);

  --color-border: #f0cdd6;
  --color-border-subtle: #f7e1e7;

  --color-action: var(--rose-dark);
  --color-action-hover: var(--brown);
  --color-on-action: var(--white);
  --color-accent: var(--rose);
  /* decorative only: fails 4.5:1 as text on cream */
  --color-focus: var(--rose-dark);
  --color-focus-on-inverse: var(--petal);

  --color-success-bg: #e9f6ee;
  --color-success-text: #1e6a45;
  --color-warning-bg: #fff4e5;
  --color-warning-text: #8a4b00;
  --color-danger-bg: #fdecea;
  --color-danger-text: #a8231b;
  --color-neutral-bg: #f3f0f1;
  --color-neutral-text: #6b5a60;
  /* out of stock */

  /* ---- Legacy names (kept so existing CSS still works) ---- */
  --pink: var(--ribbon);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --text-light: var(--color-text-subtle);
  --border: var(--color-border);
  --border-light: var(--color-border-subtle);
  --surface: var(--color-surface);

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --heading-font: var(--font-heading);
  --body-font: var(--font-body);

  --radius-small: 10px;
  --radius-medium: 16px;
  --shadow-soft: 0 14px 40px rgba(176, 58, 95, 0.09);
  --shadow-hover: 0 20px 48px rgba(176, 58, 95, 0.16);

  /* ---- Motion tokens ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
}
/* ---------- Base ---------- */
body { background: var(--cream); font-size: 16px; line-height: 1.65; color: var(--text); }
h1, h2, h3, h4 { color: var(--brown); font-weight: 500; letter-spacing: -0.005em; }
h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; }
h1 em, h2 em, h3 em { font-style: italic; color: inherit; }
img { color: transparent; }
::selection { background: var(--petal); color: var(--brown); }

/* Eyebrow labels: sentence case, no tracking */
.eyebrow { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--rose-dark); font-weight: 500; }

.text-link { color: var(--rose-dark); font-weight: 500; border-bottom: 1px solid var(--rose); padding-bottom: 2px; }
.text-link:hover { color: var(--brown); border-color: var(--brown); }

/* ---------- Buttons ---------- */
.btn, .button { border-radius: 999px; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; padding: 14px 30px; }
.btn-primary, .button-primary { background: var(--rose-dark); border-color: var(--rose-dark); color: var(--white); }
.btn-primary:hover, .button-primary:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.btn-outline, .button-secondary { background: transparent; border: 1.5px solid var(--rose-dark); color: var(--rose-dark); }
.btn-outline:hover, .button-secondary:hover { background: var(--rose-dark); color: var(--white); }

/* ---------- Announcement + header ---------- */
.announcement-bar { background: var(--brown); color: var(--petal); }
.announcement-bar p { font-size: 13px; letter-spacing: 0.02em; }

.site-header { background: rgba(255, 248, 249, 0.92); border-bottom: 1px solid var(--border); }
.navbar { min-height: 80px; }
.logo { gap: 14px; }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--rose); }
.brand-name { font-family: var(--font-heading); font-size: 25px; font-weight: 500; line-height: 1; color: var(--brown); white-space: nowrap; }
.brand-name i { font-family: var(--font-script); font-style: normal; font-size: 1.3em; color: var(--rose); padding-left: 2px; }
.nav-link { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--rose-dark); }
.cart-count { background: var(--rose-dark); color: var(--white); }

/* ---------- Hero: the ring from the logo ---------- */
.hero { background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); overflow: hidden; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 1; font-weight: 500; }
.hero h1 em { display: block; font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--rose); font-size: 1.12em; line-height: 1.15; margin-top: 4px; }
.hero-description { font-size: 18px; color: var(--muted); max-width: 44ch; }

.hero-ring { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; height: auto; }
.hero-ring .ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-ring .ring-svg circle { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; animation: ring-draw 2s cubic-bezier(.5, 0, .2, 1) both; }
.hero-ring .ring-photo { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, var(--pink-light), var(--petal)); }
.hero-ring .ring-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring .hero-bow { position: absolute; top: -9%; left: 50%; width: 36%; transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(176, 58, 95, 0.18)); }
.hero-ring .spark { position: absolute; width: 7%; color: var(--rose); }
.hero-ring .spark.s1 { top: 1%; left: 22%; }
.hero-ring .spark.s2 { top: 4%; right: 20%; width: 5%; }
@keyframes ring-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Benefits strip ---------- */
.benefits { background: var(--petal); border: 0; }
.benefit { gap: 12px; }
.benefit p { font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brown); margin: 0; }
.benefit-icon { display: inline-flex; width: 26px; height: 26px; color: var(--rose-dark); background: none; border: 0; font-size: 0; }
.benefit-icon svg, .why-card-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Packages ---------- */
.products-section { background: var(--cream); }
.product-card { background: transparent; }
.product-image, .product-card-image { border-radius: 220px 220px 16px 16px; background: radial-gradient(circle at 50% 30%, var(--pink-light), var(--petal)); }
.product-card:hover { transform: translateY(-4px); }
.product-badge, .product-label { background: var(--white); color: var(--rose-dark); border-radius: 999px; font-size: 12px; letter-spacing: 0.01em; text-transform: none; font-weight: 500; padding: 5px 12px; }
.product-card h3, .product-info h3 { font-size: 26px; font-weight: 500; }
.product-info p, .product-card-content p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.product-info .product-price, .product-card-content .product-price, .product-price { background: none; padding: 0; color: var(--rose-dark); font-family: var(--font-heading); font-size: 26px; font-weight: 600; letter-spacing: 0; }
.products-bottom p { font-family: var(--font-heading); font-style: italic; font-size: 22px; }

/* ---------- Gentle reminder band ---------- */
.editorial-message { position: relative; overflow: hidden; background: var(--brown); color: var(--petal); }
.editorial-message::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1.5px solid var(--rose); border-radius: 50%; opacity: 0.35; pointer-events: none; }
.editorial-message-inner { position: relative; }
.editorial-message h2 { color: var(--white); }
.editorial-message p { color: var(--petal); font-size: 18px; }
.editorial-message .text-link { color: var(--petal); border-color: var(--ribbon); }
.editorial-message .text-link:hover { color: var(--white); border-color: var(--white); }

/* ---------- About ---------- */
.editorial-about-image { border-radius: 260px 260px 16px 16px; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--pink-light), var(--petal)); border: 0; }
.editorial-about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content p { font-size: 17px; color: var(--muted); }

/* ---------- Values ---------- */
.why-section { background: var(--blush); }
.why-card { background: transparent; border: 0; border-top: 1.5px solid var(--rose); border-radius: 0; box-shadow: none; padding: 26px 0 0; }
.why-card-icon { display: inline-flex; width: 28px; height: 28px; margin-bottom: 14px; color: var(--rose-dark); background: none; border: 0; font-size: 0; }
.why-card h3 { font-size: 28px; }
.why-card p { font-size: 16px; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter-section { background: var(--petal); }
.newsletter-form { border-radius: 999px; overflow: hidden; background: var(--white); border: 1.5px solid var(--rose-dark); }
.newsletter-form input { border: 0; background: transparent; padding-left: 24px; font-size: 16px; }
.newsletter-form .btn { border-radius: 999px; margin: 4px; }
.newsletter-disclaimer { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--petal); }
.site-footer h3 { font-family: var(--font-heading); font-size: 22px; color: var(--white); letter-spacing: 0; text-transform: none; }
.site-footer a, .site-footer p { color: var(--petal); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-logo { width: 96px; height: 96px; }
.footer-tagline { font-family: var(--font-script); font-style: normal; font-size: 30px; color: var(--ribbon); }
.footer-bottom { border-color: rgba(251, 211, 219, 0.2); }
.footer-bottom p { font-size: 14px; }

/* ---------- Forms (checkout, newsletter) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { border: 1px solid var(--border); border-radius: 12px; background: var(--white); font-size: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--color-focus);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- Motion + fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-ring .ring-svg circle { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
  /* Keep colour/opacity feedback; remove travel and scaling only */
  .btn, .button { transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
  .btn:hover, .button:hover, .btn:active, .button:active,
  .product-card:hover, .whatsapp-float:hover { transform: none; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 20px; }
  .brand-logo { width: 48px; height: 48px; }
  .hero-ring { max-width: 360px; }
}

/* ---------- Fixes after first review ---------- */
.product-info .product-price, .product-card-content .product-price, .product-price { border: 0; }
.editorial-about-image { aspect-ratio: 4 / 5; min-height: 380px; position: relative; }
.editorial-about-image img { position: absolute; inset: 0; }
.editorial-message-inner p, .editorial-message-inner h2 { color: var(--petal); }
.editorial-message-inner h2 { color: var(--white); }

/* =========================================================
   MOTION SUPPORT (pairs with js/motion.js)
========================================================= */
.word { display: inline-block; }
.hero-ring .hero-bow { left: 32%; transform: none; }
.editorial-message::before { content: none; }
.band-ring { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border: 1.5px solid var(--rose); border-radius: 50%; opacity: 0.35; pointer-events: none; }
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-header.scrolled { background: rgba(255, 248, 249, 0.98); box-shadow: 0 8px 28px rgba(176, 58, 95, 0.1); }

/* Value cards: the rule is a pseudo-element so it can draw in */
.why-card { --line: 1; position: relative; border-top: 0; }
.why-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: var(--rose); transform-origin: left; transform: scaleX(var(--line)); }

/* Press and hover feedback */
.btn, .button { transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:hover, .button:hover { transform: translateY(-2px); }
.btn:active, .button:active { transform: scale(0.98); }
@media (hover: none) { .btn:hover, .button:hover { transform: none; } }

/* Bag count: perfectly centred in its circle */
.cart-count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 0 1px; margin-left: 6px; border-radius: 50%; line-height: 1; font-family: var(--font-body); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-link { display: inline-flex; align-items: center; }

/* Footer contact */
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-icon { width: 17px; height: 17px; flex: none; fill: currentColor; color: var(--ribbon); }
.footer-contact a:hover .footer-icon { color: var(--white); }

/* Card label floats on the photo instead of sitting in a strip under it */
.product-image .product-label, .product-card-image .product-label { position: absolute; left: 14px; bottom: 14px; z-index: 2; margin: 0; box-shadow: 0 4px 14px rgba(63, 22, 39, 0.12); }

/* Footer text a touch larger for readability */
.site-footer li a, .footer-brand-description { font-size: 15px; }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rose-dark); color: var(--white); box-shadow: 0 10px 28px rgba(176, 58, 95, 0.35); transition: transform 0.25s ease, background-color 0.25s ease; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); background: var(--brown); }
.whatsapp-float:focus-visible { outline: 3px solid var(--petal); outline-offset: 3px; }

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--color-focus-on-inverse);
}

.announcement-bar a:focus-visible,
.editorial-message a:focus-visible {
  outline-color: var(--color-focus-on-inverse);
}

/* =========================================================
   SKELETON LOADERS
   Opacity-only pulse (cheap, no layout work). Static when
   the visitor prefers reduced motion.
========================================================= */
:root {
  --color-skeleton: var(--pink-light);
}

@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.55;
  }
}

/* Placeholder cards (shop grid while products load) */
.skeleton-block {
  display: block;
  background: var(--color-skeleton);
  border-radius: 6px;
  animation: skeleton-pulse 1.1s ease-in-out infinite alternate;
}

.skeleton-card {
  min-width: 0;
}

.skeleton-card__image {
  aspect-ratio: 4 / 4.6;
  border-radius: 0;
}

.skeleton-card__name {
  height: 22px;
  width: 72%;
  margin-top: 20px;
}

.skeleton-card__price {
  height: 18px;
  width: 34%;
  margin-top: 12px;
}

.skeleton-heading {
  grid-column: 1 / -1;
  height: 30px;
  width: 180px;
}

/* Real image slots: pulse until the photo has loaded, then fade it in */
.product-image::before,
.product-main-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-skeleton);
  animation: skeleton-pulse 1.1s ease-in-out infinite alternate;
  pointer-events: none;
}

.product-image.is-loaded::before,
.product-main-image.is-loaded::before {
  animation: none;
  opacity: 0;
}

.product-image img,
.product-main-image img {
  position: relative;
  opacity: 0;
}

.product-image img {
  transition: transform 0.6s ease, opacity 240ms var(--ease-out);
}

.product-main-image img {
  transition: opacity 240ms var(--ease-out);
}

.product-image.is-loaded img,
.product-main-image.is-loaded img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .skeleton-block,
  .product-image::before,
  .product-main-image::before {
    animation: none;
  }

  .product-image img,
  .product-main-image img {
    transition: none;
  }
}

/* Hero ring: always a true circle (older min-height rules were stretching it) */
.hero-ring.hero-image.editorial-hero-image {
  min-height: 0;
  align-self: center;
}

/* =========================================================
   SEMANTIC TOKENS: additions (status borders, fields, focus ring)
========================================================= */
:root {
  --color-field-border: #9a7683;
  /* form controls: 3.9:1 on white (WCAG needs 3:1) */
  --color-focus-ring: rgba(158, 48, 87, 0.25);

  --color-success-border: #b9d9bf;
  --color-warning-border: #f3d3a4;
  --color-danger-border: #efc3be;
  --color-info-bg: #edf3fa;
  --color-info-text: #294e75;
  --color-info-border: #c8d9ed;
  --color-neutral-border: #d9cfd2;
}

/* Form controls: visible boundary + a focus indicator that survives `outline: none` elsewhere */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
select,
textarea {
  border-color: var(--color-field-border);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus) !important;
  outline-offset: 2px;
}

.site-footer :where(a, button):focus-visible,
.announcement-bar :where(a, button):focus-visible,
.editorial-message :where(a, button):focus-visible {
  outline-color: var(--color-focus-on-inverse) !important;
}

/* =========================================================
   FEATURE TILES + CATEGORY CHIPS (homepage)
   Flat surfaces, tone steps for depth, transform-only motion.
========================================================= */
.feature-tiles {
  padding-block: 56px 16px;
  background: var(--color-bg);
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: repeat(2, minmax(230px, 1fr));
}

.feature-tile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-surface-tint);
  color: var(--color-text);
  transition: transform var(--dur-fast) var(--ease-out);
}

.feature-tile--large {
  grid-row: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--color-surface-brand);
}

.feature-tile--dark {
  background: var(--color-surface-inverse);
  color: var(--color-text-on-inverse);
}

.feature-tile__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 44px);
}

.feature-tile h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  color: inherit;
}

.feature-tile--large h3 {
  font-size: clamp(34px, 3.8vw, 54px);
}

.feature-tile p {
  margin: 0;
  max-width: 30ch;
  font-size: 16px;
  color: inherit;
}

.feature-tile .feature-tile__price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
}

.feature-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--color-action);
  color: var(--color-on-action);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.feature-tile--dark .feature-tile__cta {
  background: var(--color-surface-brand);
  color: var(--color-text);
}

.feature-tile__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.feature-tile__media {
  position: relative;
  margin: 14px 14px 14px 0;
  overflow: hidden;
  border-radius: 20px;
  min-height: 220px;
}

.feature-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 500ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .feature-tile:hover .feature-tile__media img {
    transform: scale(1.04);
  }

  .category-chips a:hover {
    background: var(--color-action);
    border-color: var(--color-action);
    color: var(--color-on-action);
  }
}

.feature-tile:active {
  transform: scale(0.992);
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .feature-tile--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feature-tile--large .feature-tile__media {
    min-height: 380px;
  }
}

@media (max-width: 700px) {
  .feature-tiles {
    padding-block: 36px 8px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-tile,
  .feature-tile--large {
    grid-template-columns: 1.1fr 1fr;
    border-radius: 22px;
  }

  .feature-tile__text {
    padding: 20px 8px 20px 20px;
    gap: 8px;
  }

  .feature-tile__cta {
    padding: 10px 16px;
    font-size: 14px;
  }

  .feature-tile--large h3 {
    font-size: 30px;
  }

  .feature-tile__media,
  .feature-tile--large .feature-tile__media {
    min-height: 190px;
    margin: 10px 10px 10px 0;
    border-radius: 16px;
  }
}

/* Category chips (above the homepage package grid) */
.category-chips {
  margin: 0 0 28px;
}

.category-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--color-field-border);
  border-radius: 999px;
  background: var(--color-surface-raised);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

@media (prefers-reduced-motion: reduce) {

  .feature-tile,
  .feature-tile__media img {
    transition: none;
  }

  .feature-tile:hover .feature-tile__media img,
  .feature-tile:active {
    transform: none;
  }
}
