/* ===================================================================
   MANGALAM TRADING COMPANY — PRODUCTS PAGE
   Design system: "Mandi Ledger" — deep grain-sack green + aged brass,
   stamped seals, ledger-style category index, sack-cloth cream cards.
=================================================================== */

:root {
  /* Color tokens */
  --ink-deep:      #4a0a0a;
  --green-sack:    #731616;
  --green-mid:     #9b1e1e;
  --brass:         #C9A227;
  --brass-light:   #E0C158;
  --cream:         #F7F3E8;
  --cream-warm:    #F1EBDA;
  --vermillion:    #8B2E2E;
  --charcoal:      #2B2B28;
  --paper-white:   #FFFDF8;
  --paper-warm:    #FDFBFC;
  --line-hairline: rgba(15, 42, 31, 0.14);
  --shadow-soft:   0 8px 24px rgba(15, 42, 31, 0.10);
  --shadow-lift:   0 16px 40px rgba(15, 42, 31, 0.18);
  --ivory-on-green: #F7F3E8; /* stays light in both modes — used as text on green/brass buttons */

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1280px;

  /* Homepage shared tokens — used by #navbar / footer to match index.html */
  --hp-green:       #9b1e1e;
  --hp-green-dark:  #660000;
  --hp-green-light: #cc3333;
  --hp-gold:        #D4A437;
  --hp-gold-light:  #e8c060;
  --hp-ivory:       #F8F5EE;
  --hp-ivory-dark:  #ede9df;
  --hp-text:        #1E1E1E;
  --hp-text-muted:  #5a5a5a;
  --hp-white:       #ffffff;
  --hp-border:      rgba(212,164,55,0.25);
}

