/* ===== Products page (RTL) ===== */
.hero--products {
    background: var(--color-bg-alt);
}
.hero__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 36px;
}
#hero-title {
    display: block;
    align-self: center;
    justify-self: center;
    text-align: center;
}
.hero__text {
    flex: 1 1 520px;
    text-align: center;
}
.hero__media {
    flex: 1 1 520px;
    display: flex;
    justify-content: center;
}
.hero__media img {
    width: 100%;
    height: clamp(240px, 36vw, 420px);
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(28, 42, 74, 0.08);
}
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.products .section__header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}
.products .section__header h2 {
    font-size: var(--h2-size);
    margin: 0;
    text-align: center;
    color: var(--color-gray-050);
}
.products .section__sub {
    text-align: center;
    color: var(--color-gray-050);
}

.accessories .section__header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    color: var(--color-gray-050);
}
.accessories .section__header h2 {
    font-size: var(--h2-size);
    margin: 0;
    text-align: center;
    color: var(--color-dark-blue);
}

.accessories .section__sub {
    color: var(--color-dark-blue);
    text-align: center;
}

/* Cards wrap */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Single card */
.product-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 320px; /* שלוש בעמודה מעל 1024px, נשבר יפה מתחת */
    max-width: 360px; /* מונע מתיחה מוגזמת במסכים רחבים */
    border: 1px solid rgba(28, 42, 74, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    background: #fff;
    overflow: hidden;
}

/* Image on top */
.product-card__media {
    display: block;
    line-height: 0;
}
.product-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Body */
.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}
.product-card__title {
    font-size: var(--h3-size);
    margin: 0;
}
.product-card__desc {
    margin: 0;
    color: var(--color-text-secondary);
}
.product-card__specs {
    margin: 0;
    padding-inline-start: 18px; /* RTL ידידותי */
    color: var(--color-text-secondary);
}
.product-card__cta {
    margin-top: 6px;
    display: flex;
    gap: 10px;
}
.product-card__cta .btn {
    flex: 1;
    text-align: center;
}
/* CTA bar */
.cta {
    padding: 24px 16px;
    margin-top: 40px;
    background: #000;
    margin: 1rem;
}
.cta__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(255, 255, 255);
    gap: 12px;
}
/* ===== Accessories (RTL) ===== */
.accessories .acc-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.acc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(28, 42, 74, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    background: #fff;
    overflow: hidden;
    /* desktop: exactly 3 in a row */
    flex: 1 1 calc(33.333% - 10.7px);
    max-width: calc(33.333% - 10.7px);
    text-align: center;
}

.acc-card .btn {
    flex: 1;
    text-align: center;
}

.acc-card__media {
    display: block;
    line-height: 0;
    height: 100%;
}
.acc-card__media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.acc-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
}
.acc-card__title {
    font-size: var(--h4-size);
    margin: 0;
}
.acc-card__desc {
    margin: 0;
    color: var(--color-text-secondary);
}
.acc-card__cta {
    margin-top: 4px;
    display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__wrap {
        flex-direction: column-reverse;
        max-height: 600px;
    }
    .hero__media img {
        height: clamp(220px, 50vw, 360px);
    }
    .product-card {
        max-width: 100%;
    }
    .cards {
        justify-content: center;
    }
    .acc-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 640px) {
    .acc-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .acc-card__media img {
        height: 180px;
    }
}
