:root {
  --red: #e11d2e;
  --red-glow: #ff2a3a;
  --red-dark: #9b0e1c;
  --dark: #07070b;
  --card: #0f0f16;
  --text: #f5f5f7;
  --muted: #8a8a95;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.stars, .glow-orbs, .particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stars {
  background: radial-gradient(ellipse at bottom, #1a0810 0%, #000 70%);
}
.stars::before, .stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 160px 30px, #fff, transparent),
    radial-gradient(1px 1px at 200px 120px, rgba(255,42,58,.6), transparent);
  background-repeat: repeat;
  background-size: 250px 140px;
  animation: stars 60s linear infinite;
  opacity: 0.5;
}
.stars::after { animation-duration: 100s; opacity: 0.3; }
@keyframes stars { to { transform: translateY(-140px); } }

.glow-orbs::before, .glow-orbs::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: float 15s ease-in-out infinite;
}
.glow-orbs::before { background: var(--red); top: 15%; left: 5%; }
.glow-orbs::after { background: #ff0044; bottom: 5%; right: 10%; animation-delay: -7s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 29, 46, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(225, 29, 46, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 42, 58, 0.9); }
}
.logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 1.6rem; letter-spacing: 1.5px;
  background: linear-gradient(90deg, #fff 30%, var(--red-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: #16161f; border-radius: 22px; padding: 3px; }
.lang-btn {
  background: none; border: none; color: var(--muted); padding: 5px 12px;
  border-radius: 18px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
}
.lang-btn.active { background: var(--red); color: #fff; }
.search-box input {
  background: #16161f; border: 1px solid #2a2a35; color: #fff; padding: 9px 16px;
  border-radius: 22px; width: 200px; outline: none; transition: border 0.2s;
}
.search-box input:focus { border-color: var(--red); }
.cart-btn, .login-btn {
  background: #16161f; border: 1px solid #2a2a35; color: #fff; padding: 9px 16px;
  border-radius: 12px; cursor: pointer; position: relative; font-weight: 600;
  transition: all 0.2s;
}
.cart-btn:hover, .login-btn:hover { border-color: var(--red); }
.login-btn { background: linear-gradient(90deg, var(--red), #ff3b4d); border: none; }
.cart-count {
  position: absolute; top: -7px; right: -7px; background: var(--red);
  color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 0 10px var(--red);
}

/* Hero */
.hero {
  position: relative; height: 480px; overflow: hidden; margin-bottom: 50px;
}
.hero-banner {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: brightness(0.65) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.75));
  padding: 20px;
}
.hero-overlay h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 0.9; letter-spacing: -1px;
  text-shadow: 0 0 40px var(--red), 0 0 80px rgba(225,29,46,0.4);
  margin-bottom: 14px;
  animation: title-glow 4s ease-in-out infinite alternate;
}
@keyframes title-glow {
  from { text-shadow: 0 0 20px var(--red); }
  to { text-shadow: 0 0 50px var(--red-glow), 0 0 100px rgba(255,42,58,0.5); }
}
.hero-overlay p { font-size: 1.25rem; color: #ddd; margin-bottom: 28px; letter-spacing: 0.5px; }
.cta-btn {
  background: linear-gradient(90deg, var(--red), #ff4d5a);
  color: #fff; padding: 16px 42px; border-radius: 50px; text-decoration: none;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.5px;
  box-shadow: 0 0 30px rgba(225, 29, 46, 0.6);
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.cta-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 50px var(--red); }
.pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(225, 29, 46, 0.5); }
  50% { box-shadow: 0 0 50px rgba(255, 42, 58, 0.9); }
}

/* Category Tabs */
.category-tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
.tab {
  background: #16161f; border: 1px solid #2a2a35; color: #aaa; padding: 8px 20px;
  border-radius: 30px; cursor: pointer; font-weight: 600; transition: all 0.2s;
}
.tab.active, .tab:hover {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 0 15px rgba(225, 29, 46, 0.4);
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem; margin: 10px 0 28px; text-align: center; letter-spacing: 1px;
}
.section-title::after {
  content: ''; display: block; width: 70px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 10px auto 0; border-radius: 2px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}
.product-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1e1e28;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  animation: card-in 0.6s ease backwards;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-12px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(225, 29, 46, 0.3);
}
.product-img {
  width: 100%; height: 190px; object-fit: cover; background: #000;
  transition: transform 0.4s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-body { padding: 18px; }
.product-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35;
}
.price-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.price-old {
  color: var(--muted); text-decoration: line-through; font-size: 0.95rem;
}
.discount {
  background: #0d6e0d; color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.price-new {
  font-size: 1.55rem; font-weight: 800; color: #fff; margin: 6px 0 4px;
}
.pix-text { font-size: 0.85rem; color: #999; margin-bottom: 14px; }
.card-actions {
  display: flex; gap: 8px;
}
.buy-btn {
  flex: 1; background: #1a1a24; border: 1px solid #2a2a35; color: #fff;
  padding: 11px; border-radius: 10px; cursor: pointer; font-weight: 600;
  transition: all 0.2s;
}
.buy-btn:hover { background: var(--red); border-color: var(--red); }
.add-cart-btn {
  width: 46px; background: #1a1a24; border: 1px solid #2a2a35; color: #fff;
  border-radius: 10px; cursor: pointer; font-size: 1.1rem;
  transition: all 0.2s;
}
.add-cart-btn:hover { background: var(--red); border-color: var(--red); }

/* Cart Sidebar */
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 380px; height: 100vh;
  background: #0c0c12; border-left: 1px solid #222; z-index: 200;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px; border-bottom: 1px solid #222;
}
.cart-header h3 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; }
.cart-header button { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #1e1e28; font-size: 0.95rem;
}
.cart-footer { padding: 22px; border-top: 1px solid #222; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.25rem; margin-bottom: 18px; }
.checkout-btn {
  width: 100%; background: linear-gradient(90deg, var(--red), #ff3b4d); color: #fff; border: none;
  padding: 15px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 1.05rem;
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.4);
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.float-btn {
  position: fixed; bottom: 28px; right: 28px; width: 62px; height: 62px;
  background: linear-gradient(135deg, #0088cc, #00aaff); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 25px rgba(0,136,204,0.45);
  z-index: 90; transition: transform 0.25s;
}
.float-btn:hover { transform: scale(1.12) rotate(8deg); }

.footer {
  text-align: center; padding: 40px 0; color: #555; font-size: 0.9rem;
  border-top: 1px solid #1a1a22; position: relative; z-index: 1;
}

@media (max-width: 768px) {
  .search-box { display: none; }
  .hero { height: 340px; margin-bottom: 30px; }
  .hero-overlay h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .cart-sidebar { width: 100%; right: -100%; }
  .header-inner { height: 60px; padding: 0 4px; }
  .logo { width: 42px; height: 42px; }
  .logo-text { 
    font-size: 1.15rem; 
    white-space: nowrap;
    letter-spacing: 0.5px;
  }
  .header-right { gap: 8px; }
  .lang-btn { padding: 4px 10px; font-size: 0.8rem; }
  .cart-btn, .login-btn { padding: 8px 12px; font-size: 0.85rem; }
  .category-tabs { 
    gap: 8px; 
    margin-bottom: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .tab { 
    padding: 7px 16px; 
    font-size: 0.85rem; 
    white-space: nowrap;
    flex-shrink: 0;
  }
  .section-title { font-size: 1.7rem; margin: 10px 0 20px; }
  .product-card { border-radius: 16px; }
  .product-img { height: 170px; }
  .float-btn { width: 54px; height: 54px; bottom: 20px; right: 16px; }
}

@media (max-width: 420px) {
  .logo-text { font-size: 1.05rem; }
  .header-right { gap: 6px; }
  .login-btn { padding: 8px 10px; }
}