/* ────────────────────────────────────────────────────────────────────────
   01. VARIABLES & RESET
   ──────────────────────────────────────────────────────────────────────── */

:root {
  
  --green: #355E3B;
  --green-light: #4A7A52;
  --green-dark: #24412A;

  --lavender: #D8C2F2;
  --lavender-mid: #c6acea;
  --lavender-pale: #f5f0fa;
  --lavender-deep: #9B79D6;

  --soft: #FCFBF9;
  --cream: #F5F0FA;
  --accent: #9B79D6;

  --white: #FFFFFF;
  --gray-soft: #F2F2F2;

  --text: #2D2D2D;
  --text-muted: #6E6E6E;
  --text-faint: #8E8E8E;

  --border: #E8E8E8;
  --border-soft: #ECECEC;

  --success: #4CAF50;
  --warning: #FFB000;
  --error: #E53935;
  --info: #5C6BC0;


  --primary: var(--green);
  --primary-light: var(--green-light);
  --primary-dark: var(--green-dark);

  --emerald: var(--green);
  --emerald-light: var(--green-light);
  --emerald-dark: var(--green-dark);

  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.10);

  --radius: 18px;
  --radius-btn: 14px;
  --max-width: 1280px;
  --photo-w: 2495;
  --photo-h: 3651;

  --font-display: "Plus Jakarta Sans", "Segoe UI", Inter, system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}


/* ────────────────────────────────────────────────────────────────────────
   02. BASE ELEMENTS & TYPOGRAPHY
   ──────────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  background: var(--soft);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  position: relative;
}

p, li, td, th, span, a, h1, h2, h3, h4, blockquote, figcaption {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

table {
  max-width: 100%;
}

pre, code {
  overflow-x: auto;
  max-width: 100%;
}

iframe, video, embed, object {
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
}

::selection {
  background: var(--lavender);
  color: var(--primary-dark);
}


/* ────────────────────────────────────────────────────────────────────────
   03. NAVIGATION (desktop nav bar)
   ──────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  gap: 16px;
  border-bottom: 1px solid var(--border-soft);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}


.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 1;
  min-width: 0;
}

.nav-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-brand .logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  color: var(--primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.nav-brand .tagline {
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  line-height: 1.3;
  max-width: 20em;
  text-wrap: balance;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}


.nav-menu-header {
  display: none;
}


.nav-menu-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  justify-content: flex-end;
}

.nav-link-icon,
.nav-link-chevron {
  display: none;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
  transition: 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 1;
  color: var(--lavender-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1010;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.25s ease,
              background 0.25s ease;
}

.nav-toggle.active .nav-toggle-bar {
  background: var(--primary-dark);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 1 !important;
  transition: 0.2s;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  color: white !important;
}


.nav-basket-icon {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}

.nav-basket-icon:hover {
  color: var(--lavender-deep);
}

.nav-basket-icon svg {
  width: 22px;
  height: 22px;
}

.nav-basket-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--lavender-deep);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}


.nav-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--lavender-deep);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .nav-basket-icon {
    display: inline-flex;
    margin-left: auto;
  }
}


/* ────────────────────────────────────────────────────────────────────────
   04. BUTTONS
   ──────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-light);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn.secondary:hover {
  background: var(--lavender-pale);
  color: var(--lavender-deep);
}

.btn.accent {
  background: var(--lavender-mid);
  color: white;
}

.btn.accent:hover {
  background: var(--lavender-deep);
  color: white;
}

.btn.small {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-link {
  background: none;
  border: none;
  color: var(--lavender-deep);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}


/* ────────────────────────────────────────────────────────────────────────
   05. HERO / PAGE HERO / BREADCRUMB
   ──────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 130px 24px 90px;
  text-align: left;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.75) 32%,
    rgba(255, 255, 255, 0.45) 58%,
    rgba(255, 255, 255, 0.12) 78%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 640px;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  font-weight: 800;
}

.hero h1 .accent-word {
  color: var(--lavender-deep);
}

.hero p {
  max-width: 480px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 20px;
  text-align: left;
  background: var(--lavender-pale);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 800;
}

.page-hero p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  max-width: 680px;
}

.page-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .page-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(220px, 18vw, 320px);
  }

  .page-hero-art {
    left: auto;
    width: auto;
  }
}

@media (max-width: 640px) {
  .page-hero-art {
    opacity: 0.8;
  }
}

@media (max-width: 400px) {
  .page-hero-art {
    opacity: 0.72;
  }
}



/* ────────────────────────────────────────────────────────────────────────
   11. SECTIONS & HEADERS (layout wrappers)
   ──────────────────────────────────────────────────────────────────────── */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(30px, 7vw, 54px) 24px;
}

.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: block;
  color: var(--lavender-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
}


