:root{
  --bg:#070A12;
  --card:#0C1020;
  --card2:#0B132A;
  --border: rgba(255,255,255,.08);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --blue:#2D7BFF;
  --blue2:#00D1FF;
  --green:#2BFF88;
  --danger:#FF4D6D;
  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background: radial-gradient(900px 600px at 15% 15%, rgba(45,123,255,.18), transparent 60%),
  radial-gradient(700px 500px at 85% 25%, rgba(0,209,255,.10), transparent 60%),
  var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1200px, 92%); margin:0 auto; }

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(7,10,18,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap:14px;
  align-items:center;
  padding:14px 0;
}
@media(max-width: 860px){
  .topbar-grid{ grid-template-columns: 1fr auto; }
  .searchbox{ display:none; }
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand.small{ gap:8px; }

.brand-dot{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 0 18px rgba(45,123,255,.65);
}
.brand-name{
  font-weight:800;
  letter-spacing:.5px;
}
.brand-tag{
  font-size:12px;
  padding:4px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color: var(--muted);
}

.searchbox input{
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
.searchbox input::placeholder{ color: rgba(234,240,255,.45); }

.actions{ display:flex; gap:10px; justify-content:flex-end; }
.cart-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius:999px;
}
.badge{
  min-width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:12px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}

.section{ padding: 26px 0; }
.section-header h2{ margin:0; font-size: 22px; }
.section-header p{ margin:8px 0 0; color: var(--muted); }

.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
@media(max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
}

.hero-left{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(12,16,32,.9), rgba(11,19,42,.75));
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
}
.hero-left h1{
  margin:0;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height:1.05;
}
.hero-left p{
  margin:12px 0 0;
  color: var(--muted);
  line-height:1.55;
  font-size: 15px;
}

.hero-cta{
  display:flex;
  gap:12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 14px;
  border:1px solid var(--border);
  cursor:pointer;
  color: var(--text);
  background: rgba(255,255,255,.02);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(45,123,255,.35); }
.btn.primary{
  background: linear-gradient(135deg, rgba(45,123,255,.95), rgba(0,209,255,.75));
  border-color: rgba(45,123,255,.45);
}
.btn.ghost{
  background: rgba(255,255,255,.02);
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 18px;
}
@media(max-width: 520px){
  .hero-stats{ grid-template-columns: 1fr; }
}
.stat{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding:12px;
}
.stat-title{ color: var(--muted2); font-size:12px; }
.stat-value{ font-weight:800; margin-top:6px; }

.hero-right .hero-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(12,16,32,.75), rgba(11,19,42,.92));
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  height:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.hero-card-top{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size:12px;
}
.chip2{ border-color: rgba(0,209,255,.25); }

.hero-preview{
  position:relative;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding:18px;
  overflow:hidden;
}
.glow{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle, rgba(45,123,255,.20), transparent 60%);
  filter: blur(18px);
}
.preview-box{ position:relative; }
.preview-title{ font-weight:900; font-size:18px; }
.preview-sub{ color: var(--muted); margin-top:6px; }

.preview-bars{ display:grid; gap:8px; margin-top:14px; }
.bar{
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(45,123,255,.55), rgba(0,209,255,.25));
}
.bar.small{ width: 65%; }

.hero-card-bottom{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.mini{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  padding:14px;
}
.mini-title{ font-weight:900; }
.mini-sub{ color: var(--muted); margin-top:6px; font-size:13px; }

.category-row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cat{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  cursor:pointer;
  color: var(--muted);
}
.cat.active{
  color: var(--text);
  border-color: rgba(45,123,255,.35);
  background: rgba(45,123,255,.08);
}

.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
@media(max-width: 1050px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 760px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 460px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.product-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(12,16,32,.72), rgba(11,19,42,.82));
  border-radius: var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .12s ease, border-color .12s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  border-color: rgba(45,123,255,.35);
}
.product-img{
  width:100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.02);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.product-img img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.product-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.product-title{
  font-weight:900;
  line-height:1.2;
}
.product-meta{
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
}
.price{
  font-weight:900;
  font-size: 16px;
  color: #EAF0FF;
}
.kicker{
  color: var(--muted);
  font-size:12px;
}
.product-actions{
  display:flex;
  gap:10px;
  margin-top: 6px;
}
.product-actions .btn{
  width:100%;
  border-radius: 14px;
  padding: 10px 12px;
}