/* ===================================================================
   SHARED SITE HEADER — #navbar (matches index.html styling)
=================================================================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: #f8f6e9; /* Matched to products-hero.jpg */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(248, 246, 233, 0.98); /* Matching #f8f6e9 with alpha */
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
/* ============================================================
   COMPLIANCE STRIP
============================================================ */
.compliance-strip {
  background: linear-gradient(90deg, #5b1111 0%, #7c1818 50%, #5b1111 100%);
  color: #e2f0e8;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 15px;
  border-bottom: 1px solid rgba(212, 164, 55, 0.3);
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.compliance-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}
.compliance-badge strong {
  color: var(--hp-gold);
  font-weight: 600;
}
.compliance-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}
@media (max-width: 992px) {
  .compliance-strip__inner { justify-content: flex-start; gap: 16px; }
  .compliance-strip { padding: 6px 12px; }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: 'Playfair Display', var(--font-display), serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hp-green); /* This is the dark red color */
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  margin-left: auto;
  padding: 0;
}
.nav-links a:not(.nav-cta) {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hp-text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0 0 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--hp-gold, #D4A437);
  transition: width 0.25s ease-in-out;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--hp-green);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).is-active::after {
  width: 100%;
}
.nav-links .nav-cta {
  background: var(--hp-green);
  color: var(--hp-white) !important;
  padding: 10px 20px;
  border-radius: 4px;
}
.nav-links .nav-cta:hover { background: var(--hp-green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--hp-white, #ffffff);
  border: 1px solid rgba(212, 164, 55, 0.45);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}
.hamburger:active, .hamburger:hover {
  transform: scale(0.96);
  background: #fcfbf8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--hp-green-dark, #660000);
  border-radius: 2px;
  display: block;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  max-height: 85vh;
  overflow-y: auto;
  flex-direction: column;
  background: var(--red-dark, #7a1515);
  padding: 1rem 2rem 1.5rem;
  gap: 0.75rem;
  border-bottom: 2px solid var(--gold, #D4A437);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  z-index: 99999;
}
.mobile-nav.open,
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: white;
  text-decoration: none;
  font-family: var(--font-body, inherit);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ===================================================================
   SHARED SITE FOOTER (matches index.html styling)
=================================================================== */
footer {
  background: var(--hp-green-dark);
  color: var(--hp-ivory);
  padding: 64px 32px 24px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr auto auto 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248,245,238,0.15);
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(248,245,238,0.75);
  margin: 0 0 14px;
}
.footer-tagline {
  display: block;
  font-family: 'Playfair Display', var(--font-display), serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--hp-gold-light);
}
footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-gold-light);
  margin: 0 0 16px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer ul a {
  font-size: 0.88rem;
  color: rgba(248,245,238,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer ul a:hover { color: var(--hp-gold-light); }

.footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(248,245,238,0.85);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex: 0 0 16px !important;
  margin-top: 3px;
  color: var(--hp-gold-light);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(248,245,238,0.6);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 48px 20px 24px; }
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink-deep);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ===================================================================
   BUTTONS
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brass);
  color: var(--ink-deep);
}
.btn--primary:hover { background: var(--brass-light); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn--whatsapp {
  background: var(--green-sack);
  color: var(--ivory-on-green);
  border-color: rgba(247,243,232,0.25);
}
.btn--whatsapp:hover { background: #9b1e1e; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.icon-wa { width: 19px; height: 19px; fill: #5FD879; flex-shrink: 0; }

.btn--outline {
  background: transparent;
  color: var(--green-sack);
  border-color: var(--green-sack);
}
.btn--outline:hover { background: var(--green-sack); color: var(--ivory-on-green); }

.btn--full { width: 100%; justify-content: center; }

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  background-image: linear-gradient(to right, rgba(253,248,238,0.85) 0%, rgba(253,248,238,0) 80%), url('images/products-hero.jpg');
  background-size: 100% 100%;
  background-position: right center;
  color: var(--hp-text);
  padding: 40px 24px;
  min-height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  display: none;
}
.hero__grain-texture {
  display: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__stamp {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 132px;
  height: 132px;
  opacity: 0.92;
}
.stamp-svg { width: 100%; height: 100%; }
.stamp-ring-outer { fill: none; stroke: var(--hp-green-dark); stroke-width: 1.5; opacity: 0.8; }
.stamp-ring-inner { fill: none; stroke: var(--hp-green-dark); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.6; }
.stamp-text-curve { font-family: var(--font-mono); font-size: 8.5px; fill: var(--hp-green-dark); letter-spacing: 2px; }
.stamp-text-main { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--hp-green-dark); letter-spacing: 1px; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hp-green-dark);
  margin: 0 0 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 760px;
  color: var(--hp-text);
}
.hero__title span { color: var(--hp-green-dark); font-style: italic; }
.hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hp-text-muted);
  max-width: 580px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--hp-border);
  max-width: 760px;
}
.hero__trustbar li { display: flex; flex-direction: column; gap: 4px; }
.hero__trustbar strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--hp-green-dark);
  font-weight: 600;
}
.hero__trustbar span {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
  line-height: 1.3;
}

/* ===================================================================
   CATALOG NAV (search + pills)
=================================================================== */
.catalog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-white);
  border-bottom: 1px solid var(--line-hairline);
  box-shadow: 0 2px 12px rgba(15,42,31,0.05);
}
.catalog-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
}
.search-bar {
  position: relative;
  margin-bottom: 14px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--green-sack);
  opacity: 0.6;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid var(--line-hairline);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream-warm);
  color: var(--charcoal);
}
.search-input:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--paper-white);
}
.search-bar__count {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-sack);
  opacity: 0.6;
}
.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.cat-pill {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-hairline);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-pill:hover { border-color: var(--brass); }
.cat-pill.is-active {
  background: var(--green-sack);
  border-color: var(--green-sack);
  color: var(--ivory-on-green);
}

