/* ============================================================
  XPharma - Main Stylesheet
  Palette: light base | institutional red | focused premium accent
  ============================================================ */

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

/* ── CSS variables ── */
:root {
  --bg-primary:     #ffffff;
  --bg-soft:        #faf7f7;
  --bg-surface:     #ffffff;
  --bg-surface2:    #fff1f2;
  --bg-surface3:    #ffe7ea;

  --text-primary:   #1f1f1f;
  --text-secondary: #5f6368;
  --text-muted:     #7b8087;
  --text-strong:    #3f444a;

  --red-950:        #520006;
  --red-900:        #760008;
  --red-800:        #96000d;
  --red-700:        #b40012;
  --red-600:        #d20a17;
  --red-500:        #e41924;
  --red-100:        #ffe1e4;
  --red-50:         #fff1f2;

  --gold:           #d6a536;
  --gold-light:     #fff4cf;
  --gold-dark:      #b8871f;
  --gold-glow:      rgba(214,165,54,0.10);
  --gold-border:    rgba(214,165,54,0.20);

  --border:         #efd8db;
  --border-gold:    rgba(214,165,54,0.20);
  --border-red:     rgba(180,0,18,0.18);

  --red-glow:       rgba(228,25,36,0.08);
  --shadow-gold:    0 10px 24px rgba(184,135,31,0.10);
  --shadow-red:     0 18px 45px rgba(82,0,6,0.08);
  --shadow-card:    0 12px 30px rgba(82,0,6,0.06);
  --shadow-strong:  0 22px 56px rgba(82,0,6,0.12);

  --footer-text:    #fff7f7;
  --footer-muted:   rgba(255,247,247,0.76);

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.18s ease;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h: 80px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, rgba(228,25,36,0.04) 0%, transparent 24%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
}

/* ── Utilities ── */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

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

.gold-text { color: var(--red-600); }
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-700);
  padding: 6px 16px;
  border: 1px solid var(--border-red);
  border-radius: 100px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(228,25,36,0.08), rgba(255,255,255,0.94));
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-subtitle { margin-inline: auto; }

.divider-gold {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--red-500), rgba(214,165,54,0.55));
  border-radius: 2px;
  margin: 1rem auto 0;
}
.divider-gold.left { margin-left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: var(--text-primary);
  border: 1px solid var(--red-700);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--red-700);
  border: 1.5px solid var(--red-500);
}
.btn-outline:hover {
  background: var(--red-50);
  border-color: var(--red-700);
  color: var(--red-800);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--red-700);
  border: 1px solid var(--border-red);
}
.btn-ghost:hover {
  border-color: var(--border-red);
  color: var(--red-800);
  background: var(--red-50);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(239,216,219,0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 14px 30px rgba(82,0,6,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  max-width: min(320px, 48vw);
}

.brand-logo-img {
  display: block;
  width: auto;
  height: clamp(42px, 4.5vw, 52px);
  max-width: 100%;
  object-fit: contain;
}

.footer-logo {
  margin-bottom: 1rem;
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.footer-logo .brand-logo-img {
  height: 38px;
  max-width: 210px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red-500);
  transition: width var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--red-600); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 28px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 22px rgba(82,0,6,0.08);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--red-700);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 35px rgba(82,0,6,0.08);
  z-index: 999;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--red-600); }
