/* General Body and Layout */
body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #000;
  padding: 20px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Product Listing Styles */

.shop {
  display: flex;
  gap: 15px; /* Reduced gap for compact layout */
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.top-row,
.second-row {
  display: flex;
  gap: 15px; /* Reduced gap */
  justify-content: center;
  width: 100%;
  margin: 0 auto 25px auto;
  flex-wrap: wrap;
}

.product {
  background: white;
  padding: 0;
  border-radius: 10px;
  width: 100%;
  max-width: 130px; /* Further reduced width */
  box-shadow: 0 4px 6px rgba(0,0,0,0.10);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto 15px auto; /* Smaller bottom margin */
}

.product.top-pad > .content {
  padding-top: 24px; /* Slightly reduced */
}

.content {
  padding: 12px;
  flex-grow: 1;
}

/* Green button style */
.btn,
.view-cart-btn {
  background-color: #33a64c;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 12px 24px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.btn:hover,
.view-cart-btn:hover {
  background-color: #249b4a;
}

/* Smaller, rounded View Cart button */
.view-cart-btn {
  max-width: 130px;
  width: 100%;
  border-radius: 999px;
  margin: 0 auto 30px auto;
  display: block;
  padding: 12px 0;
  font-size: 16px;
}

/* Product images full width */
.product-images {
  width: 100%;
  max-height: 75px; /* Reduced image height */
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.product-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Add to Cart button smaller and narrower */
.btn.small-btn {
  font-size: 9px;
  padding: 5px 12px;
  border-radius: 8px;
  width: 60%;
  margin: 8px auto 0 auto;
  display: block;
}

/* Responsive Styles for Mobile - consistent with desktop reduction */

@media (max-width: 600px) {
  .shop {
    gap: 12px;
    margin-bottom: 25px;
  }

  .product {
    max-width: 120px;
    margin-bottom: 16px;
  }

  .product-images {
    max-height: 65px;
  }

  .btn.small-btn {
    width: 70%;
    font-size: 10px;
    padding: 5px 10px;
  }

  .view-cart-btn {
    max-width: 120px;
    font-size: 14px;
    padding: 10px 0;
  }
}
