/* ============================================================
   CARDÁPIO DIGITAL — style.css
   Design: Dark Mode + Laranja | Mobile-First
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
/* @import removido — já carregado via <link> no HTML com preconnect */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Cores */
  --clr-bg: #0f0f0f;
  --clr-surface: #1a1a1a;
  --clr-surface-2: #222222;
  --clr-surface-3: #2a2a2a;
  --clr-border: #2e2e2e;
  --clr-orange: #ff6b1a;
  --clr-orange-dark: #e05810;
  --clr-orange-glow: rgba(255, 107, 26, 0.18);
  --clr-text: #f0f0f0;
  --clr-text-muted: #9a9a9a;
  --clr-text-light: #c0c0c0;
  --clr-heading: #ffffff;
  --clr-online: #22c55e;
  --clr-offline: #dc2626;
  --clr-white: #ffffff;
  --clr-header-bg: rgba(15, 15, 15, 0.92);
  --clr-categories-bg: rgba(15, 15, 15, 0.95);
  --clr-hero-start: #1c1008;
  --clr-hero-end: #0f0f0f;
  --clr-overlay: rgba(0, 0, 0, 0.7);

  /* Tipografia */
  --font-base: 'Inter', system-ui, sans-serif;

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 4px 20px rgba(255, 107, 26, 0.35);
  --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.65);

  /* Transições */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.14s ease;

  /* Espaçamentos */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

body[data-theme="light"] {
  --clr-bg: #d3d3d3;
  --clr-surface: #fffaf6;
  --clr-surface-2: #f1e5db;
  --clr-surface-3: #e8d7ca;
  --clr-border: #d7c0af;
  --clr-orange-glow: rgba(255, 107, 26, 0.12);
  --clr-text: #2b1a12;
  --clr-text-muted: #7b6252;
  --clr-text-light: #5d4739;
  --clr-heading: #20120c;
  --clr-white: #0f0f0f;
  --clr-header-bg: #d3d3d3;
  --clr-categories-bg: rgba(247, 241, 235, 0.96);
  --clr-hero-start: #1c1008d7;
  --clr-hero-end: #bbbbbb;
  --clr-overlay: rgba(43, 26, 18, 0.28);
  --shadow-card: 0 8px 24px rgba(71, 41, 22, 0.10);
  --shadow-orange: 0 8px 24px rgba(255, 107, 26, 0.20);
  --shadow-deep: 0 12px 36px rgba(71, 41, 22, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── Scrollbar personalizada ─────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-orange);
}

/* ============================================================
   TOPBAR (aviso de status)
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--clr-orange-dark), var(--clr-orange));
  color: var(--clr-white);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 100;
}

.topbar__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--clr-online);
  border-radius: 50%;
  margin-right: var(--space-sm);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--clr-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-md) var(--space-lg);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

.header__logo {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  overflow: hidden; /* ← ESSENCIAL */
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    var(--clr-orange),
    var(--clr-orange-dark)
  );

  flex-shrink: 0;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantém proporção */
  border-radius: inherit;
}

.header__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header__subtitle {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Botão do carrinho no header */
.header__theme-btn,
.header__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.header__theme-btn {
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-shrink: 0;
}

.header__theme-btn:hover,
.header__cart-btn:hover {
  background: var(--clr-orange-glow);
  border-color: var(--clr-orange);
  color: var(--clr-orange);
  transform: translateY(-1px);
}

.header__theme-btn:focus-visible,
.header__cart-btn:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 2px;
}

.header__theme-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__theme-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header__cart-icon {
  max-width: 20px;
  max-height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.header__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--clr-bg);
  transition: var(--transition);
}

.header__cart-badge.hidden {
  display: none;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--clr-hero-start) 0%, var(--clr-hero-end) 60%);
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  transition: background 0.22s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--clr-orange-glow);
  border: 1px solid rgba(255, 107, 26, 0.3);
  color: var(--clr-orange);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.hero__title_clr {
  color: var(--clr-orange);
  text-shadow: 0 0 12px var(--clr-orange-glow);
  position: relative;
}

/* Container */
.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Linhas */
.hero__line {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.6s ease forwards;
}

/* Primeira linha */
.hero__line--top {
  animation-delay: 0.1s;
  color: var(--clr-white);
}

/* Segunda linha (destaque) */
.hero__line--bottom {
  animation-delay: 0.35s;
  transform: translateY(20px) scale(0.95);
}