.nav-mobile .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(228,25,36,0.08) 0%, transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(228,25,36,0.12) 0%, transparent 36%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-soft) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(228,25,36,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,25,36,0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 34%, rgba(228,25,36,0.045) 0%, transparent 62%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
  padding: 4rem 0 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 20px;
  border: 1px solid var(--border-red);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-700);
  background: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--red-500);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.7); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title .line-gold {
  background: linear-gradient(135deg, var(--red-700) 0%, var(--red-500) 52%, var(--red-900) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-product-visual {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-product-image {
  display: block;
  width: min(100%, 760px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  width: min(100% - 2rem, 920px);
  margin: 0 auto 3.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-stat {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

.hero-stat .stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-700);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-stat .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── Cards base ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(228,25,36,0.08), rgba(255,255,255,0.94));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red-700);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  border-color: var(--red-700);
}
.card:hover .card-icon svg { color: var(--text-primary); }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Sections ── */
section { padding: 100px 0; }

/* Reduce bottom padding of technology section so stats block sits closer to facility image */
#technology { padding-bottom: 48px; }

/* Contact channels section: tighter bottom so FAQ sits closer */
#contact-channels { padding-bottom: 48px; }

/* Reduce top padding of FAQ section so it sits closer to the contact cards / WhatsApp CTA */
#faq { padding-top: 56px; }

/* ── About teaser on home ── */
.about-section { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: brightness(0.85) contrast(1.1);
}
.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: linear-gradient(135deg, var(--red-500), var(--red-800));
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-strong);
}
.about-img-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-img-badge .badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-content .section-subtitle { max-width: 100%; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.about-feature .feat-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--red-50);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--red-700);
}
.about-feature .feat-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.about-feature .feat-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Products grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.apparel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 880px) {
  .apparel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .apparel-grid { grid-template-columns: 1fr; }
}

/* ── Apparel hover-swap (front → back on desktop hover) ── */
.apparel-hover-swap {
  position: relative;
  width: 100%;
}
.apparel-card-view {
  display: block;
  transition: opacity 0.32s ease;
}
.apparel-card-view-front {
  position: relative;
  opacity: 1;
  z-index: 1;
}
.apparel-card-view-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
}
.apparel-card-view-back .product-card-img {
  width: 100%;
  height: 100%;
  max-height: unset;
  object-fit: contain;
  object-position: center;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .apparel-card-view-front { opacity: 0; }
  .product-card:hover .apparel-card-view-back  { opacity: 1; }
}

/* ── Apparel card: stretched link, badge alignment, height consistency ── */
.apparel-card-anchor {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}
.apparel-card-anchor:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.apparel-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.apparel-grid .apparel-badge-row .product-tag {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.apparel-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.25em 0.6em;
  line-height: 1;
  white-space: nowrap;
}
.apparel-status-badge.available {
  color: #fff;
  background: #2a7a2a;
}
.apparel-status-badge.in-production {
  color: var(--gold-dark);
  background: rgba(214, 165, 54, 0.12);
  border: 1px solid rgba(214, 165, 54, 0.32);
}
.apparel-grid .product-card {
  display: flex;
  flex-direction: column;
}
.apparel-grid .product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.apparel-card-cta {
  margin-top: auto;
  padding-top: 1.25rem;
}
.apparel-view-btn {
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  pointer-events: none;
}
.apparel-view-btn--disabled {
  opacity: 0.5;
}
/* Dim media for in-production cards, applied directly */
.apparel-card-media-dim { opacity: 0.72; }

/* Section-header spacing override for apparel listing page */
.apparel-listing .section-header { margin-bottom: 2rem; }
.apparel-listing { padding-bottom: 40px; }

/* ── Apparel category label (separator acima da grid) ── */
.apparel-category-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.apparel-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Apparel notice section ── */
.apparel-notice-section {
  padding: 40px 0;
  background: var(--bg-surface);
}
.apparel-notice-box {
  background: var(--bg-surface2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.apparel-notice-box .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .apparel-notice-box { flex-direction: column; gap: 1rem; }
}

/* ── Apparel FAQ section ── */
.apparel-faq-section {
  padding-top: 60px;
  padding-bottom: 100px;
}

/* ── Apparel detail page: image grid ── */
.apparel-detail-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 3rem;
  align-items: center;
}
.apparel-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.apparel-img-grid figure {
  margin: 0;
  cursor: zoom-in;
}
.apparel-img-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: contain;
  aspect-ratio: 4 / 5;
  background: var(--bg-surface2);
  transition: opacity 0.2s;
}
.apparel-img-grid img:hover { opacity: 0.86; }
.apparel-img-figcaption {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.4rem;
}

