/* =============================================
   COMBEIRINHOS STORE — style.css
   ============================================= */

/* ---------- RESET & VARIÁVEIS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080506;
  --bg2:       #0d0808;
  --bg3:       #120a0a;
  --border:    #1e1010;
  --border2:   #2a1515;
  --red:       #8b1a1a;
  --red-hover: #a82020;
  --text:      #fff;
  --text2:     #aaa;
  --text3:     #555;
  --text4:     #3a2525;
  --font-head: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    10px;
  --transition: 0.15s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }


/* ---------- NAVBAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,5,6,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 62px;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 36px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-logo-divider {
  width: 1px;
  height: 20px;
  background: var(--border2);
  margin: 0 10px;
}

.nav-logo-store {
  font-size: 10px;
  color: #7a3030;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  color: var(--text3);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search-wrap {
  position: relative;
}

.nav-search {
  background: #110a0a;
  border: 0.5px solid var(--border2);
  border-radius: 6px;
  padding: 7px 30px 7px 12px;
  font-size: 12px;
  color: var(--text2);
  width: 160px;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}

.nav-search::placeholder { color: #444; }
.nav-search:focus { border-color: var(--red); width: 200px; }

.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 16px;
  pointer-events: none;
}

.nav-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cart:hover { background: var(--red-hover); }

.cart-icon { display: inline-block; vertical-align: middle; margin-bottom: 2px; }

.cart-badge {
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  margin-left: 12px;
}


/* ---------- HERO ---------- */
.hero {
  background: var(--bg);
  padding: 60px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #150d0d;
  max-width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,26,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  color: #8b3535;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.hero-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hero-title em {
  font-style: italic;
  color: #ccc;
}

.hero-sub {
  font-size: 15px;
  color: var(--text3);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pill {
  font-size: 11px;
  color: #666;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  background: var(--bg2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  border-top: 0.5px solid #1a0e0e;
  position: relative;
  z-index: 1;
}

.stat {
  padding: 18px 32px;
  text-align: center;
  border-right: 0.5px solid #1a0e0e;
}

.stat:last-child { border-right: none; }

.stat-n {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.stat-l {
  font-size: 11px;
  color: #444;
  margin-top: 2px;
}

.hero-wave {
  width: 100%;
  height: 80px;
  overflow: hidden;
  display: block;
  position: relative;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}


/* ---------- FILTER BAR ---------- */
.filter-bar {
  background: #060404;
  border-bottom: 1px solid #150d0d;
  position: sticky;
  top: 62px;
  z-index: 90;
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  color: #444;
  letter-spacing: 1px;
  margin-right: 4px;
  white-space: nowrap;
}

.filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.fbtn {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  transition: all var(--transition);
  white-space: nowrap;
}

.fbtn.active {
  background: var(--red);
  color: var(--text);
  border-color: var(--red);
  font-weight: 500;
}

.fbtn:hover:not(.active) {
  border-color: #3a1515;
  color: var(--text2);
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.prod-count {
  font-size: 11px;
  color: #333;
  white-space: nowrap;
}

.sort-select {
  background: #110a0a;
  border: 0.5px solid var(--border);
  color: var(--text3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  outline: none;
  cursor: pointer;
}


/* ---------- PRODUCT GRID ---------- */
.grid-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text4);
  font-size: 15px;
}


/* ---------- CARD ---------- */
.card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(139,26,26,0.5);
  transform: translateY(-3px);
}

.card-img {
  height: 150px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 0.5px solid #1a0e0e;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,8,8,0.6) 100%);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.badge {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 20px;
  width: fit-content;
}

.b-livro     { background: #1e0e2a; color: #b07ad8; }
.b-dado      { background: #1a1a0e; color: #c8c050; }
.b-miniatura { background: #1e0e1a; color: #e07090; }
.b-cenario   { background: #0e1e12; color: #6abf80; }
.b-acessorio { background: #1a0e1a; color: #b050b8; }
.b-vestuario { background: #1a1010; color: #e08060; }

.badge-novo { background: var(--red); color: #fff; }
.badge-off  { background: #1a3a1a; color: #6abf80; }
.badge-ltd  { background: #3a2a0a; color: #c8904a; }
.badge-esg  { background: #222; color: #555; }

.card-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(13,8,8,0.7);
  border: 0.5px solid var(--border2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition);
}

.card-heart:hover { background: rgba(139,26,26,0.4); border-color: var(--red); }
.card-heart.liked { color: #e05050; }

.card-body { padding: 12px; }

.card-cat {
  font-size: 10px;
  color: var(--text4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.card-name {
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 5px;
  line-height: 1.35;
}

.card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.star-fill { color: var(--red); font-size: 11px; }
.star-count { font-size: 10px; color: #444; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-prices { display: flex; flex-direction: column; }

.price-old {
  font-size: 10px;
  color: var(--text4);
  text-decoration: line-through;
}

.price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.add-btn {
  background: transparent;
  border: 0.5px solid #3a1515;
  color: #c05050;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
  transition: all var(--transition);
}

.add-btn:hover {
  background: #1a0808;
  border-color: var(--red);
  color: #e07070;
}

.add-btn.added {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}


/* ---------- BANNER ---------- */
.banner {
  background: #0f0808;
  border-top: 1px solid #1a0e0e;
  border-bottom: 1px solid #1a0e0e;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.banner-text h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

.banner-cta {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
  display: inline-block;
}

.banner-cta:hover { background: var(--red-hover); }


/* ---------- FOOTER ---------- */
.footer {
  background: #050303;
  border-top: 1px solid #150d0d;
  padding: 40px 24px 24px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  font-size: 11px;
  color: var(--text4);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  transition: all var(--transition);
}

.footer-socials a:hover { color: var(--text2); border-color: var(--border2); }

.footer-col h4 {
  font-size: 10px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--text4);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text2); }

.footer-bottom {
  border-top: 0.5px solid #150d0d;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 11px; color: #2a1a1a; }

.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; }

.pay-pill {
  background: #110a0a;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10px;
  color: #444;
}


/* ---------- CARRINHO LATERAL ---------- */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: #0d0808;
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.cart-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  transition: color var(--transition);
}

.cart-close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  color: var(--text4);
  font-size: 13px;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid #1a0e0e;
  align-items: flex-start;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  background: var(--border);
  border: none;
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--red); }
.qty-val { font-size: 12px; color: var(--text2); min-width: 16px; text-align: center; }

.cart-remove {
  background: none;
  border: none;
  color: #444;
  font-size: 16px;
  padding: 2px;
  transition: color var(--transition);
}

.cart-remove:hover { color: #e05050; }

.cart-footer {
  padding: 16px 20px;
  border-top: 0.5px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
}

.cart-total-row span:last-child {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.checkout-btn {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
}

.checkout-btn:hover { background: var(--red-hover); }

.checkout-btn.disabled {
  background: #2a1515;
  color: #555;
  pointer-events: none;
}


/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a0e0e;
  border: 0.5px solid var(--red);
  color: var(--text);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 300;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 32px; }
  .stat { padding: 14px 20px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-search { display: none; }
  .hero-title { font-size: 26px; }
  .hero { padding: 40px 16px 0; }
  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1; min-width: 120px; }
  .filter-inner { gap: 6px; }
  .filter-sort { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .banner { flex-direction: column; text-align: center; }
  .banner-cta { margin-left: 0; width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
}