/* Cor destacada */
.hero__title_clr {
  color: var(--clr-orange);
}

/* Keyframe principal */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__desc {
  font-size: 1rem;
  color: var(--clr-text-light);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-dark));
  color: var(--clr-white);
  padding: 14px var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 26, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text-light);
  padding: 14px var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-secondary:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
  background: var(--clr-orange-glow);
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: 5px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-orange);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.hero__image-wrap {
  display: none;
}

/* ============================================================
   CATEGORIAS — NAV
   ============================================================ */
.categories {
  position: sticky;
  top: 72px;
  z-index: 80;
  background: var(--clr-categories-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0 var(--space-lg);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.categories__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-sm) 0;
}

.categories__inner::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.category-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-btn__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.category-btn:hover {
  color: var(--clr-text);
  background: var(--clr-surface-2);
  border-color: var(--clr-border);
}

.category-btn.active {
  background: var(--clr-orange-glow);
  border-color: rgba(255, 107, 26, 0.4);
  color: var(--clr-orange);
  box-shadow: 0 0 16px rgba(255, 107, 26, 0.12);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* ── Seção genérica ──────────────────────────────────────── */
.section {
  margin-bottom: var(--space-3xl);
}

.section[data-hidden] {
  display: none;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.section__icon_promo {
  display: flex;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 5px;
}

.section__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-heading);
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.section__count {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.catalog-empty {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(255, 107, 26, 0.12), transparent 48%),
    var(--clr-surface);
  text-align: center;
}

.catalog-empty__title {
  color: var(--clr-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.catalog-empty__text {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Skeleton Loading ──────────────────────────────────────── */
.catalog-loading {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.catalog-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-orange);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-loading__text {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-2xl);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-skeleton {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-skeleton__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--clr-surface-2);
  animation: pulse-bg 1.5s ease-in-out infinite;
}

.product-skeleton__body {
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-skeleton__title {
  height: 20px;
  width: 70%;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  animation: pulse-bg 1.5s ease-in-out infinite;
}

.product-skeleton__desc {
  height: 40px;
  width: 100%;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  animation: pulse-bg 1.5s ease-in-out infinite;
}

.product-skeleton__footer {
  height: 30px;
  width: 40%;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  margin-top: auto;
  animation: pulse-bg 1.5s ease-in-out infinite;
}

.category-skeleton {
  width: 100px;
  height: 40px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pulse-bg 1.5s ease-in-out infinite;
}

@keyframes pulse-bg {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Pulsing highlight for add to cart */
.pulse-badge {
  animation: pulse-badge-anim 0.3s ease-in-out;
}

@keyframes pulse-badge-anim {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Grade de produtos ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile-first: 1 coluna */
  gap: var(--space-md);
}

/* ── Mobile 1 coluna — card horizontal ───────────────────── */
@media (max-width: 639px) {
  .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 110px;
  }

  .product-card__image-wrap {
    width: 120px;
    min-width: 120px;
    aspect-ratio: unset;
    height: auto;
    flex-shrink: 0;
  }

  .product-card__body {
    padding: var(--space-sm) var(--space-md);
    flex: 1;
    min-width: 0;
  }

  .product-card__desc {
    font-size: 0.78rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__name {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .product-card__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: auto;
  }

  .product-card__price {
    font-size: 1.1rem;
  }

  .btn-add {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* badges/tags menores */
  .product-card__featured-tags { top: var(--space-sm); left: var(--space-sm); }
  .featured-tag  { font-size: 0.6rem; padding: 3px 7px; }
  .promo-badge   { font-size: 0.68rem; padding: 4px 8px; top: var(--space-sm); right: var(--space-sm); }
  .low-stock-badge { font-size: 0.62rem; padding: 3px 7px; }
}

/* ── Mobile COMPACTO — 2 colunas (opt-in via toggle) ─────── */
@media (max-width: 639px) {
  .product-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .product-grid--compact .product-card {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }

  .product-grid--compact .product-card__image-wrap {
    width: 100%;
    min-width: unset;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .product-grid--compact .product-card__body {
    padding: 8px 10px;
  }

  .product-grid--compact .product-card__desc {
    display: none;
  }

  .product-grid--compact .product-card__tags {
    display: none;
  }

  .product-grid--compact .product-card__name {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-grid--compact .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .product-grid--compact .product-card__price {
    font-size: 1rem;
  }

  .product-grid--compact .product-card__price-cents {
    font-size: 0.7rem;
  }

  .product-grid--compact .product-card__price-from {
    font-size: 0.62rem;
  }

  .product-grid--compact .btn-add {
    width: 100%;
    justify-content: center;
    padding: 7px 4px;
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
  }
}

/* ============================================================
   CARD DE PRODUTO
   ============================================================ */
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 107, 26, 0.25);
}

/* Badge de destaque */
.product-card__badge {
  position: absolute;
  display: flex;
  gap: 3px;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-surface-2);
  position: relative;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1);
}

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

.product-card__tags {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.product-card__tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  background: var(--clr-surface-3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: auto;
}

.product-card__price-wrap {
  display: flex;
  flex-direction: column;
}

.product-card__price-from {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.product-card__price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--clr-orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-card__price-cents {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Botão Adicionar ao Pedido */
.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-dark));
  color: var(--clr-white);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(255, 107, 26, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
  filter: brightness(1.1);
}

.btn-add:active {
  transform: scale(0.96);
}

.btn-add__icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-add:hover .btn-add__icon {
  transform: rotate(90deg);
}

/* ── Variante horizontal (lista em tela grande) ──────────── */
.product-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.product-card--horizontal .product-card__image-wrap {
  width: 140px;
  min-width: 140px;
  aspect-ratio: unset;
  height: auto;
}

.product-card--horizontal .product-card__body {
  padding: var(--space-md) var(--space-lg);
}

/* ============================================================
   SEÇÃO DE PROMOÇÕES - DESTAQUE ESPECIAL
   ============================================================ */

.section--promo {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.04));
  border: 2px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.section--promo::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section__header--promo {
  border-bottom: 2px solid rgba(239, 68, 68, 0.2);
  padding-bottom: var(--space-lg);
}

.section__title--promo {
  color: #EF4444;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.section__count--promo {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-grid--promo {
  gap: var(--space-lg);
}

/* Cards de produtos em promoção */
.product-card--promo {
  border: 2px solid rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--clr-surface));
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
  position: relative;
}

.product-card--promo:hover {
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

/* Badge de desconto */
.promo-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 15;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: pulse-promo 2s ease-in-out infinite;
}

@keyframes pulse-promo {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* Preço "De/Por" */
.product-card__price-from {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
  opacity: 0.7;
}

.product-card__price--promo {
  color: #EF4444;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Botão especial para promoções */
.btn-add--promo {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-add--promo:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  filter: brightness(1.15);
}

/* ============================================================
   CARRINHO / DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-overlay);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--clr-surface);
  border-left: 1px solid var(--clr-border);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--clr-border);
}

.cart-drawer__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  display: flex;
  gap: 10px;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-drawer__close:hover {
  background: var(--clr-surface-3);
  color: var(--clr-text);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

/* Item do carrinho */
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--clr-border);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--clr-surface-2);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 0.85rem;
  color: var(--clr-orange);
  font-weight: 700;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-item__qty-btn:hover {
  background: var(--clr-orange);
  border-color: var(--clr-orange);
}

.cart-item__qty {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text);
  min-width: 20px;
  text-align: center;
}

.cart-badge {
  max-height: 25px;
  max-width: 25px;
}

/* Estado vazio do carrinho */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: var(--space-md);
  color: var(--clr-text-muted);
}

