/*
 * Home Page Styles - صفحه اصلی آنکال پارت
 */

/* ── Layout ── */
.home #main-content,
.page-template-front-page #main-content {
    padding: 0;
}

#home-page {
    overflow: hidden;
}

/* ── Section header (shared) ── */
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.home-section-head--center {
    justify-content: center;
    text-align: center;
}

.home-section-head__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.home-section-head__desc {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.home-section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.home-section-head__link:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-secondary);
}

.home-section-head__arrow {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.home-section-head__link:hover .home-section-head__arrow {
    transform: translateX(-4px);
}

/* ── Hero ── */
.home-hero {
    position: relative;
    padding: 56px 0 80px;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(255, 204, 3, 0.12) 0%, transparent 55%),
        linear-gradient(155deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #243d75 100%);
    color: var(--color-white);
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 20px;
    background: rgba(255, 204, 3, 0.12);
    border: 1px solid rgba(255, 204, 3, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.home-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
    animation: home-pulse 2s ease infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.home-hero__title {
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--color-white);
}

.home-hero__desc {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 24px;
    max-width: 480px;
}

/* Search */
.home-hero__search {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 480px;
    margin-bottom: 24px;
    background: var(--color-white);
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.home-hero__search-icon {
    color: var(--color-gray);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.home-hero__search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-dark);
    padding: 10px 12px;
    min-width: 0;
}

.home-hero__search input[type="search"]::placeholder {
    color: #aaa;
}

.home-hero__search-btn {
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    transition: var(--transition);
}

.home-hero__search-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.home-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.home-hero__actions .btn-primary,
.home-hero__actions .btn-outline--light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-hero .btn-primary {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 13px 26px;
    box-shadow: 0 6px 20px rgba(255, 204, 3, 0.28);
}

.home-hero .btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-hero .btn-outline--light {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    padding: 11px 22px;
}

.home-hero .btn-outline--light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* Hero visual card */
.home-hero__visual {
    display: flex;
    justify-content: center;
}

.home-hero__card {
    width: 100%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 36px 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.home-hero__logo {
    max-height: 72px;
    width: auto;
    margin: 0 auto 28px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.home-hero__stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-hero__stats li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.home-hero__stats li:hover {
    background: rgba(255, 204, 3, 0.12);
    border-color: rgba(255, 204, 3, 0.25);
}

.home-hero__stats li i {
    font-size: 1.25rem;
    color: var(--color-secondary);
}

/* ── Categories ── */
.home-cats {
    padding: 56px 0 16px;
}

.home-cats__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.home-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 12px 18px;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(28, 50, 99, 0.07);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.home-cat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(28, 50, 99, 0.1);
    transform: translateY(-4px);
}

.home-cat-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(28, 50, 99, 0.06) 0%, rgba(255, 204, 3, 0.1) 100%);
    color: var(--color-primary);
    font-size: 1.4rem;
    overflow: hidden;
}

.home-cat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.home-cat-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.4;
}

.home-cat-card__count {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* ── Features ── */
.home-features {
    padding: 48px 0 56px;
}

.home-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-features__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 24px 22px;
    border: 1px solid rgba(28, 50, 99, 0.07);
    transition: var(--transition);
}

.home-features__item:hover {
    border-color: rgba(28, 50, 99, 0.15);
    box-shadow: 0 12px 36px rgba(28, 50, 99, 0.08);
    transform: translateY(-3px);
}

.home-features__icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.home-features__item:hover .home-features__icon-wrap {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.home-features__item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.home-features__item p {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.65;
}

/* ── Products ── */
.home-products {
    padding: 16px 0 64px;
}

.home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-product-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(28, 50, 99, 0.07);
    transition: var(--transition);
}

.home-product-card:hover {
    border-color: rgba(28, 50, 99, 0.16);
    box-shadow: 0 16px 40px rgba(28, 50, 99, 0.11);
    transform: translateY(-5px);
}

.home-product-card__link {
    display: block;
}

.home-product-card__img {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.home-product-card__img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-product-card:hover .home-product-card__img img {
    transform: scale(1.07);
}

.home-product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
}

