/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #007f3f; /* Green DMart style */
  color: #333;
}

/* Header Base */
.brand-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  top: 0;
  z-index: 1000;
}

/* Top Row (menu, logo, cart) */
.brand-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-btn {
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.cart {
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Banner Row */
.logo-banner {
  width: 100%;
  overflow: hidden;
}

.logo-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
  max-height: none;
}

/* Product Cards Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

.product-card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card img {
  max-width: 100%;
  height: 120px;
  object-fit: inherit;
}

.product-card h3 {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.3;
}

.product-card .details {
  font-size: 12px;
  color: #555;
  margin: 4px 0;
}

.product-card .rating {
  font-size: 12px;
  margin: 4px 0;
}

.product-card .price {
  font-size: 14px;
  color: #007f3f;
  font-weight: bold;
}

.product-card .price .old {
  font-size: 11px;
  text-decoration: line-through;
  color: #888;
  margin-left: 4px;
}

.product-card .delivery-text {
  font-size: 11px;
  color: #666;
  margin: 2px 0;
}

.btn {
  background: #007f3f;
  color: white;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  font-size: 13px;
  text-align: center;
}

.btn:hover {
  background: #005f2e;
}

/* Footer */
footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 12px 8px; /* smaller padding */
  font-size: 10px;   /* smaller font */
}

footer a {
  color: #aaa;
  text-decoration: none;
  font-size: 10px; /* smaller links */
}

footer a:hover {
  text-decoration: underline;
}

footer img {
  max-height: 28px; /* smaller footer logo */
  width: auto;
  margin-top: 6px;
}

/* Download Page */
.download-wrap {
  padding: 24px 16px 40px;
}

.download-card {
  max-width: 650px;
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  text-align: center;
}

.checkmark {
  margin-bottom: 10px;
}

.download-title {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 12px;
  color: #111827;
}

.lead {
  font-size: 16px;
  color: #374151;
  line-height: 1.55;
  margin: 6px auto;
  max-width: 560px;
}

.lead.hi {
  margin-top: 10px;
  font-size: 16px;
}

.btn.cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a9b4d;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 14px;
}

.btn.cta svg {
  color: #fff;
}

/* Product Details */
.details-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.details-card .meta p {
  font-size: 13px;
  margin: 3px 0;
  color: #444;
}

.price {
  font-size: 16px;
}

.old {
  font-size: 12px;
}

.meta {
  font-size: 12px;
  color: #555;
  margin: 4px 0;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .product-card img {
    height: 110px;
  }
  .logo-banner img {
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 15px;
  }
  .product-card img {
    height: 100px;
  }
  .product-card h3 {
    font-size: 13px;
  }
  .product-card .details,
  .product-card .rating,
  .product-card .delivery-text {
    font-size: 11px;
  }
  .product-card .price {
    font-size: 13px;
  }
  .product-card .price .old {
    font-size: 10px;
  }
  .btn {
    font-size: 12px;
    padding: 6px;
  }
  footer {
    font-size: 9px;   /* even smaller text on mobile */
    padding: 8px 4px;
  }
  footer a {
    font-size: 9px;
  }
  footer img {
    max-height: 22px; /* smaller footer logo for mobile */
  }
  .download-card {
    padding: 18px 14px;
  }
  .download-title {
    font-size: 20px;
  }
  .btn.cta {
    padding: 10px 16px;
    font-size: 13px;
  }
  .brand-row {
    padding: 8px 12px;
  }
  .logo img {
    max-height: 40px;
  }
  .logo-banner img {
    max-height: 180px;
  }
}
