/* Home refresh — livelier rhythm on the storefront home page. Loaded after style.css/media.css; scoped to home sections only. */

/* ── Category quick-links (round icons) ── */
.homecats { padding: 26px 0 6px; }
.homecats_list { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 10px; scrollbar-width: none; justify-content: center; }
.homecats_list::-webkit-scrollbar { display: none; }
.homecats_item { flex: 0 0 auto; width: 104px; text-align: center; text-decoration: none; scroll-snap-align: start; }
.homecats_ico { width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(145deg, #ffe8f0, #ffd0e1); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(232, 70, 124, .18); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.homecats_item:nth-child(even) .homecats_ico { background: linear-gradient(145deg, #e7edff, #d0dbff); box-shadow: 0 4px 14px rgba(59, 91, 219, .2); }
.homecats_item:hover .homecats_ico { transform: translateY(-4px) scale(1.04); }
.homecats_ico img { width: 56px; height: 56px; object-fit: contain; }
.homecats_name { display: block; color: #2a1a12; font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ── Flash sale band ── */
.wrap-section.fssection { background: linear-gradient(135deg, #ffe8f0 0%, #ffd0e1 100%); padding: 34px 0; margin-top: 18px; }

/* ── Category blocks: alternating cards, horizontal scroll rows ── */
.wrap-section.dmcap { background: #f6f8ff; padding: 34px 0 44px; }
.wrapdmcap { padding: 20px 20px 8px; border-radius: 20px; background: #fff; box-shadow: 0 2px 14px rgba(42, 26, 18, .06); scroll-margin-top: 90px; }
.wrapdmcap + .wrapdmcap { margin-top: 28px; }
.wrapdmcap:nth-child(even) { background: #e7edff; }
.wrapdmcap_heading { background: transparent; box-shadow: none; padding: 0 0 6px; margin-bottom: 14px; gap: 10px; border-bottom: 2px dashed rgba(232, 70, 124, .28); }
.wrapdmcap:nth-child(even) .wrapdmcap_heading { border-bottom-color: rgba(59, 91, 219, .35); }
.wrapdmcap_heading h2 { color: #c2255c; }
.wrapdmcap:nth-child(even) .wrapdmcap_heading h2 { color: #2b44a8; }
.wrapdmcap_heading h2 { margin-right: auto; order: 1; }
.wrapdmcap_heading .catProduct { order: 2; }
.wrapdmcap_all { order: 3; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(42, 26, 18, .15); font-size: 13px; font-weight: 700; color: #e8467c; text-decoration: none; white-space: nowrap; }
.wrapdmcap:nth-child(even) .wrapdmcap_all { color: #4c6ef5; }
.wrapdmcap_all:hover { text-decoration: underline; }
.wrapdmcap .grid-product { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(25% - 15px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin-bottom: 0; scrollbar-width: thin; }
.wrapdmcap .grid-product > * { scroll-snap-align: start; }

/* ── Banners / brands ── */
.quangcao_chu { margin-top: 34px; border-radius: 18px; overflow: hidden; }
.brand_indexchu { margin-top: 34px; padding: 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 2px 14px rgba(42, 26, 18, .06); }

@media (max-width: 991px) {
  .wrapdmcap .grid-product { grid-auto-columns: calc(33.333% - 13px); }
}
@media (max-width: 767px) {
  .homecats_list { justify-content: flex-start; gap: 12px; }
  .homecats_item { width: 84px; }
  .homecats_ico { width: 70px; height: 70px; }
  .homecats_ico img { width: 44px; height: 44px; }
  .wrapdmcap { padding: 14px 12px 4px; border-radius: 14px; }
  /* media.css forces repeat(2,1fr)!important on mobile; override so the row scrolls with equal-width cards */
  .wrapdmcap .grid-product { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc(50% - 8px) !important; gap: 12px !important; }
  .wrap-section.fssection { padding: 22px 0; }
}

/* Bottom nav: Zalo chat badge (no Font Awesome glyph for Zalo) */
.app-bottomnav__zalo-ico { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 38px; padding: 0 6px; border-radius: 10px; background: #0068ff; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .2px; }

/* Wordmark logo (replaces the legacy cat logo so the brand reads as its own shop) */
.hd-wordmark { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; }
.hd-wordmark .wm-paw { width: 46px; height: 46px; flex: none; }
.hd-wordmark .wm-text { display: flex; flex-direction: column; line-height: 1; font-family: 'Baloo Bhai 2', 'Inter', sans-serif; }
.hd-wordmark .wm-text b { font-size: 26px; font-weight: 800; color: #2b44a8; letter-spacing: -.3px; }
.hd-wordmark .wm-text i { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: 5px; color: #e8467c; margin-top: 2px; }
.hd-wordmark.is-light .wm-text b { color: #fff; }
.hd-wordmark.is-light .wm-text i { color: #ffa8c5; }
.footer.footer-v3 .ft3-logo.hd-wordmark .wm-paw { width: 40px; height: 40px; }
@media (max-width: 767px) { .hd-wordmark .wm-paw { width: 34px; height: 34px; } .hd-wordmark .wm-text b { font-size: 19px; } .hd-wordmark .wm-text i { font-size: 10px; letter-spacing: 4px; } }
