/* =========================================================
   MOD Product Quality — Adaptive Design System
   Sticky footer, mobile menu above header, soft modules
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: #d1fae5;
  --accent-dark: #064e3b;
  --warning: #f59e0b;
  /* Ideal radii: 12 cards, 16 panels, 20 large, full pills */
  --radius: 1rem;       /* 16px */
  --radius-sm: 0.75rem; /* 12px */
  --radius-lg: 1.25rem; /* 20px */
  --radius-xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 4px 20px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.1);
  --shadow-xl: 0 24px 60px rgba(15,23,42,.12);
  --nav-h: 72px;
  --container: min(100% - 2rem, 1100px);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  /* Soft module palettes */
  --mod-mint: #ecfdf5;
  --mod-sky: #eff6ff;
  --mod-lavender: #f5f3ff;
  --mod-peach: #fff7ed;
  --mod-cream: #fffbeb;
  --mod-slate: #f8fafc;
  --mod-mint-soft: #f0fdf4;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* Sticky footer shell */
.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1 0 auto;
  padding-top: calc(var(--nav-h) + 1.25rem);
  width: 100%;
}
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: .9375rem; border: none; cursor: pointer;
  transition: all var(--transition); line-height: 1.25; text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.28);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--border-soft); }
.btn-sm { padding: .625rem 1.125rem; font-size: .875rem; }
.btn-full { width: 100%; }

/* ========== NAVBAR (z below mobile menu) ========== */
.navbar-container {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 24px);
  max-width: 1100px;
  pointer-events: none;
}
.navbar-container .navbar,
.navbar-container .mobile-toggle {
  pointer-events: auto;
}
.navbar {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-full);
  padding: .5rem .75rem .5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow), 0 0 0 1px rgba(15,23,42,.03);
}
.navbar-brand, .navbar .custom-logo-link {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.navbar .custom-logo { max-height: 36px; width: auto; }
.brand-text { font-weight: 700; letter-spacing: -.02em; }

.navbar-nav {
  display: none; align-items: center; gap: .15rem; margin: 0; padding: 0;
}
.nav-link {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem .85rem; border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(15,23,42,.05); }
.nav-icon {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cta-button {
  display: inline-flex; padding: .5rem 1.1rem;
  background: var(--accent); color: #fff !important;
  border-radius: var(--radius-full); font-size: .875rem; font-weight: 600;
  margin-left: .35rem; box-shadow: 0 2px 10px rgba(5,150,105,.22);
  transition: all var(--transition);
}
.cta-button:hover { background: var(--accent-hover); }

.mobile-toggle {
  display: flex; background: none; border: none; cursor: pointer; padding: .5rem;
  border-radius: var(--radius-sm);
}
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.hamburger span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: .3s;
}
.mobile-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE MENU — above header ========== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: var(--bg-elevated);
  z-index: 1200;
  padding: 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }

body.menu-open .navbar-container {
  z-index: 1000;
  opacity: .35;
  pointer-events: none;
}

.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem;
}
.mobile-menu-brand { font-weight: 700; color: var(--text); }
.mobile-menu-close {
  background: var(--border-soft); border: none; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.mobile-menu-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.mobile-menu-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem; border-radius: var(--radius); font-weight: 500;
  transition: background var(--transition);
}
.mobile-menu-link:hover {
  background: var(--accent-soft); color: var(--accent-dark);
}
.mobile-menu-icon {
  width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.mobile-cta { margin-top: auto; padding-top: 1.25rem; }
.mobile-cta-button {
  display: block; text-align: center; padding: .875rem;
  background: var(--accent); color: #fff; border-radius: var(--radius-full);
  font-weight: 600;
}

@media (min-width: 900px) {
  .navbar-nav { display: flex; }
  .mobile-toggle { display: none; }
  .navbar-container { top: max(20px, env(safe-area-inset-top)); width: calc(100% - 40px); }
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
}

/* ========== LAYOUT ========== */
.content-page { padding: 1.5rem 0 3rem; }
.content-inner { width: var(--container); margin-inline: auto; }
.content-narrow { max-width: 45rem; }

.page-header { margin-bottom: 2rem; text-align: center; }
.page-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2;
}
.section-label {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .5rem;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 36rem; margin-inline: auto; }

