/**
 * emadbrz – Products/Courses section v2 (premium glass, RTL/LTR)
 */

.emadbrz-products {
    --pd-blue: #5b58f2;
    --pd-blue-light: #9b98f5;
    --pd-blue-soft: #eef4ff;
    --pd-text: #0f172a;
    --pd-muted: #64748b;
    --pd-body: #475569;
    --pd-white: #ffffff;
    --pd-max: 1680px;
    --pd-radius-card: 32px;
    --pd-radius-cover: 24px;
    --pd-radius-btn: 18px;
    --pd-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    --pd-shadow-hover: 0 32px 80px rgba(15, 23, 42, 0.12);
    --pd-glass: rgba(255, 255, 255, 0.8);
    --pd-filter-bg: rgba(255, 255, 255, 0.55);

    position: relative;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 140px) clamp(16px, 3vw, 24px);
    background: #ffffff;
    color: var(--pd-text);
}

/* Subtle decor – hidden for clean white layout */
.emadbrz-products__decor {
    display: none;
}

.emadbrz-products__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.emadbrz-products__orb--1 {
    width: clamp(160px, 22vw, 280px);
    height: clamp(160px, 22vw, 280px);
    top: 6%;
    inset-inline-end: 8%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 70%);
}

.emadbrz-products__orb--2 {
    width: clamp(120px, 16vw, 220px);
    height: clamp(120px, 16vw, 220px);
    bottom: 12%;
    inset-inline-start: 4%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 70%);
}

.emadbrz-products__sphere {
    position: absolute;
    width: clamp(56px, 8vw, 88px);
    height: clamp(56px, 8vw, 88px);
    top: 18%;
    inset-inline-start: 10%;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(238, 244, 255, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0.7;
}

.emadbrz-products__dots {
    position: absolute;
    inset-inline-end: 6%;
    bottom: 18%;
    width: clamp(100px, 14vw, 180px);
    height: clamp(100px, 14vw, 180px);
    opacity: 0.25;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.22) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.emadbrz-products__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--pd-max);
    margin: 0 auto;
}

/* ========== Header ========== */
.emadbrz-products__head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.emadbrz-products__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pd-blue);
    background: var(--pd-glass);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.emadbrz-products__badge-icon {
    display: inline-flex;
    color: var(--pd-blue);
}

.emadbrz-products__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.emadbrz-products__title-main {
    color: var(--pd-text);
}

.emadbrz-products__title-accent {
    color: var(--pd-blue);
}

.emadbrz-products__desc {
    margin: 1.25rem auto 0;
    max-width: 700px;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.85;
    color: var(--pd-muted);
}

/* ========== Filters ========== */
.emadbrz-products__filters {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.emadbrz-products__filters::-webkit-scrollbar {
    display: none;
}

.emadbrz-products__filters-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem;
    background: var(--pd-filter-bg);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.emadbrz-products__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--pd-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.emadbrz-products__filter-icon {
    display: inline-flex;
    opacity: 0.75;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.emadbrz-products__filter:hover {
    color: var(--pd-text);
}

.emadbrz-products__filter.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--pd-blue-light), var(--pd-blue));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.emadbrz-products__filter.is-active .emadbrz-products__filter-icon {
    opacity: 1;
    color: #fff;
}

/* ========== Grid ========== */
.emadbrz-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.emadbrz-products__cell {
    min-width: 0;
}

.emadbrz-products__cell.is-filtered-out {
    display: none;
}

/* ========== Product card ========== */
.emadbrz-product-card {
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.emadbrz-product-card.is-filtered-out {
    display: none;
}

.emadbrz-product-card__shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background: var(--pd-glass);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--pd-radius-card);
    box-shadow: var(--pd-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}

.emadbrz-product-card:hover .emadbrz-product-card__shell {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--pd-shadow-hover);
    border-color: rgba(96, 165, 250, 0.35);
}

.emadbrz-product-card__cover {
    position: relative;
    height: 260px;
    border-radius: var(--pd-radius-cover);
    overflow: hidden;
    flex-shrink: 0;
}

.emadbrz-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.emadbrz-product-card:hover .emadbrz-product-card__img {
    transform: scale(1.06);
}