/* ────────────────────────────────────────────────────────────────────────
   12. GRID & CARDS
   ──────────────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}



.card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 4px 0 0;
}

.card-desc.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.desc-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 2px;
  padding: 4px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.desc-toggle:hover,
.desc-toggle:focus-visible {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .card-desc {
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
  }
}

.card-badge {
  display: inline-block;
  background: var(--lavender-pale);
  color: var(--lavender-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}




.cat-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Product card: no fill and no border. The photo is the card: it spans the full card width
   and its 2495×3651 portrait ratio sets the height, so the picture fills its frame edge to
   edge without zooming. Shared by the catalog and the basket page (both use .catalog-grid). */

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--photo-w) / var(--photo-h);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hint {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-media {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }

  .media-hint {
    display: inline-flex;
    position: absolute;
    left: 8px;
    bottom: 8px;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.62);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none; /* the whole card already handles the click */
  }

  .media-hint svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .product-card:hover .media-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 2px 0;
}

.product-card h3 {
  font-size: 0.88rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-sub {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.product-card .card-actions {
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
  flex-wrap: nowrap;
}

.product-card .card-actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 9px 8px;
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: center;
}

/* Product grid: two cards per row on phones, scaling up with the screen. The photo sets each
   card's width, so a fixed column count keeps every portrait photo the same size. */

.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
}

@media (min-width: 560px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .product-media {
    border-radius: var(--radius);
  }

  .product-card h3 {
    font-size: 0.98rem;
  }

  .product-sub {
    font-size: 0.8rem;
  }

  .product-card .card-actions .btn {
    font-size: 0.82rem;
  }
}

@media (min-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 22px;
  }
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}



/* ────────────────────────────────────────────────────────────────────────
   13. NOTICE BANNERS
   ──────────────────────────────────────────────────────────────────────── */

.notice {
  background: var(--lavender-pale);
  border: 1px solid var(--lavender);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text);
}

.notice strong {
  color: var(--primary);
}

.notice-info {
  background: rgba(53, 94, 59, 0.06);
  border-color: rgba(53, 94, 59, 0.18);
}

.notice-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notice-cta p {
  margin: 0;
  flex: 1;
}

.notice-btn {
  flex-shrink: 0;
  white-space: nowrap;
}


/* ────────────────────────────────────────────────────────────────────────
   16. FEEDBACK STATES (empty state, saved toast)
   ──────────────────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-state .btn {
  margin-top: 16px;
}

.saved-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  z-index: 999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.saved-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 420px) {
  .saved-toast {
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}


/* ────────────────────────────────────────────────────────────────────────
   17. FORMS & CHECKBOX GROUPS
   ──────────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group .req {
  color: var(--lavender-deep);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  outline: none;
  transition: 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gray-soft);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--lavender-deep);
  box-shadow: 0 0 0 3px rgba(155, 121, 214, 0.15);
  background: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}



/* ────────────────────────────────────────────────────────────────────────
   19b. FINAL CTA ACTIONS (e.g. "Ready to Import?" email + quote buttons)
   ──────────────────────────────────────────────────────────────────────── */

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cta-final-actions .btn {
  flex: 0 1 auto;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 480px) {
  .cta-final-actions .btn {
    width: auto;
  }
}


/* ────────────────────────────────────────────────────────────────────────
   23. FOOTER (+ newsletter)
   ──────────────────────────────────────────────────────────────────────── */

footer {
  margin-top: 60px;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 52px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 10px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--lavender);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 9px;
  transition: 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
}