/* ===================================================================
   CATALOG LAYOUT (sidebar + content)
=================================================================== */
.catalog-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 24px 0;
}
.catalog-sidebar { position: relative; }
.sidebar__sticky {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.sidebar__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-hairline);
}
.sidebar__list { list-style: none; margin: 0; padding: 0; }
.sidebar__list > li { margin-bottom: 2px; }
.sidebar__list > li > a {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
}
.sidebar__list > li > a.is-active,
.sidebar__list > li > a:hover { color: var(--vermillion); }
.sidebar__lot {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brass);
  background: var(--cream-warm);
  padding: 2px 6px;
  border-radius: 3px;
}
.sidebar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--charcoal);
  opacity: 0.45;
}
.sidebar__sublist {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line-hairline);
}
.sidebar__sublist li a {
  display: block;
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--charcoal);
  opacity: 0.75;
}
.sidebar__sublist li a:hover { opacity: 1; color: var(--vermillion); }
.sidebar__cta {
  display: block;
  margin-top: 24px;
  padding: 13px 16px;
  text-align: center;
  background: var(--vermillion);
  color: var(--ivory-on-green);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
}
.sidebar__cta:hover { background: #722424; }

.catalog-content { min-width: 0; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 1rem;
  color: var(--charcoal);
  opacity: 0.7;
}
.no-results a { color: var(--vermillion); font-weight: 600; opacity: 1; }

/* ===================================================================
   CATEGORY SECTIONS
=================================================================== */
.cat-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line-hairline);
  scroll-margin-top: 140px;
}
.cat-section:last-child { border-bottom: none; }

.cat-section__head { max-width: 760px; margin-bottom: 36px; }
.cat-section__lot {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}
.cat-section__lot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 50%;
}
.cat-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--green-sack);
  margin: 0 0 14px;
}
.cat-section__desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.85;
  margin: 0 0 20px;
}
.cat-quote-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1.5px solid var(--green-sack);
  border-radius: 4px;
  color: var(--green-sack);
  font-weight: 600;
  font-size: 0.85rem;
}
.cat-quote-btn:hover { background: var(--green-sack); color: var(--ivory-on-green); }

.subcat { margin-bottom: 40px; scroll-margin-top: 140px; }
.subcat:last-child { margin-bottom: 0; }
.subcat__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--charcoal);
  opacity: 0.6;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-hairline);
}

/* ===================================================================
   PRODUCT GRID + CARDS
=================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 22px;
}

.product-card {
  background: var(--paper-white);
  border: 1px solid var(--line-hairline);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transform: translateY(16px);
}
.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift, 0 12px 24px rgba(0, 0, 0, 0.08));
  border-color: var(--brass, #C59A44);
}
.product-card.is-hidden { display: none; }

/* Corner Status Ribbon */
.product-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 105px;
  height: 105px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}
.product-card__ribbon span {
  position: absolute;
  top: 22px;
  right: -26px;
  width: 130px;
  display: block;
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 22px;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.product-card__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-warm);
  position: relative;
  border-bottom: 1px solid var(--line-hairline, rgba(0,0,0,0.05));
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }

.product-card__img-wrap--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green-sack);
  opacity: 0.4;
  background: repeating-linear-gradient(135deg, var(--cream-warm), var(--cream-warm) 10px, #ECE4CC 10px, #ECE4CC 20px);
}
.placeholder-icon { width: 40px; height: 40px; }
.product-card__img-wrap--placeholder span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}
.product-card__brand {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vermillion);
  margin: 0;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green-sack);
  margin: 0;
  line-height: 1.3;
}
.product-card__type {
  font-size: 0.8rem;
  color: var(--charcoal);
  opacity: 0.65;
  margin: 0 0 10px;
}
/* ===================================================================
   B2B WHOLESALE SPECIFICATIONS & RATE CALLOUTS
=================================================================== */
.product-card__b2b-specs {
  margin: 6px 0 10px;
  padding: 8px 10px;
  background: var(--paper-warm, #FDFBFC);
  border: 1px dashed var(--line-hairline);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.b2b-spec-row {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--charcoal);
  line-height: 1.25;
}
.b2b-spec-icon {
  margin-right: 6px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.b2b-spec-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b2b-rate-callout {
  margin: 2px 0 12px;
  padding: 8px 10px;
  background: rgba(217, 56, 30, 0.06);
  border-left: 3px solid var(--vermillion);
  font-size: 0.72rem;
  color: var(--charcoal);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 4px 4px 0;
}
.rate-badge-main {
  font-weight: 700;
  color: var(--vermillion);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

/* Dual Action CTA Group */
.product-card__cta-group {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
}
.btn--spec-sheet {
  padding: 9px 4px;
  border-radius: 6px;
  background: transparent;
  color: var(--green-sack, #1A3C2A);
  border: 1.5px solid var(--green-sack, #1A3C2A);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--spec-sheet:hover {
  background: rgba(26, 60, 42, 0.08);
  transform: translateY(-1px);
}
.product-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 6px;
  background: var(--green-sack);
  color: var(--ivory-on-green) !important;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--green-sack);
  box-shadow: 0 2px 4px rgba(22, 43, 30, 0.15);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card__cta.btn--quote {
  margin-top: 0;
}
.product-card__cta:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(22, 43, 30, 0.25);
  color: #ffffff !important;
}
.product-card__phone-sub {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--charcoal);
  opacity: 0.8;
  margin-top: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.product-card__phone-sub:hover {
  color: var(--vermillion);
  opacity: 1;
}

/* ===================================================================
   INQUIRY CTA
=================================================================== */
.inquiry-cta {
  background: linear-gradient(160deg, var(--ink-deep), var(--green-sack));
  color: var(--ivory-on-green);
  padding: 72px 24px;
  margin-top: 24px;
}
.inquiry-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.inquiry-cta__lot {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
}
.inquiry-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}
.inquiry-cta p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(247,243,232,0.82);
  margin: 0 0 32px;
}
.inquiry-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.inquiry-cta .btn--outline {
  color: var(--ivory-on-green);
  border-color: rgba(247,243,232,0.4);
}
.inquiry-cta .btn--outline:hover { background: rgba(247,243,232,0.1); }

/* ===================================================================
   CONTACT FORM
=================================================================== */
.contact-form-section { padding: 72px 24px; background: var(--paper-white); }
.contact-form-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}
.contact-form-section__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-sack);
  margin: 10px 0 14px;
}
.contact-form-section__intro p {
  font-size: 0.96rem;
  line-height: 1.65;
  opacity: 0.8;
  margin: 0 0 28px;
}
.contact-meta {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-meta li { display: flex; flex-direction: column; gap: 2px; }
.contact-meta strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brass);
}
.contact-meta span { font-size: 0.92rem; }

.contact-form {
  background: var(--cream-warm);
  border: 1px solid var(--line-hairline);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-sack);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line-hairline);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--paper-white);
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.form-note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin: 0;
  text-align: center;
}

/* ===================================================================
   FAQ
=================================================================== */
.faq-section { padding: 72px 24px; background: var(--cream); }
.faq-section__inner { max-width: 780px; margin: 0 auto; }
.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-sack);
  margin: 10px 0 32px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--paper-white);
  border: 1px solid var(--line-hairline);
  border-radius: 6px;
  padding: 4px 20px;
}
.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--charcoal);
  cursor: pointer;
  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.3rem;
  color: var(--brass);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.78;
  margin: 0 0 18px;
}

/* ===================================================================
   SEO CONTENT
=================================================================== */
.seo-content { padding: 64px 24px 88px; background: var(--paper-white); }
.seo-content__inner { max-width: 780px; margin: 0 auto; }
.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-sack);
  margin: 0 0 20px;
}
.seo-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.75;
  margin: 0 0 16px;
}