.emadbrz-product-card__img--placeholder {
    display: block;
    background: linear-gradient(145deg, #eef4ff, #dbeafe);
}

.emadbrz-product-card__type-badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pd-blue);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

.emadbrz-product-card__bookmark {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--pd-blue);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 3;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.emadbrz-product-card__bookmark:hover,
.emadbrz-product-card__bookmark.is-saved {
    background: var(--pd-blue-soft);
    transform: scale(1.06);
}

.emadbrz-product-card__bookmark.is-saved {
    color: var(--pd-blue);
}

.emadbrz-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
    padding-top: 1.15rem;
    min-width: 0;
    text-align: start;
}

.emadbrz-product-card__head-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
}

.emadbrz-product-card__head-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.emadbrz-product-card__progress {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
}

.emadbrz-product-card__progress-svg {
    display: block;
}

.emadbrz-product-card__progress-track {
    stroke: rgba(37, 99, 235, 0.12);
}

.emadbrz-product-card__progress-fill {
    stroke: var(--pd-blue);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.emadbrz-product-card:hover .emadbrz-product-card__progress-fill {
    stroke: var(--pd-blue-light);
}

.emadbrz-product-card__progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--pd-blue);
    letter-spacing: -0.02em;
}

.emadbrz-product-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.emadbrz-product-card__cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pd-blue);
}

.emadbrz-product-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.emadbrz-product-card__title a {
    color: var(--pd-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.emadbrz-product-card__title a:hover {
    color: var(--pd-blue);
}

.emadbrz-product-card__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--pd-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.emadbrz-product-card__instructor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.emadbrz-product-card__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.emadbrz-product-card__instructor-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.emadbrz-product-card__instructor-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pd-text);
}

.emadbrz-product-card__instructor-role {
    font-size: 0.8125rem;
    color: var(--pd-muted);
}

.emadbrz-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.emadbrz-product-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pd-muted);
}

.emadbrz-product-card__meta-icon {
    display: inline-flex;
    color: var(--pd-blue);
}

.emadbrz-product-card__meta-icon--star {
    color: #f59e0b;
}

.emadbrz-product-card__meta-muted {
    color: var(--pd-muted);
    opacity: 0.85;
}

.emadbrz-product-card__price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
    padding-top: 0.35rem;
}

.emadbrz-product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.emadbrz-product-card__price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pd-blue);
    line-height: 1.2;
}

.emadbrz-product-card__price-current .woocommerce-Price-amount {
    color: inherit;
}

.emadbrz-product-card__price-old {
    font-size: 0.875rem;
    color: var(--pd-muted);
    text-decoration: line-through;
}

.emadbrz-product-card__discount {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pd-blue);
    background: var(--pd-blue-soft);
    border-radius: 999px;
    white-space: nowrap;
}

.emadbrz-product-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 58px;
    margin-top: 0.35rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: var(--pd-radius-btn);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, var(--pd-blue-light), var(--pd-blue));
    box-shadow: 0 14px 36px rgba(91, 88, 242, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.emadbrz-product-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(91, 88, 242, 0.38);
    filter: brightness(1.03);
}

.emadbrz-product-card__cta-icon {
    display: inline-flex;
    color: inherit;
}

/* ========== Special CTA card ========== */
.emadbrz-products__special {
    height: 100%;
}

.emadbrz-products__special-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    min-height: 420px;
    padding: 2.5rem 2rem;
    border-radius: var(--pd-radius-card);
    background: linear-gradient(145deg, #2563eb 0%, #60a5fa 55%, #3b82f6 100%);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.32);
    overflow: hidden;
    text-align: center;
}

.emadbrz-products__special-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -60px;
    inset-inline-end: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.emadbrz-products__special-title {
    position: relative;
    margin: 0;
    max-width: 280px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
}

.emadbrz-products__special-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.75rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pd-blue);
    background: #fff;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.emadbrz-products__special-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

