/* UPDATED styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
  display: flex;
  min-height: 100vh;
}

/* Header */
.header {
  width: 100%;
  padding: 15px 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand .logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.tag {
  font-size: 0.75rem;
  color: #777;
  margin-top: -3px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.controls input[type="search"],
.controls select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background: #fafafa;
}

.cart-btn {
  background: #111;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.cart-btn:hover {
  background: #333;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 110px auto 40px;
  padding: 0 20px;
}

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

/* Product Cards */
.product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  margin: 12px 0 4px;
}

.product-card p {
  color: #555;
  font-size: 0.9rem;
}

.product-card button {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.product-card button:hover {
  background: #333;
}

/* Sliding Cart */
.cart {
  width: 350px;
  background: #111;
  padding: 20px;
  color: white;
  position: fixed;
  right: -400px;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: right 0.35s ease;
  z-index: 200;
}

.cart.show {
  right: 0;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#close-cart {
  background: none;
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-item {
  background: #222;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.total {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.checkout-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #00c851;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.checkout-btn:hover {
  background: #009639;
}

.clear-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #da2c2c;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.clear-btn:hover {
  background: #bb1f1f;
}