/* =============================================
   CASA JERMANI — Catálogo Digital
   ============================================= */

:root {
  --color-primary:      #0064ff;
  --color-primary-dark: #0052d4;
  --color-secondary:    #ffb02d;
  --color-third:        #ff7f2c;
  --color-bg:           #f4f6fb;
  --color-surface:      #ffffff;
  --color-border:       #e2e8f0;
  --color-text:         #1a1d2e;
  --color-text-muted:   #6b7280;
  --color-whatsapp:     #25d366;
  --color-whatsapp-dk:  #1db954;

  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body:    'Rubik', system-ui, sans-serif;

  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-hero:  24px;
  --max-width:    1200px;
  --shadow-card:  0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,100,255,0.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #0064ff; /* evita faixa branca no topo */
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; }
.hidden { display: none !important; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #0064ff;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem max(2rem, calc((100% - var(--max-width)) / 2 + 2rem));
}

.navbar__search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  width: 100%;
}

.navbar__search-input {
  flex: 1;
  height: 46px;
  padding: 0 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}
.navbar__search-input::placeholder { color: #b0b8c9; }

.navbar__search-btn {
  flex-shrink: 0;
  width: 52px;
  height: 46px;
  background: var(--color-third);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.18s;
}
.navbar__search-btn:hover { filter: brightness(1.1); }

.navbar__brand {
  justify-self: center;
  line-height: 0;
}

.navbar__logo {
  width: 130px;
  height: auto;
  display: block;
}

.navbar__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.navbar__cta {
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
}

/* ---- Botão WhatsApp navbar ---- */
.navbar__wa-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1db954 0%, #25d366 60%, #00e676 100%);
  color: #fff;
  border-radius: 12px;
  padding: 0.5rem 1.1rem 0.5rem 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.45);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  white-space: nowrap;
}
.navbar__wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 185, 84, 0.55);
  filter: brightness(1.06);
}
.navbar__wa-btn:active { transform: translateY(0); }

.navbar__wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.navbar__wa-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.navbar__wa-label {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar__wa-sub {
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .navbar__wa-text { display: none; }
  .navbar__wa-btn { padding: 0.5rem; border-radius: 10px; }
  .navbar__wa-icon { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ---- Categorias flutuantes abaixo do banner ---- */
.hero-cats {
  width: 100%;
  margin-top: 1.25rem;
}

.hero-cats .category-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0.1rem 0.5rem;
}
.hero-cats .category-tabs::-webkit-scrollbar { display: none; }

.hero-cats .category-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,60,0.15);
  backdrop-filter: blur(6px);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.hero-cats .category-tab:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,60,0.2);
}
.hero-cats .category-tab.is-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,100,255,0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .navbar { padding: 0.65rem 1rem; gap: 0.75rem; }
  .navbar__logo { width: 95px; }
  .navbar__search-input { height: 38px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .navbar { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .navbar__brand { justify-self: start; }
  .navbar__search-wrap { max-width: none; }
  .navbar__cta-text { display: none; }
  .navbar__cta { padding: 0.55rem 0.8rem; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    #0064ff 0%,
    #4a9aff 52%,
    #c8dcff 78%,
    var(--color-bg) 100%
  );
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-lg) 0 4rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,176,45,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 1.5rem;
}

/* ---- Banner flutuante ---- */
.hero-banner {
  width: 100%;
  aspect-ratio: 1920 / 500;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 60, 0.30);
  background: rgba(255,255,255,0.14);
  min-height: 100px;
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .hero-banner { border-radius: 10px; }
}

.hero__brand { display: flex; flex-direction: column; gap: var(--space-sm); }

.hero__logo {
  width: min(380px, 80vw);
  height: auto;
  object-fit: contain;
  filter: none;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero__address,
.hero__hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.hero__address i,
.hero__hours i {
  color: var(--color-secondary);
  font-size: 0.8rem;
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  font-family: "Font Awesome 6 Free";
  -webkit-font-smoothing: antialiased;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  transition: color 0.2s;
}
.hero__scroll:hover { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn--whatsapp:hover { background: var(--color-whatsapp-dk); }

.btn--location {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--location:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn--product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37,211,102,0.28);
  transition: background 0.2s, transform 0.15s;
}
.btn--product:hover { background: var(--color-whatsapp-dk); transform: translateY(-1px); }

/* =============================================
   SECTION COMMONS
   ============================================= */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
}