/* ========== LANDING MODULES ========== */
.landing-page {
  overflow: hidden;
  width: min(100% - 24px, 1100px);
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 0;
}
@media (min-width: 900px) {
  .landing-page {
    width: min(100% - 40px, 1100px);
  }
}

/* All modules = same width as header bar (1100px), rounded islands */
.module {
  padding: 2.5rem 1.25rem;
  margin: 0 0 1.25rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.module-inner {
  width: 100%;
  margin-inline: auto;
}

.module-mint { background: var(--mod-mint); }
.module-sky { background: var(--mod-sky); }
.module-lavender { background: var(--mod-lavender); }
.module-peach { background: var(--mod-peach); }
.module-cream { background: var(--mod-cream); }
.module-slate { background: var(--mod-slate); }
.module-mint-soft { background: var(--mod-mint-soft); }
.module-hero-band {
  background: linear-gradient(165deg, #ecfdf5 0%, #f0f9ff 45%, #f8fafc 100%);
  margin-top: 0;
}

.landing-page .module:last-child { margin-bottom: 1.5rem; }

.section-header { text-align: center; margin-bottom: 2.25rem; }

/* Hero inside module */
.hero-section {
  display: grid; gap: 2rem; align-items: center;
  width: 100%;
  padding: 0.5rem 0 0.5rem;
  position: relative;
}
.hero-bg {
  position: absolute; inset: -1rem -5% 20%;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(5,150,105,.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(99,102,241,.06), transparent);
  pointer-events: none; z-index: 0;
}

/* Hero image collage */
.hero-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.hero-collage-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  min-height: 220px;
}
.hero-collage-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-collage-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-collage-tile {
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-height: 100px;
  box-shadow: var(--shadow);
}
.hero-collage-tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-collage-tile--accent {
  background: var(--accent-soft);
}

.media-split {
  display: grid;
  gap: 1.25rem;
}
.media-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
}
.media-split-img img { width: 100%; height: 100%; object-fit: cover; }

.image-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.image-strip-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-sm);
}
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

