/* Harmonized styles for new products section */
:root {
  --bg: #f8f6f4;
  --card: #ffffff;
  --muted: #8a7a6a;
  --accent: #f5ede5;
  --primary: #d8a07e;
  --radius: 18px;
  --gap: 22px;
  --max-width: 1121px;
  --container-padding: 28px;
  --shadow: 0 2px 0 rgba(0,0,0,0.02);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.new-products {
  background: var(--bg);
  padding: 48px 16px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.new-products .inner {
  width: 100%;
  max-width: var(--max-width);
}

.new-products .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.new-products h2 {
  font-size: 28px;
  color: #5d4037;
  margin: 0;
  font-weight: 600;
}

.new-products .nav-buttons {
  display: flex;
  gap: 10px;
}

.new-products .carousel-btn {
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-products .carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.new-products .carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.new-products .pages {
  position: relative;
  width: 100%;
  height: 490px;
}

.new-products .page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  padding: 0 0px 10px;
  box-sizing: border-box;
  transition: transform 0.5s ease-in-out;
}

.new-products .page.active {
  display: flex;
  gap: 15px;
  padding-top: 4px;
}

.new-products .product-card {
  flex: 0 0 255px;
  background: var(--card);
  border-radius: var(--radius);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-bottom: 60px;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease;
  height: 460px;
  max-width: 290px;
  box-sizing: border-box;
}

.new-products .product-card:hover {
  border: 1px solid #f7c89a;
}

@media (min-width: 1080px) {
  .new-products .page {
    padding: 0 12px;
  }

  .new-products .product-card {
    flex: 0 0 255px;
  }

  .new-products .carousel-btn.left {
    left: -44px;
  }

  .new-products .carousel-btn.right {
    right: -44px;
  }
}

.new-products .product-img {
  width: 100%;
  height: 255px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.new-products .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.new-products .product-code {
  color: var(--muted);
  font-size: 14px;
  margin: 0px 0 5px 0;
  padding-left: 5px;
}

.new-products .product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin: 8px 0;
  height: 110px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  padding-left: 5px;
}

.new-products .product-availability {
  font-size: 14px;
  color: #4CAF50;
  position: absolute;
  bottom: 50px;
  left: 10px;
  margin: 0;
  padding-left: 0;
}

.new-products .product-price {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  position: absolute;
  bottom: 20px;
  left: 10px;
  margin: 0;
  padding-left: 0;
}

.new-products .add-to-cart {
  background: #fff;
  color: #fff;
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 10px;
  transition: background 0.3s;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-products .add-to-cart:hover {
  background: #f5ede5;
}

/* Remove underline from product card links */
.new-products .product-card a {
  text-decoration: none;
  color: inherit;
}
.new-products .product-card a:hover,
.new-products .product-card a:focus,
.new-products .product-card a:active {
  text-decoration: none;
}


/* Responsive */

@media (max-width: 734px) {
  .new-products .product-card {
    flex: 0 0 calc(50% - (1 / 2 * var(--gap)));
  }
}

@media (max-width: 735px) {
  .new-products {
    padding: 32px 16px;
  }

  .new-products h2 {
    font-size: 24px;
    padding-left: 10px;
  }

  .new-products .product-card {
    flex: 0 0 190px;
    height: 458px;
    max-width: 253px;
  }

  .new-products .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .new-products .product-img img {
    width: 100%;
    max-height: 253px;
  }

  .new-products .carousel-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 572px) {
  .new-products .product-card {
    max-width: 229px;
    height: 432px;
  }
  .new-products .product-img {
    max-width: 229px;
    max-height: 229px;
    aspect-ratio: 1 / 1;
  }

  .new-products .product-img img {
    max-width: 229px;
    max-height: 229px;
  }

}

@media (max-width: 520px) {
  .new-products .product-card {
    max-width: 206px;
    padding-bottom: 62px;
    height: 411px;
  }
  .new-products .product-img img {
    height: 206px;
  }
  .new-products .product-img {
    height: 206px;
  }
  .new-products .page.active {
    height: 440px;
  }
  .new-products .pages {
    height: 440px;
  }

}

@media (max-width: 474px) {
  .new-products .product-card {
    max-width: 160px;
    height: 361px;
  }
  .new-products .product-img img {
    max-height:  160px;
  }
  .new-products .product-img {
    max-height:  160px;
  }
  .new-products .page.active {
    height: 400px;
  }
  .new-products .pages {
    height: 400px;
  }

}
@media (max-width: 422px) {
  .new-products .product-card {
    max-width: 160px;
  }
  .new-products .product-name {
    font-size: 14px;
  }
  .new-products .product-code {
    font-size: 11px;
  }

}
@media (max-width: 402px) {
  .new-products .product-card {
    max-width: 160px;
  }

}
@media (max-width: 382px) {
  .new-products .product-card {
    max-width: 170px;
  }
  .new-products .product-name {
    font-size: 14px;
  }
  .new-products .product-code {
    font-size: 11px;
  }
  .new-products .product-img img {
    height: 170px;
    max-height: 170px;
  }
  .new-products .product-img {
    height: 170px;
    max-height: 170px;
  }
  .new-products .product-card {
    height: 371px;
  }
  .new-products .product-price {
    font-size: 16px;
  }
  .new-products{
    padding: 32px 6px;
  } 
  .new-products .page.active {
    gap: 10px;
  }

}

@media (max-width: 362px) {
      .new-products .product-card {
        max-width: 158px;
        height: 359px;
      } 
      .new-products .product-img img {
        height: 158px;
      }
      .new-products .product-img {
        height: 158px;
      }
}
@media (max-width: 340px) {
  .new-products .product-card {
    max-width: 253px;
    flex: 0 0 253px;
  }
  .new-products .product-name {
    font-size: 16px;
  }
  .new-products .product-code {
    font-size: 14px;
  }
  .new-products .product-img img {
    max-height:  253px;
    max-width: 253px;
    height: 253px;
  }
  .new-products .product-img {
    max-height:  253px;
    max-width: 253px;
    height: 253px;
  }
  .new-products .product-card {
    height: 458px;
  }
  .new-products .page.active {
    height: 470px;
  }
  .new-products .pages {
    height: 470px;
  }

}