* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #000;
}

header h1 {
  font-size: 26px;
  margin: 0;
}

header input {
  width: 220px;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.cart-btn {
  background: #2ecc71;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
/* Cart badge */
#cart-badge {
  position: fixed;
  top: 14px;
  right: 18px;
  background: #28a745;
  color: #fff;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 14px;
  z-index: 9999;
  transition: transform 0.3s ease;
}

#cart-badge.bump {
  transform: scale(1.4);
}

/* Star animation */
.star {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  animation: flyUp 1s ease-out forwards;
  z-index: 9999;
}

@keyframes flyUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-80px) scale(1.6);
  }
}
/* PRODUCT GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* PRODUCT CARD */
.card {
  background: #1c1c1c;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 14px;
}

.card p {
  color: #2ecc71;
  font-weight: bold;
}

/* BUTTONS */
button {
  margin: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:nth-child(1) {
  background: #f1c40f;
}

button:nth-child(2) {
  background: #2ecc71;
}

/* PRODUCT PAGE */
.product-page {
  padding: 20px;
}

.product-page img {
  max-width: 300px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #000;
}

.menu {
  position: relative;
}

.menu-btn {
  font-size: 22px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.menu-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #1c1c1c;
  border-radius: 8px;
  min-width: 140px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.menu-content a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.menu-content a:hover {
  background: #2ecc71;
  color: black;
}

.store-name {
  font-size: 20px;
  color: white;
  margin: 0;
}

.right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background: #111;
  padding-top: 60px;
  transition: 0.3s;
  z-index: 1001;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
}

.sidebar a:hover {
  background: #2ecc71;
  color: black;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}