.home-product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 50, 99, 0.55);
    color: var(--color-white);
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-product-card:hover .home-product-card__overlay {
    opacity: 1;
}

.home-product-card__body {
    padding: 16px 16px 18px;
}

.home-product-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
}

.home-product-card__price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
}

.home-product-card__price del {
    color: var(--color-gray);
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 6px;
}

.home-product-card__price ins {
    text-decoration: none;
}

/* ── CTA ── */
.home-cta {
    padding: 0 0 72px;
}

.home-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 20px;
    padding: 40px 44px;
    color: var(--color-white);
    box-shadow: 0 20px 56px rgba(28, 50, 99, 0.22);
    position: relative;
    overflow: hidden;
}

.home-cta__inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 3, 0.08));
    pointer-events: none;
}

.home-cta__inner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 3, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta__content {
    position: relative;
    flex: 1;
}

.home-cta__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-cta__desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 420px;
}

.home-cta__action {
    position: relative;
    flex-shrink: 0;
}

.home-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 14px 28px;
    box-shadow: 0 6px 20px rgba(255, 204, 3, 0.25);
}

.home-cta__btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.home-cta__btn small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.75;
}

.home-cta__btn:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
}

.home-cta .btn-icon {
    font-size: 1.3rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-hero__visual {
        order: -1;
    }

    .home-hero__card {
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 24px;
    }

    .home-hero__logo {
        margin: 0;
        max-height: 52px;
    }

    .home-hero__stats {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-hero__stats li {
        flex: 1;
        min-width: 120px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .home-cats__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .home-cta__desc {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 40px 0 56px;
    }

    .home-hero__desc,
    .home-hero__search {
        max-width: none;
    }

    .home-hero__search {
        flex-wrap: wrap;
        border-radius: var(--border-radius-lg);
        padding: 12px;
        gap: 8px;
    }

    .home-hero__search-btn {
        width: 100%;
    }

    .home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-cats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-features__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__card {
        flex-direction: column;
    }

    .home-hero__stats {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-products__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .home-product-card__title {
        font-size: 0.8rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .home-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .home-hero__actions .btn-primary,
    .home-hero__actions .btn-outline--light {
        width: 100%;
        justify-content: center;
    }

    .home-cats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-cat-card {
        padding: 16px 10px;
    }
}

/* ── Custom Hero Shape ── */
/* ── Custom Hero Shape ── */
.home-hero-shape {
    position: relative;
    width: 100%;
    padding: 30px 0 310px; /* کاهش ارتفاع و فاصله */
    background-color: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 45px), 50% 100%, 0 calc(100% - 45px));
    z-index: 1;
    /* overflow: hidden رو حذف کردیم تا سایه باکس دیده بشه */
}

.home-hero-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backpatern.svg'); /* آدرس پترن در پوشه css */
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.5;
    mix-blend-mode: overlay; /* ترکیب بهتر با رنگ پس‌زمینه */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%); /* محو شدن نرم به سمت پایین */
    z-index: -1;
}

/* ── Hero Content inside Shape ── */
.home-hero-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.home-hero-text {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 20px; /* Decreased gap to the box */
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-white);
}

.hero-title .highlight {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 3px 12px;
    border-radius: 7px;
    display: inline-block;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Glass Search Box ── */
.home-search-glass-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: -300px auto 0; /* کشیدن باکس به بالا برای کاهش فاصله */
    padding: 0 20px 40px; /* پدینگ پایین برای نمایش سایه */
    position: relative;
    z-index: 10;
}

.home-search-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.glass-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.glass-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.glass-tab i {
    font-size: 1.6rem;
}

.glass-tab .hash-icon {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    font-style: normal;
}

.glass-tab:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.glass-tab.active {
    color: var(--color-secondary);
}

.glass-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px 3px 0 0;
}

.glass-tab.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.soon-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(50%);
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.glass-content {
    padding: 30px;
    min-height: 250px; /* Space for the search content */
}

.glass-tab-pane {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.glass-tab-pane.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .glass-tabs {
        overflow-x: auto;
    }
    .glass-tab {
        min-width: 100px;
        font-size: 0.8rem;
    }
    .glass-tab i, .glass-tab .hash-icon {
        font-size: 1.2rem;
    }
}