.cta-with-image {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
}
.cta-image {
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.cta-image img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 640px) {
  .image-strip { grid-template-columns: repeat(3, 1fr); }
  .media-split { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .hero-collage-main { aspect-ratio: 3/4; }
}
@media (min-width: 900px) {
  .module { padding: 3rem 1.75rem; }
  .cta-with-image { grid-template-columns: 1fr auto; }
}
.hero-content, .hero-visual { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; padding: .35rem .875rem;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .8125rem; font-weight: 600; border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.85rem, 6vw, 3.25rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-muted); max-width: 28rem;
  margin-bottom: 1.5rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
}
.hero-stat {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 6.5rem;
}
.hero-stat strong { font-size: 1.15rem; font-weight: 800; color: var(--accent-dark); }
.hero-stat span { font-size: .75rem; color: var(--text-muted); }
.hero-image-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 4/3; background: var(--border-soft);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.split-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.soft-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}
.soft-card--white {
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}
.soft-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.soft-card p { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

.steps-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
.step-card {
  background: rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  font-size: .8125rem; font-weight: 800; letter-spacing: .06em;
  color: var(--accent); margin-bottom: .65rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.step-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.features-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.feature-card--soft {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.feature-card--soft:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-icon--mint { background: #d1fae5; color: #047857; }
.feature-icon--sky { background: #dbeafe; color: #1d4ed8; }
.feature-icon--peach { background: #ffedd5; color: #c2410c; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

.benefits-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
.benefit-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,.9);
}
.benefit-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: .45rem; flex-shrink: 0;
}
.benefit-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.benefit-item p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.module-cta-band { text-align: center; }
.teaser-actions { text-align: center; }

.faq-list {
  max-width: 40rem; margin-inline: auto;
  display: flex; flex-direction: column; gap: .75rem;
}
.faq-item {
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; color: var(--accent); font-weight: 500;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.2rem 1.1rem; color: var(--text-muted); font-size: .9375rem;
  line-height: 1.6;
}

.contact-card {
  max-width: 32rem; margin: 0 auto;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.modern-form .form-row {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem;
}
.form-group input, .form-group textarea, .control-select, .search-field {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .control-select:focus, .search-field:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
.form-group textarea { resize: vertical; min-height: 6.5rem; }

@media (min-width: 640px) {
  .modern-form .form-row { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero-section { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 0.5rem 0; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-card { padding: 2.5rem; }
}

/* ========== CATALOG ========== */
.catalog-page { padding-bottom: 3rem; }
.catalog-container { width: var(--container); margin-inline: auto; padding-top: 1rem; }
.catalog-header { text-align: center; margin-bottom: 1.5rem; }

/* Sticky modern filter bar + mobile accordion */
.catalog-filters-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 50;
  margin-bottom: 1.75rem;
}
.catalog-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(15,23,42,.07), 0 0 0 1px rgba(255,255,255,.7) inset;
  overflow: hidden;
}

/* Accordion toggle — visible on mobile */
.filter-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.filter-accordion-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.filter-accordion-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.filter-accordion-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.filter-accordion-chevron {
  flex-shrink: 0;
  color: var(--text-soft);
  transition: transform 0.25s ease;
}
.catalog-controls.is-open .filter-accordion-chevron {
  transform: rotate(180deg);
}

.filter-accordion-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}
.catalog-controls.is-open .filter-accordion-panel {
  max-height: 480px;
  opacity: 1;
  padding: 0 1rem 1rem;
}

.control-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.control-field label,
.filter-chip-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.15rem;
}
.control-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 2.4rem 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.control-select:hover {
  border-color: #cbd5e1;
  background-color: #fafafa;
}
.control-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,.14);
  outline: none;
  background-color: #fff;
}
.control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.control-actions .btn {
  border-radius: var(--radius-sm);
  min-height: 44px;
  width: 100%;
  font-size: 0.875rem;
}
.control-actions .btn-primary {
  box-shadow: 0 2px 10px rgba(5,150,105,.22);
}


.products-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-elevated); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-link { display: block; color: inherit; height: 100%; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--border-soft); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 1.15rem 1.25rem 1.35rem; }
.card-cat {
  font-size: .6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); display: block; margin-bottom: .35rem;
}
.card-title {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: .4rem; line-height: 1.3;
}
.card-desc {
  font-size: .875rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: .85rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-feats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.feat {
  font-size: .6875rem; font-weight: 500; padding: .25rem .6rem;
  background: var(--border-soft); color: var(--text-muted); border-radius: var(--radius-full);
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .85rem; border-top: 1px solid var(--border-soft); gap: .5rem;
}
.card-price { font-size: 1.1rem; font-weight: 700; }
.card-rating { display: flex; align-items: center; gap: 1px; flex-shrink: 0; }
.rcount { font-size: .75rem; color: var(--text-soft); margin-left: .25rem; }

@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .control-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .control-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }
  .control-actions .btn {
    width: auto;
    min-width: 7.5rem;
    padding-inline: 1.25rem;
  }
}
@media (min-width: 900px) {
  .filter-accordion-toggle {
    display: none;
  }
  .filter-accordion-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
    padding: 1rem 1.15rem !important;
  }
  .catalog-controls {
    grid-template-columns: 1fr;
  }
  .control-group {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    max-width: 100%;
  }
  .products-grid { gap: 1.75rem; }
}
@media (min-width: 768px) {
  .products-grid { gap: 1.75rem; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== PRODUCT ========== */
.product-page { padding-bottom: 3rem; }
.product-container { width: var(--container); margin-inline: auto; padding-top: 1rem; }
.product-layout { display: grid; gap: 2rem; }
.product-image-wrapper {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--border-soft); box-shadow: var(--shadow);
}
.product-main-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-gallery { display: flex; gap: .625rem; margin-top: .85rem; flex-wrap: wrap; }
.product-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: none;
  transition: border-color var(--transition);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover, .product-thumb.active { border-color: var(--accent); }
.product-title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .5rem; line-height: 1.25;
}
.product-code { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.15rem; }
.product-description { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.specs-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.product-specs {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.product-specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--border-soft); font-size: .9375rem;
}
.product-specs li:last-child { border-bottom: none; }
.product-specs li span { color: var(--text-muted); }
.product-specs li.spec-price strong { color: var(--accent); font-size: 1.05rem; }

@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .product-thumb { width: 72px; height: 72px; }
}

.lightbox {
  position: fixed; inset: 0; background: rgba(15,23,42,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 1.5rem;
}
.lightbox.active, .lightbox:not([hidden]) { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px); max-height: 85vh;
  border-radius: var(--radius); box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 1.75rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; line-height: 1;
}

