:root {
  --bg: #050816;
  --bg-card: #0b1020;
  --accent: #635bff;
  --accent-soft: rgba(99, 91, 255, 0.15);
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --radius-xl: 18px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
  --transition: 0.25s ease;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #101326 0, #050816 45%, #02040b 100%);
  color: var(--text);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ff7a7a, #ff4b4b 60%, #c9184a);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.cart-badge {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.3);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 11px;
}

.hero {
  margin-bottom: 32px;
}

.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(99,91,255,0.5);
  font-size: 12px;
  color: var(--text);
  margin-bottom: 12px;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card-product {
  position: relative;
  background: radial-gradient(circle at top left, rgba(99,91,255,0.4), #050816);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.3);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.7);
}

.card-product img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-price {
  font-size: 15px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--muted);
  margin-top: 6px;
}

/* Pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(99,91,255,0.55);
}

/* Pagina prodotto */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-image {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.35);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-image img {
  display: block;
  width: 100%;
}

.product-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
}

.product-variants {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.variant-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.variant-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.price-big {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0;
}

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

/* Carrello / checkout layout base */
.card-surface {
  padding: 18px;
  border-radius: 18px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-soft);
}
