.widget_banner_product_widget {
  margin-top: 30px;
}

/* Tiêu đề */
.banner-product-title-wrap {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.banner-product-title {
  display: inline-block;
  background: var(--title-bg, #0073aa);
  color: var(--title-color, #fff);
  padding: 10px 25px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.banner-product-line {
  height: 3px;
  width: 100%;
  background: var(--title-bg, #0073aa);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Lưới sản phẩm */
.banner-product-grid {
  display: grid;
  gap: 15px;
}
.banner-product-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.banner-product-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.banner-product-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }

.banner-product-item {
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.7);
}
.banner-product-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.banner-product-thumb img {
  max-width: 100%;
}

.banner-product-name {
  font-size: 16px;
  margin: 10px 0 5px;
  color: #000;
}
.banner-product-name a  {
  color: #000;
}

.banner-product-price {
  display: block;
  font-weight: 600;
  color: #d33;
}
/* ================================
   RESPONSIVE OPTIMIZATION
   ================================ */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
    .banner-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile lớn: <= 768px */
@media (max-width: 768px) {
    .banner-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .banner-product-title {
        font-size: 16px;
        padding: 8px 18px;
    }

    .banner-product-name {
        font-size: 14px;
    }
}

/* Mobile nhỏ: <= 480px */
@media (max-width: 480px) {
    .banner-product-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px;
    }

    .banner-product-item {
        padding: 10px;
    }
}
