/* =========================================
   GLOBAL RESET & BASICS
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f8fafc;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
header {
  background: linear-gradient(90deg, #004d99, #0073e6);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: default;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.2);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  color: #333;
  top: 120%;
  left: 0;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  color: #004d99;
  padding: 10px 15px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #eaf2ff;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Login Button */
.login-btn {
  background: #ff7b00;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: #ff5500;
}

/* =========================================
   HERO SECTION (Home Page)
========================================= */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url("images/hero-bg.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.hero button {
  background: #ff7b00;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero button:hover {
  background: #ff5500;
}

/* =========================================
   PRODUCT & FEATURED GRID
========================================= */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #004d99;
  margin: 50px 0 25px;
}

.featured-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 0 20px 40px;
}

.product-card,
.featured-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card img,
.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3,
.featured-card h3 {
  color: #004d99;
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.product-card p,
.featured-card p {
  color: #e63946;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card a,
.featured-card a {
  display: inline-block;
  padding: 8px 16px;
  background: #0073e6;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-bottom: 12px;
}

.product-card a:hover,
.featured-card a:hover {
  background: #004d99;
}

/* =========================================
   CART PAGE
========================================= */
.cart-section {
  max-width: 850px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cart-section h2 {
  color: #004d99;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 15px;
}

.cart-item div {
  flex: 1;
}

.qty-btn {
  background: #0073e6;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: #004d99;
}

.remove-btn {
  background: #e63946;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.remove-btn:hover {
  background: #b02a37;
}

.cart-total {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 25px;
}

/* =========================================
   CONTACT FORM
========================================= */
.contact-section {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #004d99;
}

form label {
  font-weight: 600;
  color: #004d99;
  display: block;
  margin: 15px 0 6px;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s ease;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  border-color: #0073e6;
  outline: none;
}

form button {
  margin-top: 20px;
  width: 100%;
  background: #004d99;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

form button:hover {
  background: #0073e6;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #004d99;
  color: white;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.95rem;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    margin-bottom: 10px;
  }

  .featured-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
