:root {
    --bg: #ffffff;
    --text: #1a2433;
    --muted: #6b778c;
    --line: #e9eef6;

    --shadow: 0 18px 40px rgba(16, 24, 40, .12);
    --shadow2: 0 10px 26px rgba(16, 24, 40, .10);

    --r1: 22px;
    --r2: 16px;

    --heroH: 300px;

    /* טאבים */
    --t-orange: #ff8a00;
    --t-green: #31c24b;
    --t-blue: #2d6bff;
    --t-navy: #1f3a8a;
    --t-cyan: #1aa7ff;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

/* -------- HERO -------- */
.header {
    position: relative
}

.hero {
    /*height: var(--heroH);*/
    background-image: var(--hero);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/1;
    width: 100%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    /*background:*/
    /*        linear-gradient(to bottom, rgba(255,255,255,.18) 10%, rgba(255,255,255,.70) 100%),*/
    /*        radial-gradient(900px 500px at 20% 30%, rgba(255,75,75,.18), transparent 60%),*/
    /*        radial-gradient(700px 450px at 70% 10%, rgba(255,140,0,.14), transparent 60%);*/
}

/* -------- TOP CARD ABOVE PRODUCTS -------- */
.main {
    padding: 18px 0 90px;
}

.topCardWrap {
    margin-top: -56px; /* יושב קצת על ההירו */
    position: relative;
    z-index: 2;
}

@media (max-width: 920px) {
    :root {
        --heroH: 240px;
    }

    .topCardWrap {
        margin-top: -40px;
    }
}

.heroCard {
    background: white;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--r1);
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px
}

.brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff3b30
}

.brand__text {
    font-weight: 800;
    letter-spacing: .2px
}

.heroCard__title {
    margin: 4px 0 8px;
    font-size: 30px;
    font-weight: 900;
}

.heroCard__intro {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* טאבים */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tab {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow2);
    transform: translateY(0);
    transition: transform .12s ease, filter .12s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.02)
}

.tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .25), var(--shadow2)
}

.tab.is-active {
    filter: brightness(1.06);
    transform: translateY(-1px)
}

.tab:nth-child(1) {
    background: var(--t-orange)
}

.tab:nth-child(2) {
    background: var(--t-green)
}

.tab:nth-child(3) {
    background: var(--t-blue)
}

.tab:nth-child(4) {
    background: var(--t-navy)
}

.tab:nth-child(5) {
    background: var(--t-cyan)
}

.tab:nth-child(6) {
    background: var(--t-blue)
}

.tab:nth-child(7) {
    background: var(--t-navy)
}

.tab:nth-child(8) {
    background: var(--t-green)
}

/* -------- CATEGORY -------- */
.category {
    padding-top: 18px;
}

.category.is-hidden {
    display: none
}

.category__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding: 18px 0 10px;
    border-top: 1px solid var(--line);
}

.category__title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.category__actions {
    display: flex;
    gap: 10px
}

.chip {
    border: 1px solid var(--line);
    background: #f7f9fe;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: #2b3a55;
}

.chip:hover {
    background: #eef4ff
}

.chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .18)
}

.emptyState {
    padding: 14px 16px;
    border: 1px dashed rgba(0, 0, 0, .14);
    border-radius: var(--r1);
    color: var(--muted);
    background: #fbfcff;
}

/* -------- PRODUCTS GRID -------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 25%;
}

/* כרטיס מוצר */
.card {
    border-radius: var(--r1);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.product__media {
    padding: 12px;
    position: relative;
}

.mediaBtn {
    width: 100%;
    display: block;
    border-radius: var(--r2);
    overflow: hidden;
    background: #f3f6fc;
    border: 1px solid rgba(0, 0, 0, .04);
    padding: 0;
    cursor: pointer;
    position: relative;
}

.mediaBtn:hover .product__img {
    transform: scale(1.04)
}

.mediaBtn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .20)
}

.product__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .18s ease, opacity .15s ease;
}

/* badge +N */
.badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    background: rgba(16, 24, 40, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.product__body {
    padding: 0 14px 14px
}

.product__title {
    margin: 6px 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.product__desc {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

/* לינק גלוי + העתקה */
.product__linkRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product__link {
    display: inline-block;
    color: #2d6bff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.copyMini {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #f7f9fe;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 900;
}

.copyMini:hover {
    background: #eef4ff
}

.copyMini:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .18)
}

/* -------- WhatsApp Sticky -------- */
.wa {
    position: fixed;
    bottom: 16px;
    inset-inline-end: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #1aa368;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    max-width: min(360px, calc(100% - 32px));
    z-index: 70;
}

.wa__cta {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    opacity: .95;
}

.wa__btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, .16);
    border-radius: 12px;
    font-weight: 900;
}

/* -------- Modal Gallery -------- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 80;
}

.modal.is-open {
    display: block
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .55);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    width: min(980px, calc(100% - 28px));
    margin: 24px auto;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.modal__title {
    font-weight: 900;
    margin: 0;
    font-size: 16px;
    color: #1a2433;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal__close {
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 900;
}

.modal__close:hover {
    background: #f3f6ff
}

.modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .18)
}

.modal__stage {
    position: relative;
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.modal__img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    display: block;
}

.modal__nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 10px;
}

.modal__arrow {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 14px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-weight: 900;
}

.modal__arrow:hover {
    background: rgba(255, 255, 255, .16)
}

.modal__arrow:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .18)
}

.modal__bottom {
    padding: 12px 14px 14px;
    background: #fff;
}

.modal__thumbs {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 2px;
}

.thumb {
    width: 86px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #eef2ff;
    cursor: pointer;
    flex: 0 0 auto;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb.is-active {
    border-color: rgba(45, 107, 255, .85)
}

.thumb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 107, 255, .18)
}

.modal__hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 920px) {
    .products {
        max-width: unset;
    }
    .modal__img {
        height: 360px;
    }

    .modal__stage {
        min-height: 320px;
    }

}