/* ========== REVIEW ========== */
.review-page { padding: 1rem 0 3rem; }
.review-container { width: min(100% - 2rem, 32rem); margin-inline: auto; }
.review-header { text-align: center; margin-bottom: 1.75rem; }
.review-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: .35rem; }
.review-desc { color: var(--text-muted); }
.review-success {
  display: flex; align-items: center; gap: .75rem;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500;
}
.review-form-wrapper {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow);
}
.review-form-wrapper input,
.review-form-wrapper textarea,
.review-form-wrapper select {
  width: 100%; padding: .75rem 1rem; margin-bottom: .85rem;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); outline: none;
}
.review-form-wrapper input:focus,
.review-form-wrapper textarea:focus,
.review-form-wrapper select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
.review-form-wrapper button[type="submit"],
.review-form-wrapper .submit-btn {
  width: 100%; padding: .875rem; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-full); font-weight: 600;
  cursor: pointer; margin-top: .35rem; transition: background var(--transition);
}
.review-form-wrapper button[type="submit"]:hover { background: var(--accent-hover); }

@media (min-width: 640px) {
  .review-form-wrapper { padding: 2rem; }
}

/* ========== POSTS ========== */
.posts-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.post-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--border-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.15rem 1.25rem 1.35rem; }
.post-type { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.post-title { font-size: 1.1rem; font-weight: 700; margin: .35rem 0 .5rem; line-height: 1.3; }
.post-title a:hover { color: var(--accent); }
.post-meta { font-size: .8125rem; color: var(--text-soft); margin-bottom: .5rem; }
.post-excerpt { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.55; }
.single-featured {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
.single-featured img { width: 100%; }
.single-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-nav {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem;
}
.post-nav a { color: var(--accent); font-weight: 500; }
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination-wrap .nav-links, .pagination-wrap .page-numbers {
  display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center;
}
.pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .5rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-weight: 500; font-size: .875rem;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

@media (min-width: 640px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== 404 ========== */
.error-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100dvh - var(--nav-h) - 8rem); padding: 2rem 1rem;
}
.error-inner { text-align: center; max-width: 28rem; }
.error-code {
  font-size: clamp(4rem, 15vw, 7rem); font-weight: 800;
  line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent), #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .5rem;
}
.error-title { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: .75rem; }
.error-text { color: var(--text-muted); margin-bottom: 1.75rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2rem; }
.error-search { max-width: 20rem; margin-inline: auto; }

.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 0; min-height: 44px; }
.search-submit { flex-shrink: 0; }

.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--bg-elevated); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); color: var(--text-muted);
}
.empty-state h2 { color: var(--text); margin-bottom: .5rem; font-size: 1.25rem; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--accent-dark); color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner { width: var(--container); margin-inline: auto; }
.footer-top {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; margin-bottom: 1.75rem;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-nav a { color: #94a3b8; font-size: .875rem; transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: .625rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex;
  align-items: center; justify-content: center; color: #fff;
  transition: background var(--transition);
}
.social-link:hover { background: rgba(255,255,255,.16); }
.footer-bottom {
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8125rem; color: #64748b; text-align: center;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row; justify-content: space-between; align-items: center;
  }
}


/* Similar products */
.similar-products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.similar-products .section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}
.similar-products .section-title {
  font-size: 1.35rem;
}
.similar-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Batch / QR */
.product-grid { display: grid; gap: 2rem; }
.qr-column { display: flex; justify-content: center; }
.qr-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; text-align: center;
  box-shadow: var(--shadow);
}
.qr-label { font-size: .875rem; color: var(--text-muted); margin-top: .75rem; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .625rem 1.1rem; background: var(--border-soft); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--border); }
.recipe-header-buttons {
  display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

/* WP content */
.alignwide, .alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--radius-sm); }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.5rem; font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; list-style: disc; }
.entry-content a { color: var(--accent); text-decoration: underline; }

/* Comments */
.comments-area {
  width: var(--container); max-width: 45rem; margin: 2rem auto 3rem;
  padding: 1.5rem; background: var(--bg-elevated);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.comment-list { margin: 1.5rem 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--border-soft); }
.comment-reply-link { color: var(--accent); font-size: .875rem; font-weight: 600; }

@supports (padding: max(0px)) {
  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}
