.main {
  margin-top: 60px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 60px; /* Add padding to prevent footer overlap */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

@media (max-width: 600px) {
  .main {
    margin-top: 40px;
    max-width: 100%;
    padding: 0 10px 70px 10px; /* Extra bottom padding for mobile footer */
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
  }
  
  .product-container {
    padding: 10px;
  }
  
  .product-image-container {
    height: 60px;
    margin-bottom: 10px;
  }
  
  .product-name {
    font-size: 0.8rem;
  }
  
  .product-price {
    font-size: 0.9rem;
  }
  
  .add-to-cart-button {
    padding: 6px;
    font-size: 0.8rem;
  }
  
  /* Mobile footer adjustments */
  .footer {
    padding: 6px 0;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
  }
  
  .product-container {
    padding: 8px;
  }
  
  .product-image-container {
    height: 50px;
  }
  
  .product-name {
    font-size: 0.75rem;
  }
  
  .footer {
    padding: 5px 0;
    font-size: 0.75rem;
  }
}

@media (max-width: 6000px) {
  /*.wrapper-main{
    width: 100%;
  }*/
}

@media (max-width: 2000px) {
  .products-grid {
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
  }
}

@media (max-width: 1600px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
  }
}

@media (max-width: 1300px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }
}

@media (max-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

@media (max-width: 575px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

@media (max-width: 450px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

.product-container {
  padding-top: 20px;
  padding-bottom: 15px;
  padding-left: 15px;
  padding-right: 15px;
  border-right: 1px solid rgb(231, 231, 231);
  border-bottom: 1px solid rgb(231, 231, 231);
  display: flex;
  flex-direction: column;
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  margin-bottom: 20px;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
} 

.product-name {
  height: auto;
  margin-bottom: 5px;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  font-size: 0.9rem;
}

.product-price {
  font-weight: 700;
  margin-bottom: 10px;
}

.product-quantity-container {
  margin-bottom: 5px;
}

.product-spacer {
  flex: 1;
}

.added-to-cart {
  color: rgb(38, 6, 125);
  font-size: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  opacity: 0;
}

.added-to-cart img {
  height: 20px;
  margin-right: 5px;
}

.add-to-cart-button {
  width: 100%;
  padding: 8px;
  border-radius: 50px;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  z-index: 100;
  font-size: 0.9rem;
}

.ayutech-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.text-lg {
  font-size: 1.1rem;
  color: darkslateblue;
}

body {
  border: 8px #222;
  display: flex;
  flex-direction: column;
}

.card {
  background: lightcoral;
  width: 100%;
  min-height: 120px; /* Adjusted for mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin-top: 20px;
  box-sizing: border-box;
  gap: 15px;
  flex-wrap: wrap;
}

.card_image {
  align-content: left;
  height: 80px; /* Adjusted for mobile */
  width: auto;
  object-fit: contain;
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responsive styles for navigation buttons */
@media (max-width: 768px) {
  .flex.flex-wrap.justify-center.gap-4.my-8.md\\:my-12 a {
    padding: 10px 20px !important;
    font-size: 14px !important;
    margin: 4px;
  }
}

@media (max-width: 480px) {
  .flex.flex-wrap.justify-center.gap-4.my-8.md\\:my-12 a {
    padding: 8px 16px !important;
    font-size: 12px !important;
    margin: 3px;
    border-radius: 20px !important;
  }
  
  /* Adjust button grid for very small screens */
  .flex.flex-wrap.justify-center.gap-4.my-8.md\\:my-12 {
    gap: 6px !important;
  }
}

/* Additional mobile optimizations */
@media (max-width: 600px) {
  .container.mx-auto.p-4.md\\:p-8 {
    padding: 15px !important;
  }
  
  .text-4xl.md\\:text-5xl {
    font-size: 2rem !important;
  }
  
  .text-lg.md\\:text-xl {
    font-size: 1rem !important;
  }
}