/* ── Footer Spacing on Home Page ── */
.home .site-footer {
    margin-top: 200px;
}

/* ══════════════════════════════════════
   Brand Search Form - فرم جستجو برند
   ══════════════════════════════════════ */
.brand-search-form {
    padding: 24px 28px 28px;
}

.brand-selectors {
    /* Styles moved to Dynamic Category Selectors at the bottom of file */
}

/* Label بالای هر ستون */
.selector-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.selector-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
    flex-shrink: 0;
}

/* ── Custom Select ── */
.brand-custom-select, .category-custom-select {
    position: relative;
    user-select: none;
}

.bcs-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 74px;
    box-sizing: border-box;
    direction: rtl;
}

.bcs-selected:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.brand-custom-select.bcs-open .bcs-selected, .category-custom-select.bcs-open .bcs-selected {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px 12px 0 0;
}

.brand-custom-select.bcs-disabled .bcs-selected, .category-custom-select.bcs-disabled .bcs-selected {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.bcs-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    border-radius: 8px;
    flex-shrink: 0;
    order: 1;
}

.bcs-selected-info {
    flex: 1;
    order: 2;
}

.bcs-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
}

.bcs-count {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.bcs-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease;
    order: 3;
    flex-shrink: 0;
}

.brand-custom-select.bcs-open .bcs-arrow, .category-custom-select.bcs-open .bcs-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown List ── */
.bcs-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(20, 40, 80, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    direction: rtl;
}

.bcs-dropdown::-webkit-scrollbar {
    width: 4px;
}
.bcs-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.bcs-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.brand-custom-select.bcs-open .bcs-dropdown, .category-custom-select.bcs-open .bcs-dropdown {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Option Items ── */
.bcs-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    direction: rtl;
}

.bcs-option:last-child {
    border-bottom: none;
}

.bcs-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bcs-option.bcs-selected-opt {
    background: rgba(255, 204, 3, 0.12);
}

.bcs-option-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    border-radius: 6px;
    flex-shrink: 0;
    order: 1;
}

.bcs-option-info {
    flex: 1;
    order: 2;
}

.bcs-option-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

.bcs-option-count {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

/* Loading state */
.bcs-dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.bcs-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No results */
.bcs-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
}

/* ── Search Button ── */
.brand-search-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 15px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255, 204, 3, 0.3);
}

.brand-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 1;
}

.brand-search-btn:hover::before {
    animation: shineSweep 0.7s forwards;
}

@keyframes shineSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.brand-search-btn:hover {
    background: #f0c000;
    box-shadow: 0 10px 30px rgba(255, 204, 3, 0.4);
    color: var(--color-primary-dark);
}

.brand-search-btn i {
    font-size: 1.3rem;
}

.brand-search-btn.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .brand-selectors {
        grid-template-columns: 1fr;
    }
    .brand-search-form {
        padding: 16px;
    }
}

/* ══════════════════════════════════════
   Home Products Section
   ══════════════════════════════════════ */
.home-products-section {
    margin-top: 60px;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}
.home-products-section, .home-products-section * {
    font-family: inherit;
}

.hps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    direction: rtl;
}

.hps-title-wrapper {
    display: flex;
    align-items: center;
    text-align: right;
    position: relative;
}

.hps-title-shape {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
}

.hps-titles {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.hps-subtitle {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(30, 40, 80, 0.7);
    margin-bottom: 6px;
}

.hps-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0;
}

.hps-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
}

.hps-btn-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hps-btn-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 3, 0.3);
}

.hps-slider-nav {
    display: flex;
    gap: 10px;
}

.hps-slider-nav button {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hps-slider-nav button:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hps-slider-nav button i {
    font-size: 1.1rem;
}

/* Tabs */
.hps-tabs-wrapper {
    overflow-x: auto;
    margin-bottom: 10px;
    direction: rtl;
    padding: 10px 0 30px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)) 0 calc(100% - 18px) / 100% 2px no-repeat;
}

.hps-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.hps-tabs {
    display: flex;
    gap: 10px;
    min-width: max-content;
    position: relative;
    z-index: 1;
}

