/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
header {
  background: #2b2d42;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.5rem;
}

nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #ef233c;
  font-weight: bold;
}

#cart-link {
  cursor: pointer;
  position: relative;
}

#cart-count {
  background: #ef233c;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 50%;
  padding: 3px 7px;
  position: absolute;
  top: -8px;
  right: -15px;
}

/* Cart Dropdown */
.cart-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  width: 280px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.remove-btn {
  background: #ef233c;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.checkout-btn {
  display: block;
  text-align: center;
  background: #ef233c;
  color: #fff;
  padding: 10px;
  margin-top: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #d90429;
}

/* Hero */
.hero {
  height: 70vh;
  background: url("https://images.unsplash.com/photo-1521334884684-d80222895322?auto=format&fit=crop&w=1400&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.btn {
  background: #ef233c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #d90429;
}

/* Categories */
.categories {
  text-align: center;
  margin: 40px 0 20px;
}

.categories a {
  margin: 0 15px;
  text-decoration: none;
  color: #2b2d42;
  font-size: 1.1rem;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 4px;
}

.categories a.active,
.categories a:hover {
  color: #ef233c;
  border-bottom: 2px solid #ef233c;
}

/* Products */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 0 40px 60px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 1;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  text-align: center;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.price {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: bold;
  color: #2b2d42;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* About & Contact */
#about, #contact {
  padding: 60px 40px;
  text-align: center;
  background: #f8f9fa;
  margin-top: 40px;
}

#about h2, #contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
}

#contact input, #contact textarea {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#contact button {
  background: #ef233c;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
}

#contact button:hover {
  background: #d90429;
}

/* Footer */
footer {
  background: #2b2d42;
  color: #fff;
  text-align: center;
  padding: 20px;
}
