:root {
  --navy: #0E1E36;
  --navy-2: #16294A;
  --accent: #D64526;
  --accent-dark: #B93A1E;
  --bg: #F6F7F9;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E7E9EE;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { font-family: 'Sora', system-ui, -apple-system, sans-serif; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
header.main {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo-img { height: 76px; width: auto; display: block; }
.search {
  position: relative;
  flex-grow: 1;
  max-width: 620px;
  display: flex;
  align-items: center;
  background: #F1F2F5;
  border-radius: 6px;
  padding: 13px 18px;
  gap: 11px;
}
.search input {
  border: none; background: transparent; outline: none; font-size: 16px; width: 100%; color: var(--text);
}
.search-results {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 12px 28px rgba(14,30,54,0.16); max-height: 360px; overflow-y: auto; z-index: 45;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text);
}
.search-results a:hover { background: #FBEAE4; }
.search-results a img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.search-results a strong { display: block; font-size: 13.5px; font-weight: 600; }
.search-results a small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.search-empty { padding: 14px 12px; font-size: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.icon-link {
  display: flex; align-items: center; gap: 7px; color: var(--navy); font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.1px;
}
.header-actions .btn-primary { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; padding: 12px 24px; }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute; top: -7px; right: -9px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; line-height: 1;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.btn-primary {
  background: var(--accent); color: #fff; border: none; font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55);
  font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { color: #fff; border-color: #fff; }
.btn-outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--border);
  font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.hamburger { display: none; background: none; border: none; padding: 6px; }

/* ---------- header top-row links (Sobre / Contacto) ---------- */
.header-links { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-link { color: var(--navy); font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.1px; }
.header-link:hover { color: var(--accent); }

/* ---------- language switcher (PT / EN / FR) ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 2px; flex-shrink: 0; }
.lang-btn {
  background: none; border: none; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--muted); padding: 5px 9px; border-radius: 999px; cursor: pointer; letter-spacing: 0.3px;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { background: var(--navy); color: #fff; }
.drawer-lang-switch { margin: 2px 4px 4px; }

/* ---------- category nav trigger (opens the shared drawer — see .drawer-open-btn) ---------- */
.chevron { transition: transform .15s ease; }
nav.cat-nav { background: #FAFAFB; border-bottom: 1px solid var(--border); position: relative; z-index: 30; }
.cat-nav-inner { padding: 10px 5vw; }
.cat-nav-trigger {
  background: none; border: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy); padding: 6px 2px; cursor: pointer;
}
.cat-nav-trigger:hover { color: var(--accent); }

/* ---------- account dropdown (next to "Olá, Nome" once logged in) ---------- */
.account-menu { position: relative; }
.account-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); right: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(14,30,54,0.14); padding: 6px; z-index: 60;
}
.account-dropdown.open { display: block; }
.account-dropdown a { display: block; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 5px; }
.account-dropdown a:hover { background: #F6F7F9; }
.account-dropdown a.logout-link { color: #B71C1C; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; border-radius: 0 0 5px 5px; }

/* ---------- mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(14,30,54,0.45); z-index: 49; display: none;
}
.drawer {
  position: fixed; top: 0; left: -340px; width: 320px; height: 100%; background: #fff;
  z-index: 50; transition: left .2s ease; overflow-y: auto; padding: 20px;
}
.drawer.open { left: 0; }
.drawer-overlay.open { display: block; }
.drawer-close { background: none; border: none; padding: 6px; float: right; }
.drawer-group summary {
  list-style: none; cursor: pointer; padding: 13px 4px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border);
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group[open] summary .chevron { transform: rotate(180deg); }
.drawer-group .sub-list { display: flex; flex-direction: column; padding: 6px 4px 14px 10px; }
.drawer-group .sub-list a { padding: 8px 0; font-size: 14px; color: var(--text); }
.drawer-simple { display: block; padding: 13px 4px; font-weight: 600; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); }
.drawer-cat-head { padding: 16px 4px 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; }
.drawer-cat-list { padding: 0 4px; }

/* ---------- page / department hero (smaller, used on category/about/contact pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, #0E1E36 0%, #16294A 62%, #1B2F52 100%);
  padding: 34px 5vw 30px;
}
.breadcrumbs { font-size: 13px; color: #93A0BA; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { color: #C9CDD6; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { color: #4C5A78; }
.breadcrumbs .current { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-top: 10px; }
.page-hero p { color: #B7BFCE; font-size: 14.5px; margin-top: 8px; max-width: 620px; line-height: 1.6; }

/* ---------- homepage hero: short headline + a full-width continuous image
   marquee (no supporting paragraph/CTAs — "Pedir Cotação" already lives
   permanently in the header nav). ---------- */
.home-hero { background: linear-gradient(120deg, #0E1E36 0%, #16294A 62%, #1B2F52 100%); padding: 44px 5vw; overflow-x: hidden; }
.home-hero-inner { display: flex; align-items: center; gap: 32px; }
.home-hero-title { flex: 0 0 auto; max-width: 320px; color: #fff; font-family: 'Sora', sans-serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }

/* A continuously auto-scrolling, draggable image strip rather than a discrete
   slideshow — see initHeroPromo() in index.html. Native overflow-x scrolling
   is what gives touch users real finger-swipe control for free; the JS layer
   on top just auto-advances scrollLeft and pauses around user input. Each
   image is sized to its own natural aspect ratio at a fixed height (not
   forced into a uniform box) so there's no letterboxing/empty space. Fills
   all remaining width up to the section's own right padding — no separate
   max-width capping it short of that. */
.home-hero-promo {
  flex: 1 1 auto; min-width: 0; position: relative; height: 380px;
  border-radius: 12px; background: #16294A; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; cursor: grab;
}
.home-hero-promo::-webkit-scrollbar { display: none; }
.home-hero-promo.dragging { cursor: grabbing; }
.home-hero-promo-track { display: flex; align-items: center; height: 100%; width: max-content; gap: 14px; padding: 0 14px; }
.home-hero-promo-track img {
  height: 100%; width: auto; max-width: none; object-fit: contain; border-radius: 8px;
  flex: 0 0 auto; user-select: none; -webkit-user-drag: none;
}
/* ---------- sections ---------- */
section { padding: 48px 5vw 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 23px; color: var(--navy); }
.section-head p.section-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.filter-note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.filter-note button { background: none; border: none; color: var(--accent); font-size: 13.5px; font-weight: 600; padding: 0; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(14,30,54,0.10); }
.product-thumb-wrap { position: relative; }
.product-thumb { display: block; height: 168px; background: #EEF0F3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-wishlist-card {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-wishlist-card:hover { border-color: var(--accent); }
.btn-wishlist-card.active { border-color: var(--accent); background: #FBEAE4; }
.product-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-eyebrow { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.4px; }
.product-title-link { color: inherit; }
.product-title-link h3 { font-size: 14.5px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.product-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.product-cta .price { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.product-cta .quote { font-size: 12px; font-weight: 600; color: var(--accent); }
.btn-add-cart {
  width: 100%; margin-top: 10px; background: #fff; color: var(--navy); border: 1px solid var(--border);
  font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- product carousel (homepage "produtos em destaque" only) ---------- */
.product-carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.product-carousel-viewport { overflow: hidden; flex: 1; padding: 4px 2px 22px; }
.product-grid.product-carousel-track {
  display: flex; flex-wrap: nowrap; gap: 18px;
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1); will-change: transform;
}
.product-grid.product-carousel-track .product-card {
  flex: 0 0 calc((100% - 54px) / 4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-grid.product-carousel-track .product-card:hover {
  transform: scale(1.045); box-shadow: 0 14px 30px rgba(14,30,54,0.18); position: relative; z-index: 2;
}
.carousel-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s, box-shadow .2s;
}
.carousel-arrow:hover { border-color: var(--navy); box-shadow: 0 4px 12px rgba(14,30,54,0.12); }
@media (prefers-reduced-motion: reduce) {
  .product-grid.product-carousel-track { transition: none; }
}

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 46px 20px; color: var(--muted); font-size: 14.5px;
  background: #fff; border: 1px dashed var(--border); border-radius: 6px;
}

.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 5vw; border-bottom: 1px solid var(--border); background: #fff;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.selection-summary { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.selection-summary strong { color: var(--navy); }
.filter-chip {
  background: #fff; border: 1px solid var(--border); color: var(--text); font-family: inherit;
  font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 999px; transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sort-control { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.sort-control select {
  font-family: inherit; font-size: 13px; color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; padding: 7px 10px; background: #fff;
}

.subcat-section { padding-bottom: 40px; }
.subcat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.subcat-head h2 { font-size: 18px; color: var(--navy); }
.subcat-describe { color: var(--muted); font-size: 13px; line-height: 1.6; margin: -10px 0 18px; max-width: 780px; }
.subcat-anchor { scroll-margin-top: 130px; }

.banner {
  margin: 48px 5vw 0; background: var(--navy); border-radius: 8px; padding: 34px 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner h2 { color: #fff; font-size: 20px; }
.banner p { color: #AEB8C9; font-size: 14px; margin-top: 8px; max-width: 480px; }

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.trust-item { display: flex; align-items: flex-start; gap: 13px; }
.trust-item h3 { font-size: 14.5px; font-weight: 600; }
.trust-item p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ---------- product detail page ---------- */
.product-detail { display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 12px; }
.product-detail-media { flex: 1 1 380px; max-width: 480px; }
.product-detail-media img { border-radius: 8px; border: 1px solid var(--border); width: 100%; height: 360px; object-fit: cover; }
.product-detail-info { flex: 1 1 340px; }
.product-detail-info h1 { font-size: 24px; color: var(--navy); line-height: 1.3; margin-top: 8px; }
.product-detail-info .price-block { margin-top: 20px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.product-detail-info .price-block .price { font-size: 13.5px; color: var(--muted); }
.product-detail-info .desc { margin-top: 20px; font-size: 14.5px; line-height: 1.7; color: #33394A; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qty-row label { font-size: 13px; font-weight: 600; color: var(--navy); }
.qty-row input {
  width: 70px; border: 1px solid var(--border); border-radius: 5px; padding: 8px;
  text-align: center; font-family: inherit; font-size: 14px; color: var(--text);
}
.price-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.spec-list { margin-top: 18px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { color: var(--text); font-weight: 500; text-align: right; }
.related-grid { margin-top: 8px; }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.about-copy p { font-size: 14.5px; line-height: 1.75; color: #33394A; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.stat-card .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; color: var(--accent); }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; }
.value-card h3 { font-size: 15px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px; margin-bottom: 16px; }
.contact-info-card h3 { font-size: 14px; margin-bottom: 12px; color: var(--navy); }
.contact-info-card .row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #33394A; margin-bottom: 12px; }
.contact-info-card .row svg { flex-shrink: 0; margin-top: 1px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 5px; padding: 11px 13px;
  font-family: inherit; font-size: 14px; color: var(--text); background: #FBFBFC;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field .field-error { color: var(--accent-dark); font-size: 12px; margin-top: 5px; display: none; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--accent-dark); }
.form-field.invalid .field-error { display: block; }
.btn-block { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; }
.form-success {
  display: none; background: #EAF6EC; border: 1px solid #B7DFBE; color: #1E5B2A;
  padding: 18px; border-radius: 6px; font-size: 14px; margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- cart page ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-row {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px;
  display: grid; grid-template-columns: 64px 1fr auto auto auto; align-items: center; gap: 16px;
}
.cart-row-thumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #EEF0F3; }
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info a { color: inherit; }
.cart-row-info h3 { font-size: 14px; font-weight: 600; margin-top: 3px; line-height: 1.3; }
.cart-unit-price { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--border); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; }
.cart-line-total { font-size: 14.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-remove { background: none; border: none; padding: 6px; color: var(--muted); }
.cart-remove:hover { color: var(--accent-dark); }
.cart-summary {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px;
  max-width: 380px; margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; color: var(--navy); }
.cart-summary-row .cart-total-value { font-size: 20px; font-family: 'Sora', sans-serif; font-weight: 800; color: var(--accent); }
.cart-disclaimer { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.quote-generated-card {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.quote-generated-card p { font-size: 13px; color: #1E5B2A; background: #EAF6EC; border: 1px solid #B7DFBE; padding: 10px 12px; border-radius: 5px; line-height: 1.5; }

/* ---------- toast ---------- */
.edqea-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(14,30,54,0.28);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 60; max-width: 90vw;
}
.edqea-toast.show { opacity: 1; transform: translate(-50%, 0); }

footer {
  margin-top: 52px; background: var(--navy); padding: 44px 5vw 22px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid #24365A; }
.footer-grid h3 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { color: #C9CDD6; font-size: 13.5px; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; flex-wrap: wrap; gap: 8px; color: #6D7690; font-size: 12.5px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid.product-carousel-track .product-card { flex: 0 0 calc((100% - 18px) / 2); }
  .carousel-arrow { width: 34px; height: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Search drops to its own full-width row below the logo/actions row rather
     than being hidden — the header wraps to make room. */
  header.main { flex-wrap: wrap; row-gap: 10px; }
  .search { order: 10; flex-basis: 100%; max-width: none; }
  .header-links { display: none; }
  nav.cat-nav { display: none; }
  .hamburger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 52px 1fr; grid-template-areas: "thumb info" "thumb qty" "thumb total" "thumb remove"; }
  .cart-row-thumb { grid-area: thumb; }
  .cart-row-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
  .cart-remove { grid-area: remove; justify-self: start; }
  .cart-summary { max-width: none; }

  /* ---------- tighter, smaller-scale header/typography/spacing on mobile ---------- */
  header.main { padding: 10px 5vw; gap: 10px; }
  .logo-img { height: 40px; }
  .header-actions { gap: 10px; }
  .icon-link { font-size: 12.5px; gap: 4px; }
  .icon-link svg { width: 15px; height: 15px; }
  .header-actions .btn-primary { font-size: 12.5px; padding: 8px 12px; }
  .cat-nav-inner { padding: 8px 5vw; }
  .cat-nav-trigger svg { width: 15px; height: 15px; }

  .home-hero { padding: 22px 0 20px; }
  .home-hero-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .home-hero-title {
    max-width: none; padding: 0 6vw; font-size: 3.4vw; line-height: 1.3;
    white-space: nowrap; overflow: hidden;
  }
  /* Full-bleed: cancel the section's own side padding so the marquee reaches
     both screen edges, matching "occupying the entire width" — rounded
     corners/shadow only make sense on an inset panel, so drop those too. */
  .home-hero-promo { width: 100%; height: 260px; border-radius: 0; box-shadow: none; }

  section { padding: 30px 6vw 4px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 19px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .stat-card .num { font-size: 21px; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .banner { margin: 30px 6vw 0; padding: 22px 6vw; }
  .banner h2 { font-size: 17px; }
  .banner p { font-size: 13px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-grid.product-carousel-track .product-card { flex: 0 0 100%; }
  .product-carousel { gap: 4px; }
  .carousel-arrow { width: 30px; height: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid, .values-grid { grid-template-columns: 1fr; }
  .product-detail { gap: 24px; }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- customer account pages ("A Minha Conta") ---------- */
.account-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; position: sticky; top: 90px; }
.account-nav a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.account-nav a:hover { background: #F1F2F5; }
.account-nav a.active { background: #FBEAE4; color: var(--accent-dark); }
.account-nav a.logout-link { color: var(--accent-dark); margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px; margin-bottom: 20px; }
.account-card h2 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.account-card p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.account-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.account-flash.success { background: #E8F5E9; color: #256029; border: 1px solid #A5D6A7; }
.account-flash.error { background: #FDECEA; color: #B71C1C; border: 1px solid #F5C6C6; }
.account-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-quick-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.account-quick-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.account-quick-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.account-radio-row { display: flex; gap: 22px; margin-bottom: 4px; }
.account-radio-row label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.account-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.account-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: #F1F2F5; }
.address-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-bottom: 12px; }
.address-card .badge-default { display: inline-block; background: #E8F5E9; color: #256029; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; margin-left: 8px; }
.address-card .address-actions { margin-top: 10px; display: flex; gap: 16px; font-size: 13px; }
.address-card .address-actions button { background: none; border: none; color: var(--accent-dark); font-size: 13px; padding: 0; text-decoration: underline; }
.quote-card { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.quote-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #FAFAFB; cursor: pointer; gap: 12px; flex-wrap: wrap; }
.quote-card-head-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quote-status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.quote-status.pending { background: #FFF3E0; color: #B45309; }
.quote-status.confirmed { background: #E3F2FD; color: #1565C0; }
.quote-status.fulfilled { background: #E8F5E9; color: #256029; }
.quote-status.cancelled { background: #FDECEA; color: #B71C1C; }
.quote-card-body { padding: 16px 18px; display: none; border-top: 1px solid var(--border); }
.quote-card.open .quote-card-body { display: block; }
.quote-item-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.quote-item-row:last-child { border-bottom: none; }
.btn-wishlist {
  background: #fff; border: 1.5px solid var(--border); border-radius: 4px; padding: 10px 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-wishlist:hover { border-color: var(--accent); }
.btn-wishlist.active { border-color: var(--accent); background: #FBEAE4; }
@media (max-width: 860px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-quick-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .account-nav a { flex: 1 1 auto; text-align: center; }
}

/* ---------- Edu-AI chat widget (assets/site.js: edqeaMountChatWidget()) ---------- */
.eduai-widget { position: fixed; right: 20px; bottom: 20px; z-index: 38; }
.eduai-bubble {
  height: 52px; border-radius: 26px; border: none; background: var(--accent);
  box-shadow: 0 8px 22px rgba(214,69,38,0.45); display: flex; align-items: center; gap: 9px;
  padding: 0 20px 0 15px; cursor: pointer; animation: eduai-attention 2.4s ease-in-out 3;
}
.eduai-bubble:hover { background: var(--accent-dark); }
.eduai-bubble-label { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; }
@keyframes eduai-attention {
  0%, 100% { box-shadow: 0 8px 22px rgba(214,69,38,0.45); }
  50% { box-shadow: 0 8px 22px rgba(214,69,38,0.45), 0 0 0 8px rgba(214,69,38,0.18); }
}
.eduai-panel {
  display: none; position: fixed; right: 20px; bottom: 88px; width: 360px; max-width: calc(100vw - 40px);
  height: 480px; max-height: calc(100vh - 130px); background: #fff; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(14,30,54,0.28); z-index: 61; flex-direction: column; overflow: hidden;
  transition: transform .22s ease;
}
.eduai-panel.eduai-dragging { transition: none; }
.eduai-panel.open { display: flex; }
.eduai-panel-head {
  background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0; touch-action: none;
}
.eduai-panel-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; }
.eduai-panel-head-actions { display: flex; align-items: center; gap: 8px; }
.eduai-new-chat {
  background: var(--accent); color: #fff; border: none; border-radius: 14px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.eduai-new-chat:hover { background: var(--accent-dark); }
#eduaiClose { background: none; border: none; padding: 4px; cursor: pointer; }
.eduai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
/* Keeps a short conversation sitting at the bottom near the input (like a
   messaging app) instead of floating at the top with a big empty gap;
   still scrolls normally once the messages overflow. */
.eduai-messages > :first-child { margin-top: auto; }
.eduai-msg { max-width: 88%; padding: 9px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.eduai-msg-assistant { align-self: flex-start; background: #F1F2F5; color: #33394A; border-bottom-left-radius: 2px; }
.eduai-msg-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 2px; }
.eduai-msg-assistant a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.eduai-msg-bullet { color: var(--accent); font-weight: 700; }
.eduai-msg-user a { color: #fff; text-decoration: underline; }
.eduai-msg-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; clear: both; }
.eduai-msg-product { display: flex; flex-direction: column; align-items: center; width: 72px; text-align: center; text-decoration: none; color: inherit; font-size: 10.5px; line-height: 1.25; }
.eduai-msg-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #fff; border: 1px solid rgba(0,0,0,.08); }
.eduai-msg-product-title { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eduai-msg-product-price { margin-top: 2px; font-weight: 700; color: var(--accent); }
.eduai-msg-user .eduai-msg-product img { border-color: rgba(255,255,255,.35); }
.eduai-msg-user .eduai-msg-product-price { color: #fff; }
.eduai-typing { color: #9AA1AE; font-style: italic; }
.eduai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.eduai-form input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px;
  /* 16px keeps iOS Safari from auto-zooming the viewport when the field is focused */
  font-size: 16px; font-family: inherit; outline: none;
}
.eduai-form input:disabled { background: #F6F7F9; }
.eduai-form button {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--accent);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.eduai-form button:hover { background: var(--accent-dark); }
.eduai-mic-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.eduai-mic-btn:hover { border-color: var(--accent); }
.eduai-mic-btn.eduai-mic-on { background: var(--accent); border-color: var(--accent); animation: eduai-mic-pulse 1.6s ease-in-out infinite; }
.eduai-mic-btn.eduai-mic-on svg { stroke: #fff; }
/* While a voice conversation is active, the same button doubles as the stop
   control - swapping the icon to a stop square (not just a color change)
   makes it obvious that's where to press to end it, instead of leaving a
   mic glyph up that looks identical to "start". */
.eduai-mic-btn .eduai-stop-icon { display: none; }
.eduai-mic-btn.eduai-mic-on .eduai-mic-icon { display: none; }
.eduai-mic-btn.eduai-mic-on .eduai-stop-icon { display: block; }
@keyframes eduai-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,38,0.35); }
  50% { box-shadow: 0 0 0 7px rgba(214,69,38,0); }
}
.eduai-voice-bar {
  display: none; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: #7C8494; flex-shrink: 0; cursor: pointer;
}
.eduai-voice-bar.open { display: flex; }
.eduai-voice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: eduai-voice-pulse 1.1s ease-in-out infinite; }
.eduai-voice-interrupt {
  margin-left: auto; flex-shrink: 0; border: 1px solid var(--accent); background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.eduai-voice-interrupt:hover { background: var(--accent); color: #fff; }
@keyframes eduai-voice-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@media (max-width: 560px) {
  .eduai-widget { right: 14px; bottom: 14px; }
  .eduai-bubble { height: 48px; padding: 0 16px 0 13px; }
  .eduai-bubble-label { font-size: 13px; }
  /* Full-screen sheet on phones. A small floating card fought the on-screen
     keyboard and rendered half off-screen. edqeaMountChatWidget() sizes this to
     window.visualViewport on open / keyboard show/hide (see that fn), so it
     always exactly fills what the user can see; these are just the fallback for
     the split-second before the JS runs and for no-visualViewport browsers. */
  .eduai-panel {
    /* flush to the right screen edge, narrow, full height (keyboard-closed).
       edqeaMountChatWidget() overrides bottom/height while the keyboard is up. */
    left: auto; right: 0; top: 0; bottom: 0;
    width: 80vw; max-width: 320px;
    height: auto; max-height: none; border-radius: 14px 0 0 14px;
  }
  /* tighter header + grab-handle affordance for the swipe-down-to-dismiss gesture */
  .eduai-panel-head { position: relative; padding: 14px 14px 10px; }
  .eduai-panel-head::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.5);
  }
  .eduai-messages { padding: 12px; }
  .eduai-form { padding: 10px; }
}
