/* =========================================
   TRENDING & BEST SELLER PRODUCT SECTIONS
   ========================================= */

.products-section {
  padding: 50px 0 70px;
  background: #F7F1E9; /* Warm cream matching Exclusive Offers */
}

.products-section + .products-section {
  background: #FAF0E1; /* Warmer light gold */
  padding-top: 50px;
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---- Header — Elegant Centered Divider Style ---- */
.products-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.products-header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 8px;
}

.products-header-title-row::before,
.products-header-title-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a96e, transparent);
}

.products-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5c3a21;
  margin: 0;
  white-space: nowrap;
  padding: 0 12px;
}

.products-header-ornament {
  width: 40px;
  height: auto;
  opacity: 0.75;
  margin-top: 4px;
}

.products-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.products-view-all {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  background: #5c3a21;
  border-radius: 20px;
  padding: 7px 22px;
  text-decoration: none;
  transition: background 0.3s;
}

.products-view-all:hover { background: #3d2410; }

/* ---- 5×2 Product Grid ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ---- Product Card ---- */
.product-card-v2 {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card-v2:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* Badge */
.product-card-v2__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f5a623;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
  text-transform: uppercase;
}

.product-card-v2__badge.bestseller { background: #c0392b; }
.product-card-v2__badge.sale { background: #27ae60; }

/* Image */
.product-card-v2__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0ebe3;
}

.product-card-v2__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}

.product-card-v2:hover .product-card-v2__img {
  transform: scale(1.06);
}

/* Info */
.product-card-v2__info {
  padding: 10px 12px 50px; /* extra bottom so cart btn doesn't overlap */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-v2__name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2c1a0e;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-v2__price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-v2__price {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #5c3a21;
}

.product-card-v2__original {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}

.product-card-v2__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Share button */
.product-card-v2__share {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #5c3a21;
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.3s;
  z-index: 3;
}
.product-card-v2__share:hover {
  background: #5c3a21;
  color: #fff;
  border-color: #5c3a21;
}

/* Button Group (Buy Now / Add to Cart) */
.product-card-v2__btn-group {
  display: flex;
  border-top: 1px solid #eee;
  background: #fff;
}

.pc-btn-half {
  flex: 1;
  padding: 12px 5px;
  border: none;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pc-btn-cart {
  color: #5c3a21;
  border-right: 1px solid #eee;
}
.pc-btn-cart:hover {
  background: #fdf7ee;
  color: #3d2410;
}

.pc-btn-buy {
  background: #5c3a21;
  color: #fff;
}
.pc-btn-buy:hover {
  background: #3d2410;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .products-container { padding: 0 16px; }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
