/* ============================================
   DotaT B2B — Sistema de Diseño Global
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-accent: #18C995;
  --color-accent-hover: #14b383;
  --color-accent-light: rgba(24, 201, 149, 0.1);
  --color-primary-dark: #2D2B3F;
  --color-primary-dark-translucent: rgba(45, 43, 63, 0.85);
  --color-tork-blue: #009EDD;
  --color-tork-blue-light: rgba(0, 158, 221, 0.1);

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-border: #E2E8F0;
  --color-text-primary: #2D2B3F;
  --color-text-body: #4B5563;
  --color-text-muted: #94A3B8;

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

  /* Font Sizes (Fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (tinted with primary dark) */
  --shadow-sm: 0 1px 3px rgba(45, 43, 63, 0.04), 0 1px 2px rgba(45, 43, 63, 0.06);
  --shadow-md: 0 4px 6px rgba(45, 43, 63, 0.04), 0 2px 4px rgba(45, 43, 63, 0.06);
  --shadow-lg: 0 10px 25px rgba(45, 43, 63, 0.06), 0 4px 10px rgba(45, 43, 63, 0.04);
  --shadow-xl: 0 20px 40px rgba(45, 43, 63, 0.08), 0 8px 16px rgba(45, 43, 63, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section--surface {
  background-color: var(--color-surface);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(24, 201, 149, 0.3);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.03);
}

.btn--dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: #3d3a52;
  transform: scale(1.03);
  color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background-color var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.navbar--scrolled {
  background-color: var(--color-primary-dark-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 48px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar__links a {
  color: var(--color-white);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__links a:hover {
  color: var(--color-accent);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Mobile menu */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--color-primary-dark);
    padding: var(--space-6);
    gap: var(--space-4);
  }

  .navbar__links--open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a1830 60%, #12202e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(24, 201, 149, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(24, 201, 149, 0.12);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Trust Bar --- */
.trust-bar {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.trust-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Category card hover glow */
.category-card:hover {
  box-shadow: 0 8px 30px rgba(24, 201, 149, 0.15), var(--shadow-lg);
}

/* Category Card */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card__img {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 43, 63, 0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.category-card__title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
}

/* Sector Card */
.sector-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.sector-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
}

.sector-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.sector-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card__img-wrap {
  background-color: var(--color-surface);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-card__img {
  max-height: 160px;
  object-fit: contain;
}

.product-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__brand {
  display: inline-block;
  background-color: var(--color-tork-blue-light);
  color: var(--color-tork-blue);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.product-card__quality {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: var(--space-1);
}

.product-card__quality--premium {
  background: #fef3c7;
  color: #92400e;
}

.product-card__quality--advanced {
  background: #dbeafe;
  color: #1e40af;
}

.product-card__quality--universal {
  background: #e2e8f0;
  color: #475569;
}

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  margin: var(--space-2) 0;
  flex: 1;
}

.product-card__code {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-card__embalaje {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}

/* Embalaje hint in quotation form */
.embalaje-hint {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  margin-top: var(--space-1);
  padding: 3px var(--space-2);
  background-color: var(--color-accent-light);
  border-radius: var(--radius-sm);
}

.product-card__footer {
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), #1a1830);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-20) var(--space-6);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(24, 201, 149, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-4);
}

.footer__heading {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: var(--color-white);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-label span {
  color: var(--color-accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(24, 201, 149, 0.15);
}

.form-select:disabled {
  background-color: var(--color-surface);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge--tork {
  background-color: var(--color-tork-blue-light);
  color: var(--color-tork-blue);
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
[data-animate]:nth-child(2) {
  transition-delay: 0.08s;
}

[data-animate]:nth-child(3) {
  transition-delay: 0.16s;
}

[data-animate]:nth-child(4) {
  transition-delay: 0.24s;
}

[data-animate]:nth-child(5) {
  transition-delay: 0.32s;
}

[data-animate]:nth-child(6) {
  transition-delay: 0.40s;
}

/* --- How It Works Section --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-accent), #14b383);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Connector lines between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-border));
  opacity: 0.4;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* --- Page Header (for subpages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a1830 100%);
  padding: calc(var(--space-24) + 60px) 0 var(--space-16);
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
  font-size: var(--text-4xl);
}

.page-header p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Catalog Filters --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 80px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-group__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  padding: var(--space-1) 0;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

/* --- Mobile Filter FAB --- */
.filter-fab {
  display: none;
  /* Hidden on desktop */
}

.filter-overlay {
  display: none;
  /* Hidden on desktop */
}

.filter-sidebar__header {
  display: none;
  /* Hidden on desktop */
}

.filter-sidebar__actions {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  /* --- FAB Button --- */
  .filter-fab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(24, 201, 149, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .filter-fab:active {
    transform: translateX(-50%) scale(0.95);
  }

  .filter-fab svg {
    flex-shrink: 0;
  }

  .filter-fab__badge {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  /* --- Filter Overlay --- */
  .filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .filter-overlay.active {
    display: block;
    opacity: 1;
  }

  /* --- Sidebar as Bottom Sheet --- */
  .catalog-sidebar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto !important;
    z-index: 1000;
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    border: none;
    display: none;
  }

  .catalog-sidebar.mobile-open {
    transform: translateY(0);
    display: block;
  }

  /* --- Bottom Sheet Handle --- */
  .catalog-sidebar::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--color-border);
    border-radius: 4px;
    margin: 12px auto 0;
  }

  /* --- Sidebar Header (mobile only) --- */
  .filter-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    padding-top: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 1;
  }

  .filter-sidebar__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-text-primary);
  }

  .filter-sidebar__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
  }

  .filter-sidebar__close:hover {
    background: var(--color-surface);
  }

  /* --- Filter Groups inside Bottom Sheet --- */
  .catalog-sidebar .filter-group {
    padding: 0 var(--space-6);
  }

  .catalog-sidebar .filter-group:first-of-type {
    padding-top: var(--space-4);
  }

  /* --- Action Buttons (mobile only) --- */
  .filter-sidebar__actions {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    position: sticky;
    bottom: 0;
    background: var(--color-white);
    z-index: 1;
  }

  /* --- Grid 2-col on mobile --- */
  .grid--3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }

  .product-card__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 160px;
  }

  .product-card__img-wrap {
    min-height: 140px;
    padding: var(--space-3);
  }

  /* Hide FAB when filter panel is open */
  .filter-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.8);
  }
}