/* ===================================================================
   RESPONSIVE — TABLET / MOBILE
=================================================================== */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .contact-form-section__inner { grid-template-columns: 1fr; }
  .hero__trustbar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero { 
    padding: 64px 18px 0px; 
    background-image: linear-gradient(to right, rgba(253,248,238,0.85) 0%, rgba(253,248,238,0) 80%), url('images/products-hero.jpg');
    background-size: cover;
    background-position: 50% center;
  }
  .hero__trustbar {
    margin: 40px -18px 0;
    padding: 30px 18px 40px;
    background: var(--cream);
    position: relative;
    border-top: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
  }
  .hero__stamp { width: 92px; height: 92px; top: -4px; right: 14px; }
  .hero__title { font-size: 1.8rem; line-height: 1.1; margin-bottom: 12px; }
  .hero__sub { font-size: 0.9rem; line-height: 1.4; max-width: 90%; }
    .hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__actions .btn { padding: 8px 16px; font-size: 0.8rem; justify-content: flex-start; width: max-content; }
  

  .catalog-nav__inner { padding: 12px 16px; }
  .catalog-layout { padding: 24px 16px 0; gap: 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card__body { padding: 10px; gap: 4px; }
  .product-card__name { font-size: 0.92rem; }
  .b2b-spec-row { font-size: 0.68rem; }
  .b2b-spec-icon { font-size: 0.75rem; margin-right: 4px; }
  .b2b-rate-callout { font-size: 0.66rem; padding: 4px 6px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .product-card__cta { font-size: 0.72rem; padding: 8px 6px; gap: 3px; }
  .product-card__phone-sub { font-size: 0.65rem; }

  .cat-section { padding: 36px 0 28px; }
  .form-row--split { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }

  .inquiry-cta, .contact-form-section, .faq-section, .seo-content { padding: 48px 18px; }
}

/* ===================================================================
   ACCESSIBILITY / MOTION
=================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .product-card__img-wrap img, .btn {
    transition: none !important;
  }
  .product-card { opacity: 1 !important; transform: none !important; }
}

/* ===================================================================
   DARK MODE — follows visitor's OS/device setting, same as index.html
=================================================================== */

/* Sticky WhatsApp Widget */
.whatsapp-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1f2c25 0%, #0f1813 100%);
  color: #ffffff;
  padding: 8px 18px 8px 10px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(18, 140, 68, 0.35), 0 2px 10px rgba(0,0,0,0.4);
  border: 1.5px solid #25D366;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
}
.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 4px 15px rgba(0,0,0,0.5);
  border-color: #4fe885;
  background: linear-gradient(135deg, #23342b 0%, #13221a 100%);
}
.whatsapp-icon-wrap {
  width: 42px;
  height: 42px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}
.whatsapp-svg {
  width: 26px;
  height: 26px;
}
.whatsapp-pulse {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 42px;
  height: 42px;
  background: #25D366;
  border-radius: 50%;
  z-index: 1;
  animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.whatsapp-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #25D366;
  font-weight: 700;
  line-height: 1.2;
}
.whatsapp-cta {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .whatsapp-widget-container {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-text {
    display: none;
  }
  .whatsapp-float-btn {
    padding: 6px;
    border-radius: 50%;
  }
  .whatsapp-pulse {
    left: 6px;
    top: 6px;
  }
}

/* Spec Modal Styles */
.spec-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.spec-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.spec-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.spec-modal__dialog {
  position: relative;
  background: var(--hp-ivory, #f8f5ee);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 30px;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--hp-border, rgba(212,164,55,0.25));
}
.spec-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--hp-text, #333);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.spec-modal__close:hover {
  background: rgba(0,0,0,0.05);
}
.spec-modal__header {
  margin-bottom: 20px;
}
.spec-modal__brand {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--hp-text-muted, #777);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.spec-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--hp-green, #9b1e1e);
  margin: 0 0 5px 0;
}
.spec-modal__cat {
  font-size: 0.85rem;
  color: var(--hp-text-muted, #777);
  margin: 0;
}
.spec-modal__badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.spec-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.spec-badge--gold {
  background: rgba(212, 164, 55, 0.15);
  color: #a87e22;
}
.spec-badge--green {
  background: rgba(37, 211, 102, 0.15);
  color: #1a9c4b;
}
.spec-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.spec-modal__table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.spec-label {
  color: var(--hp-text-muted, #666);
  width: 45%;
}
.spec-val {
  color: var(--hp-text, #222);
}
.spec-modal__actions {
  text-align: center;
}
.spec-modal__cta {
  display: inline-block;
  background: var(--hp-green, #9b1e1e);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.spec-modal__cta:hover {
  opacity: 0.9;
}
