/* ---------- Shared building blocks ---------- */

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow.light { color: #b9c6ff; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }

.btn.light { background: var(--white); color: var(--blue); }
.btn.light:hover { background: var(--blue-soft); }

.btn.outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn.whatsapp { background: var(--whatsapp); }
.btn.whatsapp:hover { background: #1ebe5b; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.text-link svg { transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }

.section { padding: 72px 0; }
.section.alt { background: var(--surface); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h2,
.section h2 { font-size: clamp(24px, 3vw, 32px); }

.section-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-slide {
  display: none;
  min-height: clamp(440px, 62vh, 580px);
  background: var(--navy) center/cover no-repeat;
  align-items: center;
  padding: 72px 0 96px;
}
.hero-slide.is-active {
  display: flex;
  animation: hero-in 0.6s ease;
}
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

.hero-copy { max-width: 600px; }

.hero-kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dbe3ff;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  margin: 20px 0 16px;
}

.hero-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: #cdd5e6;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-nav button,
.carousel-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero-nav button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.hero-nav button:hover { background: var(--white); color: var(--navy); }

/* ---------- Stats ---------- */

.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.stat {
  padding: 28px 16px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.stat span { font-size: 14px; color: var(--muted); }

.stats-grid.boxed { gap: 16px; }
.stats-grid.boxed .stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Cards ---------- */

.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d5dcf5;
}
.card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Every card image sits in the same square frame, whatever its source size. */
.card .media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f6fa;
  overflow: hidden;
}
.card .media img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}
.card:hover .media img { transform: scale(1.05); }

.card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.card .eyebrow {
  font-size: 11px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-meta {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink);
}
.card-meta li {
  padding: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta li span {
  display: inline-block;
  width: 48px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.card-link svg { transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.category-card .body { padding: 18px 20px 20px; }
.category-card h3 { min-height: 0; }
.category-card .card-link {
  padding-top: 6px;
  color: var(--muted);
  font-weight: 500;
}
.category-card:hover .card-link { color: var(--blue); }

/* ---------- Carousel ---------- */

.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.carousel-nav button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, calc((100% - 48px) / 4));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { scroll-snap-align: start; }

/* ---------- Home intro ---------- */

.intro-block {
  display: grid;
  gap: 40px;
  align-items: center;
}
.intro-block h2 { margin-bottom: 16px; }
.intro-block p { color: var(--muted); margin-bottom: 16px; }
.intro-block .btn { margin-top: 8px; }

.intro-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.feature-list svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.brand-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-list li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.brand-list.large { gap: 12px; }
.brand-list.large li {
  flex: 1 1 140px;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
  background: var(--white);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  padding: 56px 0;
}
.cta-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 8px;
}
.cta-band p { color: #d6ddff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner page hero ---------- */

.page-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(43, 79, 224, 0.08), transparent 45%),
    var(--surface);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero.compact { padding: 18px 0; }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
}
.page-hero .lead {
  margin-top: 10px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-hero.compact .crumbs { margin-bottom: 0; }
.crumbs a:hover { color: var(--blue); }
.crumbs span:last-child { color: var(--ink); font-weight: 500; }

/* ---------- Shop / category ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
  padding-bottom: 4px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

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

/* ---------- Product detail ---------- */

.product-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-photo img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-info h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  margin: 4px 0 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.stock,
.sku {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.stock { background: #e7f6ee; color: #067647; }
.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.stock.out { background: #fff4e5; color: #b54708; }
.sku { background: var(--surface); color: var(--muted); }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  border-spacing: 0;
}
.specs th,
.specs td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 0; }
.specs th {
  width: 36%;
  background: #f9fafc;
  color: var(--muted);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  gap: 40px;
}
.detail-grid h2 { font-size: 22px; margin-bottom: 16px; }
.detail-grid p { color: #3d4452; line-height: 1.75; }

/* ---------- About ---------- */

.about-intro {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about-intro h2 { margin-bottom: 16px; }
.about-intro p { color: var(--muted); margin-bottom: 14px; }

.about-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.about-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { font-size: 20px; margin-bottom: 10px; }
.about-card p { color: var(--muted); line-height: 1.75; }
.about-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Contact ---------- */

.contact-card h2 { font-size: 26px; margin-bottom: 4px; }
.contact-card > .muted { margin-bottom: 8px; }

.contact-list {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.contact-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.contact-list span { color: var(--muted); font-size: 15px; }
.contact-list a:hover { color: var(--blue); }

.form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.form-row { display: grid; gap: 16px; }
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 400;
  background: #fbfcfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 79, 224, 0.12);
  background: var(--white);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-band .stat + .stat { border-left: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-card.wide { grid-column: 1 / -1; }
  .contact-grid,
  .product-layout,
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid.single { grid-template-columns: 1fr; max-width: 820px; }
}

@media (min-width: 1000px) {
  .category-grid,
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .intro-block { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .about-intro { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .stats-grid.boxed { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1.6fr auto; }
  .product-layout { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

@media (max-width: 639px) {
  .section { padding: 52px 0; }
  .card .body { padding: 14px; }
  .card h3 { font-size: 15px; }
  .card-meta li span { width: 40px; }
  .section-actions .text-link { display: none; }
  .intro-panel,
  .about-card,
  .contact-card { padding: 24px; }
}

/* ---------- Motion ---------- */

/* Scroll reveal; uses `translate` so it never fights hover `transform`. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* Hero copy rises in on every slide change. */
.hero-slide.is-active .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-nav {
  width: min(1200px, calc(100% - 32px));
  justify-content: space-between;
  align-items: center;
}
.hero-arrows { display: flex; gap: 10px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 48px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
}
.hero-dots span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--white);
}
.hero-dots button.is-active span { animation: dot-fill 7s linear forwards; }
.hero.is-paused .hero-dots span { animation-play-state: paused; }
@keyframes dot-fill { to { width: 100%; } }

/* Brand ticker */
.brand-ticker {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-label {
  margin-bottom: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track li {
  padding: 0 40px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a3abbd;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ticker-track li:hover { color: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Section eyebrow accent line */
.section-head .eyebrow,
.intro-block .eyebrow,
.about-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before,
.intro-block .eyebrow::before,
.about-intro .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Map */
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 460px);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