.cart-empty__icon {
  font-size: 3rem;
  opacity: 0.4;
  max-width: 100px;
  max-height: 100px;
}

.cart-empty__text {
  font-size: 0.9rem;
}

/* Footer do carrinho */
.cart-drawer__footer {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
  max-height: 70%;
  overflow-y: auto;
}

.cart-summary {
  margin-bottom: var(--space-md);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  padding: 4px 0;
}

.cart-summary__row--total {
  color: var(--clr-text);
  font-weight: 800;
  font-size: 1rem;
  border-top: 1px solid var(--clr-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}

.cart-summary__total-value {
  color: var(--clr-orange);
  font-size: 1.15rem;
}

.checkout-form {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-form__field span {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  font-weight: 600;
}

.checkout-form__field input,
.checkout-form__field select,
.checkout-form__field textarea {
  width: 100%;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.84rem;
}

.checkout-form__field input:focus,
.checkout-form__field select:focus,
.checkout-form__field textarea:focus {
  outline: none;
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.18);
}

.checkout-form__field textarea {
  resize: vertical;
  min-height: 74px;
}

.btn-clear-cart {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text-light);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  transition: var(--transition);
}

.btn-clear-cart:hover {
  border-color: var(--clr-offline);
  color: var(--clr-white);
  background: rgba(220, 38, 38, 0.12);
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25d366, #1da851);
  color: var(--clr-white);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  filter: brightness(1.06);
}

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #25d366, #1da851);
  color: var(--clr-white);
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  animation: float-up 3s ease-in-out infinite;
}