.hps-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 170px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
}

.hps-tab::after {
    content: '';
    position: absolute;
    top: calc(100% + 12px);
    bottom: auto;
    left: 20%;
    right: 20%;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.hps-tab img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.hps-tab-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.hps-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.hps-tab.active {
    background: var(--color-secondary);
}
.hps-tab.active::after {
    opacity: 1;
}
.hps-tab.active .hps-tab-title {
    color: var(--color-primary-dark);
}

/* Tab Contents */
.hps-tab-pane {
    display: none;
    animation: fadeIn 0.4s;
}

.hps-tab-pane.active {
    display: block;
}

.hps-carousel-placeholder {
    min-height: 250px;
    background: #f9f9f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 2px dashed #ddd;
    font-size: 1.1rem;
}

/* Child Categories Grid */
.hps-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    direction: rtl;
    padding-bottom: 20px;
}

.hps-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.hps-cat-card:hover {
    border-color: rgba(30, 40, 80, 0.2);
    box-shadow: 0 8px 25px rgba(30, 40, 80, 0.1);
}

.hps-cat-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hps-cat-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hps-cat-card:hover .hps-cat-img img {
    transform: scale(1.05);
}

.hps-cat-info {
    background: rgba(28, 50, 99, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.hps-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
    text-align: center;
}

.hps-cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hps-cat-count {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.hps-cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(30, 40, 80, 0.6);
    transition: all 0.3s ease;
}

.hps-cat-card:hover .hps-cat-arrow {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
}

@media (max-width: 1200px) {
    .hps-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hps-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hps-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .hps-cat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hps-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hps-actions {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
    }
}

/* ══════════════════════════════════════
   Banner Slider Section
   ══════════════════════════════════════ */
.home-banner-slider-section {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.hbs-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    direction: ltr; /* Keeps left-to-right sliding logic simple */
}

.hbs-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.hbs-slide {
    flex: 0 0 100%;
    width: 100%;
}

.hbs-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
}

.hbs-pagination-wrapper {
    position: absolute;
    bottom: 30px;
    left: 100px; /* Adjusted to fit the cutout in the image */
    z-index: 10;
}

.hbs-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hbs-dot {
    width: 16px;
    height: 8px;
    border-radius: 4px;
    background-color: #4b5e82;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hbs-dot.active {
    width: 35px;
    border-radius: 4px;
    background-color: #ffc107;
}

@media (max-width: 768px) {
    .home-banner-slider-section {
        padding: 0 20px;
    }
    .hbs-pagination-wrapper {
        bottom: 15px;
        left: 25px;
    }
    .hbs-slide img {
        min-height: 150px;
    }
}

/* ══════════════════════════════════════
   Products Carousel Section & Cards
   ══════════════════════════════════════ */
.hps-carousel-section {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 60px;
    direction: rtl;
}

.hpsc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 40px;
}

.hpsc-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hpsc-shape {
    height: 80px;
    width: auto;
}

.hpsc-titles {
    display: flex;
    flex-direction: column;
}

.hpsc-subtitle {
    color: #ef4444;
    font-size: 1rem;
    font-weight: 700;
}

.hpsc-title {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.hpsc-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hpsc-btn-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hpsc-btn-all:hover {
    background: #ef4444;
    color: #fff;
}

.hpsc-nav-buttons {
    display: flex;
    gap: 10px;
}

.hpsc-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e2850;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Theme Red (Default) */
.hpsc-theme-red .hpsc-nav-btn {
    background: #FF0303;
    color: #fff;
    border-color: #FF0303;
}
.hpsc-theme-red .hpsc-nav-btn i {
    color: #fff;
}
.hpsc-theme-red .hpsc-nav-btn:hover {
    opacity: 0.9;
}

/* Theme Yellow (Tires) */
.hpsc-theme-yellow .hpsc-title,
.hpsc-theme-yellow .hpsc-subtitle {
    color: #1e2850;
}
.hpsc-theme-yellow .hpsc-nav-btn {
    background: #FFCC03;
    color: #fff;
    border-color: #FFCC03;
}
.hpsc-theme-yellow .hpsc-nav-btn i {
    color: #fff;
}
.hpsc-theme-yellow .hpsc-nav-btn:hover {
    opacity: 0.9;
}

/* Track */
.hpsc-body {
    position: relative;
}

.hpsc-track-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
    margin: 0;
}
.hpsc-track-container::-webkit-scrollbar {
    display: none;
}