/* ── Apparel lightbox ── */
.apparel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.apparel-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.apparel-lightbox-inner {
  cursor: default;
  position: relative;
}
.apparel-lightbox-inner img {
  max-width: min(90vw, 520px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.apparel-lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.apparel-lightbox-close:hover { opacity: 1; }
.apparel-lightbox-caption {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.65rem;
}

/* ── Apparel action buttons ── */
.apparel-action-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.apparel-action-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

@media (max-width: 760px) {
  .apparel-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .apparel-img-grid { gap: 0.75rem; }
  .apparel-action-btns { flex-direction: column; }
  .apparel-action-btns .btn { width: 100%; text-align: center; }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  --category-accent: var(--red-500);
  --category-accent-strong: var(--red-700);
  --category-accent-soft: rgba(228,25,36,0.08);
  --category-accent-border: rgba(228,25,36,0.2);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--category-accent) 0%, transparent 76%);
  pointer-events: none;
  z-index: 1;
}
.product-card[data-category="injectable-singles"] {
  --category-accent: #b61f32;
  --category-accent-strong: #921627;
  --category-accent-soft: rgba(182,31,50,0.08);
  --category-accent-border: rgba(182,31,50,0.2);
}
.product-card[data-category="injectable-blends"] {
  --category-accent: #b36a1d;
  --category-accent-strong: #8f5414;
  --category-accent-soft: rgba(179,106,29,0.1);
  --category-accent-border: rgba(179,106,29,0.22);
}
.product-card[data-category="oral-hormones"] {
  --category-accent: #b55b26;
  --category-accent-strong: #8f461c;
  --category-accent-soft: rgba(181,91,38,0.1);
  --category-accent-border: rgba(181,91,38,0.22);
}
.product-card[data-category="oral-pharmaceuticals"] {
  --category-accent: #8f4152;
  --category-accent-strong: #723142;
  --category-accent-soft: rgba(143,65,82,0.09);
  --category-accent-border: rgba(143,65,82,0.2);
}
.product-card[data-category="oral-thyroid-hormones"] {
  --category-accent: #7e2d4b;
  --category-accent-strong: #65243c;
  --category-accent-soft: rgba(126,45,75,0.1);
  --category-accent-border: rgba(126,45,75,0.22);
}
.product-card[data-category="apparel"] {
  --category-accent: #d6a536;
  --category-accent-strong: #b8871f;
  --category-accent-soft: rgba(214,165,54,0.08);
  --category-accent-border: rgba(214,165,54,0.20);
}
.product-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-6px);
}
.product-card-media {
  min-height: clamp(292px, 35vw, 372px);
  padding: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(201, 164, 92, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-surface2), var(--bg-surface));
  border-bottom: 1px solid var(--border);
}
.product-card-img {
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.96) contrast(1.02) saturate(1);
  transition: filter var(--transition), transform var(--transition);
}
.product-card:hover .product-card-img {
  filter: brightness(1) contrast(1.03) saturate(1.02);
  transform: translateY(-2px) scale(1.01);
}
.product-card-media .img-placeholder {
  width: 100%;
  min-height: 340px;
  border-radius: var(--radius-md);
}
.product-card-body {
  padding: 1.5rem;
}
.product-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 0.4rem;
  display: block;
}
.product-card .product-tag {
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--category-accent-border);
  background: var(--category-accent-soft);
  color: var(--category-accent-strong);
  margin-bottom: 0.6rem;
}
.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.product-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.product-card-subtitle {
  color: rgba(31, 31, 31, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0 0 0.85rem;
  white-space: normal;
  min-height: 45px;
}

.product-card-body > p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.product-card-link:hover {
  color: inherit;
}

.product-detail-section {
  padding: 2rem 0 80px;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.product-page-hero {
  padding-top: calc(var(--nav-h) + 5.5rem);
  padding-bottom: 3.25rem;
}

.product-page-hero .section-tag {
  margin-bottom: 1rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.product-detail-media {
  background:
    radial-gradient(circle at top, rgba(201, 164, 92, 0.14), transparent 56%),
    linear-gradient(180deg, var(--bg-surface2), var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.product-detail-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
}

.product-detail-media .img-placeholder {
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
}

.product-detail-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail-panel .product-tag {
  margin-bottom: 0;
}

.product-detail-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.product-detail-spec {
  margin: 0;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), var(--bg-surface2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.product-detail-spec dt {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-700);
}

.product-detail-spec dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.product-detail-panel p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-detail-description {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-detail-description p {
  margin: 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.product-empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.product-empty-state p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0.75rem 0 1.5rem;
}

.documentation-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.documentation-placeholder .section-tag {
  align-self: flex-start;
}

.documentation-placeholder h3,
.documentation-placeholder p {
  margin: 0;
}

.documentation-placeholder h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--text-primary);
}

.lipored-banner-section {
  padding-top: 48px;
  padding-bottom: 32px;
}

.lipored-product-section {
  padding-top: 48px;
}

.lipored-banner-frame {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.lipored-banner-frame picture {
  display: block;
}

.media-panel.lipored-vial-frame {
  max-width: 70%;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  padding: 0.5rem;
  background: #333333;
}

.media-panel.lipored-vial-frame picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.media-panel.lipored-vial-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-panel.documentation-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 0;
}

.documentation-frame picture {
  display: block;
  position: absolute;
  inset: 0;
}

.media-panel.documentation-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lipored-title-accent {
  color: var(--red-600);
}

/* Visual Presentation: text top-aligned when tall vial frame drives grid height */
.lipored-product-section .feature-grid {
  align-items: start;
}

/* Product Documentation: stretch image column to match text column height */
section[aria-labelledby="lipored-line-title"] .feature-grid {
  align-items: stretch;
}

.lipored-doc-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .lipored-banner-section {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .lipored-product-section {
    padding-top: 36px;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.media-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.media-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 8px);
}

.campaign-frame {
  aspect-ratio: 16 / 10;
}

.campaign-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.product-frame img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.visual-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.visual-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.visual-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
  background: var(--red-500);
}

/* ── Certifications ── */
.certs-section { background: var(--bg-soft); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.cert-card:hover {
  background: var(--red-50);
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}
.cert-card .cert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, rgba(228,25,36,0.08), rgba(255,255,255,0.94));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-700);
}
.cert-card:hover .cert-icon {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  border-color: var(--red-700);
  color: var(--text-primary);
}
.products-differentiators .products-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.95rem;
  background: linear-gradient(135deg, rgba(228,25,36,0.08), rgba(255,255,255,0.94));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-700);
  line-height: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  transition: var(--transition);
}