/* ────────────────────────────────────────────────────────────────────────
   24. RESPONSIVE OVERRIDES
   ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: var(--nav-menu-width, 300px);
    height: 100vh;
    height: 100dvh;
    height: var(--nav-menu-height, 100dvh);
    margin: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: max(24px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
    border-bottom: none;
    z-index: 1001;
    overflow-x: hidden;
    overflow-y: hidden;
    touch-action: none;
    overscroll-behavior: none;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    visibility: hidden;
    
    max-width: var(--nav-menu-width, 340px);
    
    transition: transform 0.38s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s linear 0.38s;
  }

  .nav-menu.open {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    visibility: visible;
    transition: transform 0.38s cubic-bezier(0.65, 0, 0.35, 1),
                visibility 0s linear 0s;
  }

  .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
  }


  .nav-menu-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .nav-menu-brand .logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--primary);
    letter-spacing: -0.01em;

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }


 
  .nav-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--gray-soft);
    color: var(--primary-dark);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu-close:hover {
    background: var(--lavender-pale);
    color: var(--lavender-deep);
    transform: rotate(90deg);
  }

 
  .nav-menu-links {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
   
    align-items: stretch;
    
    justify-content: flex-start;
    gap: 2px;
    flex: 1 1 auto;

    
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .nav-menu-links::-webkit-scrollbar {
    width: 4px;
  }

  .nav-menu-links::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 999px;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-radius: 14px;
    font-size: 1rem;
    opacity: 1;
    white-space: normal;
    min-width: 0;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--lavender-pale);
  }

  
  .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--gray-soft);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .nav-link-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: color 0.2s ease;
  }

  .nav-menu a:hover .nav-link-icon {
    background: var(--white);
    transform: translateY(-1px);
  }

  .nav-menu a.active .nav-link-icon {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .nav-menu a:hover .nav-link-icon-svg,
  .nav-menu a.active .nav-link-icon-svg {
    color: var(--lavender-deep);
  }

  .nav-link-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    font-size: 1.05rem;
    color: var(--text-faint);
    opacity: 0.5;
  }

  .nav-menu .nav-cta {
    margin-top: 14px;
    justify-content: center;
  }

  
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s ease;
    z-index: 1000;
    touch-action: none;
    overscroll-behavior: none;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

 
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: max(14px, env(safe-area-inset-top));
    
    flex-wrap: nowrap;
    z-index: 1002;
  }

  
  body {
    padding-top: var(--nav-height, 72px);
  }

  .nav-toggle {
    display: flex;
    transition: opacity 0.2s ease;
  }

  
  .nav-toggle.active {
    opacity: 0;
    pointer-events: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {
  .nav-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-brand .logo {
    font-size: 1.05rem;
  }

  .nav-brand .tagline {
    font-size: 0.58rem;
  }
}


@media (max-width: 400px) {
  .nav-brand .logo {
    font-size: 0.92rem;
  }

  .nav-brand .tagline {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }

  .nav-menu {
    
    width: var(--viewport-width-px, 100vw);
    max-width: var(--viewport-width-px, 100vw);
    padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  }

  .nav-menu-header {
    padding-bottom: 12px;
    margin-bottom: 4px;
  }

  .nav-menu a {
    padding: 8px;
    gap: 11px;
    font-size: 0.95rem;
  }

  .nav-link-icon {
    width: 32px;
    height: 32px;
  }

  .nav-link-icon-svg {
    width: 16px;
    height: 16px;
  }

  .nav-menu .nav-cta {
    margin-top: 10px;
    padding: 11px 18px;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 100px 20px 60px;
    min-height: 480px;
  }

  .hero-overlay {
    background: rgba(255, 255, 255, 0.9);
  }

  .hero h1,
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .notice-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .notice-btn {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


body.modal-open {
  overflow: hidden;
}

/* Product details modal: one card that never scrolls. Its size comes from the viewport, so it
   floats with an even margin on every screen (phones included). The photo keeps its
   2495×3651 ratio and fills its frame without zooming; only the frame scales. All text is
   sized in em, so fitProductModal() (site.js) can shrink it via --pm-scale when a product's
   copy is long. The close button always sits at the card's far top-right corner.
   - Phones in portrait: photo on the left with the name and buttons beside it, then the
     description and highlights across the full width underneath.
   - Everything else: the photo on the left and all the text in a column beside it. */