.footer{
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.10);
  margin-top: 22px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
}
@media(max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-title{
  font-weight:800;
  margin-bottom: 10px;
}
.footer-link{
  display:block;
  color: var(--muted);
  margin:8px 0;
}
.footer-link:hover{ color: var(--text); }

.footer-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45,123,255,.12), rgba(0,209,255,.06));
  padding: 18px;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.crumbs{
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  gap:8px;
  align-items:center;
}
.crumbs a{ color: var(--muted); }
.crumbs a:hover{ color: var(--text); }

.product-page{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media(max-width: 920px){
  .product-page{ grid-template-columns: 1fr; }
}
.product-view{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.product-view img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.product-info{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding:16px;
}
.product-info h2{ margin:0; }
.product-desc{ margin-top:10px; color: var(--muted); line-height:1.6; }
.product-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.badge2{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color: var(--muted);
  font-size:12px;
  background: rgba(255,255,255,.02);
}
.product-cta{
  display:flex;
  gap:10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.product-cta .btn{ flex:1; }

.cart-layout{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
}
@media(max-width: 920px){
  .cart-layout{ grid-template-columns: 1fr; }
}
.summary{ position: sticky; top: 90px; height: fit-content; }
.summary-title{ font-weight:900; font-size:16px; margin-bottom:12px; }
.summary-row{
  display:flex;
  justify-content:space-between;
  margin:10px 0;
}
.summary-row.total{
  border-top:1px solid var(--border);
  padding-top:12px;
  margin-top:12px;
  font-size: 16px;
}
.cart-item{
  display:grid;
  grid-template-columns: 70px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child{ border-bottom:none; }
.cart-item img{
  width:70px; height:70px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.cart-item-title{ font-weight:900; }
.cart-item-sub{ color: var(--muted); font-size: 12px; margin-top: 6px; }
.cart-item-controls{
  display:flex;
  align-items:center;
  gap:8px;
}
.qty{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  border-radius: 999px;
  padding:6px 10px;
  background: rgba(255,255,255,.02);
}
.qty button{
  background: transparent;
  border:none;
  color: var(--text);
  font-size: 16px;
  cursor:pointer;
}
.qty span{ min-width: 18px; text-align:center; font-weight:800; }
.remove{
  color: var(--danger);
  cursor:pointer;
  font-weight:800;
  border:1px solid rgba(255,77,109,.25);
  padding:8px 10px;
  border-radius: 14px;
  background: rgba(255,77,109,.08);
}

.checkout-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
@media(max-width: 980px){
  .checkout-grid{ grid-template-columns: 1fr; }
}
.card-title{ margin:0 0 12px; font-size: 16px; font-weight:900; }
.form{ display:flex; flex-direction:column; gap:12px; }
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media(max-width: 680px){
  .form-row{ grid-template-columns: 1fr; }
}
.field label{
  display:block;
  margin-bottom:6px;
  color: var(--muted);
  font-size: 12px;
}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
.line{ border:none; border-top:1px solid var(--border); margin: 8px 0; }
.msg{
  display:none;
  padding:12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.msg.error{
  display:block;
  border-color: rgba(255,77,109,.35);
  background: rgba(255,77,109,.10);
  color: #FFD5DE;
}
.msg.ok{
  display:block;
  border-color: rgba(43,255,136,.35);
  background: rgba(43,255,136,.08);
  color: #C8FFE4;
}

.checkout-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.checkout-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.checkout-item:last-child{ border-bottom:none; }
.mini-note{
  margin-top:12px;
  padding:12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}

/* Compatibilidade/Polimento */
.cart-list{ border:1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); padding:14px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.cart-left{ display:flex; gap:12px; align-items:center; }
.cart-img{ width:70px; height:70px; border-radius:14px; object-fit:cover; border:1px solid var(--border); }
.cart-right{ display:flex; gap:14px; align-items:center; justify-content:flex-end; }
.cart-subtotal{ min-width:110px; text-align:right; }

/* ==== Loja grande: selo + preço antigo + chips ==== */
.product-img{ position:relative; }
.p-badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(45,123,255,.35);
  background: rgba(45,123,255,.12);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.p-old{
  margin-right:8px;
  font-size:12px;
  color: var(--muted2);
  text-decoration: line-through;
}

.p-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
}
.p-chip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size:12px;
}