.products-differentiators .products-card-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.products-differentiators .cert-card:hover .products-card-icon {
  background: linear-gradient(135deg, rgba(228,25,36,0.12), rgba(255,255,255,0.98));
  border-color: var(--red-500);
  color: var(--red-800);
}
.cert-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red-700);
  margin-bottom: 0.3rem;
}
.cert-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Why choose ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── Product information banner ── */
.info-section {
  background: linear-gradient(135deg, var(--red-50) 0%, #fff9f9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.info-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.info-inner p { color: var(--text-secondary); max-width: 500px; }
.info-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
}
.testimonial-stars { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-800));
  border: 1px solid rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.testimonial-author .author-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}
.testimonial-author .author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Assurance Statement ── */
.assurance-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.assurance-block {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red-600);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.75rem;
}
.assurance-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}
.assurance-content h2 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 1rem;
}
.assurance-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0;
}
.assurance-close {
  font-style: italic;
  color: var(--text-muted) !important;
  font-size: 0.86rem !important;
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(228,25,36,0.10) 0%, transparent 72%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: linear-gradient(180deg, var(--red-900), var(--red-950));
  border-top: none;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--footer-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
  color: var(--footer-text);
}
.social-link:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.96);
  color: var(--red-700);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--footer-text);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.86rem;
  color: var(--footer-muted);
  transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: var(--footer-text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--footer-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--footer-muted);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--footer-text); }

.footer-seals {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-seals img {
  height: 60px;
  width: auto;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.footer-seals img:hover { opacity: 1; }

/* ── Breadcrumb ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(228,25,36,0.10) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .container {
  min-width: 0;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin-inline: auto;
  max-width: min(100%, 540px);
  overflow-wrap: anywhere;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb > * {
  min-width: 0;
}
.breadcrumb a { color: var(--red-600); }
.breadcrumb span { color: var(--text-muted); }

/* ── About page ── */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mvv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border-top: 3px solid var(--red-500);
}
.mvv-card:hover { box-shadow: var(--shadow-red); transform: translateY(-4px); }
.mvv-card .mvv-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(228,25,36,0.88), rgba(118,0,8,0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mvv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red-700);
  margin-bottom: 0.75rem;
}
.mvv-card p { color: var(--text-secondary); font-size: 0.9rem; }