.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

.fab-whatsapp:active {
  transform: scale(0.97);
}

.fab-whatsapp__icon {
  font-size: 1.3rem;
}

.fab-whatsapp__label {
  display: none;
}

@keyframes float-up {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ============================================================
   SKELETON LOADER (UX extra)
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--clr-surface-2) 25%, var(--clr-surface-3) 50%, var(--clr-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-orange);
  color: var(--clr-text);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-deep);
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 280px;
  pointer-events: all;
}

.toast.removing {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer__logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-dark));
  overflow: hidden;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-white);
}

.footer__info {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  max-width: 400px;
}

.footer__divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-dark));
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Tablet+ */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fab-whatsapp__label {
    display: inline;
  }

  .hero__stats {
    gap: var(--space-2xl);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero__image-wrap {
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    position: relative;
  }

  .hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
  }

  .hero__image-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 60px rgba(255, 107, 26, 0.15);
    pointer-events: none;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero {
    padding: 72px var(--space-lg) 56px;
  }

  .header__actions {
    gap: 6px;
  }

  .header__theme-btn {
    width: 42px;
    height: 42px;
  }

  .header__title {
    font-size: 1.2rem;
  }
}

/* Utilitários */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.order-notes {
  resize: vertical;
  min-height: 74px;
  max-height: 148px;
  overflow-y: auto;
}

/* ============================================================
   SCROLL LOCK (quando carrinho está aberto)
   ============================================================ */
.body--cart-open {
  overflow: hidden;
  touch-action: none;
}

/* ============================================================
   COMBO — image-wrap (removido inline style)
   ============================================================ */
.marlboro-red .product-card__image-wrap {
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

/* ============================================================
   VALIDAÇÃO — campo com erro
   ============================================================ */
.checkout-form__field--error input,
.checkout-form__field--error select,
.checkout-form__field--error textarea {
  border-color: var(--clr-offline) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) !important;
}

.checkout-form__field--error span {
  color: var(--clr-offline) !important;
}

/* ============================================================
   BOTÃO CHECKOUT — estado desabilitado
   ============================================================ */
.btn-checkout:disabled,
.btn-checkout[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* ============================================================
   CONTROLES DE QUANTIDADE - ESTADO DESABILITADO
   ============================================================ */

.cart-item__qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--clr-surface-2);
  border-color: var(--clr-border);
}

.cart-item__qty-btn:disabled:hover {
  background: var(--clr-surface-2);
  border-color: var(--clr-border);
  transform: none;
}

/* ============================================================
   BOTÃO ADICIONAR — indicador "no carrinho"
   ============================================================ */
.btn-add--in-cart {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3) !important;
}

.btn-add--in-cart:hover {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4) !important;
}

/* ============================================================
   BARRA DE FRETE GRÁTIS
   ============================================================ */
.free-delivery-bar {
  margin-bottom: var(--space-md);
}

.free-delivery-bar__text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  display: block;
  margin-bottom: 6px;
}

.free-delivery-bar__track {
  width: 100%;
  height: 6px;
  background: var(--clr-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.free-delivery-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-dark));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ANIMAÇÃO FADE-IN DOS CARDS (IntersectionObserver)
   ============================================================ */
.card-animated {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-animated.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/*WHATSAAP ICON */
.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.whatsapp-icon2 {
  width: 30px;
  height: 30px;
}

/* ============================================================
   CEP — Campo com botão de busca
   ============================================================ */
.cep-input-wrap {
  display: flex;
  gap: 6px;
}

.cep-input-wrap input {
  flex: 1;
}

.cep-search-btn {
  width: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-dark));
  color: var(--clr-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 26, 0.25);
}

.cep-search-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cep-search-btn:active {
  transform: scale(0.95);
}

