/* Reviewed products block (layout mirrors banner_new, scoped to .reviewed-products) */
: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;
}

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

.reviewed-products .inner { width: 100%; max-width: var(--max-width); margin: 0 auto; overflow-x: hidden; }

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

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

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

.reviewed-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;
}

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

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

.reviewed-products .pages {
  position: relative;
  width: 100%;
  height: 470px;
}

.reviewed-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 0 10px;
  box-sizing: border-box;
  transition: transform 0.5s ease-in-out;
}

.reviewed-products .page.active {
  display: flex;
  gap: 15px;
  max-height: 470px;
}

.reviewed-products .product-card {
  flex: 0 0 235px;
  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: 440px;
  max-width: 290px;
  box-sizing: border-box;
}

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

@media (min-width: 990px) and (max-width: 1192px) {
  .reviewed-products .product-card {
		max-width: 199px;
		padding-bottom: 62px;
		height: 429px;
	}
	.reviewed-products .product-img img {
		max-height: 199px;
		max-width: 199px;
	}
	.reviewed-products .product-img {
		max-height: 199px;
	}
	.reviewed-products.page.active {
		height: 440px;
	}
	.reviewed-products .pages {
		height: 440px;
	}
}

@media (min-width: 1080px) {
  .reviewed-products .page { padding: 0 12px; }
  .reviewed-products .product-card { flex: 0 0 235px; }
}

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

.reviewed-products .product-img img {
  width: 235px;
  height: 235px;
  object-fit: cover;
  display: block;
}

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

.reviewed-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;
}

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

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

.reviewed-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;
}

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

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

/* Responsive card widths (same as banner) */
@media (min-width: 990px) and (max-width: 1192px) {
  .reviewed-products .product-card { flex: 0 0 calc(33.333% - (2 / 3 * var(--gap))); }
  .reviewed-products .product-card { max-width: 199px; padding-bottom: 62px; height: 406px; }
  .reviewed-products .page.active { height: 440px; }
  .reviewed-products .pages { height: 440px; }
}
@media (min-width: 871px) and (max-width: 990px) {
  .reviewed-products .pages { 
    height: 450px;
  }
  .reviewed-products .product-card { 
    max-width: 235px;
  }
 } 

@media (min-width: 736px) and (max-width: 870px) {
  .reviewed-products { padding: 32px 16px; }
  .reviewed-products h2 { font-size: 24px; padding-left: 10px; }
  .reviewed-products .product-card { max-width: 170px; height: 382px; }
  .reviewed-products .product-img { max-width: 177px; max-height: 177px; aspect-ratio: 1 / 1; }
  .reviewed-products .product-img img { max-width: 177px; max-height: 177px; }
  .reviewed-products .page.active { height: 390px; }
  .reviewed-products .pages { height: 390px; }
}

@media (max-width: 596px) {
  .reviewed-products .product-card { max-width: 198px; padding-bottom: 62px; height: 414px; }
  .reviewed-products .product-img img { height: 206px; max-width: 206px; }
  .reviewed-products .product-img { height: 206px; max-width: 206px;}
  .reviewed-products .page.active { height: 440px; }
  .reviewed-products .pages { height: 440px; }
}
@media (max-width: 499px) {
  .reviewed-products .product-card { max-width: 172px; height: 380px; }
  .reviewed-products .product-img img { height: 172px; max-width: 172px; }
  .reviewed-products .product-img { height: 172px; max-width: 172px; }
  .reviewed-products .page.active { height: 400px; }
  .reviewed-products .pages { height: 400px; }
}
@media (max-width: 446px) { .reviewed-products .product-card { max-width: 162px; } .reviewed-products .product-name { font-size: 14px; } .reviewed-products .product-code { font-size: 11px; } }
@media (max-width: 426px) { .reviewed-products .product-card { max-width: 152px; height: 356px; } 
  .reviewed-products .product-img img { height: 152px; max-width: 152px; }
  .reviewed-products .product-img { height: 152px; max-width: 152px; } }
@media (max-width: 406px) {
  .reviewed-products .product-card { max-width: 142px; }
  .reviewed-products .product-name { font-size: 14px; }
  .reviewed-products .product-code { font-size: 11px; }
  .reviewed-products .product-img img { height: 150px; max-width: 150px; }
  .reviewed-products .product-img { height: 150px; max-width: 150px; }
  .reviewed-products .product-card { height: 353px; }
  .reviewed-products .product-price { font-size: 16px; }
}
@media (max-width: 386px) {
  .reviewed-products .product-card { max-width: 170px; }
  .reviewed-products .product-name { font-size: 16px; }
  .reviewed-products .product-code { font-size: 14px; }
  .reviewed-products .product-img img { height: 170px; max-width: 170px; }
  .reviewed-products .product-img { height: 170px; max-width: 170px; }
  .reviewed-products .product-card { height: 376px; }
  .reviewed-products .page.active { height: 392px; gap: 8px; }
  .reviewed-products .pages { height: 392px; }
  .reviewed-products {padding: 48px 0px; }
  .reviewed-products .header { padding-left: 15px; }
}

@media (max-width: 363px) {
  .reviewed-products .product-card { max-width: 163px; }
  
}

@media (max-width: 340px) {
  .reviewed-products .product-card { max-width: 270px; }
  .reviewed-products .product-name { font-size: 16px; }
  .reviewed-products .product-code { font-size: 14px; }
  .reviewed-products .product-img img { height: 235px; max-width: 235px; }
  .reviewed-products .product-img { height: 235px; max-width: 235px; }
  .reviewed-products .product-card { height: 443px; }
  .reviewed-products .page.active { height: 450px; }
  .reviewed-products .pages { height: 450px; }
  
}