@media (max-width: 480px) {
  .grid--3 {
    grid-template-columns: 1fr !important;
  }
}

/* --- Product Detail Modal --- */
.product-detail {
  padding: var(--space-8);
}

.product-detail__header {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.product-detail__img {
  width: 200px;
  height: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-detail__info {
  flex: 1;
}

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.specs-table th,
.specs-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.specs-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
  background: var(--color-surface);
}

.specs-table td {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* --- Quote Table (Dynamic) --- */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.quote-table th {
  background: var(--color-surface);
  padding: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

.quote-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.quote-table .form-select,
.quote-table .form-input {
  font-size: var(--text-sm);
  padding: var(--space-2);
}

.quote-table .btn-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--text-lg);
  padding: var(--space-1);
}

.quote-table .btn-remove:hover {
  color: #ef4444;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  /* On mobile, always show text first, image second — regardless of DOM order */
  .two-col .image-wrapper {
    order: 2;
  }

  .two-col>div:not(.image-wrapper) {
    order: 1;
  }
}

/* --- Values Grid --- */
.value-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.value-card__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.value-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

/* --- Product Detail Drawer --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 43, 63, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  height: 100vh;
  background: var(--color-white);
  z-index: 901;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
  visibility: hidden;
}

.drawer.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 2;
}

.drawer__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.drawer__close:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.drawer__image {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.drawer__image-placeholder {
  width: 200px;
  height: 200px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
  font-weight: 700;
}

.drawer__product-img {
  max-width: 260px;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.drawer__product-img:hover {
  transform: scale(1.05);
}

.product-card__img {
  object-fit: contain;
  width: 100%;
  height: 160px;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.product-card__img-wrap:hover .product-card__img {
  transform: scale(1.05);
}

.drawer__content {
  padding: var(--space-6);
}

.drawer__badges {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.drawer__product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.drawer__product-code {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.drawer .specs-table {
  margin-bottom: var(--space-6);
}

.drawer .specs-table tr:nth-child(even) td,
.drawer .specs-table tr:nth-child(even) th {
  background: var(--color-surface);
}

.drawer .fsc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .drawer {
    width: 100%;
  }
}

/* ============================================
   Privacy Consent Checkbox
   ============================================ */

.privacy-consent {
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.privacy-consent.has-error {
  border-color: #ef4444;
  background-color: #fff5f5;
}

.privacy-consent__label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.6;
}

.privacy-consent__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.privacy-consent__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.privacy-consent__link:hover {
  color: var(--color-accent-hover);
}

.required-star {
  color: #ef4444;
  font-weight: 700;
}

.privacy-error-msg {
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: #ef4444;
  font-weight: 500;
}

/* ============================================
   Privacy Policy Modal
   ============================================ */

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(45, 43, 63, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: modalFadeIn 200ms ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.privacy-modal__dialog {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.privacy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a1830 100%);
  flex-shrink: 0;
}

.privacy-modal__header h3 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin: 0;
}

.privacy-modal__close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--color-white);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.privacy-modal__close:hover {
  background: rgba(255,255,255,0.25);
}

.privacy-modal__body {
  overflow-y: auto;
  padding: var(--space-8);
  flex: 1;
}

.privacy-modal__body h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent-light);
}

.privacy-modal__body h4:first-child {
  margin-top: 0;
}

.privacy-modal__body p {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.privacy-modal__body ul {
  margin: 0 0 var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.7;
}

.privacy-modal__body ul li {
  margin-bottom: var(--space-1);
}

.privacy-modal__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-modal__updated {
  font-size: var(--text-xs) !important;
  color: var(--color-text-muted) !important;
  margin-bottom: var(--space-6) !important;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.privacy-modal__footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .privacy-modal {
    padding: var(--space-4);
    align-items: flex-end;
  }

  .privacy-modal__dialog {
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .privacy-modal__header {
    padding: var(--space-4) var(--space-5);
  }

  .privacy-modal__body {
    padding: var(--space-5);
  }

  .privacy-modal__footer {
    padding: var(--space-4) var(--space-5);
    justify-content: stretch;
  }

  .privacy-modal__footer .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}