.cep-search-btn.loading {
  pointer-events: none;
  opacity: 0.7;
  animation: pulse-dot 1s ease-in-out infinite;
}

.cep-status {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
  min-height: 16px;
}

.cep-status--success {
  color: var(--clr-online);
}

.cep-status--error {
  color: var(--clr-offline);
}

.cep-status--loading {
  color: var(--clr-orange);
}

/* ── Checkout form: linha lado a lado (Número + Complemento) ─ */
.checkout-form__row {
  display: flex;
  gap: var(--space-sm);
}

.checkout-form__field--small {
  flex: 0 0 90px;
}

.checkout-form__field--flex {
  flex: 1;
  min-width: 0;
}

/* ── Campo readonly (preenchido pelo CEP) ───────────────────── */
.checkout-form__field input[readonly] {
  background: var(--clr-surface-3);
  color: var(--clr-text-light);
  cursor: default;
  border-color: rgba(255, 107, 26, 0.2);
}

/* ============================================================
   TAGS PERSONALIZADAS (Featured Tags)
   ============================================================ */

.product-card__featured-tags {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - var(--space-xl));
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  max-width: fit-content;
}

/* Novidades / Lançamento */
.featured-tag--new {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: var(--clr-white);
  animation: pulse-glow-green 2s ease-in-out infinite;
}

.featured-tag--new::before {
  content: '✨ ';
}

/* Mais Vendido / Popular */
.featured-tag--trending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: var(--clr-white);
  animation: pulse-glow-yellow 2s ease-in-out infinite;
}

.featured-tag--trending::before {
  content: '🔥 ';
}

/* Promoção / Oferta */
.featured-tag--promo {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--clr-white);
  animation: pulse-glow-red 2s ease-in-out infinite;
}

.featured-tag--promo::before {
  content: '% ';
}

/* Destaque */
.featured-tag--featured {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: var(--clr-white);
  animation: pulse-glow-purple 2s ease-in-out infinite;
}

.featured-tag--featured::before {
  content: '⭐ ';
}

/* Premium / Exclusivo */
.featured-tag--premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  animation: pulse-glow-gold 2s ease-in-out infinite;
}

.featured-tag--premium::before {
  content: '👑 ';
}

/* Padrão (genérico) */
.featured-tag--default {
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-dark));
  color: var(--clr-white);
}

/* Animações de brilho pulsante */
@keyframes pulse-glow-green {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.7);
  }
}

@keyframes pulse-glow-yellow {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.7);
  }
}

@keyframes pulse-glow-red {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.7);
  }
}

@keyframes pulse-glow-purple {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.7);
  }
}

@keyframes pulse-glow-gold {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.7);
  }
}

/* ══ FILTER BAR — MODERNO ══════════════════════════════════════════════ */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 85;
  background: linear-gradient(160deg, var(--clr-hero-start) 0%, var(--clr-hero-end) 40%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] .filter-bar {
  background: rgba(255, 250, 246, 0.92);
}

.filter-bar__wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.filter-bar__inner {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

/* Search Input Premium */
.filter-bar__search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-md);
  transition: var(--transition);
  position: relative;
}

.filter-bar__search:hover {
  border-color: rgba(255, 107, 26, 0.5);
}

.filter-bar__search:focus-within {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px var(--clr-orange-glow), 0 4px 16px rgba(255, 107, 26, 0.15);
}

.filter-bar__icon {
  color: var(--clr-text-muted);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.filter-bar__search:focus-within .filter-bar__icon {
  color: var(--clr-orange);
}

.filter-bar__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-family: var(--font-base);
  font-size: 0.9rem;
  padding: 12px 0;
}

.filter-bar__search input::placeholder {
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.filter-bar__search:focus-within input::placeholder {
  color: var(--clr-text-light);
}

/* Clear Button (X) inside input */
.filter-bar__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--clr-surface-3);
  border: none;
  border-radius: 50%;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  flex-shrink: 0;
}

.filter-bar__clear:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
}

.filter-bar__clear.visible {
  opacity: 1;
  visibility: visible;
}

/* Selects Container */
.filter-bar__selects {
  display: flex;
  gap: var(--space-sm);
}

/* Custom Select Wrapper */
.filter-select {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  border-radius: var(--radius-lg);
  padding: 10px 36px 10px var(--space-md);
  font-size: 0.85rem;
  font-family: var(--font-base);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  min-width: 140px;
  transition: var(--transition);
}

