* ===== Global Styles ===== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1E88E5;
  color: #fff;
}

.navbar a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #cce3ff;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../images/banner.jpg') center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.8em;
  font-weight: 600;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background: #1E88E5;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1565C0;
}

/* ===== Common Section Padding ===== */
.categories,
.shop-container,
.product-detail {
  padding: 40px 20px;
  text-align: center;
}

/* ===== Login Page ===== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(120deg, #1E88E5, #42A5F5);
}

.login-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  width: 320px;
}

.login-box h2 {
  margin-bottom: 10px;
  color: #1E88E5;
}

.login-box p {
  margin-bottom: 25px;
  color: #555;
  font-size: 14px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.login-box input:focus {
  border-color: #1E88E5;
  outline: none;
}

.login-box .btn {
  width: 100%;
  background: #1E88E5;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.login-box .btn:hover {
  background: #1565C0;
}

.signup-text {
  margin-top: 15px;
  font-size: 13px;
}

.signup-text a {
  color: #1E88E5;
  text-decoration: none;
  font-weight: 500;
}

.signup-text a:hover {
  text-decoration: underline;
}



/* ===== Categories Section ===== */
.categories .grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.categories .card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
}

.categories .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

.categories .card h3 {
  font-size: 18px;
  margin: 10px 0 15px;
  color: #222;
}

.categories .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===== Shop Page ===== */
.product-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

.product-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #222;
}

.product-card p {
  color: #1E88E5;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-card .btn {
  background: #1E88E5;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

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

/* ===== Product Details Page ===== */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
  max-width: 1000px;
}

.product-image img {
  max-width: 350px;
  border-radius: 10px;
  object-fit: cover;
}

.product-info {
  max-width: 500px;
  text-align: left;
}

.price {
  color: #1E88E5;
  font-size: 1.5em;
  margin: 15px 0;
  font-weight: bold;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #f3f3f3;
  margin-top: 40px;
  font-size: 14px;
  color: #555;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }

  .categories .card,
  .product-card {
    width: 100%;
    max-width: 300px;
  }

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

  .product-info {
    text-align: center;
  }
}