/* Basic CSS Boilerplate */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  height: 100%;
  width: 100%;
}

header {
  display: flex;
  border-top: 1px solid #ccc;
  align-items: center;
  border-bottom: 1px solid #ccc;
  gap: 40px;
}

.headerleft {
  display: flex;
  align-items: center;
}

.logo {
  padding: 24px 30px;
  border-right: 1px solid #ccc;
}

.headeraddress {
  padding: 20px;
}

.headeraddress h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.headeraddress p {
  font-size: 13px;
}

.searchbox {
  flex-grow: 1;
  display: flex;
  background-color: #f8f8f8;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
}

.searchbox button {
  padding: 15px;
  background-color: transparent;
  border: none;
}
.searchbox input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
}

.searchbox input:focus {
  outline: none;
}

button i {
  font-size: 15px;
}

.headerbtn {
  display: flex;
  gap: 30px; /* now it will work */
  margin-right: 35px;
}

.headerbtn button {
  font-size: 16px;
  padding: 15px;
  /* gap: 50px; */
  background-color: transparent;
  border: none;
}

.headerbtn button i {
  margin-right: 5px;
  font-size: 25px;
}

.headerbtn button:last-child {
  display: flex;
  align-items: center;
  background-color: #34af43;
  border-radius: 10px;
  font-weight: bold;
}

.banner {
  max-width: 1280px;
  margin: auto;
}

.banner img {
  width: 100%;
}

.orderBanner {
  max-width: 1280px;
  margin: auto;
  display: flex;
}

.orderBannerItems {
  flex-basis: 27%;
  margin: 1%;
}

.orderBannerItems img {
  width: 100%;
}

.categoriesSection {
  max-width: 1280px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

.categories {
  flex-basis: 10%;

  /* margin: 1%; */
}

.categories img {
  width: 100%;
}

.productSection {
  max-width: 1250px;
  margin: auto;
}

.headingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headingRow h2 {
  margin-bottom: 10px;
}

.productRow {
  width: 100%;
  margin: 10px 0px;
  display: flex;
  gap: 2%;
  flex-wrap: wrap;
}

.productItems {
  flex-basis: 15%;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0px 0 10px 2px #ccc;
  margin-bottom: 20px;
}

.productImg {
  text-align: center;
  padding: 10px;
}

.productImg p {
  display: flex;
  align-items: center;
  font-size: 12px;
  text-align: left;
}

.productContent {
  padding: 15px;
  padding-top: 0px;
}

.productContent h3 {
  margin-bottom: 15px;
  font-size: 15px;
}

.productContent p {
  font-family: 14px;
  color: #848080;
}

.btn-price-outer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.btn-price-outer button {
  border: 1px solid #328839;
  padding: 5px 15px;
  border-radius: 10px;
  background-color: #f7fff9;
}

.footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb; /* border-zinc-200 */
}

.footer-container {
  max-width: 1280px; /* max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem; /* py-12 px-6 */
}

/* --- Top Section: Links --- */
.footer-top {
  display: grid;
  grid-template-columns: 1fr; /* Mobile First */
  gap: 2rem;
}

/* --- Headings --- */
.useful-links h3,
.categories h3 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700; /* font-bold */
  color: #18181b; /* text-zinc-900 */
}

/* --- Link Lists --- */
.links-grid-useful,
.links-grid-categories {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem 1rem;
}

.links-grid-useful {
  grid-template-columns: repeat(2, 1fr);
}

.links-grid-categories {
  grid-template-columns: repeat(2, 1fr);
}

.useful-links ul,
.categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

.useful-links li a,
.categories li a {
  font-size: 0.875rem; /* text-sm */
  color: #52525b; /* text-zinc-600 */
  text-decoration: none;
}

.useful-links li a:hover,
.categories li a:hover {
  color: #18181b; /* hover:text-zinc-900 */
}

/* --- Categories Header "see all" --- */
.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.see-all-link {
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  color: #16a34a; /* text-green-600 */
  text-decoration: none;
}

.see-all-link:hover {
  color: #15803d; /* hover:text-green-700 */
}

/* --- Bottom Section --- */
.footer-bottom {
  margin-top: 3rem; /* mt-12 */
  border-top: 1px solid #e5e7eb; /* border-zinc-200 */
  padding-top: 2rem; /* pt-8 */
  
  display: flex;
  flex-direction: column; /* Mobile first: stack vertically */
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.875rem; /* text-sm */
  color: #71717a; /* text-zinc-500 */
  text-align: center;
  order: 2; /* Show copyright last on mobile */
}

.download-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 1.5rem;
  order: 1; /* Show download first on mobile */
}

.download-text {
  display: none; /* Hide "Download App" text by default */
  font-size: 0.875rem;
  font-weight: 500;
  color: #18181b;
}

.app-button {
  display: block;
  width: 8rem; /* w-32 */
}
.app-button img {
  width: 100%;
  height: auto;
}
.app-button .google-play-img {
  height: 44px; /* Maintain height for Google Play badge */
  width: auto;
}


/* --- Social Icons --- */
.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
}

.social-icons a {
  width: 36px; /* w-9 */
  height: 36px; /* h-9 */
  background-color: #000000;
  border-radius: 9999px; /* rounded-full */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s;
}

.social-icons a:hover {
  background-color: #3f3f46; /* hover:bg-zinc-700 */
}

.social-icons svg {
  width: 20px; /* w-5 */
  height: 20px; /* h-5 */
  fill: currentColor;
}


/* --- Responsiveness (Media Queries) --- */

/* Small screens and up (sm: 640px) */
@media (min-width: 640px) {
  .links-grid-useful {
    grid-template-columns: repeat(3, 1fr);
  }
  .links-grid-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium screens and up (md: 768px) */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(12, 1fr);
  }
  .useful-links {
    grid-column: span 5 / span 5;
  }
  .categories {
    grid-column: span 7 / span 7;
  }
  .footer-bottom {
    flex-direction: row; /* Horizontal layout on desktop */
  }
  .copyright {
    order: 1; /* Copyright first on desktop */
    text-align: left;
  }
  .download-social {
    order: 2; /* Download/social last on desktop */
    justify-content: flex-end;
  }
}

/* Large screens and up (lg: 1024px) */
@media (min-width: 1024px) {
  .useful-links {
    grid-column: span 4 / span 4;
  }
  .categories {
    grid-column: span 8 / span 8;
  }
  .links-grid-categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .download-text {
    display: block; /* Show "Download App" text */
  }
}