/* ── Homepage-only styles ─────────────────────────────────────────── */
/* Loaded only on / (trang chủ), không load trên trang con */

/* ── Hero: sidebar (left) + right-col (slider + info) ─────────────── */
.home-hero { padding: 0 0 16px 0; }
.home-hero .container { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.home-hero-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}

/* Right column: block — slider natural height, info strip sát dưới */
.home-right-col { display: block; }
.home-slider-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden; position: relative; background: #fff;
}

/* ── Left sidebar ─────────────────────────────────────────────────── */
.home-sidebar {
  border-right: 1px solid var(--border);
  background: #fff;
}
.home-sidebar-header {
  background: var(--header-bg); color: #fff;
  padding: 14px 16px; font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px;
}
.home-sidebar-header::before {
  content: ''; display: inline-block; width: 3px; height: 16px;
  background: var(--primary); border-radius: 2px;
}
.home-cat-list { list-style: none; }
.home-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; font-size: .78rem; font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--text); transition: background .15s, color .15s;
  border-bottom: 1px solid var(--bg-gray);
}
.home-cat-item:hover { background: #f0f8ff; color: var(--primary); }
.cat-icon-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cat-icon-wrap img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.cat-star { font-size: 1.1rem; color: var(--primary); }
.cat-name { flex: 1; line-height: 1.3; }

/* ── Right: Home slider ───────────────────────────────────────────── */
.home-slider-wrap { overflow: hidden; position: relative; background: #f8f8f8; }
.home-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hs-track {
  display: flex; height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.hs-slide { min-width: 100%; height: 100%; background: #fff; display: flex; align-items: center; }
.hs-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Prev/next */
.hs-prev, .hs-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.7); color: #333; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: .2s; border: 1px solid rgba(0,0,0,.1);
}
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-prev:hover, .hs-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Dots */
.hs-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.6); cursor: pointer; transition: .2s;
}
.hs-dot.active { background: var(--primary); transform: scale(1.3); }

/* ── Company info strip ────────────────────────────────────────────── */
.home-info-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}
.home-info-text h2 {
  font-size: 1rem; font-weight: 700; margin-bottom: 5px;
  font-family: 'Roboto Slab', sans-serif; color: var(--header-bg);
}
.home-info-text > p {
  font-size: .82rem; margin-bottom: 10px; line-height: 1.5;
}
.home-info-contact {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.home-info-contact li {
  display: flex; align-items: baseline; gap: 7px;
  font-size: .95rem; color: #444; line-height: 1.45;
}
.home-info-contact li i {
  font-size: .95rem; width: 14px; text-align: center; flex-shrink: 0;
}
.home-info-contact li em { font-style: normal; }

.home-info-contact a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero-inner { grid-template-columns: 200px 1fr; }
  .home-cat-item { padding: 4px 10px; font-size: .78rem; }
  .cat-icon-wrap, .cat-icon-wrap img { width: 28px; height: 28px; }
}
@media (max-width: 768px) {
  .home-hero .container { padding: 0; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
  .home-info-strip { padding: 16px; }
  .home-info-text p { display: none; }
}

/* ── Feature Boxes (home only) ────────────────────────────────────────── */
.feature-boxes { padding: 0 0 16px; }
.feature-boxes > .container { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px 32px; }
.feature-box { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.feature-icon img { width: 60px; height: 60px; object-fit: contain; }
.feature-icon-text { font-size: 2.2rem; line-height: 1; }
.feature-body { flex: 1; }
.feature-body h3 { font-size: .9rem; font-weight: 700; color: var(--text); font-family: 'Roboto', sans-serif; }
.feature-body p { font-size: .9rem; line-height: 1.5; }

/* ── Product / Category Section blocks (home only) ───────────────────── */
.product-section,
.category-section { padding: 0 0 16px; }
.product-section > .container,
.category-section > .container { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px; }

/* ── Category Grid (home only) ───────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); text-align: center; font-size: .82rem; font-weight: 700; color: var(--text); border: 1px solid var(--border); }
.category-card:hover { color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: var(--primary); }
.category-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border); }
.cat-placeholder { width: 64px; height: 64px; background: var(--bg-gray); border-radius: 50%; }

/* ── Load More (home only) ───────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 20px; }
.btn-load-more { min-width: 180px; }
.load-more-count { font-weight: 400; font-size: .85em; opacity: .7; }

/* ── Responsive (home blocks) ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid  { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 768px) {
  .feature-grid  { grid-template-columns: repeat(2,1fr); gap: 12px 16px; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .home-hero .container { padding: 0; }
  .product-section > .container,
  .category-section > .container { padding: 24px 10px; }
}
@media (max-width: 480px) {
  .feature-grid  { grid-template-columns: repeat(1,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
}
