/* ═══════════════════════════════════════════
   USE.SILVIAROCHA — style.css
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:        #0a0a0a;
  --white:        #ffffff;
  --gray-100:     #f5f5f5;
  --gray-200:     #e8e8e8;
  --gray-500:     #888888;
  --gray-700:     #444444;
  --accent:       #c8102e;
  --accent-light: #ff2244;
  --whatsapp:     #25D366;
  --whatsapp-dk:  #128C7E;
  --font-display: "Bebas Neue", sans-serif;
  --font-body:    "Inter", sans-serif;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--black); overflow-x: hidden; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem; letter-spacing: 2px;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 24px; align-items: center; }
nav a {
  color: var(--gray-200); text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .5px;
  transition: color .2s;
}
nav a:hover { color: var(--accent); }

.cart-btn {
  background: var(--accent); color: var(--white);
  border: none; border-radius: 8px; padding: 8px 18px;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.cart-btn:hover { background: var(--accent-light); }
.cart-count {
  background: var(--white); color: var(--accent);
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}

/* ── HERO ── */
.hero {
  background: var(--black); color: var(--white);
  padding: 80px 32px 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,16,46,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text  { flex: 1; min-width: 280px; position: relative; }
.hero-eyebrow {
  font-size: .75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1; letter-spacing: 1px; margin-bottom: 20px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 1rem; color: #aaa; line-height: 1.7; max-width: 420px; margin-bottom: 32px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  border: 1px solid #333; border-radius: 40px;
  padding: 6px 14px; font-size: .75rem; color: #ccc; font-weight: 500;
}
.hero-img { flex: 0 0 auto; }
.hero-img img { width: 340px; max-width: 100%; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 32px rgba(200,16,46,.35)); }

/* ── BRANDS STRIP ── */
.brands-strip {
  background: var(--gray-100); padding: 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.brands-strip span {
  font-family: var(--font-display); font-size: 1.8rem;
  letter-spacing: 2px; color: var(--gray-500);
  transition: color .2s; cursor: default;
}
.brands-strip span:hover { color: var(--black); }

.size-chip.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; padding: 64px 32px 32px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 1px; margin-bottom: 8px;
}
.section-header p { color: var(--gray-500); font-size: .95rem; }

/* ── FILTERS ── */
.filters {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; padding: 0 32px 32px;
}

#foto-ajuste {
  object-fit: cover;
  object-position: center 30%; /* sobe ou desce a foto */
}

.filter-btn {
  border: 2px solid var(--gray-200); background: transparent;
  border-radius: 40px; padding: 8px 20px;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s; color: var(--gray-700);
}
.filter-btn:hover,
.filter-btn.active { border-color: var(--black); background: var(--black); color: var(--white); }

/* ── PRODUCTS ── */
.products-wrap { padding: 0 32px 80px; max-width: 1200px; margin: 0 auto; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── CARD ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-img { background: var(--gray-100); aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }

.card-brand {
  position: absolute; top: 12px; left: 12px;
  background: var(--black); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 4px;
}
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-name  { font-weight: 700; font-size: 1rem; }
.card-desc  { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }

/* ── SIZE SELECTOR ── */
.size-label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; color: var(--gray-700);
}
.sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.size-chip {
  border: 1.5px solid var(--gray-200); border-radius: 6px;
  padding: 5px 10px; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .15s; background: transparent; color: var(--black);
}
.size-chip:hover    { border-color: var(--black); background: var(--gray-100); }
.size-chip.selected { border-color: var(--black); background: var(--black); color: var(--white); }

/* ── ADD BUTTON ── */
.add-btn {
  margin-top: auto; padding: 12px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .2s; letter-spacing: .5px;
}
.add-btn:hover    { background: var(--accent); }
.add-btn:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }

/* ── INFO SECTION ── */
.info-section {
  padding: 64px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto; text-align: center;
}
.info-card    { padding: 24px; }
.info-icon    { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.info-card p  { font-size: .82rem; color: var(--gray-500); line-height: 1.6; }

/* ── CART OVERLAY + DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(420px, 100vw); background: var(--white);
  z-index: 201; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1.5px solid var(--gray-200);
}
.cart-head h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1px; }
.close-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--gray-700);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.close-btn:hover { background: var(--gray-100); }

.cart-items {
  flex: 1; overflow-y: auto;
  padding: 16px 24px; display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--gray-500); font-size: .9rem; text-align: center; padding: 40px;
}
.cart-empty-icon { font-size: 3rem; }

.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 12px;
}
.cart-item-img    { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--gray-100); }
.cart-item-info   { flex: 1; }
.cart-item-name   { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.cart-item-detail { font-size: .78rem; color: var(--gray-500); }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--gray-500); font-size: 1rem;
  padding: 2px 6px; border-radius: 4px; transition: color .2s;
}
.cart-item-remove:hover { color: var(--accent); }

.cart-footer {
  padding: 16px 24px; border-top: 1.5px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 12px;
}
.cart-summary  { font-size: .85rem; color: var(--gray-500); text-align: center; }
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp); color: var(--white);
  border: none; border-radius: 10px; padding: 16px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background .2s; text-decoration: none;
}
.whatsapp-btn:hover { background: var(--whatsapp-dk); }

/* ── FOOTER ── */
footer {
  background: var(--black); color: #888;
  padding: 48px 32px; text-align: center;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
footer .logo   { font-size: 2rem; }
.social-links  { display: flex; gap: 16px; }
.social-links a { color: #888; text-decoration: none; font-size: .85rem; transition: color .2s; }
.social-links a:hover { color: var(--white); }
.footer-note   { font-size: .75rem; line-height: 1.6; max-width: 500px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black); color: var(--white);
  padding: 14px 24px; border-radius: 40px;
  font-size: .9rem; font-weight: 600; z-index: 500;
  transition: transform .3s; white-space: nowrap;
  box-shadow: var(--shadow-lg); pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header         { padding: 0 16px; }
  nav            { display: none; }
  .hero          { padding: 48px 16px; flex-direction: column; }
  .hero-img img  { width: 100%; }
  .products-wrap { padding: 0 16px 48px; }
  .filters       { padding: 0 16px 24px; }
  .section-header{ padding: 48px 16px 24px; }
}
