/* ==========================================================================
   TriaChem Demo — Redesigned Website
   Modern agri-professional design inspired by Agrosava
   ========================================================================== */

:root {
  --brand-dark:       #1b5e20;
  --brand:            #2e7d32;
  --brand-light:      #66bb6a;
  --brand-pale:       #e8f5e9;
  --accent:           #f57c00;
  --ink:              #1a1a1a;
  --ink-soft:         #4a5568;
  --ink-mute:         #718096;
  --line:             #e2e8f0;
  --bg:               #ffffff;
  --bg-soft:          #f8f9f6;
  --bg-dark:          #0f2419;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.05);
  --shadow:           0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:        0 20px 40px rgba(0,0,0,0.12);
  --radius:           12px;
  --radius-lg:        20px;
  --container:        1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP BAR (contact / language)
   ========================================================================== */
.topbar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: white; }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span::before { margin-right: 6px; }
.topbar-links { display: flex; gap: 16px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  display: flex; align-items: center;
  line-height: 0;
}
.logo img {
  display: block;
  height: 52px;
  width: auto;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 32px;
}
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 8px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--brand); transition: width 0.25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--brand-dark); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--brand); color: white; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--brand-dark); color: white; transform: translateY(-1px); }


.listing-empty {
  color: var(--ink-mute);
  padding: 24px 0;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: white; border-color: white; }
.btn-outline:hover { background: white; color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-pale); border-color: var(--brand); color: var(--brand-dark); }
.btn-whatsapp { background: #25d366; color: white; border-color: #25d366; }
.btn-whatsapp:hover { background: #128c7e; border-color: #128c7e; color: white; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 620px;
  color: white; display: grid; align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/hero-farm.jpg') center 40% / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,36,25,0.75) 0%, rgba(15,36,25,0.45) 50%, rgba(15,36,25,0.2) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 20px; backdrop-filter: blur(10px);
}
.hero h1 {
  color: white; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--brand-light); }
.hero-lead {
  font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 620px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; z-index: 1; bottom: 40px; right: 40px;
  display: flex; gap: 40px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 24px 32px; border-radius: var(--radius-lg);
}
.hero-stat strong { display: block; font-size: 2rem; color: white; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: white; }
.section-dark h2 { color: white; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-eyebrow {
  color: var(--brand); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.8rem; margin-bottom: 12px; display: block;
}
.section-header p { color: var(--ink-soft); font-size: 1.05rem; }

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.category-group { margin-top: 36px; }
.category-group:first-of-type { margin-top: 8px; }
.category-group-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.category-grid {
  display: grid; gap: 20px;
}
.category-grid--4 { grid-template-columns: repeat(4, 1fr); }
.category-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  width: calc(75% - 5px);
}
.category-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; color: inherit;
}
.category-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--brand-light); color: inherit;
}
.category-card-media {
  aspect-ratio: 1;
  position: relative; overflow: hidden;
  background: #f3f5ef;
  display: grid; place-items: center;
}
.category-card-media img {
  height: 72%;
  width: auto;
  max-width: 78%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 12, 0.08);
  transition: transform 0.45s ease;
}
.category-card:hover .category-card-media img { transform: scale(1.03); }
.category-card-media .cat-count {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: rgba(0,0,0,0.7); color: white; font-size: 0.75rem;
  padding: 4px 10px; border-radius: 999px; font-weight: 600; backdrop-filter: blur(4px);
}
.category-card-media--generic::after {
  content: attr(data-cat-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  opacity: 0.45;
  text-align: center;
  padding: 0 16px;
}
.category-card-media--generic { background: #f3f5ef; }
.category-card-body {
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  min-height: 76px;
}
.category-card h3 {
  margin: 0 0 4px; color: var(--brand-dark); font-size: 1.05rem;
}
.category-card-body p { margin: 0; font-size: 0.82rem; color: var(--ink-mute); }
.category-card-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-pale); color: var(--brand-dark);
  display: grid; place-items: center; transition: all 0.2s;
  flex-shrink: 0;
}
.category-card:hover .category-card-arrow {
  background: var(--brand); color: white; transform: translateX(4px);
}

/* ==========================================================================
   TRUST / FEATURES
   ========================================================================== */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.trust-item { text-align: center; padding: 0 8px; }
