/* ===========================
   Головна, нижня частина (між брендами й підвалом): нові надходження рядком,
   «Підбірки», популярні категорії з фото, популярні товари. Картки — home.css.
   =========================== */
.hs { padding-top: 34px; }
.hs--last { padding-bottom: 20px; }
.hs a { text-decoration: none; }
.hs a:hover { text-decoration: none; }
.hs a:focus-visible, .hs button:focus-visible { outline: 3px solid #667eea; outline-offset: 2px; border-radius: 10px; }

/* заголовок секції */
.hs-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.hs-h h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 700; color: #1f2133; }
.hs-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.hs-ic--new { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.hs-ic--cat { background: linear-gradient(135deg, #667eea, #764ba2); }
.hs-ic--top { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hs-h-r { display: flex; align-items: center; gap: 10px; }
.hs-all { padding: 10px 16px; border-radius: 12px; background: #eef0ff; font-size: 15px; font-weight: 800; color: #4f5bd5 !important; white-space: nowrap; transition: background .2s ease; }
.hs-all:hover { background: #e0e4ff; }
.hs-nav { display: flex; gap: 8px; }
.hs-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e5f0; background: #fff; font-size: 22px; font-weight: 900; line-height: 1; color: #1f2133; cursor: pointer; transition: border-color .2s ease; }
.hs-arrow:hover { border-color: #667eea; }

/* нові надходження — один рядок, що гортається */
.products-grid-home.hs-row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 24px) / 6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.products-grid-home.hs-row::-webkit-scrollbar { display: none; }
.products-grid-home.hs-row > .product-card-home { scroll-snap-align: start; }

/* підбірки */
.hs-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hs-pick { position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 22px; border-radius: 22px; color: #fff !important; transition: transform .2s ease, box-shadow .2s ease; }
.hs-pick:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(30, 20, 80, .18); }
.hs-pick::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.hs-pick--sale { background: linear-gradient(120deg, #ef4444, #f97316); }
.hs-pick--new { background: linear-gradient(120deg, #10b981, #0ea5e9); }
.hs-pick--top { background: linear-gradient(120deg, #f59e0b, #ef4444); }
.hs-pick-big { position: absolute; top: 16px; right: 22px; font-size: 46px; }
.hs-pick b { position: relative; z-index: 1; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; }
.hs-pick small { position: relative; z-index: 1; font-size: 15px; opacity: .92; }
.hs-pick em { position: relative; z-index: 1; justify-self: start; margin-top: 6px; padding: 7px 14px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-style: normal; font-weight: 800; }

/* популярні категорії */
.hs-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hs-cat { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid #eceef5; text-align: center; color: #1f2133 !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hs-cat:hover { transform: translateY(-3px); border-color: #c7cdf5; box-shadow: 0 12px 24px rgba(30, 20, 80, .1); }
.hs-cat-im { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f7f8ff; }
.hs-cat-im img { width: 100%; height: 100%; object-fit: contain; }
.hs-cat b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.hs-cat small { font-size: 13px; color: #8a8ea6; }

.hs-more { display: flex; justify-content: center; margin-top: 40px; }

/* ---- адаптив ---- */
@media (max-width: 1399px) {
  .products-grid-home.hs-row { grid-auto-columns: calc((100% - 4 * 24px) / 5); }
}
@media (max-width: 1199px) {
  .products-grid-home.hs-row { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
  .hs-cats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .products-grid-home.hs-row { grid-auto-columns: calc((100% - 2 * 16px) / 3); grid-template-columns: none; }
  .hs-picks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scrollbar-width: none; }
  .hs-picks::-webkit-scrollbar { display: none; }
}
@media (max-width: 575px) {
  .hs { padding-top: 26px; }
  .hs-h h2 { font-size: 21px; gap: 10px; }
  .hs-ic { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; border-radius: 11px; }
  .hs-nav { display: none; }
  .hs-all { padding: 8px 12px; font-size: 13px; }
  .products-grid-home.hs-row { grid-auto-columns: 46%; grid-template-columns: none; }
  .hs-picks { grid-auto-columns: 82%; }
  .hs-pick { min-height: 130px; padding: 18px; }
  .hs-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hs-cat { padding: 6px; border-radius: 14px; }
  .hs-cat b { font-size: 12.5px; }
  .hs-cat small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-pick, .hs-cat { transition: none; }
  .hs-pick:hover, .hs-cat:hover { transform: none; }
}