.product-modal-overlay {
  --pm-gap: 1rem;
  --pm-pad-x: max(var(--pm-gap), env(safe-area-inset-left), env(safe-area-inset-right));
  --pm-pad-y: max(var(--pm-gap), env(safe-area-inset-top), env(safe-area-inset-bottom));
  --pm-inset: 14px;
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pm-pad-y) var(--pm-pad-x);
  background: rgba(20, 20, 20, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-modal-overlay.open {
  opacity: 1;
}

.product-modal {
  --pm-w: min(26rem, calc(100vw - 2 * var(--pm-pad-x)));
  --pm-media-w: calc(var(--pm-w) * 0.46);
  --pm-media-h: calc(var(--pm-media-w) * var(--photo-h) / var(--photo-w));
  position: relative;
  display: grid;
  font-size: calc(1rem * var(--pm-scale, 1));
  max-height: calc(100dvh - 2 * var(--pm-pad-y));
  grid-template-columns: var(--pm-media-w) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto auto auto auto;
  width: var(--pm-w);
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
}

.product-modal-overlay.open .product-modal {
  transform: translateY(0) scale(1);
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-soft);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.product-modal-close:hover {
  background: var(--lavender-pale);
  color: var(--lavender-deep);
  transform: rotate(90deg);
}

.product-modal-media {
  grid-column: 1;
  grid-row: 1 / 5;
  width: var(--pm-media-w);
  height: var(--pm-media-h);
}

.product-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-sub,
.product-modal h2,
.product-modal-desc,
.product-modal-tips-heading,
.product-modal-tips,
.product-modal-actions {
  margin-inline: var(--pm-inset);
}

.product-modal-sub,
.product-modal h2 {
  grid-column: 2;
  padding-right: 2rem; /* keeps clear of the close button */
}

.product-modal-sub {
  grid-row: 1;
  margin-top: var(--pm-inset);
  margin-bottom: 2px;
  font-size: 0.66em;
  font-weight: 700;
  color: var(--lavender-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-modal h2 {
  grid-row: 2;
  margin-bottom: 6px;
  font-size: 0.95em;
  line-height: 1.25;
  color: var(--text);
}

.product-modal-desc {
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 0.74em;
  line-height: 1.4;
  color: var(--text-muted);
}

.product-modal-tips-heading {
  grid-column: 1 / -1;
  grid-row: 6;
  margin-bottom: 4px;
  font-size: 0.62em;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-modal-tips {
  grid-column: 1 / -1;
  grid-row: 7;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: var(--pm-inset);
  padding: 7px 10px;
  background: var(--lavender-pale);
  border-radius: 12px;
}

.product-modal-tips li {
  position: relative;
  padding-left: 13px;
  font-size: 0.72em;
  line-height: 1.3;
  color: var(--text);
}

.product-modal-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lavender-deep);
}

.product-modal-actions {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
}

.product-modal-actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 0.76em;
  line-height: 1.2;
  text-align: center;
}

.product-modal-actions.single-action .btn {
  flex: none;
  width: 100%;
}

/* Everything beside the photo: tablets, laptops, phones held sideways. The card is exactly
   as tall as the screen allows and the text column is exactly as tall as the photo; the text
   column takes whatever width the photo leaves, up to 22rem. */
@media (min-width: 600px), (max-height: 480px) {
  .product-modal-overlay {
    --pm-gap: 1.5rem;
  }

  .product-modal {
    --pm-media-h: min(
      36rem,
      calc(100dvh - 2 * var(--pm-pad-y)),
      calc((100vw - 2 * var(--pm-pad-x) - 16rem) * var(--photo-h) / var(--photo-w))
    );
    --pm-media-w: calc(var(--pm-media-h) * var(--photo-w) / var(--photo-h));
    --pm-body-w: min(22rem, calc(100vw - 2 * var(--pm-pad-x) - var(--pm-media-w)));
    grid-template-columns: var(--pm-media-w) var(--pm-body-w);
    grid-template-rows: repeat(5, auto) 1fr auto;
    width: calc(var(--pm-media-w) + var(--pm-body-w));
    height: var(--pm-media-h);
  }

  .product-modal-media {
    grid-row: 1 / -1;
  }

  .product-modal-desc {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
  }

  .product-modal-tips-heading {
    grid-column: 2;
    grid-row: 4;
  }

  .product-modal-tips {
    grid-column: 2;
    grid-row: 5;
    margin-bottom: 0;
  }

  .product-modal-actions {
    grid-row: 7;
    flex-direction: row;
    margin-bottom: var(--pm-inset);
  }
}

/* Short screens (phones held sideways): tighter text so it all fits beside the photo. */
@media (max-height: 480px) {
  .product-modal-overlay {
    --pm-inset: 12px;
  }

  .product-modal h2 {
    margin-bottom: 4px;
  }

  .product-modal-desc {
    margin-bottom: 6px;
  }

  .product-modal-tips {
    gap: 2px;
    padding: 5px 9px;
  }

  .product-modal-actions {
    margin-top: 6px;
  }

  .product-modal-actions .btn {
    min-height: 32px;
    padding-block: 5px;
  }
}

/* Last resort (set by fitProductModal): if copy is still too long at the smallest text size,
   the description is cut with an ellipsis rather than letting anything spill out. */
.product-modal.is-clamped .product-modal-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Very short screens: the highlights heading goes and the text shrinks a little more. */
@media (max-height: 360px) {
  .product-modal-overlay {
    --pm-gap: 0.75rem;
    --pm-inset: 10px;
  }

  .product-modal-tips-heading {
    display: none;
  }

  .product-modal-desc {
    font-size: 0.7em;
    line-height: 1.35;
  }

  .product-modal-tips li {
    font-size: 0.68em;
    line-height: 1.25;
  }
}

/* Roomier text when the screen is big enough for it. */
@media (min-width: 900px) and (min-height: 640px) {
  .product-modal-overlay {
    --pm-inset: 22px;
  }

  .product-modal-sub {
    font-size: 0.72em;
  }

  .product-modal h2 {
    margin-bottom: 8px;
    font-size: 1.2em;
  }

  .product-modal-desc {
    margin-bottom: 12px;
    font-size: 0.88em;
  }

  .product-modal-tips-heading {
    font-size: 0.68em;
  }

  .product-modal-tips {
    gap: 6px;
    padding: 10px 14px;
  }

  .product-modal-tips li {
    font-size: 0.82em;
  }

  .product-modal-actions .btn {
    min-height: 42px;
    font-size: 0.86em;
  }
}