.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red-500), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.25rem; top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 12px rgba(201,24,36,0.55);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 0.35rem;
}
.timeline-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.timeline-item p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Products page ── */
.products-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: var(--transition-fast);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red-500);
  color: var(--red-800);
  background: var(--red-50);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  background: var(--red-50);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red-700);
}
.contact-info-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.contact-info-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.contact-card-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.contact-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Contact form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(228,25,36,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Product information components ── */
/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Layout utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }

/* ── Placeholder images ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-surface2), var(--bg-surface3));
  border: 1px dashed var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 2rem;
}
.img-placeholder .ph-icon { font-size: 2.5rem; opacity: 0.4; }

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-detail-media {
    min-height: 360px;
    padding: 1.25rem;
    align-items: flex-start;
  }

  .product-detail-img {
    max-height: 320px;
  }

  .product-detail-media .img-placeholder {
    min-height: 320px;
  }

  .product-detail-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 1.25rem 0 72px;
  }

  .product-page-hero {
    padding-bottom: 2.5rem;
  }

  .product-detail-grid {
    gap: 1rem;
  }

  .product-detail-media {
    min-height: 300px;
    padding: 1rem;
  }

  .product-detail-img {
    max-height: 260px;
  }

  .product-detail-media .img-placeholder {
    min-height: 260px;
  }

  .product-detail-panel {
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .product-detail-panel h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .product-detail-specs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-actions {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr; }

  .product-detail-section {
    padding: 1rem 0 64px;
  }

  .product-detail-media {
    min-height: 260px;
    padding: 0.875rem;
  }

  .product-detail-img {
    max-height: 220px;
  }

  .product-detail-media .img-placeholder {
    min-height: 220px;
  }

  .product-detail-panel {
    padding: 1rem;
    gap: 0.75rem;
  }

  .product-detail-panel h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  }
}

/* ══════════════════════════════════════
   RESPONSIVE RULES
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  section { padding: 72px 0; }
  #contact-channels { padding-bottom: 40px; }
  #faq { padding-top: 48px; }

  .nav-inner {
    position: relative;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nav-logo {
    max-width: calc(100% - 64px);
  }
  .brand-logo {
    max-width: min(220px, calc(100vw - 96px));
  }
  .brand-logo-img { height: 40px; }
  .hero-product-image { width: 100%; }
  .footer-logo .brand-logo-img {
    height: 34px;
    max-width: 190px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .page-hero {
    padding: calc(var(--nav-h) + 3rem) 0 3rem;
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .breadcrumb {
    row-gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stat {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--border-gold);
    max-width: 100%;
  }
  .hero-stat:nth-child(even) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }

  .about-grid  { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .about-img-badge { right: 1rem; bottom: 1rem; }

  .mvv-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  .info-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .info-inner p { margin-inline: auto; }
  .info-actions { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-seals { justify-content: center; }
}

@media (max-width: 480px) {
  .products-differentiators .container > div {
    grid-template-columns: 1fr !important;
  }
  .contact-cards-grid { grid-template-columns: 1fr; }

  .nav-logo {
    max-width: calc(100% - 56px);
  }
  .brand-logo {
    max-width: min(170px, calc(100vw - 84px));
  }
  .brand-logo-img { height: 32px; }

  .nav-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  }
  .page-hero:not(.product-page-hero) h1 {
    width: min(100%, 11ch);
    margin-inline: auto;
  }
  .product-page-hero h1 {
    width: min(100%, 16ch);
    margin-inline: auto;
  }
  .page-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    line-height: 1.12;
    text-wrap: balance;
  }
  .page-hero:not(.product-page-hero) p {
    width: min(100%, 32ch);
    margin-inline: auto;
  }
  .product-page-hero p {
    width: min(100%, 30ch);
    margin-inline: auto;
  }
  .page-hero p {
    font-size: 0.95rem;
  }
  .breadcrumb {
    font-size: 0.74rem;
    gap: 0.35rem;
  }

  .hero-product-visual { margin-top: 2rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 300px; justify-content: center; }

  .products-filter { justify-content: flex-start; }
  .footer-seals img { height: 48px; }
  .assurance-block { padding: 1.5rem 1.25rem; }

}

/* ══════════════════════════════════════
   COMPONENTS EXTRACTED FROM INLINE STYLE
══════════════════════════════════════ */

