/* ===== Меню „Категория“ на началната страница — кремавата тема на PhoneZone BG =====
   Топла повърхност #FFFCF5, бежови рамки и сенки, тъмносин текст, сини акценти.
   Броячите са светлобежови с тъмносин текст (като в страничното меню на магазина). */
.home-cats-section { padding: 0.9rem 0 0.15rem; }
.home-cats {
  --hc-surface: #fffcf5;
  --hc-line: var(--cream-line, #eadcbd);
  --hc-soft: var(--cream-soft, #f5e9cf);
  --hc-ink: #0b1b34;
  border: 1px solid var(--hc-line);
  border-radius: 20px;
  background: var(--hc-surface);
  box-shadow: var(--sh-soft, 0 1px 2px rgba(74, 52, 16, 0.05), 0 8px 24px rgba(120, 88, 30, 0.08));
  padding: 0 1rem 0.9rem;
}
.home-cats__summary { display: flex; align-items: center; gap: 0.75rem; min-height: 50px; cursor: pointer; list-style: none; color: var(--hc-ink); font-size: 1rem; font-weight: 800; }
.home-cats__summary::-webkit-details-marker { display: none; }
.home-cats__title { display: flex; align-items: center; gap: 0.5rem; }
.home-cats__title::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: var(--grad-blue, #175cff); }
.home-cats__total { margin-left: auto; color: #565f7a; font-size: 0.85rem; font-weight: 600; }
.home-cats__total b { color: var(--c-blue, #175cff); font-weight: 800; }
.home-cats__summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 0.2rem 3px 0; border-right: 2.5px solid #175cff; border-bottom: 2.5px solid #175cff; transform: rotate(45deg); transition: transform 0.2s ease; }
.home-cats[open] > .home-cats__summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.home-cats__summary:focus-visible { outline: 3px solid #175cff; outline-offset: 2px; border-radius: 12px; }

.home-cats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 0.6rem; align-items: start; padding-top: 0.75rem; border-top: 1px solid var(--hc-line); }
.home-cats__list > .filter-option { grid-column: 1 / -1; width: auto; max-width: 340px; background: var(--hc-soft); font-weight: 700; }
/* всяка група е меко кремаво поле — ясно разграничение без рамки */
.home-cats .cat-group { display: grid; gap: 0.1rem; align-content: start; padding: 0.25rem 0.35rem 0.4rem; border-radius: 14px; background: rgba(245, 233, 207, 0.38); }
.home-cats .filter-subhead { margin: 0.35rem 0.6rem 0.25rem; color: #5c657c; font-size: 0.72rem; }

.home-cats .filter-option { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; box-sizing: border-box; min-height: 36px; padding: 0.35rem 0.6rem; border-radius: 10px; background: transparent; color: var(--hc-ink); font-size: 0.92rem; font-weight: 550; text-align: left; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.home-cats .filter-option:hover { background: var(--hc-soft); color: var(--c-blue, #175cff); }
.home-cats .filter-option:focus-visible { outline: 3px solid #175cff; outline-offset: 1px; }
.home-cats .filter-option span { min-width: 1.8rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--hc-soft); color: var(--hc-ink); font-size: 0.74rem; font-weight: 700; text-align: center; }
.home-cats .cat-group .filter-option span { background: #efe0bd; }
.home-cats .filter-option:hover span { background: #fffcf5; }
.home-cats .filter-option--soon { color: #687187; }
.home-cats .filter-option--soon span { background: var(--color-accent-soft, #ece8ff); color: var(--c-violet-dark, #4b30e6); font-style: italic; }
.home-cats .filter-option[aria-current="true"] { background: var(--grad-blue, #175cff); color: #fff; }
.home-cats .filter-option[aria-current="true"] span { background: rgba(255, 255, 255, 0.22); color: #fff; }

@media (max-width: 720px) {
  .home-cats-section { padding-top: 0.6rem; }
  .home-cats { padding: 0 0.7rem 0.7rem; border-radius: 16px; }
  .home-cats__summary { min-height: 52px; }
  .home-cats__list { grid-template-columns: 1fr; gap: 0.5rem; }
  .home-cats__list > .filter-option { max-width: none; }
  .home-cats .filter-option { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .home-cats .filter-option, .home-cats__summary::after { transition: none; } }
