/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* ===== HEADER ===== */
.header {
  background: #0d1b2a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #8af3ff;
}
.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.2rem;
}
.cart-icon {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff4757;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* ===== HERO ===== */
.hero {
  background: #f7f0f0;
  padding: 3rem 2rem;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-text p {
  margin-bottom: 1.5rem;
}
.cta-button {
  padding: 0.8rem 1.5rem;
  background: #8af3ff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.cta-button:hover {
  background: #0d1b2a;
  color: #fff;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 3rem 2rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.category-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== PRODUCTS ===== */
.featured-products {
  padding: 3rem 2rem;
  background: #fff;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  background: #f7f0f0;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}
.product-card:hover {
  transform: scale(1.03);
}
.product-card button {
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #0d1b2a;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.product-card button:hover {
  background: #8af3ff;
  color: #000;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 3rem 2rem;
  background: #0d1b2a;
  color: #fff;
  text-align: center;
}
.newsletter-form {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.newsletter-form input {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  flex: 1;
  max-width: 300px;
}
.newsletter-form button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #8af3ff;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: #fff;
  color: #000;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1b2a;
  color: #fff;
  padding: 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-section h3 {
  margin-bottom: 0.8rem;
}
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.5rem;
}
.checkout-btn {
  margin-top: 1rem;
  background: #0d1b2a;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.checkout-btn:hover {
  background: #8af3ff;
  color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #0d1b2a;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}
