.products-section {
    position: relative;
    width: 100%;
    padding: 70px 24px;
    background: #f5f5f5;
    overflow: hidden;
}

/* .products-section::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.06);
    pointer-events: none;
}

.products-section::after {
    content: "";
    position: absolute;
    bottom: -110px;
    right: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    pointer-events: none;
} */

.products-section-header {
    position: relative;
    z-index: 1;

    max-width: 1180px;
    margin: 0 auto 34px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.products-header-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(
        to left,
        transparent,
        rgba(29, 78, 216, 0.45),
        transparent
    );
}

.products-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--color-text, #1f2937);
    white-space: nowrap;
}

.products-slider {
    position: relative;
    z-index: 1;

    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: minmax(460px, 520px);
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 78, 216, 0.35) transparent;
}

.products-slider::-webkit-scrollbar {
    height: 8px;
}

.products-slider::-webkit-scrollbar-track {
    background: transparent;
}

.products-slider::-webkit-scrollbar-thumb {
    background: rgba(29, 78, 216, 0.35);
    border-radius: 999px;
}

.product-card {
    min-height: 220px;
    min-width: 300px;
    padding: 22px;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;

    background: rgb(255 255 255 / 20%);
    /* border: 1px solid rgba(255, 255, 255, 0.75); */
    border-radius: 28px;
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.08);

    backdrop-filter: blur(3px) saturate(150%);
    -webkit-backdrop-filter: blur(3px) saturate(150%);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;

    scroll-snap-align: start;
    direction: ltr;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 15px rgba(15, 23, 42, 0.233);
    /* background: rgba(255, 255, 255, 0.94); */
}

.product-card-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    direction: rtl;
}

.product-card-title {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text, #1f2937);
    line-height: 1.5;
}

.product-card-text {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 2;
    color: #4b5563;
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 124px;
    height: 44px;
    padding: 0 18px;

    border-radius: 14px;
    background: var(--color-primary, #1d4ed8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card-btn:hover {
    background: var(--color-primary-hover, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.product-card-image-wrapper {
    flex: 0 0 170px;
    width: 170px;
    height: 170px;
    border-radius: 22px;
    overflow: hidden;
    align-self: center;
    background: #e5e7eb;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
/* =========================
   Responsive
   ========================= */

@media (max-width: 992px) {
    .products-section {
        padding: 56px 16px;
    }

    .products-title {
        font-size: 26px;
    }

    .products-slider {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-columns: minmax(340px, 420px);
        gap: 18px;
    }

    .product-card {
        min-height: 200px;
        padding: 18px;
        gap: 16px;
    }

    .product-card-image-wrapper {
        flex: 0 0 135px;
        width: 135px;
        height: 135px;
    }

    .product-card-title {
        font-size: 20px;
    }

    .product-card-text {
        font-size: 13px;
        line-height: 1.9;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 48px 14px;
    }

    .products-section-header {
        margin-bottom: 26px;
        gap: 12px;
    }

    .products-title {
        font-size: 24px;
    }

    .products-header-line {
        max-width: 100px;
    }

    .products-slider {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-columns: calc(100vw - 40px);
        gap: 16px;
        padding-inline-end: 14px;
    }

    .product-card {
        min-height: 185px;
        padding: 16px;
        gap: 14px;
        border-radius: 22px;
    }

    .product-card-content {
        flex: 1;
        min-width: 0;
    }

    .product-card-image-wrapper {
        flex: 0 0 110px;
        width: 110px;
        height: 110px;
        border-radius: 16px;
    }

    .product-card-title {
        font-size: 17px;
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .product-card-text {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 12px;

        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-btn {
        min-width: 108px;
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 42px 12px;
    }

    .products-section-header {
        gap: 10px;
        margin-bottom: 22px;
    }

    .products-header-line {
        max-width: 60px;
    }

    .products-title {
        font-size: 22px;
    }

    .products-slider {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-columns: calc(100vw - 24px);
        gap: 12px;
        padding-inline-end: 12px;
    }

    .product-card {
        min-height: 165px;
        padding: 12px;
        gap: 10px;
        border-radius: 18px;
    }

    .product-card-image-wrapper {
        flex: 0 0 88px;
        width: 88px;
        height: 88px;
        border-radius: 14px;
    }

    .product-card-title {
        font-size: 15px;
        margin-bottom: 6px;
        line-height: 1.6;
    }

    .product-card-text {
        font-size: 12px;
        line-height: 1.75;
        margin-bottom: 10px;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-btn {
        min-width: 96px;
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .products-slider {
        grid-auto-columns: calc(100vw - 20px);
        gap: 10px;
    }

    .product-card {
        min-height: 155px;
        padding: 10px;
        gap: 8px;
    }

    .product-card-image-wrapper {
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-card-text {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .product-card-btn {
        min-width: 88px;
        height: 34px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card-btn {
        transition: none !important;
    }

    .product-card:hover,
    .product-card-btn:hover {
        transform: none !important;
    }
}


/*------------------------*/
.products-section {
    position: relative;
    width: 100%;
    padding: 70px 24px;
    /* background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.75), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.45), transparent 25%),
        linear-gradient(to bottom, #f8fafc, #eef4fb); */
    overflow: hidden;
    isolation: isolate;
}

/* لایه افکت */
.products-aurora-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* هاله‌های محو */
.products-blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.34;
    animation: productsDrift 2s ease-in-out infinite alternate;
}

.products-orb1 {
    width: 320px;
    height: 320px;
    background: rgba(125, 167, 252, 0.715);
    bottom: 10%;
    left: 4%;
}

.products-orb2 {
    width: 280px;
    height: 280px;
    background: rgba(134, 239, 173, 0.748);
    bottom: 8%;
    right: 6%;
    animation-delay: 2s;
}

.products-orb3 {
    width: 240px;
    height: 240px;
    background: rgba(191, 219, 254, 0.28);
    top: 32%;
    right: 24%;
    animation-delay: 4s;
}

/* موج‌های شفق */
.products-aurora {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.products-wave {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3;
    opacity: 0.38;
    filter: blur(1.4px);
    animation: productsWaveFloat 3.5s ease-in-out infinite alternate;
    transform-origin: center;
}

.products-wave.pw1 {
    stroke: rgba(125, 211, 252, 0.9);
}

.products-wave.pw2 {
    stroke: rgba(134, 239, 172, 0.78);
    animation-delay: 1.5s;
}

.products-wave.pw3 {
    stroke: rgba(191, 219, 254, 0.85);
    animation-delay: 3s;
}

.products-wave.pw4 {
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 2;
    animation-delay: 2.2s;
}

@keyframes productsWaveFloat {
    from {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    to {
        transform: translateY(-14px) translateX(18px) scale(1.015);
    }
}

@keyframes productsDrift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(20px, -16px) scale(1.06);
    }
}
