/* 
   SuperVale — Design System
   Tokens: colors in tailwind.config (navy, royal, primary)
    */

/* ── Layout ─────────────────────────────────────────────── */
.container-app {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px)  { .container-app { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-app { padding-left: 2rem;   padding-right: 2rem;   } }
#featured-track, #tips-grid {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  scroll-padding-left: 1.25rem;
}
@media (min-width: 640px) {
  #featured-track, #tips-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scroll-padding-left: 1.5rem;
  }
}
@media (min-width: 1024px) {
  #featured-track, #tips-grid {
    padding-left: 2rem;
    padding-right: 2rem;
    scroll-padding-left: 2rem;
  }
}
@media (min-width: 1280px) {
  #featured-track, #tips-grid {
    padding-left: calc((100vw - 80rem) / 2 + 2rem);
    padding-right: calc((100vw - 80rem) / 2 + 2rem);
    scroll-padding-left: calc((100vw - 80rem) / 2 + 2rem);
  }
}

/* Pseudo-elemento para garantir o padding à direita no final do scroll em Flexbox */
#featured-track::after, #tips-grid::after {
  content: '';
  flex: 0 0 1.25rem;
}
@media (min-width: 640px) { #featured-track::after, #tips-grid::after { flex: 0 0 1.5rem; } }
@media (min-width: 1024px) { #featured-track::after, #tips-grid::after { flex: 0 0 2rem; } }
@media (min-width: 1280px) { #featured-track::after, #tips-grid::after { flex: 0 0 calc((100vw - 80rem) / 2 + 2rem); } }



.container-wide {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px)  { .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-left: 2.5rem; padding-right: 2.5rem; } }

.section-pad { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px)  { .section-pad { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .section-pad { padding-top: 5rem; padding-bottom: 5rem; } }

/* ── Backgrounds ─────────────────────────────────────────── */
.bg-gradient-hero {
  background: linear-gradient(135deg, hsl(226 70% 22%) 0%, hsl(224 76% 33%) 50%, hsl(220 90% 45%) 100%);
}
.bg-gradient-card {
  background: linear-gradient(160deg, hsl(0 0% 100%) 0%, hsl(220 40% 98%) 100%);
}

/* ── Typography ──────────────────────────────────────────── */
/* Eyebrow: small label above a section heading */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: #071285;
}

/* Section heading: used for all section titles */
.heading-section {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.2; color: #0c2340;
}
@media (min-width: 640px) { .heading-section { font-size: 1.875rem; } }

/* ── Navigation ──────────────────────────────────────────── */
.nav-link {
  display: inline-flex; align-items: center;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 600;
  color: #0c2340;
  transition: all 0.2s;
}
.nav-link:hover  { background: #eff4ff; color: #071285; }
.nav-link.active { background: #eff4ff; color: #071285; font-weight: 600; }

.mob-link {
  display: block; border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  color: #0c2340;
  transition: background 0.2s;
}
.mob-link:hover { background: #eff4ff; }

/* ── Buttons ─────────────────────────────────────────────── */
/* Primary CTA — solid royal blue, used on light backgrounds */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem; font-weight: 700;
  background: #071285; color: #fff;
  box-shadow: 0 2px 8px rgba(7,18,133,0.30);
  transition: all 0.2s;
}
.btn-primary:hover { background: #05107a; transform: translateY(-1px); }

/* Outline — used alongside primary or standalone */
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem; font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff; color: #071285;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: #071285; background: #f8faff; }

/* Light variants — used inside the dark hero card */
.btn-primary-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem; font-weight: 700;
  background: #fff; color: #0c2340;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.2s;
}
.btn-primary-light:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.20); }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  transition: background 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

/* ── Product page components ─────────────────────────────── */
/* Variant size selector tabs */
.variant-tab {
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 700;
  color: #4b5563; border: 2px solid #e5e7eb;
  transition: all 0.2s;
}
.variant-tab:hover  { border-color: rgba(7,18,133,0.4); color: #0c2340; }
.variant-tab.active { background: #071285; color: #fff; border-color: #071285; box-shadow: 0 2px 8px rgba(7,18,133,0.30); }

/* Action buttons (Catálogo / Imagens / FDS) */
.action-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
  transition: all 0.2s;
}
.action-btn:hover { border-color: rgba(7,18,133,0.4); color: #071285; }

/* Feature card (horizontal icon + text) */
.feature-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 1rem;
  border-radius: 1rem; padding: 1.5rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  transition: border-color 0.25s;
}
.feature-card:hover { border-color: rgba(7,18,133,0.25) !important; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; width: 3rem; min-width: 3rem;
  border-radius: 0.75rem; color: #fff;
}

/* ── Cards ───────────────────────────────────────────────── */
/* Product / similar cards */
.sim-card {
  transition: box-shadow 0.25s, transform 0.25s;
}
.sim-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }

/* Blog tip cards */
.tip-card {
  transition: box-shadow 0.25s, transform 0.25s;
}
.tip-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }

/* Generic lift (featured products, categories) */
.lift {
  transition: box-shadow 0.25s, transform 0.25s;
}
.lift:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }

/* ── Footer ──────────────────────────────────────────────── */
.footer-h { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); }
.footer-link { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-link:hover { color: #fff; }

.social {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; width: 2.5rem; border-radius: 0.5rem;
  font-size: 1.125rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); color: #fff;
  transition: all 0.2s;
}
.social:hover { background: rgba(255,255,255,0.15); }

/* ── Category Rows (Presentation Style) ─────────────────── */
.cat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cat-row:first-child { border-top: 1px solid #e5e7eb; }
.cat-row:hover { background: #f8faff; margin: 0 -1.5rem; padding: 1.25rem 1.5rem; border-radius: 1rem; border-color: transparent; }
.cat-row:first-child:hover { border-top-color: transparent; }

.cat-row-number {
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #e5e7eb;
  min-width: 3rem;
  line-height: 1;
  transition: color 0.2s;
  font-family: 'Inter', system-ui, sans-serif;
}
.cat-row:hover .cat-row-number { color: #071285; }

.cat-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.875rem;
  background: #eff4ff;
  color: #071285;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s;
}
.cat-row:hover .cat-row-icon { background: #071285; color: #fff; }

.cat-row-content { flex: 1; min-width: 0; }
.cat-row-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c2340;
  line-height: 1.2;
}
.cat-row-count { font-size: 0.75rem; color: #9ca3af; margin-top: 0.2rem; }

.cat-row-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 640px) { .cat-row-thumb { display: block; } }
.cat-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-row:hover .cat-row-thumb img { transform: scale(1.08); }

.cat-row-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  flex-shrink: 0;
  font-size: 1rem;
  transition: all 0.2s;
}
.cat-row:hover .cat-row-arrow { background: #071285; border-color: #071285; color: #fff; transform: rotate(-45deg); }

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  z-index: 10;
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); }

.hero-dot {
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  width: 0.375rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 2rem;
}

/* Product Slider */
.product-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #e5e7eb;
  color: #0c2340;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.product-arrow:hover { background: #fff; color: #071285; border-color: #071285; }

.product-dot {
  height: 0.375rem;
  border-radius: 9999px;
  background: #e5e7eb; /* gray-200 */
  width: 0.375rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  padding: 0;
}
.product-dot.active {
  background: #071285; /* royal */
  width: 2rem;
}

/* ── Utilities ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ── Scroll Reveal (Presentation Effect) ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  will-change: auto;
}

/* Stagger delay for children */
.stagger-parent .reveal {
  transition-delay: calc(0.1s + (var(--stagger-index, 0) * 0.15s));
}
