/* ==================================================================
   برندها و موجودی — مشترک قالب‌ها
   ================================================================== */

/* ---------- «ناموجود» قرمز، همه‌جا ---------- */
.hzh-card__flag.is-out { background: #FEE4E2 !important; color: #D92D20 !important; box-shadow: 0 0 0 1px #FECDCA !important; font-weight: 800; }
.hz3 .pi .bd.out, .kh .pi .bd.out { background: #FEE4E2 !important; color: #D92D20 !important; }
.hzh-plr__out { color: #D92D20 !important; background: #FEE4E2 !important; font-weight: 700 !important; }
.stock.out-of-stock, .hzh-body .hzh .hzh-pdp .stock.out-of-stock, .woocommerce-variation-availability .out-of-stock { color: #D92D20 !important; background: #FEE4E2 !important; }
.outofstock .hzh-card__media img, .hz3 .pc:has(.bd.out) .pi img { opacity: .62; }

/* ---------- لوگوی کوچک برند (کارت‌ها، فیلترها) ---------- */
.hzb-mini { width: 18px !important; height: 18px !important; flex: none; object-fit: contain; border-radius: 4px; vertical-align: -4px; margin-inline-end: 5px; background: #fff; }
.hzh-card__brand { display: inline-flex !important; align-items: center; gap: 0; color: var(--hzh-ink-2, #424245) !important; font-weight: 700; }
.hzh-card__brand .hzb-mini { margin-inline-end: 6px; }
.hz3 .pb small.hzb-sub { display: inline-flex; align-items: center; }
.h3-fo .hzb-mini { margin-inline-end: 2px; }

/* ---------- کاشی برند (لوگو) ---------- */
.hzb-logo, .hzb-tile__logo, .hzb-card__logo, .hzb-hero__logo { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.hzb-logo img, .hzb-tile__logo img, .hzb-card__logo img, .hzb-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.is-txt { background: color-mix(in srgb, var(--bt) 10%, #fff) !important; color: var(--bt); }
.is-txt b { font-weight: 900; letter-spacing: -.01em; }

/* ---------- صفحه اول: نوار برندها ---------- */
.hzb-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.hzb-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px 14px; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); text-align: center; color: inherit !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hzb-tile:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, .14); box-shadow: 0 18px 36px -24px rgba(16, 24, 40, .45); }
.hzb-tile__logo { width: 100%; max-width: 128px; height: 64px; border-radius: 12px; }
.hzb-tile__logo.is-txt { width: 64px; border-radius: 18px; font-size: 22px; }
.hzb-tile__n { display: flex; flex-direction: column; font-size: 13px; font-weight: 800; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzb-tile__n small { font-size: 11.5px; font-weight: 500; color: #86868B; }
@media (max-width: 1100px) { .hzb-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.hzb-strip { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
	.hzb-strip::-webkit-scrollbar { display: none; }
	.hzb-tile { flex: 0 0 132px; scroll-snap-align: start; }
}

/* ---------- برگه «برندها» ---------- */
.hzb-page__hero { padding: 28px 0 8px; background: radial-gradient(1000px 360px at 85% -10%, color-mix(in srgb, var(--hzh-accent, #0062D6) 12%, transparent), transparent 70%); }
.hzb-page__eyebrow { margin-top: 26px; font-size: 13px; font-weight: 800; color: var(--hzh-accent, #0062D6); }
.hzb-page__t { margin-top: 6px; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.2; font-weight: 900; }
.hzb-page__lead { margin-top: 10px; max-width: 640px; font-size: 15.5px; line-height: 1.9; color: var(--hzh-mute, #6E6E73); }
.hzb-tools { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hzb-search { flex: 1 1 320px; max-width: 520px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); color: #86868B; box-shadow: 0 10px 30px -24px rgba(16, 24, 40, .5); }
.hzb-search:focus-within { border-color: var(--hzh-accent, #0062D6); }
.hzb-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font: inherit; font-size: 15px; color: var(--hzh-ink, #1D1D1F); padding: 0; margin: 0; }
.hzb-sort { display: inline-flex; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.hzb-sort button { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--hzh-mute, #6E6E73); cursor: pointer; }
.hzb-sort button.is-on { background: var(--hzh-ink, #1D1D1F); color: #fff; }
.hzb-chips { margin-top: 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.hzb-chips::-webkit-scrollbar { display: none; }
.hzb-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 0, 0, .09); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--hzh-ink-2, #424245); cursor: pointer; }
.hzb-chip small { font-size: 11.5px; font-weight: 600; color: #86868B; }
.hzb-chip.is-on { background: var(--hzh-accent, #0062D6); border-color: transparent; color: #fff; }
.hzb-chip.is-on small { color: rgba(255, 255, 255, .8); }

.hzb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hzb-card { position: relative; display: flex; flex-direction: column; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); transition: transform .25s, box-shadow .25s, border-color .25s; }
.hzb-card[hidden] { display: none; }
.hzb-card:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, .13); box-shadow: 0 24px 44px -30px rgba(16, 24, 40, .5); }
.hzb-card__top { display: flex; align-items: center; gap: 14px; color: inherit !important; }
.hzb-card__logo { flex: none; width: 96px; height: 64px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .06); padding: 6px; }
.hzb-card__logo.is-txt { width: 64px; font-size: 22px; border: 0; }
.hzb-card__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.hzb-card__t b { font-size: 17px; font-weight: 900; }
.hzb-card__t small { font-size: 12.5px; color: #86868B; }
.hzb-card__desc { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, .1); font-size: 13.5px; line-height: 1.95; color: var(--hzh-ink-2, #424245); flex: 1; }
.hzb-card__desc.is-empty { color: #86868B; }
.hzb-card__go { margin-top: 12px; align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--hzh-accent, #0062D6) !important; }
.hzb-card__go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hzb-none { padding: 40px 0; text-align: center; color: #86868B; }
.hzb-none[hidden] { display: none; }
.hzb-page__intro { margin-top: 40px; }

/* ---------- صفحه هر برند ---------- */
.hzb-hero { padding-top: 24px; }
.hzb-hero__card { margin-top: 22px; display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--bt) 7%, #fff) 100%); border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 30px 60px -48px rgba(16, 24, 40, .55); }
.hzb-hero__logo { flex: none; width: 168px; height: 120px; border-radius: 22px; border: 1px solid rgba(0, 0, 0, .06); padding: 12px; }
.hzb-hero__logo.is-txt { width: 120px; font-size: 40px; border: 0; }
.hzb-hero__body { flex: 1; min-width: 0; }
.hzb-hero__eyebrow { font-size: 12.5px; font-weight: 800; color: var(--hzh-accent, #0062D6); }
.hzb-hero__t { margin-top: 2px; font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 900; }
.hzb-hero__stats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hzb-hero__stats li { height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 999px; background: #F2F2F5; font-size: 13px; color: var(--hzh-mute, #6E6E73); }
.hzb-hero__stats b { color: var(--hzh-ink, #1D1D1F); font-weight: 800; }
.hzb-hero__stats li.is-in { background: #E7F7EC; color: #15803D; }
.hzb-hero__stats li.is-in b { color: #15803D; }
.hzb-hero__desc { margin: 14px 0 0; max-width: 820px; font-size: 14.5px; line-height: 2; color: var(--hzh-ink-2, #424245); }
.hzb-hero__desc a { font-weight: 800; color: var(--hzh-accent, #0062D6); white-space: nowrap; }
.hzb-hero__cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.hzb-btn { height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 14px; font-size: 14px; font-weight: 800; }
.hzb-btn--pl { background: #FEF3C7; color: #92400E !important; border: 1px solid #FCD34D; }
.hzb-btn--pl:hover { background: #FDE68A; }

.hzb-cats { margin-top: 18px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.hzb-cats::-webkit-scrollbar { display: none; }
.hzb-cat { flex: none; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); color: var(--hzh-ink, #1D1D1F) !important; transition: border-color .2s, box-shadow .2s; }
.hzb-cat:hover { border-color: rgba(0, 0, 0, .2); }
.hzb-cat__img { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #F2F2F5; color: #86868B; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hzb-cat__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hzb-cat__t { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.hzb-cat__t small { font-size: 11.5px; font-weight: 500; color: #86868B; }
.hzb-cat.is-on { background: var(--hzh-ink, #1D1D1F); border-color: var(--hzh-ink, #1D1D1F); color: #fff !important; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.hzb-cat.is-on small { color: #A1A1A6; }
.hzb-cat.is-on .hzb-cat__img { background: rgba(255, 255, 255, .12); color: #fff; }
.hzb-about-t { font-size: 22px; font-weight: 900; margin-bottom: 14px; }

@media (max-width: 640px) {
	.hzb-hero__card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 22px; }
	.hzb-hero__logo { width: 132px; height: 88px; }
	.hzb-cats { padding: 0 12px 6px; }
	.hzb-grid { grid-template-columns: 1fr; }
	.hzb-card__logo { width: 84px; height: 56px; }
}