/* =============================================
   MAIS VENDIDOS
   ============================================= */
.featured {
  padding: 0 0 var(--space-xl);
  margin-top: -2.5rem;
}

.featured .section-header {
  padding-top: var(--space-lg);
}

.featured .section-label {
  color: var(--color-primary);
}

.featured .section-title {
  color: var(--color-text);
}

.featured__wrapper {
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}
.featured__track::-webkit-scrollbar { display: none; }

/* Cada card do carrossel: 2 visíveis + peek do próximo */
.featured__track .product-card {
  flex: 0 0 calc(47% - 0.5rem);
  min-width: 150px;
  scroll-snap-align: start;
}

/* Nav (setas abaixo do carrossel) */
.featured__nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.featured__nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
  box-shadow: var(--shadow-card);
}
.featured__nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}
.featured__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

@media (min-width: 640px) {
  .featured__track .product-card {
    flex: 0 0 calc(31% - 0.67rem); /* ~3 no tablet */
  }
}
@media (min-width: 1024px) {
  .featured__track .product-card {
    flex: 0 0 calc(23% - 0.77rem); /* ~4 no desktop */
  }
}

/* Cada card de "mais vendido" */
.featured-card {
  flex: 0 0 calc(20% - 0.85rem); /* 5 visíveis no desktop */
  min-width: 200px;
  max-width: 260px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.featured-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}

.featured-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card__badge {
  display: none;
}

.featured-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.featured-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.featured-card__cat {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.featured__empty {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile: 2 completos + peek do 3º */
@media (max-width: 640px) {
  .featured-card {
    flex: 0 0 calc(44% - 0.5rem);
    min-width: 0;
    max-width: none;
  }
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.catalog { padding: 0 0 var(--space-2xl); }

/* ---- Busca do catálogo ---- */
.catalog-search-wrap {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
}

.catalog-search-icon {
  position: absolute;
  left: calc(var(--space-md) + 0.85rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 2.4rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-card);
}
.catalog-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,100,255,0.1);
}
.catalog-search-input::placeholder { color: #b0b8c9; }

.catalog-search-clear {
  flex-shrink: 0;
  background: var(--color-border);
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s;
  margin-right: 0.4rem;
}
.catalog-search-clear:hover { background: #c9d0dc; }

/* ---- Linha de ordenação ---- */
.catalog-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-md);
}

.category-tabs {
  display: flex;
  flex: 1;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  margin: 0;
}
.category-tabs::-webkit-scrollbar { display: none; }

/* ---- Seletor de ordenação ---- */
.catalog-sort-wrap {
  position: relative;
  flex-shrink: 0;
}

.catalog-sort-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

.catalog-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 1rem 0.5rem 2rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s;
  outline: none;
}
.catalog-sort-select:focus,
.catalog-sort-select:hover {
  border-color: var(--color-primary);
}

