/* ===========================
   Сторінка бренду (/store/brand/<slug>/): шапка, вітрина, низ сторінки.
   Каталог під вітриною — звичайний store.html (store-style.css, filters-modern.css).
   =========================== */
.bp-hero, .bp-sec, .bp-others { --bp-ink: #1f2133; --bp-muted: #8a8ea6; --bp-line: #eceef5; }
.bp-hero a, .bp-sec a, .bp-others a { text-decoration: none; }
.bp-hero a:focus-visible, .bp-sec a:focus-visible, .bp-others a:focus-visible { outline: 3px solid #667eea; outline-offset: 2px; border-radius: 10px; }

/* ---- шапка ---- */
.bp-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #667eea, #764ba2); }
.bp-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.bp-hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 26px; padding-top: 30px; padding-bottom: 30px; }
.bp-hero-in > div:nth-child(2), .bp-hero-in > div:first-child:not(.bp-facts) { flex: 1; min-width: 0; }
.bp-logo { flex: 0 0 148px; width: 148px; height: 148px; padding: 18px; border-radius: 28px; background: #fff; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(20, 10, 60, .25); }
.bp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bp-crumbs { margin-bottom: 8px; font-size: 13px; opacity: .85; }
.bp-crumbs a { color: #fff; }
.bp-crumbs a:hover { text-decoration: underline; color: #fff; }
.bp-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 46px; font-weight: 700; color: #fff; }
.bp-lead { margin: 6px 0 0; max-width: 60ch; font-size: 16px; opacity: .92; }
.bp-lead a { color: #ffe066; font-weight: 700; }
.bp-cta { display: inline-flex; margin-top: 14px; padding: 12px 20px; border-radius: 12px; font-weight: 900; color: #1f2133 !important; background: #ffe066; transition: filter .2s ease; }
.bp-cta:hover { filter: brightness(1.05); }
.bp-facts { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; }
.bp-fact { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.bp-fact b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.bp-fact span { font-size: 13px; opacity: .9; }

/* ---- вітрина ---- */
.bp-sec { padding-top: 26px; }
.bp-h2 { margin: 0 0 16px; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; color: var(--bp-ink); }
.bp-sub { margin: 24px 0 12px; font-size: 17px; font-weight: 800; color: var(--bp-ink); }
.bp-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bp-ph a { font-weight: 800; color: #4f5bd5; }

.bp-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bp-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 150px; padding: 18px; border-radius: 22px; color: #fff !important; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.bp-promo:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(30, 20, 80, .18); }
.bp-promo--hit { background: linear-gradient(135deg, #ef4444, #f97316); }
.bp-promo--sale { background: linear-gradient(135deg, #667eea, #764ba2); }
.bp-promo-t { display: grid; gap: 4px; }
.bp-promo-t b { font-size: 21px; }
.bp-promo-t small { font-size: 14px; opacity: .9; }
.bp-promo-t em { justify-self: start; margin-top: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-style: normal; font-size: 13.5px; font-weight: 800; }
.bp-promo img { width: 116px; height: 116px; padding: 6px; border-radius: 18px; object-fit: contain; background: #fff; transform: rotate(-6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }


.bp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bp-cat { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--bp-line); color: var(--bp-ink) !important; transition: transform .2s ease, box-shadow .2s ease; }
.bp-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(30, 20, 80, .1); }
.bp-cat-im { width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: #f7f8ff; display: grid; place-items: center; color: #c5c9d3; font-size: 26px; }
.bp-cat-im img { width: 100%; height: 100%; object-fit: contain; }
.bp-cat b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.bp-cat small { font-size: 13.5px; color: var(--bp-muted); }
.bp-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: #4f5bd5; font-weight: 900; }

/* ---- каталог: вкладки замість фільтрів ---- */
.bp-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.bp-tab { padding: 10px 18px; border-radius: 999px; background: #f2f3f8; font-weight: 800; font-size: 15px; color: #1f2133 !important; text-decoration: none !important; transition: background .2s ease; }
.bp-tab:hover { background: #e8eaff; }
.bp-tab.is-on { color: #fff !important; background: linear-gradient(120deg, #667eea, #764ba2); }
.bp-tabs-count { margin-left: auto; font-size: 14px; color: #8a8ea6; }
/* ---- каталог ---- */
.bp-catalog { padding-top: 34px; scroll-margin-top: 70px; }
.bp-catalog-h { margin-bottom: 18px; }
#hits { scroll-margin-top: 70px; }

/* ---- низ ---- */
.bp-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bp-post { display: grid; align-content: start; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--bp-line); color: var(--bp-ink) !important; transition: box-shadow .2s ease; }
.bp-post:hover { box-shadow: 0 10px 22px rgba(30, 20, 80, .09); }
.bp-post img, .bp-post-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bp-post-noimg { background: linear-gradient(135deg, #667eea, #764ba2); }
.bp-post-b { display: grid; gap: 4px; padding: 12px 14px; }
.bp-post-b b { font-size: 15px; line-height: 1.35; }
.bp-post-b small { font-size: 13px; color: var(--bp-muted); }

.bp-about { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.bp-about-t { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--bp-line); }
.bp-about-t .bp-h2 { font-size: 24px; margin-bottom: 10px; }
.bp-about-text { margin: 0; font-size: 15.5px; line-height: 1.7; color: #4b4f66; }
.bp-adv { display: grid; gap: 10px; }
.bp-adv a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--bp-line); font-size: 15px; color: #4b4f66 !important; }
.bp-adv i { color: #667eea; font-size: 18px; }

.bp-others { margin-top: 30px; margin-bottom: 10px; background: #fff; border-top: 1px solid #e9ebf3; border-bottom: 1px solid #e9ebf3; }
.bp-others-in { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.bp-others-in::-webkit-scrollbar { display: none; }
.bp-others-t { flex: 0 0 auto; margin-right: 4px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-muted); }
.bp-brand { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #f2f3f8; font-size: 14px; font-weight: 700; color: var(--bp-ink) !important; white-space: nowrap; }
.bp-brand:hover { background: #e8eaff; }
.bp-brand--all { background: #eef0ff; color: #4f5bd5 !important; }

/* ---- адаптив ---- */
@media (max-width: 1199px) {
  .bp-hero-in { flex-wrap: wrap; }
  .bp-facts { flex-basis: 100%; grid-template-columns: repeat(3, 1fr); }
  .bp-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .bp-hero-in { padding-top: 72px; }
  .bp-about { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .bp-tabs-count { flex-basis: 100%; margin-left: 0; }
  .bp-hero-in { padding-top: 64px; padding-bottom: 20px; gap: 14px; }
  .bp-logo { flex-basis: 88px; width: 88px; height: 88px; padding: 10px; border-radius: 20px; }
  .bp-hero h1 { font-size: 30px; }
  .bp-fact { padding: 10px; }
  .bp-fact b { font-size: 17px; }
  .bp-fact span { font-size: 11.5px; }
  .bp-h2 { font-size: 22px; }
  .bp-promos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scrollbar-width: none; }
  .bp-promos::-webkit-scrollbar { display: none; }
  .bp-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scrollbar-width: none; }
  .bp-cat { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .bp-cat-im { width: 64px; height: 64px; }
  .bp-posts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; }
}

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