.trust-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--brand-pale); color: var(--brand-dark);
  display: grid; place-items: center; margin: 0 auto 20px;
  transition: transform 0.3s;
}
.trust-item:hover .trust-icon { transform: rotate(-6deg) scale(1.05); }
.trust-icon svg { width: 36px; height: 36px; }
.trust-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-item p { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 8px 24px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.value-num {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.4;
}
.value-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.value-item p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 72ch;
}
.value-item p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FEATURED PRODUCTS
   ========================================================================== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.product-card-media {
  aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: var(--bg-soft);
}
.product-card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-media--generic {
  display: grid;
  place-items: center;
}
.product-card-media--generic::after {
  content: attr(data-cat-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  opacity: 0.4;
  text-align: center;
  padding: 0 16px;
}
.product-card-media--generic[data-cat="fungicides"] { background: linear-gradient(160deg, #e8f5d8, #c5e1a5); }
.product-card-media--generic[data-cat="herbicides"] { background: linear-gradient(160deg, #fff3d6, #ffe082); }
.product-card-media--generic[data-cat="insecticides"] { background: linear-gradient(160deg, #fde0e0, #ef9a9a); }
.product-card-media--generic[data-cat="biologicals"] { background: linear-gradient(160deg, #e3f2e1, #a5d6a7); }
.product-card-media--generic[data-cat="agri-tools"] { background: linear-gradient(160deg, #e8eef0, #b0bec5); }
.product-card-media--generic[data-cat="livestock-minerals"] { background: linear-gradient(160deg, #ffe8cc, #ffcc80); }
.product-card-media--generic[data-cat="other-products"] { background: linear-gradient(160deg, #e6f0d8, #c5d5b0); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--accent); color: white;
}
.product-card-badge.stock { background: var(--brand); }
.product-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat {
  font-size: 0.75rem; color: var(--brand); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.product-card h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.3; }
.product-card-desc { font-size: 0.85rem; color: var(--ink-mute); margin: 0 0 16px; flex: 1; }
.product-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.product-card-price { font-size: 0.85rem; color: var(--ink-mute); font-style: italic; }
.product-card-link {
  color: var(--brand-dark); font-weight: 600; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card-link::after {
  content: '→'; transition: transform 0.2s;
}
.product-card:hover .product-card-link::after { transform: translateX(4px); }

/* Datasheet control on listing cards — full-width button in the card body */
.product-card-pdf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; margin: 0 0 12px;
  padding: 10px 16px; min-height: 44px;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 700;
  background: var(--brand-pale); color: var(--brand-dark);
  border: 2px solid var(--brand);
  cursor: pointer; z-index: 2;
}
.product-card-pdf-btn:hover {
  background: var(--brand); color: white;
}
.product-card-pdf-pill {
  position: absolute; bottom: 10px; right: 10px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  background: var(--brand-pale); color: var(--brand-dark);
  border: 2px solid var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer; z-index: 2;
  min-height: 36px;
}
.product-card-pdf-pill:hover {
  background: var(--brand); color: white;
}

/* ==========================================================================
   PRODUCT LEAFLET CALLOUT (product detail page)
   ========================================================================== */
.leaflet-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  background: var(--brand-pale);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  margin: 0 0 24px;
}
.leaflet-callout .leaflet-callout-text {
  display: flex; align-items: center; gap: 12px;
}
.leaflet-callout .leaflet-callout-icon {
  font-size: 1.8rem; line-height: 1;
}
.leaflet-callout strong { display: block; color: var(--brand-dark); font-size: 1rem; }
.leaflet-callout span { color: var(--ink-soft); font-size: 0.9rem; }
.leaflet-callout .btn { padding: 12px 22px; font-size: 0.95rem; }
.leaflet-callout-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
}
.leaflet-callout[hidden],
[data-leaflet-action][hidden] { display: none !important; }
[data-leaflet-extra-actions] { display: contents; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: white; padding: 60px 40px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner-text { flex: 1; min-width: 280px; position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.1rem; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ==========================================================================
   ABOUT PREVIEW
   ========================================================================== */
.about-preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-preview-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
}
.about-preview-media .badge {
  position: absolute; bottom: 20px; left: 20px;
  background: white; padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.about-preview-media .badge strong { display: block; font-size: 1.4rem; color: var(--brand-dark); line-height: 1; }
.about-preview-media .badge span { color: var(--ink-mute); font-size: 0.85rem; }
.about-badge-logo { height: 44px; width: auto; display: block; }

.about-preview ul { list-style: none; padding: 0; margin: 24px 0; }
.about-preview li {
  display: flex; gap: 12px; padding: 10px 0;
  align-items: flex-start;
}
.about-preview li::before {
  content: '✓'; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: white;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   NEWS
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  transition: all 0.3s; display: block; color: inherit;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.news-card-media {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand-pale), var(--brand-light));
  display: grid; place-items: center; color: white;
}
.news-card-media svg { width: 80px; height: 80px; opacity: 0.6; }
.news-card-body { padding: 20px 24px; }
.news-card-meta {
  display: flex; gap: 12px; font-size: 0.8rem; color: var(--ink-mute);
  margin-bottom: 8px;
}
.news-card-meta .tag {
  background: var(--brand-pale); color: var(--brand-dark);
  padding: 2px 10px; border-radius: 999px; font-weight: 600;
}
.news-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.news-card p { color: var(--ink-mute); font-size: 0.9rem; margin: 0; }
.news-card-source {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}

/* ==========================================================================
   BRANDS
   ========================================================================== */
.brands-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  align-items: center;
}
.brand-tile {
  aspect-ratio: 5 / 2;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--ink-mute); font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s;
}
.brand-tile:hover { border-color: var(--brand-light); color: var(--brand-dark); transform: scale(1.03); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  font-size: 0.9rem;
}
.site-footer h4 { color: white; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 56px; }
.footer-brand p { color: rgba(255,255,255,0.65); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 5px 0; }
.footer-contact p { margin-bottom: 8px; }
.footer-contact strong { color: white; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--brand); color: white; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  background: var(--bg-soft); padding: 16px 0;
  font-size: 0.9rem; color: var(--ink-mute);
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb-sep { margin: 0 8px; color: var(--line); }

/* ==========================================================================
   PAGE HEADER (for interior pages)
   ========================================================================== */
.page-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--brand-pale) 0%, #f0f4c3 100%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-header--with-image {
  background-color: var(--brand-dark);
  background-image:
    linear-gradient(90deg, rgba(10,24,16,0.92) 0%, rgba(10,24,16,0.78) 50%, rgba(10,24,16,0.62) 100%),
    var(--page-header-image);
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.page-header--with-image h1 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.7);
}
.page-header--with-image p {
  color: #f5f7f4;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.65);
}
.page-header h1 { margin-bottom: 12px; color: var(--brand-dark); }
.page-header p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; max-width: 600px; }

/* ==========================================================================
   CATEGORY (LISTING) PAGE
   ========================================================================== */
.listing-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px;
  padding: 40px 0 80px;
}
.filter-panel {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  align-self: start; position: sticky; top: 100px;
}
.filter-panel h4 { font-size: 1rem; margin: 24px 0 12px; color: var(--ink); }
.filter-panel h4:first-child { margin-top: 0; }
.filter-panel ul { list-style: none; padding: 0; margin: 0; }
.filter-panel li { padding: 6px 0; }
.filter-panel label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.9rem; color: var(--ink-soft);
}
.filter-panel input[type=checkbox],
.filter-panel input[type=radio] { accent-color: var(--brand); }
.filter-panel label[data-cat].is-active { color: var(--ink); font-weight: 600; }
.filter-panel .filter-count { margin-left: auto; color: var(--ink-mute); font-size: 0.8rem; }
.filter-panel .filter-search {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
}

.listing-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.listing-header p { margin: 0; color: var(--ink-mute); }
.listing-sort select {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; background: white;
}
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }
.pagination .current { background: var(--brand); color: white; border-color: var(--brand); }

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  padding: 40px 0 80px;
}
.product-gallery {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
}
.product-gallery-thumbs { display: flex; flex-direction: column; gap: 12px; }
.product-gallery-thumbs button {
  aspect-ratio: 1; border: 2px solid var(--line); border-radius: 8px;
  background: white; padding: 4px; cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover { border-color: var(--brand); }
.product-gallery-thumbs button img {
  width: 100%; height: 100%; object-fit: contain;
}
.product-gallery-main {
  aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius);
  overflow: hidden; display: grid; place-items: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 40px; }
.product-gallery-main--generic {
  background: linear-gradient(160deg, #e8f0dc, #c5d5b0);
}
.product-gallery-main--generic::after {
  content: attr(data-cat-label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  opacity: 0.4;
}

.product-info h1 { font-size: 2rem; margin-bottom: 8px; }
.product-info .product-sku {
  font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 24px;
}
.product-info .product-cat {
  display: inline-block; padding: 4px 12px; background: var(--brand-pale);
  color: var(--brand-dark); border-radius: 999px; font-weight: 600; font-size: 0.8rem;
  margin-bottom: 16px;
}
.product-info .stock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.85rem;
  background: #c8e6c9; color: #1b5e20; font-weight: 600;
  margin-bottom: 20px;
}
.product-info .stock-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block;
}
.product-info .price {
  font-size: 1.75rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px;
}
.product-info .price small { font-size: 0.85rem; color: var(--ink-mute); font-weight: 400; }
.product-info .price-note { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 24px; }

.pack-sizes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pack-sizes button {
  padding: 10px 18px; background: white; border: 2px solid var(--line);
  border-radius: 8px; font-family: inherit; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.pack-sizes button.active,
.pack-sizes button:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-pale); }

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.product-meta {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.product-meta-item { display: flex; gap: 12px; align-items: flex-start; }
.product-meta-item .icon { width: 20px; color: var(--brand); flex-shrink: 0; }
.product-meta-item strong { display: block; font-size: 0.9rem; }
.product-meta-item span { font-size: 0.85rem; color: var(--ink-mute); }

.tabs {
  border-top: 1px solid var(--line); padding-top: 60px; margin-top: 40px;
}
.tabs-nav {
  display: flex; gap: 32px; border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
}
.tabs-nav button {
  background: none; border: none; font-family: inherit; font-size: 1rem;
  font-weight: 600; color: var(--ink-mute); cursor: pointer;
  padding: 12px 0; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tabs-nav button.active { color: var(--brand-dark); border-color: var(--brand); }
.tabs-nav button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.tabs-content h3 { color: var(--brand-dark); }
.tabs-content ul { padding-left: 20px; }
.tabs-content li { margin-bottom: 8px; }

/* Tab panels: hidden by default, shown when active (or when [hidden] is removed). */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* Belt-and-braces: honor the HTML [hidden] attribute even if a stylesheet weakens it. */
.tab-panel[hidden] { display: none !important; }

.spec-table {
  width: 100%; border-collapse: collapse;
}
.spec-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-table td:first-child { color: var(--ink-mute); width: 30%; }

/* Downloads tab list */
.download-list { list-style: none; padding: 0; margin: 16px 0 0; }
.download-list li { margin-bottom: 12px; }
.download-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: all 0.2s;
}
.download-list a:hover {
  border-color: var(--brand-light); background: var(--brand-pale);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.download-list .download-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.download-list .download-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.download-list .download-body strong { color: var(--brand-dark); font-size: 0.95rem; }
.download-list .download-body span { color: var(--ink-soft); font-size: 0.85rem; }
.download-list .download-cta {
  color: var(--brand-dark); font-weight: 600; font-size: 0.85rem;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  flex-shrink: 0;
}
.download-list a:hover .download-cta { background: var(--brand); color: white; border-color: var(--brand); }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  padding: 40px 0 80px;
}
.contact-info-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.contact-info-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:last-child { border: 0; }
.contact-info-item .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-pale); color: var(--brand-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info-item p { margin: 0; color: var(--ink-mute); font-size: 0.95rem; }
.contact-info-item a { color: var(--ink); font-weight: 500; }

.contact-form {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.form-group.full { grid-column: 1 / -1; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .category-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .category-grid--3 { width: auto; }
}
@media (max-width: 900px) {
  .category-grid--4,
  .category-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .value-item { padding: 24px; grid-template-columns: 2.5rem 1fr; gap: 4px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .brands-row { grid-template-columns: repeat(3, 1fr); }
  .about-preview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .main-nav ul { gap: 16px; }
  .hero-stats { position: static; margin-top: 32px; }
  .hero { min-height: auto; padding: 60px 0; }
}
@media (max-width: 600px) {
  .category-grid--4,
  .category-grid--3,
  .category-grid, .product-grid, .listing-grid { grid-template-columns: 1fr; }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .logo img { height: 44px; }
  .topbar-info { font-size: 0.75rem; }
  .header-cta { padding: 8px 14px; font-size: 0.8rem; }
  .site-header .container { flex-wrap: wrap; gap: 12px 16px; }
  .cta-banner { padding: 40px 24px; }
  .section { padding: 60px 0; }
  .product-detail { padding: 20px 0 60px; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery-thumbs { flex-direction: row; }
  .product-gallery-thumbs button { width: 70px; flex-shrink: 0; }

  /* Tabs must remain usable on narrow screens — allow horizontal scroll instead of wrapping into an unclickable tangle. */
  .tabs-nav {
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tabs-nav button { white-space: nowrap; font-size: 0.95rem; }

  .leaflet-callout { flex-direction: column; align-items: stretch; text-align: left; }
  .leaflet-callout .btn { align-self: flex-start; }

  .download-list a { flex-wrap: wrap; }
  .download-list .download-cta { margin-left: auto; }
}
