/* General Reset and Typography */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f1f3f6; /* Modern light gray background */
  color: #212121;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header & Navigation */
header {
  background: #2874f0; /* Chandu Mart Primary Blue */
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box h1 {
  font-size: 22px;
  margin: 0;
  font-style: italic;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

#cart-count {
  background: #ff9f00; /* Contrast yellow for visibility */
  color: #212121;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Search Bar */
input#search {
  padding: 10px 15px;
  border: none;
  border-radius: 2px;
  width: 300px;
  outline: none;
  font-size: 14px;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.hero-img {
  width: 450px;
  border-radius: 4px;
}

.btn {
  background: #fb641b; /* Action Orange */
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn:hover {
  background: #e65a15;
}

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Product Card Styling */
.card {
  background: white;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* Keeps spice images from looking stretched */
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  margin: 10px 0;
}

.card strong {
  font-size: 18px;
  color: #212121;
}

.card button {
  background: #ff9f00;
  border: none;
  color: white;
  padding: 10px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 2px;
}

/* Page Control */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Cart Specific Styles */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.btn-remove {
  background: none;
  border: none;
  color: #fb641b;
  font-weight: bold;
  cursor: pointer;
}

.cart-total {
  text-align: right;
  padding: 20px;
  background: white;
  margin-top: 10px;
  border-top: 2px solid #f1f3f6;
}
