:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --accent: #e11d2b;
  --accent-dark: #a10f1c;
  --text-light: #ffffff;
  --text-muted: #aaaaaa;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-light);
}


.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a1a1a;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  background: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 18px;
}

.search-bar {
  flex: 1;
  display: flex;
  margin: 0 20px;
}

.search-bar input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  background: #222;
  color: var(--text-light);
}

.search-bar button {
  padding: 8px 16px;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--accent-dark);
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 12px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* CART MAIN */
.cart-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cart-content h1 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 30px;
}

.cart-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cart-items {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  background: #1a1a1a;
  display: flex;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-right: 20px;
}

.item-info h2 {
  margin: 0 0 6px;
}

.price {
  color: #fff;
  font-weight: bold;
}

.stock {
  color: #5aff5a;
  font-size: 14px;
  margin-bottom: 8px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.quantity select {
  background: #222;
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  padding: 4px 8px;
}

.remove {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}

.remove:hover {
  background: var(--accent);
  color: #fff;
}


.cart-summary {
  flex: 1;
  background: #1a1a1a;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
}

.cart-summary h2 {
  margin-top: 0;
  color: var(--accent);
}

.subtotal {
  font-size: 18px;
  margin-bottom: 20px;
}

.subtotal span {
  font-weight: bold;
  color: #fff;
}

.checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 0;
  font-weight: bold;
  cursor: pointer;
}

.checkout:hover {
  background: var(--accent-dark);
}


footer {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-item img {
    margin-bottom: 12px;
  }

  .item-info {
    align-items: center;
  }
}