/* Article Layout Styles */
.container-article {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 15px;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.breadcrumb-nav a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #de0985;
  text-decoration: none;
}

.breadcrumb-nav span {
  color: #666;
  margin: 0 8px;
  font-size: 14px;
}

/* Sidebar Styles */
.sidebar-article {
  margin-top: 20px;
}

.sidebar-section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.sidebar-title h4 {
  color: #de0985;
  margin-bottom: 15px;
  border-bottom: 2px solid #de0985;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.sidebar-title h4 i {
  margin-right: 8px;
  color: #ff6b35;
}

/* Sản phẩm hot */
.sidebar-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  transform: scale(1);
}

.sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-item:hover {
  transform: scale(1.05);
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin: 0 -10px 15px -10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image {
  width: 60px;
  height: 60px;
  margin-right: 12px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.product-info h5 {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.product-info h5 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-info h5 a:hover {
  color: #de0985;
}

.product-contact {
  margin-top: 8px;
}

.contact-zalo {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #de0985;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  background-color: #fdf2f8;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #fce7f3;
}

.contact-zalo:hover {
  color: #be185d;
  background-color: #fce7f3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(222, 9, 133, 0.2);
}

.contact-zalo i {
  margin-right: 5px;
  font-size: 11px;
}

/* Sản phẩm liên quan */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.related-product-item {
  text-align: center;
  transition: all 0.3s ease;
  transform: scale(1);
}

.related-product-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-product-item a {
  display: block;
  text-decoration: none;
  color: #333;
}

.related-product-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e9ecef;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.related-product-item:hover img {
  border-color: #de0985;
}

.related-product-item .product-name {
  font-size: 12px;
  line-height: 1.3;
  display: block;
  color: #333;
  transition: color 0.3s ease;
}

.related-product-item:hover .product-name {
  color: #de0985;
}

/* Article Content */
.content-article {

}

.article-header {
  margin-bottom: 15px;
}

.title-new h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
  color: #de0985;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 5px;
  justify-content: center;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  color: #de0985;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 15px 0;
}

.article-content h1, .article-content h2, .article-content h3 {
  color: #de0985;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* No data message */
.no-data {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar-article {
    margin-top: 0;
    margin-bottom: 30px;
  }
  
  .content-article {
    padding: 20px;
  }
  
  .title-new h1 {
    font-size: 24px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .related-product-item img {
    height: 60px;
  }
  
  .related-product-item .product-name {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-item {
    flex-direction: column;
    text-align: center;
  }
  
  .product-image {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
  }
  
  .product-contact {
    margin-top: 10px;
  }
  
  .contact-zalo {
    font-size: 13px;
    justify-content: center;
    padding: 6px 12px;
  }
}

/* Performance Optimization */
.lazy-load {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Preload critical resources */
.preload {
  display: none;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-section {
  animation: fadeInUp 0.6s ease-out;
}

.content-article {
  animation: fadeInUp 0.8s ease-out;
}

/* Critical CSS for above-the-fold content */
.breadcrumb-nav,
.article-header,
.sidebar-title {
  will-change: transform;
}