/* === FALUB — vitrine.css === */

/* ── HERO ────────────────────────────────────────────────────────────── */
.store-hero {
  padding: 52px 32px 36px;
  background: linear-gradient(135deg, rgba(200,0,31,0.055) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.store-hero::before {
  content: '⚙';
  position: absolute;
  right: -20px;
  top: -40px;
  font-size: 220px;
  opacity: 0.022;
  line-height: 1;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(200,0,31,0.25);
  border-radius: 20px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.store-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.08;
  margin-bottom: 12px;
  max-width: 620px;
  color: var(--text);
}

.store-hero h1 span { color: var(--accent); }

.store-hero p {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 26px;
  line-height: 1.65;
  max-width: 520px;
}

/* ── BUSCA ───────────────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar input::placeholder { color: var(--text3); }

/* ── FILTROS ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px 32px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.cat-chip {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(200,0,31,0.25);
}

.cat-chip:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── GRID DE PRODUTOS ────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
  gap: 20px;
  padding: 28px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── CARD DE PRODUTO ─────────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200,0,31,0.30);
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
}

.product-card.featured {
  border-color: rgba(200,0,31,0.32);
}

.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img img { transform: scale(1.04); }

.product-img .no-img {
  font-size: 62px;
  opacity: 0.40;
}

.discount-badge,
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.4px;
}

.discount-badge { background: var(--red); }

.featured-badge {
  background: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.viscosity-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.92);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* ── INFO DO PRODUTO ─────────────────────────────────────────────────── */
.product-info { padding: 15px 16px; }

.product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  color: var(--text);
}

.product-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.price-final {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-unit {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.price-original {
  font-size: 11px;
  color: var(--text3);
  text-decoration: line-through;
}

/* ── BOTÃO ADICIONAR ─────────────────────────────────────────────────── */
.add-btn {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(200,0,31,0.22);
}

.add-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 3px 10px rgba(200,0,31,0.30);
}

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

.add-btn.in-cart {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.add-btn:disabled {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}