/* ── Legal pages (Privacy & Terms) ── */
.legal-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red-700);
  margin-bottom: 0.75rem;
}
.legal-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}
.legal-list {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
}
.legal-callout {
  background: var(--bg-surface2);
  border-left: 3px solid var(--red-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}
.legal-callout p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ── Highlight numbers (about.html) ── */
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ── Muted informational note ── */
.note-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   FOOTER PILOT — CONTACT COLUMN + LOGOS
   (applied via .footer--with-contact on index.html)
══════════════════════════════════════ */

/* ── Brand logos — horizontal row with vertical divider ── */
.footer-brand-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  opacity: 0.88;
}

.footer-brand-logo--xpharma {
  height: 44px;
  max-width: 220px;
}

.footer-brand-logo--mr {
  height: 68px;
  max-width: 100px;
}

/* Subtle vertical divider between the two logos */
.footer-brand-divider {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 1rem;
  flex-shrink: 0;
}

/* Descriptive copy below logos */
.footer-brand-copy {
  font-size: 0.83rem;
  color: var(--footer-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

/* ── Contact column ── */
address.footer-contact-list {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--footer-muted);
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 0.12em;
  color: var(--gold);
}

.footer-contact-link {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover { color: var(--footer-text); }

.footer-contact-pending {
  font-style: italic;
  opacity: 0.48;
  font-size: 0.82rem;
}

/* ── Seals integrados na barra inferior (à direita) ── */
.footer--with-contact .footer-seals {
  padding: 0;
  border-top: none;
  gap: 0.6rem;
}

.footer--with-contact .footer-seals img {
  height: 26px;
}

/* Wrapper direito: selos + links legais agrupados */
.footer--with-contact .footer-bottom {
  justify-content: space-between;
}

.footer--with-contact .footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Links legais: hover dourado ── */
.footer--with-contact .footer-bottom-links a {
  transition: color var(--transition-fast);
}

.footer--with-contact .footer-bottom-links a:hover,
.footer--with-contact .footer-bottom-links a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 5-column grid (index.html only) ── */
.footer--with-contact .footer-grid {
  grid-template-columns: 1.7fr 1.3fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .footer--with-contact .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .footer--with-contact .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-logo--xpharma { height: 38px; max-width: 190px; }
  .footer-brand-logo--mr      { height: 56px; max-width: 82px; }
  .footer-brand-divider       { height: 44px; margin: 0 0.65rem; }
  .footer--with-contact .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  .footer--with-contact .footer-bottom-right {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .footer--with-contact .footer-seals  { justify-content: center; }
}

/* ══════════════════════════════════════
   FLOATING ACTIONS — WhatsApp + Back to top
══════════════════════════════════════ */

.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.floating-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* Back to top: hidden until user scrolls */
.floating-action--top {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.floating-action--top.floating-action--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WhatsApp: always visible */
.floating-action--whatsapp {
  background: #25d366;
  color: #fff;
}

.floating-action:hover,
.floating-action:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  outline: none;
}

.floating-action--top:hover,
.floating-action--top:focus-visible {
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
}

.floating-action--whatsapp:hover,
.floating-action--whatsapp:focus-visible {
  background: #1ebe5b;
}

.floating-action svg {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .floating-action { transition: none; }
  .floating-action--top { transition: opacity 0.01ms; }
}

@media (max-width: 580px) {
  .floating-actions { bottom: 1rem; right: 1rem; }
  .floating-action  { width: 44px; height: 44px; }
  .floating-action svg { width: 22px; height: 22px; }
}

/* ── Skip-to-main accessibility link ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--red-600);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: top 0.15s ease;
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