.filter-select select:hover {
  border-color: rgba(255, 107, 26, 0.5);
  background: var(--clr-surface-3);
}

.filter-select select:focus {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px var(--clr-orange-glow);
}

/* Disabled state for subcategory */
.filter-select select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--clr-surface-2);
  border-color: var(--clr-border);
}

.filter-select__arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--clr-text-muted);
  transition: var(--transition);
  width: 14px;
  height: 14px;
}

.filter-select select:focus+.filter-select__arrow {
  color: var(--clr-orange);
  transform: rotate(180deg);
}

/* Clear All Filters Button */
.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: var(--transition), opacity 0.2s ease, transform 0.2s ease;
}

.filter-clear:hover {
  border-color: var(--clr-offline);
  color: var(--clr-offline);
  background: rgba(220, 38, 38, 0.08);
}

.filter-clear.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Animation for filter changes */
@keyframes filter-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--clr-orange-glow);
  }

  70% {
    box-shadow: 0 0 0 8px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.filter-bar--filtering .filter-bar__inner {
  animation: filter-pulse 0.4s ease-out;
}

/* Responsive */
@media (max-width: 640px) {
  .filter-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .filter-bar__search {
    min-width: 0;
  }

  .filter-bar__selects {
    flex-direction: row;
    gap: var(--space-sm);
  }

  .filter-bar__selects .filter-select {
    flex: 1;
  }

  .filter-select select {
    min-width: 0;
    width: 100%;
  }

  .filter-clear {
    align-self: center;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .filter-bar {
    padding: var(--space-sm) var(--space-md);
  }

  .filter-bar__selects {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .filter-bar__selects::-webkit-scrollbar {
    display: none;
  }

  .filter-select {
    flex: 0 0 auto;
  }
}

/* ══ UPSELL CARD ══════════════════════════════════════════════ */
#upsell-inline {
  margin-bottom: var(--space-md);
}

.upsell-card[hidden] {
  display: none;
}

@keyframes upsell-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.upsell-inline__inner {
  background: var(--clr-orange-glow);
  border: 1px solid rgba(255, 107, 26, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.upsell-inline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.upsell-inline__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-orange);
}

.upsell-inline__close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.upsell-inline__close:hover {
  color: var(--clr-text);
  background: var(--clr-surface-3);
}

/* estilos do produto dentro do upsell — mantidos */
.upsell-product {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.upsell-product__img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--clr-surface-2);
  flex-shrink: 0;
  border: 1px solid var(--clr-border);
}

.upsell-product__info {
  flex: 1;
  min-width: 0;
}

.upsell-product__name {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upsell-product__price {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--clr-orange);
  margin-top: 2px;
}

.upsell-product__btn {
  padding: 8px 12px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ══ CUPOM (carrinho) ═════════════════════════════════════════ */
.coupon-field {
  margin-bottom: var(--space-md);
}

.coupon-input-wrap {
  display: flex;
  gap: 6px;
}

.coupon-input-wrap input {
  flex: 1;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-md);
  font-size: 0.84rem;
  font-family: var(--font-base);
  letter-spacing: 1px;
  text-transform: uppercase;
  outline: none;
  transition: var(--transition-fast);
}

.coupon-input-wrap input:focus {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 2px var(--clr-orange-glow);
}

.coupon-input-wrap button {
  background: var(--clr-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.coupon-input-wrap button:hover {
  filter: brightness(1.1);
}

.coupon-status {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 5px;
  min-height: 14px;
}

.coupon-status--success {
  color: var(--clr-online);
}

.coupon-status--error {
  color: var(--clr-offline);
}

/* ============================================================
   LOW STOCK BADGE — Delivery
   ============================================================ */
.low-stock-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  z-index: 10;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  letter-spacing: 0.03em;
  animation: pulse-stock 2s ease-in-out infinite;
}

@keyframes pulse-stock {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  }

  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.8);
  }
}

/* ── Grid Toggle Button ───────────────────────────────────── */
.grid-toggle-btn {
  display: none; /* escondido no desktop */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.grid-toggle-btn:hover,
.grid-toggle-btn.active {
  background: var(--clr-orange-glow);
  border-color: var(--clr-orange);
  color: var(--clr-orange);
}

@media (max-width: 639px) {
  .grid-toggle-btn {
    display: flex; /* só aparece no mobile */
  }
}