.category-tab {
  flex-shrink: 0;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.category-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,100,255,0.25);
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Skeleton loader ---- */
.skeleton {
  background: linear-gradient(90deg, #e8eaf0 25%, #f0f2f8 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
  height: 360px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Product Card ---- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.product-card__body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.product-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0,100,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__desc {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.product-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.catalog__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--color-text-muted);
}
.catalog__empty i { font-size: 2.5rem; opacity: 0.3; }

/* =============================================
   PRICE BLOCK
   ============================================= */
.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-card__badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Etiquetas do produto */
.product-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.25rem;
  margin-top: 0.2rem;
  overflow: hidden;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: clamp(0.45rem, 1.1vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.product-tag--green  { background: #dcfce7; color: #166534; }
.product-tag--blue   { background: #dbeafe; color: #1e40af; }
.product-tag--purple { background: #f3e8ff; color: #6b21a8; }
.product-tag--orange { background: #ffedd5; color: #c2410c; }
.product-tag--default{ background: var(--color-bg); color: var(--color-text-muted); }

.badge-discount {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, var(--color-third), #e05a00);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-discount--photo {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.2rem 0 0;
}

.price-original {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-third);
  line-height: 1.2;
}
.price-main--sm { font-size: 1.05rem; }

.price-pix {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.price-installment {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.price-installment strong { color: var(--color-third); }
.price-installment--sm { font-size: 0.75rem; }

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(255,176,45,0.12);
  border: 1px solid rgba(255,176,45,0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 2px;
  width: fit-content;
}

.price-block--compact { gap: 2px; padding: var(--space-sm) 0 0; }

.featured-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--color-third), #e05a00);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =============================================
   PRODUCT META (cor / dimensões)
   ============================================= */
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 2px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.meta-item i { font-size: 0.65rem; color: var(--color-primary); }

/* =============================================
   CAROUSEL
   ============================================= */
.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.carousel__img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel__placeholder {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 100%);
}
.carousel__placeholder i { font-size: 2rem; color: var(--color-border); }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  opacity: 0;
  transition: opacity 0.2s, transform 0.15s;
  z-index: 2;
}
.carousel__btn:hover { transform: translateY(-50%) scale(1.1); }
.carousel:hover .carousel__btn { opacity: 1; }
@media (hover: none) { .carousel__btn { opacity: 1; } }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }

.carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel__dot.is-active { background: var(--color-secondary); transform: scale(1.35); }

.carousel__counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: linear-gradient(155deg, #001880 0%, #001050 100%);
  color: rgba(255,255,255,0.7);
  padding: 3rem var(--space-md) 2rem;
  margin-top: var(--space-xl);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- Coluna 1: Marca --- */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__logo {
  width: min(180px, 55vw);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 240px;
}

.footer__address,
.footer__hours {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.5;
}
.footer__address i,
.footer__hours i {
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.75rem;
  display: inline-block;
  line-height: 1;
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  font-family: "Font Awesome 6 Free";
  -webkit-font-smoothing: antialiased;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* --- Coluna 2: Contatos --- */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contacts-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__contacts-title i { font-size: 0.78rem; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.footer__contact-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateX(3px);
}

.footer__contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer__contact-item--wa .footer__contact-icon {
  background: rgba(37,211,102,0.18);
  color: #25d366;
}
.footer__contact-item--ig .footer__contact-icon {
  background: rgba(225,48,108,0.18);
  color: #e1306c;
}

.footer__contact-item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.footer__contact-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.footer__contact-item small {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* --- Coluna 3: Mapa --- */
.footer__map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.footer__map-wrap iframe {
  display: block;
  width: 100%;
  height: 200px;
}

.footer__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: opacity 0.18s;
  align-self: flex-start;
}
.footer__map-link:hover { opacity: 0.75; }

/* --- Responsive footer --- */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__map { grid-column: 1 / -1; }
  .footer__map-wrap iframe { height: 220px; }
}

@media (max-width: 560px) {
  .footer { padding: 2.5rem var(--space-md) 1.5rem; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer__map { grid-column: auto; }
  .footer__map-wrap iframe { height: 200px; }
  .footer__brand { align-items: center; text-align: center; }
  .footer__tagline { max-width: 100%; }
  .footer__address,
  .footer__hours { justify-content: center; }
  .footer__copy { text-align: center; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 480px) {
  .hero__logo { width: min(200px, 55vw); }
  .hero__actions { flex-direction: column; align-items: center; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; max-width: 300px; }

  /* Grid 2 colunas no mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }
  .product-card__body  { padding: 0.5rem 0.6rem; gap: 0.2rem; }
  .product-card__name  { font-size: 0.75rem; }
  .price-main          { font-size: 1rem; }
  .price-installment   { font-size: 0.72rem; }
  .product-tag         { padding: 1px 3px; }
  .meta-item           { font-size: 0.68rem; }
  .btn--product        { font-size: 0.78rem; padding: 0.5rem 0.5rem; }
}
