/* ------------------------------
   GLOBAL STYLES
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #f5f6f8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------
   HEADER / NAVBAR
------------------------------ */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 a {
  color: #007bff;
  font-size: 1.6rem;
  text-decoration: none;
  font-weight: 700;
}

nav a {
  text-decoration: none;
  color: #333;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #007bff;
}

nav a.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
  background: linear-gradient(135deg, #007bff, #00a8ff);
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  background: white;
  color: #007bff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.hero .btn:hover {
  background: #0056b3;
  color: white;
}

/* ------------------------------
   PRODUCT GRID
------------------------------ */
main {
  flex: 1;
  padding: 40px 50px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

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

.product {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.product h3 {
  font-size: 1.2rem;
  margin: 15px 0 5px;
  color: #222;
}

.product p {
  color: #007bff;
  font-weight: 600;
}

.product button {
  margin: 10px 5px 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.product button:first-of-type {
  background: #007bff;
  color: white;
}

.product button:first-of-type:hover {
  background: #0056b3;
}

.product button:last-of-type {
  background: #00c853;
  color: white;
}

.product button:last-of-type:hover {
  background: #009624;
}

/* ------------------------------
   PRODUCT DETAILS PAGE
------------------------------ */
.product-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-details img {
  max-width: 350px;
  border-radius: 10px;
  margin-right: 40px;
}

.product-details h2 {
  font-size: 2rem;
  color: #222;
}

.product-details p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.product-details button {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.product-details button:hover {
  background: #0056b3;
}

/* ------------------------------
   CATEGORY HEADINGS
------------------------------ */
.category {
  margin-bottom: 60px;
}

.category h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-left: 5px solid #007bff;
  padding-left: 10px;
  color: #222;
}


/* ------------------------------
   CART PAGE
------------------------------ */
#cart-items {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#cart-items button {
  background: #ff5252;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#cart-items button:hover {
  background: #d32f2f;
}

#cart-total {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
}

#checkout-btn {
  background: #00c853;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#checkout-btn:hover {
  background: #009624;
}

/* ------------------------------
   ABOUT / CONTACT PAGE
------------------------------ */
main form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 15px;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #0056b3;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
}

/* ------------------------------
   RESPONSIVE DESIGN
------------------------------ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  .product-details {
    flex-direction: column;
    text-align: center;
  }

  .product-details img {
    margin-right: 0;
    margin-bottom: 20px;
  }

  main {
    padding: 20px;
  }
}
