@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap");

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s linear;
  text-transform: capitalize;
}

html {
  font-size: 20.5%;
  overflow-x: hidden;
}

body {
  background: #fff8dc;
}

.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container .title {
  font-size: 3rem; /* Scaled down */
  color: #444;
  margin-bottom: 3rem;
  text-transform: uppercase;
  text-align: center;
}

.container .products-container {
  display: grid;
  grid-template-columns: 1fr; /* Single column */
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 0 1rem; /* Optional: add some horizontal padding */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}





@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container .products-container .product {
  text-align: center;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

@keyframes productAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container .products-container .product:nth-child(2) {
  animation-delay: 0.1s;
}

.container .products-container .product:nth-child(3) {
  animation-delay: 0.2s;
}

.container .products-container .product:nth-child(4) {
  animation-delay: 0.3s;
}

.container .products-container .product:nth-child(5) {
  animation-delay: 0.4s;
}

.container .products-container .product:nth-child(6) {
  animation-delay: 0.5s;
}

.container .products-container .product:nth-child(7) {
  animation-delay: 0.6s;
}

.container .products-container .product:nth-child(8) {
  animation-delay: 0.7s;
}

.container .products-container .product:hover {
  outline: 0.2rem solid #222;
  outline-offset: 0;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.container .products-container .product img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.container .products-container .product:hover img {
  transform: scale(1.1);
}

.container .products-container .product h3 {
  padding: 1rem 0;
  font-size: 1rem; /* Decreased font size */
  color: #444;
}

.container .products-container .product:hover h3 {
  color: #27ae60;
}

.container .products-container .product .price {
  font-size: 1.2rem;
  color: #444;
}

.products-preview {
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto; /* Added for scrolling */
  border-radius: 15px; /* Rounded corners */
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.products-preview .preview {
  display: none;
  padding: 0.5rem;
  text-align: center;
  background: #fff;
  position: relative;
  margin: 1rem;
  width: 90%;
  max-width: 35rem;
  border-radius: 15px; /* Rounded corners */
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
}

.products-preview .preview.active {
  display: inline-block;
  transform: scale(1);
  opacity: 1;
}

.products-preview .preview img {
  height: 18rem;
  max-width: 100%;
  border-radius: 15px; /* Rounded corners */
}

.products-preview .preview .fa-times {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
  color: #444;
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.products-preview .preview .fa-times:hover {
  transform: rotate(90deg) scale(1.2);
}

.products-preview .preview h3 {
  color: #444;
  padding: 0.5rem 0;
  font-size: 1.2rem;
}

.products-preview .preview .stars {
  padding: 0.3rem 0;
  font-size: 1rem;
}

.products-preview .preview .stars i {
  color: #27ae60;
  transition: transform 0.2s ease;
}

.products-preview .preview .stars:hover i {
  transform: scale(1.2);
  color: #ffd700;
}

.products-preview .preview .stars span {
  color: #999;
}

.products-preview .preview p {
  line-height: 1;
  padding: 0.4rem 0;
  font-size: 1rem;
  color: #777;
}

.products-preview .preview .price {
  padding: 1rem 0;
  font-size: 1.2rem;
  color: #27ae60;
}

.products-preview .preview .buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.products-preview .preview .buttons a {
  flex: 1 1 30%; /* Adjusted for three buttons */
  padding: 0.8rem; /* Scaled down padding */
  font-size: 0.9rem; /* Scaled down font size */
  color: #444;
  border: 0.1rem solid #444;
  background: #c79c3f; /* Matching color */
  color: #fff; /* Matching text color */
  border-radius: 15px; /* Rounded corners */
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.products-preview .preview .buttons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.products-preview .preview .buttons a:hover::before {
  left: 100%;
}

.products-preview .preview .buttons a:hover {
  background: #f4c153; /* Matching hover color */
  color: #444;
}

.products-preview .preview .buttons a.cart {
  background: #c79c3f;
  color: #fff;
}

.products-preview .preview .buttons a.cart:hover {
  background: #f4c153;
}

.products-preview .preview .buttons a.buy:hover {
  background: #c79c3f;
  color: #fff;
}

.products-preview .preview .buttons a.share {
  background: #4267B2;
  color: #fff;
}

.products-preview .preview .buttons a.share:hover {
  background: #365899;
  color: #fff;
}

.products-preview .preview .buttons .check-availability {
  flex: 1 1 100%;
  padding: 1rem;
  font-size: 1rem;
  color: #fff;
  background: #c79c3f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.products-preview .preview .buttons .check-availability:hover {
  background: #f4c153;
}

@media (max-width: 991px) {
  html {
    font-size: 30%;
  }
}

@media (max-width: 768px) {
  .products-container {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    padding: 0 1rem;
  }

  .products-preview .preview img {
    height: 20rem;
  }
}

@media (max-width: 600px) {
  .products-container .product h3 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .container .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .container .products-container .product {
    padding: 0.1rem;
  }

 
}

@media (max-width: 576px) {
  .container .products-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .container .products-container .product img {
    height: 90px;
  }
}

  .products-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .products-container .product {
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
  }

  .products-container .product img {
    width: 100%;
    height: auto;
  }

  .products-preview .preview {
    width: 90%;
    max-width: 30rem;
    margin: 0.5rem;
    border-radius: 15px;
  }

  .products-preview .preview img {
    height: auto;
    max-width: 100%;
  }

  .products-preview .preview .fa-times {
    font-size: 2.5rem;
  }

  .products-preview .preview h3 {
    font-size: 1rem;
  }

  .products-preview .preview p,
  .products-preview .preview .price {
    font-size: 1rem;
  }

  .products-preview .preview .buttons a {
    flex: 1 1 100%;
    padding: 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
  }



/* Banner styles */
.banner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.banner:hover img {
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 600px) {
  .products-container .product h3 {
    font-size: 1rem; /* Adjust this value as needed */
  }
}

/* About Us styles */
.about-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.8s ease-in;
}

.about-section {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-section h1 {
  color: #503530;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-section h2 {
  color: #503530;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.about-section p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-section ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-section ul li {
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
}

.about-section ul li:before {
  content: "•";
  color: #503530;
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.marketplace-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.marketplace-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.marketplace-logos img:hover {
  opacity: 1;
}

.social-connect {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-connect a {
  color: #503530;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-connect a:hover {
  color: #8B5E55;
}

@media (max-width: 768px) {
  .about-content {
    padding: 0 1rem;
  }
  
  .about-section h1 {
    font-size: 2rem;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
  }
  
  .marketplace-logos {
    gap: 1rem;
  }
  
  .marketplace-logos img {
    height: 30px;
  }
}

.about-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-content h1 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content h2 {
    color: #444;
    margin: 1.5rem 0 1rem;
}

.about-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}
