/* === PRODUCT SECTIONS (ORIGINAL STYLE) === */
.section_flashsale, .section_street_lights {
  padding: 25px 0;
  background: var(--body-background);
}
.section_flashsale .row, .section_street_lights .row {
  margin-left: -5px;
  margin-right: -5px;
  display: flex;
  flex-wrap: wrap;
}

/* Product Item */
.product-item { padding: 5px; box-sizing: border-box; }

/* Product Card */
.product-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Product Image */
.product-image {
  position: relative;
  overflow: hidden;
  background: var(--image-bg);
  padding: 8px;
}
.product-image img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease-out;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Discount badge */
.product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--label-background);
  color: var(--label-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
}

/* Video icon overlay */
.video-icon {
  position: absolute;
  z-index: 9;
  right: 15px;
  bottom: 5px;
  width: 28px;
}

/* Compare button */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
}
.product-card:hover .product-actions {
  opacity: 1;
}
.product-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white-bg);
  border-radius: 50%;
  color: var(--text-muted);
  box-shadow: -2px 2px 6px rgba(0,0,0,0.25);
  margin: 5px;
}
.product-compare:hover {
  color: var(--primary-color);
}

/* Product Info */
.product-info {
  padding: 8px;
}
.product-info h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info h3 a {
  color: var(--text-color);
  text-decoration: none;
}
.product-info h3 a:hover {
  color: var(--primary-color);
}

/* Price */
.product-price {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-price .price {
  color: var(--price-color);
  font-size: 16px;
  font-weight: 700;
}
.product-price .old-price {
  color: var(--text-secondary-color);
  font-size: 14px;
  text-decoration: line-through;
}

/* Promotion badge */
.product-promotion {
  /* display: flex; */
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-promotion img {
  width: 14px;
  height: 14px;
}

/* Features list */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: var(--nav-link-color);
  line-height: 1.8;
}
.product-features li::before {
  content: '•';
  margin-right: 5px;
  color: var(--primary-color);
}
.product-features a {
  color: var(--link-color);
  text-decoration: none;
}

/* Product Tabs */
.product-tabs {
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.product-tabs li a {
  display: block;
  padding: 8px 20px;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
}
.product-tabs li.active a,
.product-tabs li a:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

/* View all button */
.view-all-btn {
  display: inline-block;
  padding: 10px 35px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.view-all-btn:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

/* Product thumbnail uniform sizing - override vendor embed-responsive img */
.item_product_main .product-thumbnail .embed-responsive img.product-thumbnail__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* === RESPONSIVE PRODUCTS === */
@media (max-width: 991px) {
  .section_flashsale .row,
  .section_street_lights .row {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(5, 30%);
    overflow: auto;
    justify-content: start;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .section_flashsale .row::-webkit-scrollbar,
  .section_street_lights .row::-webkit-scrollbar {
    display: none;
  }
  .section_flashsale, .section_street_lights { padding: 20px 0; }
}
@media (max-width: 767px) {
  .section_flashsale .row,
  .section_street_lights .row {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  .product-info h3 { font-size: 12px; }
  .product-price .price { font-size: 14px; }
  .product-features { display: none; }
}
@media (max-width: 480px) {
  .product-features { display: none; }
}
