﻿/* ─── H1 صفحه اصلی (بالای اسلایدر) ─── */
.home-hero-head { padding-top: .1rem; padding-bottom: .55rem; }
.home-hero-title { margin: 0; text-align: center; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; color: var(--C6); font-size: clamp(1.05rem, 2.15vw, 1.38rem); padding-bottom: 10px; }
.home-hero-title__brand { color: var(--C3); font-weight: 800; }
.home-hero-title__sep { color: color-mix(in srgb, var(--C5) 65%, var(--C6)); font-weight: 600; margin-inline: 0.35em; }
.home-hero-title__tagline { font-weight: 700; color: color-mix(in srgb, var(--C6) 92%, var(--C1)); }

@media (max-width: 575.98px) {
    .home-hero-title { white-space: nowrap; font-size: clamp(0.68rem, 3.25vw, 0.84rem); letter-spacing: -0.035em; line-height: 1.2; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .home-hero-title { font-size: clamp(0.92rem, 2.4vw, 1.12rem); }
}

:root[data-bs-theme="dark"] .home-hero-title__brand { color: var(--C3); }
:root[data-bs-theme="dark"] .home-hero-title__tagline { color: color-mix(in srgb, var(--C5) 88%, #fff); }
:root[data-bs-theme="dark"] .home-hero-title__sep { color: color-mix(in srgb, var(--C5) 55%, var(--C2)); }

/* ─── سکشن همه محصولات (تب‌بندی دسته‌های اصلی) ─── */
.home-all-products-section { background: var(--C0); }
.home-all-products-tabs-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin: 0 -0.25rem; padding: 0 0.25rem 0.85rem; }
.home-all-products-tabs { gap: 0.5rem; border-bottom: none; flex-wrap: nowrap; min-width: min-content; }
.home-all-products-tabs .nav-link { white-space: nowrap; border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; color: var(--C6); background: color-mix(in srgb, var(--C5) 35%, transparent); border: 1px solid color-mix(in srgb, var(--C5) 55%, transparent); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.home-all-products-tabs .nav-link:hover { color: var(--C1); border-color: var(--C3); }
.home-all-products-tabs .nav-link.active { color: var(--C1); background: var(--C3); border-color: var(--C3); }
.home-all-products-grid-loader { min-height: 120px; border-radius: 0.875rem; overflow: hidden; }
.home-all-products-grid-loader.loading .home-all-products-grid { visibility: visible; }
.home-all-products-grid { align-items: stretch; margin-left: 0; margin-right: 0; }
.home-all-products-grid > .home-all-products-col { display: flex; padding-left: calc(var(--bs-gutter-x, 1rem) * 0.5); padding-right: calc(var(--bs-gutter-x, 1rem) * 0.5); }
.home-all-products-grid > .home-all-products-col .product-card { width: 100%; }
.home-all-products-load-more { min-width: 10rem; border-radius: 999px; font-weight: 600; --bs-btn-hover-color: var(--C3); --bs-btn-active-color: var(--C3); }
.home-all-products-load-more:hover,
.home-all-products-load-more:focus,
.home-all-products-load-more:active { color: var(--C3) !important; }
.home-all-products-category-link { min-width: 12rem; font-weight: 600; }
.home-all-products-infinite-scroll-sentinel { height: 4px; width: 100%; pointer-events: none; }
.home-all-products-scroll-loader {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.35rem 0 0.15rem;
}
.home-all-products-scroll-loader.is-loading { display: inline-flex; }
.home-all-products-scroll-loader__spinner { flex-shrink: 0; }

@media (min-width: 992px) {
    .home-all-products-grid > .home-all-products-col { flex: 0 0 20%; max-width: 20%; width: 20%; }
}

:root[data-bs-theme="dark"] .home-all-products-tabs .nav-link { background: color-mix(in srgb, var(--C5) 18%, transparent); color: var(--C5); }
:root[data-bs-theme="dark"] .home-all-products-tabs .nav-link.active { color: #fff; }

.home-banner-slot { display: inline-block; overflow: hidden; border-radius: 0.875rem; background: var(--bs-light, #f8f9fa); }
.home-banner-slot img { width: 100%; height: auto; border-radius: 0.875rem; transition: opacity .25s ease; }
.home-banner-slot:hover img { opacity: .9; }
:root[data-bs-theme="dark"] .home-banner-slot { border-color: rgba(255,255,255,.2); background: var(--bs-secondary-bg); }
.home-banner-placeholder { border: 2px dashed rgba(0,0,0,.15); background: var(--bs-light, #f8f9fa); }
:root[data-bs-theme="dark"] .home-banner-placeholder { border-color: rgba(255,255,255,.2); background: var(--bs-secondary-bg); }
