/* ==========================================================================
   Trang chủ. Chỉ nạp ở trang chủ.
   ========================================================================== */

/* Danh mục: ô ảnh 4:5 phủ gradient, 5 cột desktop (10 ô = 2 hàng) */
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); text-align: left; }
.section-head--split::after { display: none; }
.section-head--split .lede { margin-inline: 0; }
.cat-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } .cat-grid--5 { grid-template-columns: repeat(5, 1fr); } }
.cat-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #7a2a1b, #2a0d08 75%); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__overlay {
  position: absolute; inset: auto 0 0 0; padding: var(--s-6) var(--s-3) var(--s-3);
  background: linear-gradient(180deg, transparent, rgba(59,2,3,.55) 45%, rgba(59,2,3,.92)); color: #fff;
}
.cat-tile__name { display: block; font-weight: 700; font-size: var(--t-base); line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.cat-tile__count { display: block; margin-top: .3em; font-size: var(--t-xs); color: var(--c-gold-300); letter-spacing: .04em; }

/* Cột blog */
.blog-col__title {
  font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: var(--s-2); margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--c-gold-300);
}
.blog-col__title a { color: var(--c-maroon-700); }
.blog-col__list { list-style: none; margin: 0; padding: 0; }
.blog-col__list li { margin: 0; padding: .55em 0; border-bottom: 1px dashed var(--c-line); }
.blog-col__list li:last-child { border-bottom: 0; }
.blog-col__list a { font-size: var(--t-sm); color: var(--c-body); line-height: 1.5; display: block; }
.blog-col__list a:hover { color: var(--c-accent); }

/* Sản phẩm mới về: lướt ngang trên mobile, lưới 4 cột trên desktop */
.new-products { background: var(--c-surface); }
.grid--scroll { display: grid; }
@media (max-width: 767px) {
  .grid--scroll { grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); scrollbar-width: none; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
  .grid--scroll::-webkit-scrollbar { display: none; }
  .grid--scroll > * { scroll-snap-align: start; }
}
@media (min-width: 768px) { .grid--scroll { grid-template-columns: repeat(4, 1fr); } }
.card__cat { margin: 0; font-size: var(--t-xs); color: var(--c-bronze); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge--new { background: var(--c-maroon-700); }
.card__cta { margin-top: var(--s-2); font-size: var(--t-xs); font-weight: 600; color: var(--c-maroon-700); opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.card:hover .card__cta { opacity: 1; transform: none; }

/* Slider banner — cuộn ngang scroll-snap, không thư viện (khôi phục sau lần cắt file nhầm) */
.hero { position: relative; background: var(--c-maroon-900); }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero__slide img { width: 100%; height: auto; aspect-ratio: 1600 / 603; object-fit: contain; background: var(--c-maroon-900); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: var(--s-3); display: flex; justify-content: center; gap: var(--s-2); }
.hero__dots a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.6); transition: background .18s var(--ease), transform .18s var(--ease); }
.hero__dots a[aria-selected="true"] { background: var(--c-gold-300); transform: scale(1.2); }
.hero__dots a { box-sizing: content-box; padding: 7px; background-clip: content-box; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.hero__dots a[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--c-gold-300); }

/* Ô danh mục: thẻ sáng — ảnh vuông + dải tên bên dưới (theo site cũ), thay cho overlay tối đè lên ảnh nền trắng */
.cat-tile { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: none; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c-gold-300); }
.cat-tile__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-tile__overlay { position: static; padding: var(--s-3) var(--s-3) var(--s-4); background: var(--c-surface); border-top: 1px solid var(--c-line); color: var(--c-ink); text-align: center; }
.cat-tile__name { font-size: var(--t-sm); color: var(--c-maroon-700); letter-spacing: .04em; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.cat-tile__count { display: inline-block; margin-top: .55em; padding: .3em .9em; border-radius: 999px; background: #f3e2b3; color: var(--c-maroon-900); font-weight: 600; letter-spacing: 0; }
.cat-tile:hover .cat-tile__count { background: var(--c-gold-500); }
.section-head--split { align-items: center; margin-bottom: var(--s-5); }
.section-head--split .lede { margin-top: .35em; }
.section-head--split h2 { margin-bottom: 0; }
/* Ảnh danh mục là ảnh vuông có nền trắng ở nửa dưới → cắt 4:3 lấy phần trên (sản phẩm), tránh mảng trắng */
.cat-tile__media { aspect-ratio: 4 / 3; }
.cat-tile__media img { object-position: 50% 18%; }

/* Giới thiệu + video (khối dodong/about) */
.about-block { background: var(--c-surface); }
.about { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); } }
.about__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-2); cursor: pointer; }
.about__video img, .about__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.about__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(0,0,0,.25)); border: 0; cursor: pointer; transition: background .2s var(--ease); }
.about__play:hover { background: rgba(0,0,0,.35); }
.about__play svg { filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); transition: transform .2s var(--ease); }
.about__play:hover svg { transform: scale(1.08); }
.about__img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.about__title { font-size: var(--t-xl); margin: 0 0 var(--s-3); padding-left: var(--s-3); border-left: 4px solid var(--c-gold-500); line-height: 1.2; }
.about__body p { font-size: var(--t-base); line-height: 1.7; color: var(--c-body); margin: 0 0 var(--s-3); }
.about__body .btn { margin-top: var(--s-2); }

/* Dải ảnh trượt (khối dodong/gallery-strip) */
.strip-block { padding-block: var(--s-6) 0; }
.strip-block__title { font-size: var(--t-lg); margin: 0 0 var(--s-4); text-align: center; }
.strip { position: relative; }
.strip__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 50%; scroll-snap-align: start; aspect-ratio: 1 / 1; background: #15100e; }
@media (min-width: 640px) { .strip__item { flex-basis: 33.333%; } }
@media (min-width: 992px) { .strip__item { flex-basis: 20%; } }
.strip__item img, .strip__item a { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip__item a img { transition: transform .5s var(--ease); }
.strip__item a:hover img { transform: scale(1.04); }
.strip__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--c-maroon-700); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); }
.strip__btn--prev { left: var(--s-3); } .strip__btn--prev svg { transform: rotate(90deg); }
.strip__btn--next { right: var(--s-3); } .strip__btn--next svg { transform: rotate(-90deg); }
.strip__btn:hover { background: var(--c-gold-500); }
