.hero {
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    position: relative;
    top: 160px;
}

.hero h1 {
    font-size: 4rem;
    background: #4198c1;
    background: linear-gradient(to right, #c67a18 31%, #196c97 79%);    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 0.5em;
    color: black;
    font-weight: bold;
}

.cta {
    margin-top: 2rem;
    background: #0a2e52;
    padding: 0.8em 2em;
    border: none;
    border-radius: 30px;
    color: white;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.68);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta:hover {
    transform: scale(1.05);
}

.main-section {
    max-width: 1200px;
    margin: 100px auto auto auto;
}

.hot-picks {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.incard {
    background: #eee;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1em;
    flex: 1 1 calc(16.6% - 1em);
    text-align: center;
    color: #0a2e52;
    transition: transform 0.3s;
}

.incard h2 {
    margin: 15px 0;
    font-size: 17px;
}

.card {
    background: var(--main-layer);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1em;
    flex: 1 1 calc(25% - 1em);
    text-align: center;
    transition: transform 0.3s;
    color: white;
}

.card:nth-child(even) {
    background: var(--second-layer);
}

.incard:hover {
    transform: translateY(-10px);
}

.card img {
    max-width: 100%;
    border-radius: 100%;
}

.incard img {
    max-width: 100%;
    border-radius: 100%;
}

.card img:hover {
    opacity: 0.8;
}

.card h2 {
    margin: 10px;
    font-size: 14px;
}

.card h2, .card a {
    color: white;
}

.label h3 {
    font-weight: normal;
    font-size: 14px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 3em;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    max-width: 200px;
}

.feature img {
    height: 50px;
    margin-bottom: 0.5em;
}

.gallery {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    max-width: 300px;
}





.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    max-width: 200px;
}

.nav-links {
    display: flex;
    gap: 1.5em;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: linear-gradient(90deg, #ecae4d, #cd8718);
    border: none;
    padding: 0.5em 1.5em;
    border-radius: 20px;
    color: white;
    text-shadow: 1px 1px rgba(175, 105, 6, 0.68);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.title-bold {
    background: linear-gradient(90deg, #1b446b, #4b7ca8);
    padding: 10px;
    width: fit-content;
    color: #ffffff;
    border-radius: 13px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.68);
    margin: 20px auto;
}

.title-less-bold {
    background: linear-gradient(90deg, #c1c1c1, #a6a6a6);
    padding: 10px;
    width: fit-content;
    color: #ffffff;
    border-radius: 13px;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.68);
    margin: 20px auto;
}

.nav-cta:hover {
    transform: scale(1.05);
}

.accordion-gallery {
    display: flex;
    height: 40vh;
    max-width: 1200px;
    overflow: hidden;
    direction: rtl;
    margin: 200px auto 50px auto;
}

.accordion-item {
    flex: 1;
    position: relative;
    transition: flex 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(90deg, #c1780a, #f1bc0f);
}

.accordion-item:nth-child(2) {
    background: linear-gradient(90deg, #ff558a, #ac0d28);
}

.accordion-item:nth-child(3) {
    background: linear-gradient(90deg, #818181, #d5d5d5);
}

.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.accordion-item .label {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px #000;
    z-index: 2;
}
.accordion-item.active,
.accordion-item:hover {
    flex: 3;
}
.accordion-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .accordion-gallery {
        flex-direction: column;
        height: auto;
    }
    .accordion-item,
    .accordion-item.active,
    .accordion-item:hover {
        flex: none;
        height: 200px;
    }
}

.has-mega-menu {
    position: relative;
}

.mega-menu {
    display: none; /* זה היה חסר! */
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--main-layer);    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 12px;
    gap: 40px;
    z-index: 999;
    min-width: 650px;
    animation: fadeIn 0.3s ease;
    justify-content: right;
    text-align: right;
    backdrop-filter: blur(10px);
}

.nav-item:hover .mega-menu {
    display: flex;
}

.mega-menu h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffa700;
}

.mega-menu a {
    display: block;
    color: var(--primary);
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

.mega-menu a:hover {
    color: var(--secondary);
}

.mega-menu .mega-image img {
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mega-column {
    display: flex;
    flex-direction: column;
    width: 30%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-page {
    background-size: cover;
    margin: 0 0 40px 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px;
    color: #fff;
    max-width: 1200px;
    margin: 50px auto 0px auto;
    background: #eee;
    border-radius: 10px;
}

.sections-container {
    color: #fff;
    max-width: 1200px;
    margin: 0px auto 0px auto;
    background: rgba(0, 0, 0, 0.24);
}

.product-gallery-modern {
    flex: 1;
    min-width: 320px;
}

.product-gallery-modern:first-child {
    padding: 15px;
    background: rgb(72, 106, 149);
    border-radius: 10px;
}

.product-gallery-modern #mainImage {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 20px #00000040;
}

#mainProductImage {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px #00000040;
    animation: productFloat 7s ease-in-out infinite;
}

@keyframes productFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

.product-gallery-modern .thumbs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.product-gallery-modern .thumbs img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.product-gallery-modern .thumbs img:hover {
    border-color: #00ccff;
}

.product-details-modern {
    flex: 1;
    min-width: 320px;
}

.product-details-modern h1 {
    font-size: 36px;
    color: #2e628e;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: titleAppear 0.6s ease forwards;
    animation-delay: 0.15s;
}

@keyframes titleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.active-attr .tag,
.option-tag {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 14px;
    color: #000000;
}

.option-tag.active {
    border: 3px solid black;
}

.stock-if {
    border-top: 1px dashed #cdcdcd;
    border-bottom: 1px dashed #cdcdcd;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 20px 0;
    animation: pulseStock 2.5s ease-in-out infinite;

}

@keyframes pulseStock {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.07); opacity: 0.85; }
}

.color-dot {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 3px #000;
}

.instockline {
    font-size: 20px;
    font-weight: 500;
    color: green;
}

.offstockline {
    font-size: 20px;
    font-weight: 500;
    color: #858585;
}

.attr-selector {
    margin-top: 20px;
}

.attr-selector h2 {
    margin-bottom: 8px;
    color: black;
}

.price-buy-section {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.price {
    font-size: 38px;
    color: #000;
    font-weight: bold;
}

.acc-layout {
    background: rgba(255, 255, 255, 0.38);
    width: 100%;
}

.add-to-cart-btn {
    background: linear-gradient(90deg, #1b446b, #4b7ca8);
    color: white;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.68);
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

.add-to-cart-btn:hover {
    transform: scale(1.5);
    background: linear-gradient(90deg, #cf7a17, #ffa92a);
}

.product-description {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #2e628e;
}

.product-description ul li {
    list-style: none;
    margin-bottom: 15px;
}



section.section {
    position: relative;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.section .overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay-color, #000);
    opacity: var(--overlay-opacity, 0.5);
    z-index: 0;
    pointer-events: none;
}

.section .content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}



.section .content-wrapper.right {
    text-align: right;
}

.section .content-wrapper.left {
    text-align: left;
}

.section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.section .section-content {
    font-size: 1.2em;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ff0000;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #cc0000;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}
.fade-up {
    animation: fadeUp 1s ease-in-out;
}
.slide-left {
    animation: slideLeft 1s ease-in-out;
}
.slide-right {
    animation: slideRight 1s ease-in-out;
}
.zoom-in {
    animation: zoomIn 1s ease-in-out;
}
.zoom-out {
    animation: zoomOut 1s ease-in-out;
}
.rotate-in {
    animation: rotateIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes zoomOut {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

.product-section-container {
    display: block;
    max-width: 1200px;
    background: #ececec;
    margin: 0 auto;
    border-right: 6px solid white;
    border-left: 6px solid white;
}

@media (max-width: 768px) {
    .section.image-text.has-mobile-height {
        min-height: var(--mobile-height) !important;
    }
}

.section.image-text .content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center; /* יישור אנכי כברירת מחדל */
    height: 100%;
}

.section-content td img {
    width: 100%;
}

.section-content table {
    width: 1000px;
    text-shadow: none;
}

.section-content th {
    color: black;
}

.section {
    min-height: var(--min-h, auto);
}
@media (max-width: 768px) {
    .section {
        min-height: var(--min-h-mobile, var(--min-h, auto));
    }
}

.site-footer {
    margin-top:80px;
    background: var(--main-layer);
    backdrop-filter: blur(10px);
    width: 100%;
}

.store_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.store_container img {
    width: 100%;
    max-width: 200px;
}

.site-footer .store_container {
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.2fr;
    gap:24px;
    padding:28px 16px;
}

.site-footer h5{ margin:0 -5px 20px; color: black;
    font-size:14px; background: rgb(236, 174, 77);
    width: fit-content;
    padding: 10px;
    border-radius: 15px;
    opacity:.9 }
.site-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px;}
.site-footer a{ opacity:.9; }
.site-footer .logo{ height:28px; margin-bottom:10px }
.newsletter{ display:flex; gap:8px; }
.newsletter input{ flex:1; background: rgba(255, 255, 255, 0.75); border:1px solid #818181; border-radius:10px; padding:10px; }
.newsletter button{ background: #a8a8a8; padding:10px 14px; border-radius:10px; border: 0}
.social{ display:flex; gap:10px; margin-top:10px; }
.bottom{
    padding:10px 16px; text-align:center; opacity: 0.8;
    background: rgba(0, 0, 0, 0.47);
}
@media (max-width: 900px){
    .site-footer .store_container{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
    .site-footer .store_container{ grid-template-columns:1fr; }
}

.pro-enter {
    width: 100%;
    margin-top: 160px;
}

.pro-enter img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 60% 90%;
}

.card p {
    margin: 30px 0;
}

/* שלד כללי; תתמזג עם ה-CSS שלך */
.filters{position:sticky;top:100px;background: rgb(255, 255, 255)
;border-radius:16px;padding:16px}
.filter-block+ .filter-block{margin-top:16px}
.filter-block h4{color: #ecae4d; margin:0px 0 15px;font-size:18px;opacity:.9}
.range{display:flex;flex-direction: column;gap:8px}
.grid{display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:16px;margin-top:8px}
.product-card{text-align: center; background: rgb(238, 238, 238);border-radius:16px;padding:12px;display:flex;flex-direction:column}
.product-card a { color: var(--main-layer); }
.product-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.product-card .title{margin:8px 0 4px;font-weight:600}
.product-card .price{
    color: var(--main-layer);
    font-weight: 500;
    font-size: 16px;
}
.product-card .cta{margin-top:8px;background: #295280;padding:8px 12px;border-radius:10px}
.pagination{
    display:flex;gap:8px;justify-content:center;margin:20px 0}
.pagination button{background: var(--main-layer); padding:8px 12px;border:0;border-radius:10px; cursor: pointer}
.filters-toggle{display:none;position:sticky;top:90px;z-index:9;margin:0 0 8px 0;background:#111;padding:8px 12px;border-radius:10px}
@media (max-width:1024px){
    .shop-layout{grid-template-columns:1fr}
    .filters{position:fixed;inset:auto 0 0 0;top:0;max-width:360px;height:100dvh;transform:translateX(110%);transition:.25s;z-index:1000;overflow:auto}
    .filters.open{transform:translateX(0)}
    #toggleFilters.filters-toggle{display:inline-block}
}

/* ===== Products + Filters (RTL right sidebar) ===== */
.shop-layout{
    display:grid;
    grid-template-areas: "filters products"; /* פילטרים קודם = ימין */
    grid-template-columns: 320px 1fr;         /* פילטרים צרים, מוצרים רחבים */
    gap:24px;
    align-items:start;
    max-width:1200px;
    margin: 40px auto;
    padding:0 0px;
    direction: rtl;
}

.filter-block input {
    border: 0;
    padding: 7px;
}

.filter-block li {
    list-style: none;
    color: #fff;
    display: inline;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.filter-block li input, select {
    margin: 5px;
    background: #fff;
    border: 0;
    padding: 5px;
    width: fit-content;
}

.shop-layout .filters{  grid-area: filters; }
.shop-layout .products{ grid-area: products; }

.products {
    padding: 0;
}

/* פאנל פילטרים */
#filtersPanel.filters{
    background: #3a5f81;
    backdrop-filter: blur(10px);
    border-radius:16px;
    padding:16px;
    position:sticky;
    top:110px;
}

.extend {
    margin: 20px 0;
}

/* גריד מוצרים מרווח */
#productsGrid.grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap:16px;
}

/* כרטיסים – להשתמש בכיתה card הקיימת שלך */
#productsGrid .card{ display:flex; flex-direction:column; }
#productsGrid .card img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; }

/* פאג’ינציה */
.pagination{ display:flex; gap:8px; justify-content:center; margin:20px 0; }

/* מובייל: עמודה אחת + תפריט פילטרים נסתר */
@media (max-width:1024px){
    .shop-layout{
        grid-template-areas: "products";
        grid-template-columns: 1fr;
    }
    #toggleFilters.filters-toggle{ display:inline-block; position:sticky; top:90px; z-index:9; }
    #filtersPanel.filters{
        position:fixed; inset:0 auto 0 0; right:0; width:86vw; max-width:360px;
        transform: translateX(110%); transition:.25s; overflow:auto; height:100dvh; top:0;
    }
    #filtersPanel.filters.open{ transform: translateX(0); }
}

.cat-tree{ list-style:none; padding:0 8px; margin:0; display:grid; text-align: right; gap:4px }
.cat-tree ul{ padding-right:14px; border-right:1px solid #0b395a; margin-top:6px }
.cat-item{ display:flex; gap:8px; align-items:center; }
.cat-item input{ accent-color:#ecae4d; }

.facet-list label{ display:flex; align-items:center; gap:8px; margin:4px 0 }
.facet-list .count{ opacity:.7; font-size:.9em }

/* === User menu (auth) === */
.auth-link{
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    height: fit-content;
    border: 0;
    color: white;
}
.auth-link + .auth-link{ margin-right: 8px; }

.user-menu{ position: relative; }
.user-pill{
    display:flex; align-items:center; gap:8px;
    background: var(--main-layer);
    backdrop-filter: blur(8px);
    border:0; border-radius: 999px;
    padding: 6px 10px; color:#fff; cursor:pointer;
}
.user-pill .avatar{
    width:24px; height:24px; border-radius:50%;
    object-fit:cover; background:#fff3;
}
.user-dropdown{
    position:absolute; top: calc(100% + 8px); right:0;
    background: var(--main-layer); backdrop-filter: blur(10px);
    min-width: 180px; padding:10px; border-radius:12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    display:none; z-index:1000; text-align:right;
}
.user-dropdown a{ display:block; color:#fff; padding:8px 6px; border-radius:8px; }
.user-dropdown a:hover{ background: rgba(255,255,255,.08); }
.user-dropdown hr{ border:0; height:1px; background: #ffffff22; margin:6px 0; }

/* פתיחה בהובר לדסקטופ */
.user-menu:hover .user-dropdown{ display:block; }
/* ופתיחה בקליק למובייל/טאץ' */
.user-menu.open .user-dropdown{ display:block; }

/* === Cart UI === */
.cart-pill{
    display:flex; align-items:center; gap:6px;
    background: rgba(255, 255, 255, 0.99);
    border:0; border-radius:999px;
    padding:6px 10px; color:#fff;
    cursor:pointer
}
.cart-pill .icon{ font-size:18px }
#cartCount{ background:#ecae4d; color:#000; padding:2px 8px; border-radius:999px; font-weight:700 }

.cart-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:998; }
.cart-backdrop[hidden]{ display:none; }

.cart-drawer{ position:fixed; top:0; bottom:0; left:0; width:360px;
    transform:translateX(-110%); transition:transform .25s ease;
    background: linear-gradient(180deg, rgba(230, 235, 241, 0.83), rgba(230, 235, 241, 0.8));
    backdrop-filter: blur(10px);
    z-index:9999999; display:flex; flex-direction:column; color: #2f4d6e
}
.cart-drawer.open{ transform:translateX(0); }
.cart-header, .cart-footer{ padding:12px 14px; border-bottom:1px solid #2f4d6e
}
.cart-footer{ display: flex; justify-content: center; border-top:1px solid #2f4d6e; border-bottom:0; margin-top:auto }
.cart-close{ margin-inline-start:auto; background:transparent; border:0; color: #2f4d6e; font-size:24px; cursor:pointer }
.cart-content{ padding:12px 14px; overflow:auto; height:100% }
.cart-line{ background: #fff; display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center; padding:15px; border-bottom:1px dashed #2f4d6e
}
.cart-line .title{ font-weight:600 }
.cart-line .price{ font-size: 16px; opacity:.9 }
.cart-line .qty{ display:flex; gap:6px; align-items:center }
.cart-line .qty input{ width:56px; text-align:center; border-radius:8px; border:0; padding:6px; }
.cart-line .remove{ background:transparent; border:0; color: #2f4d6e; cursor:pointer; font-size:18px }

/* ===== Checkout ===== */
.main-section .card form > .grid{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr; /* פרטים | סיכום */
    gap:24px;
    align-items:start;
    direction: rtl;
}
@media (max-width: 900px){
    .main-section .card form > .grid{ grid-template-columns:1fr; }
}

/* כותרות בלוק */
.main-section .card h3{
    margin:0 0 12px;
    color:#fff;
    font-size:20px;
}

/* שדות טופס */
.filter-block{ margin-bottom:12px; }
.filter-block h4{
    margin:0 0 8px;
    color: #ffffff;
    font-size:16px;
    opacity:.95;
}
.filter-block input,
.filter-block textarea,
.filter-block select{
    width:fit-content;
    background: rgba(255,255,255,0.92);
    border:1px solid #8ea4b3;
    border-radius:12px;
    padding:10px 12px;
    color:#0b2a3a;
    outline:0;
    box-shadow:0 0 0 0 rgba(0,0,0,0);
    transition: box-shadow .15s ease, border-color .15s ease;
}


.filter-block textarea{ resize:vertical; min-height:90px; }
.filter-block input:focus,
.filter-block textarea:focus,
.filter-block select:focus{
    border-color:#ecae4d;
    box-shadow:0 0 0 3px rgba(236,174,77,.28);
}

/* רשימת פריטים */
.facet-list{
    margin:0; padding:0;
    display:grid; gap:8px;
}
.facet-list li{
    display:flex; justify-content:space-between; align-items:baseline;
    background: rgba(255,255,255,.08);
    border-radius:10px; padding:10px 12px;
}
.facet-list strong{ color:#fff; }

/* סכומים */
.checkout-totals{
    margin-top:10px;
    background: rgba(0,0,0,.25);
    border-radius:12px;
    padding:12px;
    display:grid; gap:6px;
}
.checkout-totals .row{ display:flex; justify-content:space-between; }
.checkout-totals .grand{ font-weight:700; font-size:18px; }

/* קופון */
.filter-block input[name="coupon_code"]{ text-transform:uppercase; letter-spacing:.5px; }

/* כפתור המשך */
.card .cta[type="submit"]{
    width:100%; text-align:center; margin-top:8px;
}

/* סיכום הזמנה סטיקי (דסקטופ) */
@media (min-width: 901px){
    .main-section .card form > .grid > div:nth-child(2){
        position: sticky; top: 110px;
    }
}

/* Account */
.account-layout .card { background: var(--main-layer); backdrop-filter: blur(10px); }
.account-nav .auth-link { display:block; text-align:center; }
.orders-table table th, .orders-table table td { color:#fff; }
.orders-table td { padding: 15px 0 !important; }

.incard h3 {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 0;
    color: rgba(185, 218, 232, 0.58);
}

.home-hero {
    position: relative;
    margin: clamp(8px, 2vw, 18px) auto;
    max-width: 1200px;
}

.home-hero .hero-card {
    display: block;
    background: #0f1115;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-hero .hero-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }

.hero-image { position: relative; aspect-ratio: 16/9; background: #0b0d12; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tag-badges {
    position: absolute;
    top: 10px; inset-inline-start: 10px; /* RTL/LTR ידידותי */
    display: flex; gap: 8px; flex-wrap: wrap;
    max-width: 80%;
}

.product-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
    background: var(--bg, #ff4757);
    animation: scalePulse 1.2s ease-in-out infinite; /* 👈 כאן האפקט */
    transform-origin: center;
}

/* צבעים שונים לפי סוג תגית */
.tag-red  { --bg: #ff4757; }
.tag-blue { --bg: #4361ee; }
.tag-green{ --bg: #2ecc71; }

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); } /* 👈 עד כמה לגדול */
}


/* כיתוב */
.hero-info { padding: 14px 14px 16px; display: grid; gap: 6px; }
.hero-title { margin: 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.35; }
.hero-price { font-weight: 800; font-size: clamp(15px, 2vw, 18px); color: #91e6a8; }

/* Swiper sizing */
.homeSwiper .swiper-slide { height: auto; }
.homeSwiper .swiper-button-prev, .homeSwiper .swiper-button-next {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.homeSwiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.homeSwiper .swiper-pagination-bullet-active { opacity: 1; }


/* --------------------------------------------------------------- */

@media (max-width: 768px){

    .hero-bg, .hero, .theoverlay {
        height: 380px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size:  0.8rem;
    }

    .accordion-gallery {
        margin-top: 123px;
    }

    .hero-content img {
        max-width: 160px;
    }

    .hero {
        top: 123px;
    }

    .incard h2 {
        font-size: 14px;
    }

    .incard h3 {
        font-size: 12px;
    }



}


/* כפתור המבורגר — מוסתר בדסקטופ, מוצג במובייל */
.nav-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}
.nav-burger span {
    position: absolute; left: 10px; right: 10px;
    height: 2px; background: #fff; border-radius: 2px;
    transition: transform .3s, top .3s, opacity .3s;
}
.nav-burger span:nth-child(1){ top: 14px; }
.nav-burger span:nth-child(2){ top: 21px; }
.nav-burger span:nth-child(3){ top: 28px; }
.nav-burger.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2){ opacity: 0; }
.nav-burger.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* שכבת רקע מאחורי המגירה */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9;
}

/* מצב דסקטופ כרגיל */
@media (min-width: 901px) {
    .nav-burger { display: none; }
    .nav-links { display: flex; } /* כפי שהיה */
}

/* מובייל / טאבלט */
@media (max-width: 900px) {
    .navbar { padding: 14px 16px; }
    :root { --navbar-h: 66px; }
    .logo img { max-width: 150px; }

    .nav-burger { display: inline-block; }
    .nav-container { gap: 10px; }

    /* המרת הניווט למגירה ימנית */
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(88vw, 360px);
        background: var(--main-layer);
        backdrop-filter: blur(10px);
        padding: 86px 18px 18px; /* רווח לראש ההדר */
        display: flex; flex-direction: column; gap: 14px;
        transform: translateX(100%);
        transition: transform .3s ease;
        align-items: flex-start;
        z-index: 10;
        overflow-y: auto;
        text-align: right;
    }
    .nav-links.is-open { transform: translateX(0); }
    .nav-links a, .nav-links .auth-link { font-size: 1.05rem; }

    /* CTA בסוף הרשימה */
    .nav-cta { align-self: stretch; padding: 12px 18px; border-radius: 12px; }

    /* המגה־מניו נהיה אקורדיון — מוסתר כברירת מחדל */
    .mega-menu {
        display: none !important; /* נכפה במובייל */
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 10px 0 6px;
        gap: 16px;
        min-width: 0;
        animation: none;
        border-radius: 0;
        backdrop-filter: none;
    }
    /* פריטי תפריט עם תת־תפריט — ניראות אקורדיון */
    .nav-item.has-mega-menu > a {
        display: flex; align-items: center; justify-content: space-between;
        gap: 8px;
    }
    .nav-item.has-mega-menu > a::after {
        content: '▾';
        font-size: .9rem; opacity: .8; transform: rotate(0turn);
        transition: transform .2s;
    }
    .nav-item.has-mega-menu.is-open > a::after { transform: rotate(-.5turn); }

    /* תוכן תת־תפריט פתוח */
    .nav-item.has-mega-menu.is-open > .mega-menu { display: block !important; }

    /* עמודות המגה־מניו זו מתחת לזו */
    .mega-column { width: 100%; }
    .mega-menu .mega-image { display: none; } /* אפשר להשאיר אם רוצים תמונה */

    /* כיבוי התנהגות hover בדסקטופ שלא תפריע במובייל */
    .nav-item:hover .mega-menu { display: none; }
}

/* באדג'ים/אייקונים בתפריט משתמש ועגלה – התאמות קטנות */
.user-menu, .cart-menu { position: relative; }
.cart-pill { background: transparent; border: 0; color: #fff; cursor: pointer; }

/* מצב גלילה: אפשר להכהות מעט את ההדר (אופציונלי) */
.navbar.scrolled { background: color-mix(in srgb, var(--main-layer) 85%, #000); }

.cates_container {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cates_box {
    flex: 1 1 calc(25% - 0.5em);
    max-width: 385px;
    border-radius: 14px;
    cursor: pointer;

    position: relative;
    overflow: hidden;

    /* אנימציית ריחוף */
    animation: idleFloat 3.8s ease-in-out infinite;

    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease;
}

.cates_box:nth-child(1) { animation-delay: 0.00s; }
.cates_box:nth-child(2) { animation-delay: 0.27s; }
.cates_box:nth-child(3) { animation-delay: 0.61s; }
.cates_box:nth-child(4) { animation-delay: 0.13s; }
.cates_box:nth-child(5) { animation-delay: 0.44s; }
.cates_box:nth-child(6) { animation-delay: 0.79s; }


@keyframes idleFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Hover: עוצרים ריחוף + מוסיפים tilt + zoom + glow */
.cates_box:hover {
    animation: none;
    transform: scale(1.07) rotate3d(1, 1, 0, 6deg) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* פס אור */
.cates_box::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%
    );
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* פס האור מתחיל לזוז */
.cates_box:hover::before {
    opacity: 1;
    animation: shineSweep 0.8s linear forwards;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}


/* ==== Magic shop bubbles background ==== */

.magic-bubbles {
    position: fixed;       /* בכל המסך */
    inset: 0;
    pointer-events: none;  /* לא חוסם קליקים */
    overflow: hidden;
    z-index: 1;            /* מתחת לתוכן החנות */
}

/* ודא שלקונטיינר הראשי של החנות יש z-index גבוה יותר */
.shop-page-wrapper,
.header_container,
.container {
    position: relative;
    z-index: 99;
}

/* הבועה עצמה */
.magic-bubble {
    position: absolute;
    bottom: -60px;                 /* מתחיל קצת מתחת למסך */
    font-size: 14px;
    opacity: 0;
    animation-name: magicBubbleFloat;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
    user-select: none;
}

/* מחשבים וגודל מסך גדול – טיפה יותר גדולות */
@media (min-width: 769px) {
    .magic-bubble {
        font-size: 16px;
    }
}

@keyframes magicBubbleFloat {
    0% {
        transform: translateY(0) scale(var(--scale, 1));
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) scale(var(--scale, 1));
        opacity: 0;
    }
}

/* ==== Energetic glow behind product cards ==== */

.hot-picks {
    position: relative;
    overflow: hidden;
}

/* השכבה שזזה מאחורי הכרטיסים */
.animagic-energy-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
            circle at 50% 50%,
            rgba(90, 160, 255, 0.30),
            rgba(70, 120, 255, 0.15) 45%,
            rgba(20, 60, 150, 0.05) 75%,
            transparent 100%
    );
    animation: energySweep 8s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    filter: blur(20px);
}



/* הכרטיסים עצמם – מעל האפקט */
.incard {
    position: relative;
    z-index: 2;
}

/* האנימציה עצמה */
@keyframes energySweep {
    0% {
        transform: translateX(-50%) translateY(0) scale(1.2);
        filter: blur(0);
        opacity: 1;
    }
    50% {
        transform: translateX(0%) translateY(-20%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(50%) translateY(0) scale(1.2);
        opacity: 1;
    }
}

.incard {
    position: relative;
    overflow: hidden;
    border-radius: 14px; /* אם אתה משתמש בפינות עגולות */
}

/* האלמנט המייצר את ההילה */
.incard::before {
    content: "";
    position: absolute;
    inset: -2px;  /* קצת מעבר לגבול */
    border-radius: inherit;
    background: conic-gradient(
            from 0deg,
            #FFD700,
            #FFEA8A,
            #FFC700,
            #FFD700,
            #FFEA8A,
            #FFC700,
            #FFD700
    );
    animation: rotateGlow 4s linear infinite;
    z-index: 0;
}

/* מסכה שיוצרת חלל פנימי כך שהתוכן לא נצבע */
.incard::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--background, #fff); /* צבע הרקע הפנימי */
    border-radius: inherit;
    z-index: 1;
}

/* התוכן של הכרטיס מעל הכל */
.incard > * {
    position: relative;
    z-index: 2;
}

/* אנימציית סיבוב */
@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