/* ========== Footer CTA ========== */
.emadbrz-products__footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.emadbrz-products__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pd-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.emadbrz-products__view-all:hover {
    color: var(--pd-blue);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.emadbrz-products__view-all-icon {
    display: inline-flex;
    color: var(--pd-blue);
}

.emadbrz-products__empty {
    text-align: center;
    margin: 0;
    padding: 3rem 1rem;
    color: var(--pd-muted);
    font-size: 1rem;
}

/* ========== Reveal ========== */
.emadbrz-products [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.emadbrz-products.is-visible [data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

.emadbrz-products.is-visible .emadbrz-products__head[data-reveal] { transition-delay: 0.04s; }
.emadbrz-products.is-visible .emadbrz-products__filters[data-reveal] { transition-delay: 0.1s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(1) [data-reveal] { transition-delay: 0.14s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(2) [data-reveal] { transition-delay: 0.2s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(3) [data-reveal] { transition-delay: 0.26s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(4) [data-reveal] { transition-delay: 0.32s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(5) [data-reveal] { transition-delay: 0.38s; }
.emadbrz-products.is-visible [data-product-cell]:nth-child(6) [data-reveal] { transition-delay: 0.44s; }
.emadbrz-products.is-visible .emadbrz-products__footer[data-reveal] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .emadbrz-products [data-reveal],
    .emadbrz-product-card__shell,
    .emadbrz-product-card__img,
    .emadbrz-product-card__cta {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .emadbrz-product-card:hover .emadbrz-product-card__shell {
        transform: none;
    }
}

/* ========== Responsive – advanced (EN/FA, RTL/LTR) ========== */

@media (max-width: 1399px) {
    .emadbrz-products__grid {
        gap: clamp(20px, 2.5vw, 28px);
    }

    .emadbrz-products__title {
        font-size: clamp(1.85rem, 4.5vw, 3.5rem);
    }
}

@media (max-width: 1199px) {
    .emadbrz-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(18px, 2.5vw, 24px);
    }

    .emadbrz-products__cell:not(.emadbrz-products__cell--special) {
        order: 0;
    }

    .emadbrz-products__cell--special {
        order: 999;
    }

    .emadbrz-products__cell:first-child {
        grid-column: 1 / -1;
    }

    .emadbrz-product-card--featured .emadbrz-product-card__shell {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(1rem, 2vw, 1.35rem);
    }

    .emadbrz-product-card--featured .emadbrz-product-card__cover {
        flex: 0 0 min(46%, 380px);
        width: auto;
        height: auto;
        min-height: clamp(240px, 32vw, 300px);
    }

    .emadbrz-product-card--featured .emadbrz-product-card__body {
        padding-top: 0.35rem;
        justify-content: center;
    }

    .emadbrz-products__special-inner {
        min-height: clamp(300px, 36vw, 380px);
    }
}

@media (max-width: 991px) {
    .emadbrz-products {
        padding-inline: clamp(12px, 3vw, 20px);
    }

    .emadbrz-products__head {
        margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
    }

    .emadbrz-products__desc {
        font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
        line-height: 1.75;
    }

    .emadbrz-products__grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 20px);
    }

    .emadbrz-products__cell:first-child {
        grid-column: 1;
    }

    .emadbrz-products .emadbrz-product-card__shell {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(0.85rem, 2vw, 1.15rem);
        padding: clamp(14px, 2.5vw, 18px);
    }

    .emadbrz-products .emadbrz-product-card__cover {
        flex: 0 0 clamp(132px, 34vw, 220px);
        width: auto;
        height: auto;
        min-height: clamp(180px, 28vw, 240px);
        align-self: stretch;
    }

    .emadbrz-products .emadbrz-product-card--featured .emadbrz-product-card__cover {
        flex-basis: clamp(160px, 38vw, 260px);
        min-height: clamp(200px, 30vw, 260px);
    }

    .emadbrz-products .emadbrz-product-card__body {
        padding-top: 0.35rem;
        justify-content: space-between;
    }

    .emadbrz-products .emadbrz-product-card__title {
        font-size: clamp(1.125rem, 2.8vw, 1.35rem);
    }

    .emadbrz-products .emadbrz-product-card__desc {
        -webkit-line-clamp: 3;
    }

    .emadbrz-products__special-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: start;
        min-height: clamp(180px, 24vw, 240px);
        padding: clamp(1.25rem, 3vw, 2rem);
        gap: clamp(1rem, 3vw, 1.5rem);
    }

    .emadbrz-products__special-title {
        max-width: none;
        flex: 1;
        text-align: inherit;
    }

    .emadbrz-products__special-btn {
        flex-shrink: 0;
    }

    .emadbrz-products__orb--1 {
        opacity: 0.25;
    }

    .emadbrz-products__sphere {
        opacity: 0.45;
    }
}

@media (max-width: 767px) {
    .emadbrz-products {
        padding-top: clamp(2.75rem, 9vw, 4.5rem);
        padding-bottom: clamp(2.75rem, 9vw, 4.5rem);
        --pd-radius-card: 24px;
        --pd-radius-cover: 18px;
        --pd-radius-btn: 14px;
    }

    .emadbrz-products__decor {
        opacity: 0.55;
    }

    .emadbrz-products__orb--2,
    .emadbrz-products__dots {
        display: none;
    }

    .emadbrz-products__orb--1 {
        width: 140px;
        height: 140px;
        top: 2%;
        inset-inline-end: -20px;
    }

    .emadbrz-products__sphere {
        width: 44px;
        height: 44px;
        top: 8%;
        inset-inline-start: 4%;
    }

    .emadbrz-products__badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.85rem;
        margin-bottom: 1rem;
    }

    .emadbrz-products__title {
        font-size: clamp(1.65rem, 7.5vw, 2.35rem);
        line-height: 1.3;
    }

    .emadbrz-products__filters {
        position: sticky;
        top: calc(var(--emadbrz-header-sticky-h, 80px) + 6px);
        z-index: 25;
        justify-content: flex-start;
        margin-inline: calc(-1 * clamp(12px, 3vw, 20px));
        margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
        padding: 0.35rem clamp(12px, 3vw, 20px) 0.65rem;
        background: linear-gradient(
            180deg,
            var(--page-bg, #f8fafc) 0%,
            color-mix(in srgb, var(--page-bg, #f8fafc) 88%, transparent) 72%,
            transparent 100%
        );
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        scroll-padding-inline: 1rem;
    }

    .emadbrz-products__filters::before,
    .emadbrz-products__filters::after {
        content: "";
        position: absolute;
        top: 0.35rem;
        bottom: 0.65rem;
        width: clamp(20px, 6vw, 32px);
        pointer-events: none;
        z-index: 2;
    }

    .emadbrz-products__filters::before {
        inset-inline-start: 0;
    }

    .emadbrz-products__filters::after {
        inset-inline-end: 0;
    }

    .emadbrz-products--ltr .emadbrz-products__filters::before {
        background: linear-gradient(to right, var(--page-bg, #f8fafc), transparent);
    }

    .emadbrz-products--ltr .emadbrz-products__filters::after {
        background: linear-gradient(to left, var(--page-bg, #f8fafc), transparent);
    }

    .emadbrz-products--rtl .emadbrz-products__filters::before {
        background: linear-gradient(to left, var(--page-bg, #f8fafc), transparent);
    }

    .emadbrz-products--rtl .emadbrz-products__filters::after {
        background: linear-gradient(to right, var(--page-bg, #f8fafc), transparent);
    }

    .emadbrz-products__filters-track {
        padding: 0.35rem;
        gap: 0.35rem;
    }

    .emadbrz-products__filter {
        padding: 0.55rem 0.95rem;
        font-size: 0.8125rem;
    }

    .emadbrz-products__grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: clamp(12px, 3vw, 20px);
        gap: clamp(14px, 4vw, 18px);
        padding-inline: clamp(12px, 3vw, 20px);
        margin-inline: calc(-1 * clamp(12px, 3vw, 20px));
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .emadbrz-products--ltr .emadbrz-products__grid {
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }

    .emadbrz-products--rtl .emadbrz-products__grid {
        mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }

    .emadbrz-products__grid::-webkit-scrollbar {
        display: none;
    }

    .emadbrz-products__cell {
        flex: 0 0 min(86vw, 320px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        max-width: min(86vw, 320px);
    }

    .emadbrz-products__cell:first-child {
        flex-basis: min(90vw, 340px);
        max-width: min(90vw, 340px);
    }

    .emadbrz-products__cell--special {
        flex: 0 0 min(86vw, 320px);
        max-width: min(86vw, 320px);
    }

    .emadbrz-products .emadbrz-product-card__shell,
    .emadbrz-products .emadbrz-product-card--featured .emadbrz-product-card__shell {
        flex-direction: column;
        height: 100%;
    }

    .emadbrz-products .emadbrz-product-card__cover,
    .emadbrz-products .emadbrz-product-card--featured .emadbrz-product-card__cover {
        flex: none;
        width: 100%;
        height: clamp(196px, 52vw, 236px);
        min-height: auto;
    }

    .emadbrz-products .emadbrz-product-card__body {
        padding-top: 0.85rem;
    }

    .emadbrz-products .emadbrz-product-card:hover .emadbrz-product-card__shell {
        transform: none;
    }

    .emadbrz-products__special-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: clamp(280px, 72vw, 340px);
        padding: 1.75rem 1.35rem;
    }

    .emadbrz-products__special-title {
        text-align: center;
    }

    .emadbrz-products__footer {
        margin-top: clamp(1.75rem, 5vw, 2.5rem);
    }

    .emadbrz-products__view-all {
        width: min(100%, 320px);
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .emadbrz-products .emadbrz-product-card__shell {
        padding: 14px;
    }

    .emadbrz-products .emadbrz-product-card__head-row {
        gap: 0.65rem;
    }

    .emadbrz-products .emadbrz-product-card__progress {
        width: 56px;
        height: 56px;
    }

    .emadbrz-products .emadbrz-product-card__progress-value {
        font-size: 0.75rem;
    }

    .emadbrz-products .emadbrz-product-card__meta {
        gap: 0.5rem 0.85rem;
    }

    .emadbrz-products .emadbrz-product-card__meta-item {
        font-size: 0.75rem;
    }

    .emadbrz-products .emadbrz-product-card__price-current {
        font-size: 1.125rem;
    }

    .emadbrz-products .emadbrz-product-card__cta {
        min-height: 52px;
        font-size: 0.875rem;
    }

    .emadbrz-products__filter {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .emadbrz-products__filter-icon .emadbrz-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 479px) {
    .emadbrz-products__cell,
    .emadbrz-products__cell:first-child,
    .emadbrz-products__cell--special {
        flex-basis: min(92vw, 300px);
        max-width: min(92vw, 300px);
    }

    .emadbrz-products .emadbrz-product-card__cover,
    .emadbrz-products .emadbrz-product-card--featured .emadbrz-product-card__cover {
        height: clamp(180px, 48vw, 210px);
    }

    .emadbrz-products .emadbrz-product-card__title {
        font-size: 1.125rem;
    }

    .emadbrz-products .emadbrz-product-card__desc {
        -webkit-line-clamp: 2;
        font-size: 0.875rem;
    }

    .emadbrz-products .emadbrz-product-card__price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .emadbrz-products .emadbrz-product-card__discount {
        align-self: flex-start;
    }

    .emadbrz-products .emadbrz-product-card__type-badge,
    .emadbrz-products .emadbrz-product-card__bookmark {
        top: 10px;
    }

    .emadbrz-products .emadbrz-product-card__type-badge {
        inset-inline-end: 10px;
        font-size: 0.6875rem;
        padding: 0.3rem 0.6rem;
    }

    .emadbrz-products .emadbrz-product-card__bookmark {
        inset-inline-start: 10px;
        width: 36px;
        height: 36px;
    }

    .emadbrz-products__special-title {
        font-size: 1.125rem;
    }

    .emadbrz-products__special-btn {
        width: 100%;
        min-height: 48px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .emadbrz-product-card:hover .emadbrz-product-card__shell,
    .emadbrz-product-card:hover .emadbrz-product-card__img,
    .emadbrz-product-card__cta:hover,
    .emadbrz-products__view-all:hover,
    .emadbrz-products__special-btn:hover {
        transform: none;
    }

    .emadbrz-product-card:active .emadbrz-product-card__shell {
        transform: scale(0.985);
    }

    .emadbrz-product-card__cta:active,
    .emadbrz-products__special-btn:active {
        transform: scale(0.98);
    }
}
