/* ===================================
   HOME PAGE CUSTOM STYLES
   =================================== */

/* Style cho sản phẩm có thể click */
.item-block-pic.New {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-block-pic.New:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.js-name-b2[onclick] {
  transition: color 0.3s ease;
}

.js-name-b2[onclick]:hover {
  color: var(--brand, #ff0000);
  text-decoration: underline;
}

/* Style cho slider product */
.product-img__item[onclick] {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-img__item[onclick]:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.product-slider__title[onclick] {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product-slider__title[onclick]:hover {
  color: var(--brand, #ff0000);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style cho sản phẩm chất lượng */
.blog-item.bogoc3[onclick] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item.bogoc3[onclick]:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.blog-section {
  padding: 60px 0;
  background: #fafafa;
}

.blog-section .row {
  justify-content: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.blog-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
}

.blog-header p {
  color: #777;
  font-size: 15px;
}

/* Blog Card */
.blog-card {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-thumb img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover;
}

.blog-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  padding: 5px 10px;
}

.blog-content {
  padding: 22px;
}

.blog-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.blog-meta i {
  color: var(--brand);
  margin-right: 4px;
}

.blog-title {
  font-size: 20px !important;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
}

.blog-title a:hover {
  color: rgb(20, 30, 21);
}

.blog-desc {
  font-size: 15px !important;
  color: #555;
  min-height: 60px;
  line-height: 1.6;
}

.blog-readmore {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.blog-readmore:hover {
  color: var(--brand);
}

/* Swiper Blog */
.blogSwiper {
  padding: 40px 0 60px;
}

.blogSwiper .swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
  .blog-card {
    max-width: 90% !important;
  }
}

@media (max-width: 768px) {
  .blog-card {
    max-width: 100% !important;
    margin: 0 12px !important;
  }

  .blog-thumb img {
    height: 220px !important;
  }

  .blog-title {
    font-size: 18px !important;
  }

  .blog-desc {
    font-size: 13px;
  }
}