.hpsc-track {
    display: flex;
    gap: 20px;
    padding: 0 40px;
}

.hpsc-slide {
    flex: 0 0 calc(18.18% - 17px); /* 5.5 items in view */
    min-width: unset;
}

/* Product Card */
.hps-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.hps-product-card:hover {
    border-color: #1e2850;
    box-shadow: 0 8px 25px rgba(30, 40, 80, 0.1);
}

.hps-pc-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    margin-bottom: 15px;
}

.hps-pc-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hps-pc-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hps-pc-header {
    margin-bottom: 15px;
    text-align: center;
}

.hps-pc-title {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    line-height: 1.4;
    position: relative;
    padding-right: 12px;
    text-align: right; /* Keeps text right-to-left within its own block */
}

.hps-pc-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #FF0303;
}

.hps-pc-title a {
    color: inherit;
    text-decoration: none;
}

.hps-pc-footer {
    margin-top: auto;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center */
}

.hps-pc-vehicle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.hps-pc-vehicle i {
    font-size: 1.1rem;
    color: #1e2850;
}

.hps-pc-tire-size-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.hps-pc-tire-size-box small {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.hps-pc-tire-size-box .hps-pc-vname {
    font-size: 0.75rem;
    color: #64748b;
}

.hps-pc-price-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.hps-pc-discount-badge {
    background: #FF0303;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.hps-pc-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Left align in RTL */
    gap: 0;
}

.hps-pc-prices del,
.hps-pc-prices ins {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.hps-pc-prices del {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
}

.hps-pc-prices del .hps-amount {
    font-size: 0.95rem;
    font-weight: 600;
}

.hps-pc-prices ins {
    color: #FF0303;
}

/* ══════════════════════════════════════
   Promo Banner Section
   ══════════════════════════════════════ */
.home-promo-banner-section {
    width: 100%;
    padding: 0 40px;
    margin-top: -60px;
    margin-bottom: 60px;
    direction: rtl;
}

.hpb-container {
    background-color: #d10000;
    border-radius: 0 0 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #fff;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.hpb-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/back.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* faded background */
    z-index: 0;
    pointer-events: none;
}

.hpb-right, .hpb-center, .hpb-left {
    z-index: 1;
}

.hpb-right {
    display: flex;
    align-items: center;
}

.hpb-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.hpb-image {
    max-height: 140px;
    width: auto;
    margin-top: -30px;
    margin-bottom: -30px;
}

.hpb-text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hpb-subtitle {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.hpb-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
}

.hpb-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.hpb-left-text {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.hpb-btn {
    background: #fff;
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hpb-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .hpb-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .hpb-right {
        flex-direction: column;
        gap: 15px;
    }
    .hpb-image {
        margin: 0;
        max-height: 100px;
    }
    .hpb-left {
        align-items: center;
    }
}
@media (max-width: 768px) {
    .home-promo-banner-section {
        padding: 0 20px;
    }
}

.hps-pc-prices ins .hps-amount {
    font-size: 1.15rem;
    font-weight: 800;
}

.hps-toman-svg {
    height: 14px;
    width: auto;
}

.old-price-svg {
    height: 10px;
    filter: grayscale(100%) opacity(50%);
}

@media (max-width: 1200px) {
    .hpsc-slide {
        flex: 0 0 calc(25% - 15px);
    }
}
@media (max-width: 992px) {
    .hpsc-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
}
@media (max-width: 768px) {
    .hpsc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hpsc-actions {
        width: 100%;
        justify-content: space-between;
    }
    .hpsc-slide {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 480px) {
    .hpsc-slide {
        flex: 0 0 calc(85% - 10px);
    }
}

/* ══════════════════════════════════════
   Why Us Section
   ══════════════════════════════════════ */
.home-why-us-section {
    width: 100%;
    padding: 60px 40px;
    margin-bottom: 60px;
    direction: rtl;
    background-color: #fff;
    position: relative;
    border-top: 1px solid #f1f5f9;
}

.hwu-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/Frame 5.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.hwu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hwu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hwu-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hwu-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hwu-subtitle-icon {
    width: 32px;
    height: 32px;
    background-color: #FFCC03;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e2850;
    font-size: 1.1rem;
}

.hwu-subtitle-text {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 700;
}

.hwu-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e2850;
    line-height: 1.5;
    margin: 0;
}

.hwu-highlight {
    background-color: #FFCC03;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.hwu-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 600;
}

.hwu-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.hwu-feature {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
}

.hwu-feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hwu-feature-header svg {
    color: #1e2850;
}

.hwu-feature-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e2850;
    margin: 0;
}

.hwu-feature-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.hwu-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.hwu-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e2850;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hwu-link-btn i {
    font-size: 1rem;
    color: #1e2850;
    transition: transform 0.3s ease;
}

.hwu-link-btn:hover {
    color: #FFCC03;
}

.hwu-link-btn:hover i {
    color: #FFCC03;
    transform: translateX(-4px) translateY(-4px);
}

.hwu-image-wrapper {
    flex-shrink: 0;
    width: 450px;
}

.hwu-image {
    width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .hwu-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hwu-container {
        flex-direction: column;
    }
    .hwu-image-wrapper {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .home-why-us-section {
        padding: 40px 20px;
    }
    .hwu-features {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   Seller Banner
   ══════════════════════════════════════ */
.home-seller-banner {
    padding: 0 40px;
    margin-bottom: 60px;
}
.hsb-container {
    max-width: 100%;
    margin: 0 auto;
}
.hsb-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hsb-link {
    display: block;
    border-radius: 20px;
}
.hsb-link:hover .hsb-image {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .home-seller-banner {
        padding: 0 20px;
    }
}

/* --- Archive Layout & Sidebar Filters --- */
.hps-full-width-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .hps-full-width-wrapper {
        padding: 0 20px;
    }
}

.hps-archive-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.hps-archive-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.hps-archive-content {
    flex: 1;
    min-width: 0;
}

.hps-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .hps-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hps-archive-layout {
        flex-direction: column;
    }
    .hps-archive-sidebar {
        width: 100%;
    }
    .hps-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hps-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Filters Styles */
.hsf-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #ffe6e6; /* Soft red border similar to the screenshot wrapper */
}

.hsf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.hsf-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hsf-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.hsf-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #E53935;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit; /* will inherit yekan from body */
    cursor: pointer;
    padding: 0;
}

.hsf-section {
    margin-bottom: 24px;
}

.hsf-sec-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    margin-top: 0;
}

.hsf-dot {
    width: 6px;
    height: 6px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

/* Price Range */
.hsf-price-range {
    display: flex;
    gap: 10px;
}

.hsf-input-group {
    display: flex;
    align-items: center;
    background: #ECEBF2;
    border-radius: 8px;
    padding: 0 12px;
    flex: 1;
    height: 44px;
}

.hsf-input-label {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

.hsf-price-input {
    background: transparent;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    outline: none;
    font-family: inherit;
}

/* Custom Select Boxes */
.hsf-custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.hsf-select-selected {
    display: flex;
    align-items: center;
    background: #ECEBF2;
    border-radius: 8px;
    height: 44px;
    padding: 0 45px 0 15px; /* Space for the arrow on the left in RTL */
    font-size: 14px;
    font-weight: 600;
    color: #333;
    user-select: none;
}

.hsf-select-arrow {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #ffda73; /* Light yellow from screenshot */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.hsf-custom-select.active .hsf-select-arrow svg {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.hsf-select-items {
    position: absolute;
    background-color: #fff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px;
    display: none;
    border: 1px solid #f0f0f0;
}

.hsf-custom-select.active .hsf-select-items {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.hsf-select-items li {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.hsf-select-items li:hover {
    background-color: #f5f5f5;
    color: #E53935;
}

.hsf-select-items li.same-as-selected {
    background-color: #ECEBF2;
    color: #1e2850;
    font-weight: 700;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Red dot on product card title */
.hps-red-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #E53935;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

/* Brand logo on product card */
.hps-pc-brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hps-pc-bname {
    font-size: 12px;
    color: #666;
}

.hps-pc-blogo {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}
.hps-pc-blogo img {
    max-width: 100%;
    height: auto;
}


/* Dynamic Category Selectors */
.brand-selectors, .category-selectors {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    direction: rtl;
    width: 100%;
}

.brand-selector-col, .category-selector-col {
    flex: 1;
    min-width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.brand-selector-col.hidden-col, .category-selector-col.hidden-col {
    flex: 0 0 0px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    height: 0;
    margin-right: -20px; /* Counteract flex gap for hidden items so they don't leave empty space */
}

@media (max-width: 768px) {
    .brand-selectors, .category-selectors {
        flex-direction: column;
    }
    .brand-selector-col.hidden-col, .category-selector-col.hidden-col {
        margin-right: 0;
        margin-bottom: -20px; /* Counteract flex gap vertically */
    }
}

/* ========================================================= */
/* AJAX Filters: Checkbox Trees & Skeletons */
/* ========================================================= */

/* Accordion sections in sidebar */
.hsf-accordion-section .hsf-accordion-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.hsf-accordion-section .hsf-accordion-trigger i {
    margin-right: auto;
    transition: transform 0.3s;
}
.hsf-accordion-section.open .hsf-accordion-trigger i {
    transform: rotate(180deg);
}
.hsf-accordion-content {
    display: none;
    margin-top: 15px;
}

/* Checkbox Tree */
.hsf-filter-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hsf-filter-tree ul.hsf-filter-tree {
    margin-right: 20px;
    margin-top: 8px;
}
.hsf-filter-item {
    margin-bottom: 12px;
}
.hsf-filter-item:last-child {
    margin-bottom: 0;
}
.hsf-checkbox-wrap {
    display: flex;
    align-items: center;
}
.hsf-toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 5px;
    color: #888;
    transition: transform 0.2s;
}
.hsf-filter-item.open > .hsf-checkbox-wrap .hsf-toggle-icon {
    transform: rotate(180deg);
}
.hsf-toggle-placeholder {
    width: 25px;
}
.hsf-children-wrap {
    display: none;
}
.hsf-filter-item.open > .hsf-children-wrap {
    display: block;
}

/* Custom Checkbox */
.hsf-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    font-size: 0.9rem;
    color: #444;
}
.hsf-checkbox-label:hover {
    color: #E53935;
}
.hsf-filter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.hsf-custom-check {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    margin-left: 8px;
    position: relative;
    transition: all 0.2s ease;
}
.hsf-checkbox-label:hover .hsf-custom-check {
    border-color: #E53935;
}
.hsf-filter-checkbox:checked ~ .hsf-custom-check {
    background-color: #E53935;
    border-color: #E53935;
}
.hsf-custom-check:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.hsf-filter-checkbox:checked ~ .hsf-custom-check:after {
    display: block;
}

/* Skeletons */
.skeleton-card {
 background: #fff;
 border-radius: 12px;
 padding: 15px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.03);
 pointer-events: none;
}
.skeleton-img {
 height: 180px;
 background: #f0f0f0;
 border-radius: 8px;
 margin-bottom: 15px;
 animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.skeleton-line {
 background: #f0f0f0;
 height: 12px;
 border-radius: 4px;
 margin-bottom: 10px;
 animation: skeleton-pulse 1.5s infinite ease-in-out;
}
.skeleton-title {
 width: 80%;
 height: 18px;
 margin-bottom: 15px;
}
.skeleton-meta {
 width: 50%;
}
.skeleton-price {
 width: 60%;
 height: 20px;
 margin-top: 15px;
}
.skeleton-btn {
 width: 100%;
 height: 40px;
 margin-top: 15px;
 border-radius: 8px;
}

@keyframes skeleton-pulse {
 0% { background-color: #f0f0f0; }
 50% { background-color: #e0e0e0; }
 100% { background-color: #f0f0f0; }
}

