/* ================================================
   ESPRESSIMO WIDGET Proto V1
   ================================================ */

/* ------------------------------------------------
   GLOBAL — force Dialect PM as base font
   ------------------------------------------------ */
body,
.elementor-widget-container,
.e-con,
.elementor-section,
.elementor-container {
    font-family: 'Dialect PM', sans-serif;
}

/* Stop sideways scroll / the white strip on the right (RTL). The header is
   overflow:visible (for the mega menu), so its full-width content can leak a few
   px past the viewport. Clipping horizontal overflow at the document level fixes
   it without clipping the mega menu (capped to the viewport) and is sticky-safe. */
html { overflow-x: hidden; }

/* ------------------------------------------------
   HEADER — Elementor wrapper resets
   ------------------------------------------------ */
.elementor-location-header,
.elementor-location-header .e-con,
.elementor-location-header .e-con-full {
    width: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    --content-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    --padding-inline-start: 0px !important;
    --padding-inline-end: 0px !important;
    --padding-block-start: 0px !important;
    --padding-block-end: 0px !important;
    /* Must stay visible so the absolutely-positioned mega menu (which sits below the
       68px header) is not clipped. overflow-x:hidden would force overflow-y:auto and
       cut the panel off — the mega menu caps its own width instead (see .esp-mega-menu). */
    overflow: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* When Elementor Pro pins the header it switches to position:fixed and freezes an
   explicit px width (e.g. width:1538px) measured including the scrollbar gutter —
   a few px wider than the viewport's content area → horizontal scroll / white strip
   on the right (RTL). Because it's position:fixed, html{overflow-x:hidden} can't clip
   it. Span it edge-to-edge with insets + width:auto so it matches the content width.
   Works whether the sticky lives in the theme header location OR a page container.
   NOTE: keep these as TWO separate rules. If they're comma-combined and the browser
   lacks :has() support, the whole group is invalidated — taking the reliable
   location-header rule down with it (that caused a white strip on tablet browsers). */
.elementor-location-header .elementor-sticky--active {
    width: auto !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
/* Fallback for when the sticky lives in a normal page container, not the header location. */
.elementor-sticky--active:has(> .elementor-widget-espressimo_header_proto_v1) {
    width: auto !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.elementor-widget-espressimo_header_proto_v1 {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-widget-espressimo_header_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ------------------------------------------------
   HERO — Elementor wrapper resets
   ------------------------------------------------ */
.elementor-widget-espressimo_hero_proto_v1 {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-widget-espressimo_hero_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ------------------------------------------------
   HEADER
   ------------------------------------------------ */
.esp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff9f2;
    border-bottom: 1px solid #e6dad4;
    width: 100%;
}

.esp-header__inner {
    display: flex;
    align-items: center;
    height: 68px;
    width: 100%; /* full-width, matching the page content */
}

.esp-header__logo {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-left: 1px solid #e6dad4;
    height: 100%;
    flex-shrink: 0;
}

.esp-header__logo img {
    /* Fluid: shrinks with the viewport in the laptop band, capped at the 44px design
       size on wide screens and never below 30px. */
    height: clamp(30px, 2.4vw, 44px);
    width: auto;
}

.esp-header__nav {
    display: flex;
    align-items: center;
    border-left: 1px solid #e6dad4;
    height: 100%;
    padding: 0 16px;
    flex: 1 1 auto;                  /* fill the middle between logo (right) and utilities (left) */
    min-width: 0;
    justify-content: space-around;   /* client Case 5: spread nav items evenly across full width */
    margin-inline-end: 40px;         /* client Case 5: gap so the search isn't jammed against צור קשר */
}

/* Typography stripped — controlled via Style tab */
.esp-header__nav-item {
    padding: 6px 10px;
    color: #522c25;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.esp-header__nav-item:hover,
.esp-header__nav-item:focus,
.esp-header__nav-item:active {
    color: #8b3a00;
    background: none;
}

.esp-header__nav-item--dropdown svg {
    transition: transform 0.2s ease;
}

.esp-header__nav-item-wrap:hover .esp-header__nav-item--dropdown svg {
    transform: rotate(180deg);
}

.esp-header__sep {
    color: rgba(82, 44, 37, 0.3);
    display: none; /* client Case 5: nav items are spread evenly, so drop the | dividers */
}

.esp-header__search-wrap {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-left: 1px solid #e6dad4;
    height: 100%;
    padding: 0 16px;
    margin: 0;            /* it's a <form> now — kill default margin */
    gap: 6px;
}

/* Typography stripped — controlled via Style tab */
.esp-header__search-placeholder {
    color: #522c25;
    opacity: 0.6;
}

/* Working search input — typed text is full-strength; only the placeholder is dimmed. */
.esp-header__search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    color: #522c25 !important;
    opacity: 1 !important;
    padding: 0;
}
.esp-header__search-input::placeholder { color: #522c25; opacity: 0.6; }
.esp-header__search-btn {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    color: #522c25;
    opacity: 0.6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s, color 0.2s;
}
.esp-header__search-btn:hover { opacity: 1; color: #8b3a00; }

.esp-header__nav-item-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.esp-header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff9f2;
    border: 1px solid #e6dad4;
    border-top: none;
    min-width: 200px;
    z-index: 100;
    flex-direction: column;
}

.esp-header__nav-item-wrap:hover .esp-header__dropdown {
    display: flex;
}

.esp-header__dropdown-item {
    padding: 10px 16px;
    color: #522c25;
    text-decoration: none;
    white-space: nowrap;
}

.esp-header__dropdown-item:hover {
    background: #f5ede4;
}

.esp-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-left: 1px solid #e6dad4;
    height: 100%;
    padding: 0 24px;
    gap: 24px;
    flex-shrink: 0; /* client Case 5: don't expand — sit right next to the search */
}

/* Typography stripped — controlled via Style tab */
.esp-header__account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #522c25;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.esp-header__account:hover,
.esp-header__account:focus,
.esp-header__account:active {
    color: #8b3a00;
    background: none;
}

.esp-header__account svg {
    transition: transform 0.2s ease;
}

.esp-header__account-wrap:hover .esp-header__account svg {
    transform: rotate(180deg);
}

/* Typography stripped — controlled via Style tab */
.esp-header__cart {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #522c25;
    text-decoration: none;
    white-space: nowrap;
}

.esp-header__cart:hover {
    color: #8b3a00;
}

.esp-header__cart-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(82, 44, 37, 0.3);
}

/* Cart icon (replaces the "עגלה" word) */
.esp-header__cart-icon {
    width: 24px !important;
    height: 24px !important;
    display: block;
    object-fit: contain;
}
.esp-header__d-action--cart .esp-header__cart-icon { width: 20px !important; height: 20px !important; }

/* ------------------------------------------------
   DESKTOP BAR COMPRESSION (1024–1840px)
   The full bar (logo + 9 nav items + separators + search + account + cart) is all
   flex-shrink:0, so between ~1024px and ~1840px it is wider than the viewport and
   the left end (cart/account/search) gets pushed off-screen (clipped by
   html{overflow-x:hidden}). Progressively tighten padding/gaps/type — and at the
   low end drop the separators/search — so the bar fits down to 1201px, where the
   hamburger takes over (<=1200px). font-size uses !important to beat the Elementor
   Style-tab typography, scoped to this band only so wide desktop is untouched. */
@media (min-width: 1421px) {
    .esp-header__logo   { padding: 0 16px; }
    .esp-header__nav    { padding: 0 10px; }
    /* Fluid nav font: ~18px on 1920, scaling down on narrower desktops so the 11-item
       nav never outgrows the bar and overlaps the search. */
    .esp-header__nav-item { padding: 6px 7px !important; font-size: clamp(15px, 1.05vw, 20px) !important; } /* client 2026-07-27: bigger nav font */
    .esp-header__search-wrap { width: 220px; padding: 0 12px; }
    .esp-header__actions { padding: 0 16px; gap: 16px; }
    .esp-header__account,
    .esp-header__cart   { font-size: clamp(14px, 0.85vw, 16px) !important; }
}

/* Smaller laptops (1201–1560): tighten padding/type so the nav still fits before the
   hamburger takes over at <=1200px. Wider desktops use the fluid size, spread. */
@media (min-width: 1421px) and (max-width: 1560px) {
    .esp-header__nav    { padding: 0 4px; }
    .esp-header__nav-item { padding: 6px 6px !important; font-size: 14px !important; }
    /* Free horizontal room for the 11-item nav so it isn't cramped at ~1420px down to 1201px
       (client 2026-07-27): shrink the logo + tighten the search and actions. No hamburger
       change — the full bar just gets more breathing space. */
    .esp-header__logo   { padding: 0 8px; }
    .esp-header__logo img { height: clamp(26px, 1.9vw, 34px); }
    .esp-header__search-wrap { width: 150px; padding: 0 8px; }
    .esp-header__actions { padding: 0 10px; gap: 10px; }
    .esp-header__account,
    .esp-header__cart   { font-size: 14px !important; }
}

/* ------------------------------------------------
   MEGA MENU
   ------------------------------------------------ */
.esp-header__nav-item-wrap--mega {
    position: static;
}

.esp-mega-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 1280px;
    max-width: calc(100vw - 32px); /* never wider than the viewport → no horizontal scroll */
    box-sizing: border-box;
    background: #fff9f2;
    border: 1px solid #e6dad4;
    box-shadow: 0 20px 60px rgba(82, 44, 37, 0.12);
    z-index: 100;
    flex-direction: column;
}

.esp-header__nav-item-wrap--mega:hover .esp-mega-menu {
    display: flex;
}

.esp-mega-menu__bar {
    height: 3px;
    background: linear-gradient(to left, #a35200, #ffb84d);
    flex-shrink: 0;
}

.esp-mega-menu__body {
    display: flex;
    align-items: stretch;
}

.esp-mega-menu__links {
    flex: 1;
    display: flex;
    padding: 36px 32px;
    gap: 20px; /* client Case 3: reduce spacing between columns */
}

.esp-mega-menu__col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.esp-mega-menu__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.esp-mega-menu__col li {
    margin: 0;
    padding: 0;
}

/* Products column can list many items — give it more room and wrap into sub-columns.
   Smaller font + tight line-height so long, multi-line model names never overlap. */
.esp-mega-menu__col--products { flex: 3; }
.esp-mega-menu__col--products ul {
    display: block;
    column-count: 3;
    column-gap: 18px;
}
.esp-mega-menu__col--products li { break-inside: avoid; margin-bottom: 0; }
.esp-mega-menu__col--products .esp-mega-menu__link {
    font-size: 0.8125rem;
    line-height: 1.25;
    padding: 3px 6px;
}

.esp-mega-menu__col-heading {
    font-family: 'Dialect PM', sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #75605a;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6dad4;
}

.esp-mega-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.1875rem; /* client Case 3: increase internal font */
    line-height: 1.3;
    color: #522c25;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.esp-mega-menu__link:hover {
    color: #8b3a00;
}

.esp-mega-menu__badge {
    font-family: 'Dialect PM', sans-serif;
    font-size: 0.75rem;
    background: rgba(196, 101, 0, 0.15);
    color: #c46500;
    padding: 2px 10px;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.esp-mega-menu__link:hover .esp-mega-menu__badge {
    opacity: 1;
}

.esp-mega-menu__divider {
    width: 1px;
    flex-shrink: 0;
    background: #e6dad4;
    margin: 24px 0;
}

.esp-mega-menu__featured {
    width: 560px; /* client Case 3: widened to hold two featured cards side by side */
    flex-shrink: 0;
    padding: 32px;
    background: #f6ede3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* client Case 3: the two featured products sit side by side (right), not stacked below */
.esp-mega-menu__products {
    display: flex;
    gap: 14px;
    align-items: stretch;
}
.esp-mega-menu__products .esp-mega-menu__product {
    flex: 1 1 0;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
}

.esp-mega-menu__featured-heading {
    font-family: 'Dialect PM', sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #75605a;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.esp-mega-menu__product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
}

.esp-mega-menu__product:hover {
    background: #ede0d4;
}

.esp-mega-menu__product-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.esp-mega-menu__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.2s;
}

.esp-mega-menu__product:hover .esp-mega-menu__product-img img {
    transform: scale(1.05);
}

.esp-mega-menu__product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.esp-mega-menu__product-name {
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    color: #522c25;
    margin: 0;
    line-height: 1.25;
    transition: color 0.15s;
}

.esp-mega-menu__product:hover .esp-mega-menu__product-name {
    color: #8b3a00;
}

.esp-mega-menu__product-cat {
    font-family: 'Dialect PM', sans-serif;
    font-size: 0.85rem;
    color: #75605a;
    margin: 0;
}

.esp-mega-menu__product-price {
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.02rem;
    font-weight: bold;
    color: #c46500;
    direction: ltr;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
/* Currency unit (ש"ח) sits to the LEFT of the number. */
.esp-mega-menu__product-price > span:first-child { order: 0; }
.esp-mega-menu__product-price > span:last-child { order: 1; }

.esp-mega-menu__all-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #8b3a00;
    color: #fff;
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s;
}

.esp-mega-menu__all-btn:hover {
    background: #a34500;
    color: #fff;
}

.esp-mega-menu__cta {
    border-top: 1px solid #e6dad4;
    padding: 16px 40px;
    background: #fdf6ee;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.esp-mega-menu__cta span {
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.0625rem;
    color: #75605a;
}

.esp-mega-menu__cta a {
    font-family: 'Dialect PM', sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    color: #8b3a00;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------
   MOBILE HEADER (hamburger + slide-in drawer)
   Desktop bar (.esp-header__inner) shows >= 1024px; below that the mobile bar
   + drawer take over. Fixes the desktop-nav overflow on phones/tablets too.
   ------------------------------------------------ */
.esp-header__mobar { display: none; }
.esp-header__burger,
.esp-header__drawer-close {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px !important;
    margin: 0;
    border-radius: 8px !important;
    cursor: pointer;
    color: #522c25 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
}
.esp-header__burger:hover,
.esp-header__drawer-close:hover { background: #f6ede3 !important; color: #522c25 !important; }
.esp-header__mobar-logo img,
.esp-header__drawer-logo img { height: 36px !important; width: auto !important; max-width: 60vw; display: block; }

/* Mobile bar cart (item 1) — burger left, logo centre, cart right. */
.esp-header__mobar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #522c25;
    text-decoration: none;
    padding: 6px;
}
.esp-header__mobar-cart .esp-header__cart-icon { width: 26px; height: 26px; }
.esp-header__mobar-cart-count {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #8B3A00;
    color: #fff;
    font-size: 11px;
    line-height: 17px;
    text-align: center;
    font-family: 'Dialect PM', sans-serif;
}

.esp-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(82, 44, 37, .45);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    display: none;
}
.esp-header__drawer {
    position: fixed;
    top: 0;
    right: 0;                       /* physical right edge — reliable in RTL (inset-inline-end
                                       resolved to the LEFT here because the drawer is dir="rtl") */
    /* Full-screen menu (item 2) — fills the whole viewport on mobile. */
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    max-width: 100%;
    background: #fff9f2;
    z-index: 999;
    display: none;
    flex-direction: column;
    transform: translateX(110%);    /* hidden off the right edge in RTL */
    visibility: hidden;             /* hard close: keeps it hidden even if a theme rule
                                       neutralizes the transform (which left it parked
                                       open at right:0) */
    transition: transform .28s ease, visibility 0s linear .28s;
    box-shadow: 0 0 40px rgba(82, 44, 37, .18);
    overflow-y: auto;
}
body.esp-drawer-open .esp-header__overlay { opacity: 1; pointer-events: auto; }
body.esp-drawer-open .esp-header__drawer {
    transform: none;
    visibility: visible;
    transition: transform .28s ease;
}

.esp-header__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e6dad4;
}
.esp-header__drawer-nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1 1 auto; }
.esp-header__d-link,
.esp-header__d-acc-btn {
    font-family: 'Dialect PM', sans-serif;
    font-size: 20px;
    color: #522c25;
    text-decoration: none;
    padding: 14px 20px;
    border-bottom: 1px solid #f0e6dc;
    background: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    width: 100%;
    text-align: start;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.esp-header__d-link:hover,
.esp-header__d-acc-btn:hover { color: #8B3A00 !important; background: #f6ede3 !important; }
.esp-header__d-acc-btn svg { transition: transform .2s; color: #c46500; }
.esp-header__d-acc.is-open .esp-header__d-acc-btn svg { transform: rotate(180deg); }
/* Active / open menu item — brown line + brown text (item 3, was pale/white). */
.esp-header__d-acc.is-open > .esp-header__d-acc-btn {
    color: #8B3A00 !important;
    border-bottom: 2px solid #8B3A00 !important;
}
.esp-header__d-acc.is-open > .esp-header__d-acc-btn svg { color: #8B3A00; }
.esp-header__d-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #f6ede3;
}
.esp-header__d-acc.is-open .esp-header__d-acc-panel { max-height: 1000px; }
.esp-header__d-sublink {
    display: block;
    font-family: 'Dialect PM', sans-serif;
    font-size: 17px;
    color: #522c25;
    opacity: .8;
    text-decoration: none;
    padding: 11px 32px;
    border-bottom: 1px solid #e6dad4;
}
.esp-header__d-sublink:hover { color: #8B3A00; opacity: 1; }
.esp-header__d-sublink--all { color: #8B3A00; font-weight: 700; opacity: 1; }
.esp-header__drawer-foot { display: flex; gap: 10px; padding: 16px; border-top: 1px solid #e6dad4; }
.esp-header__d-action {
    flex: 1;
    text-align: center;
    font-family: 'Dialect PM', sans-serif;
    font-size: 17px;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e6dad4;
    color: #522c25;
}
.esp-header__d-action--cart { background: #8B3A00; color: #fff; border-color: #8B3A00; }

/* Hamburger takes over at <=1420px (client 2026-07-27, raised from 1200): below this the
   11-item bar is cramped, so show the clean mobile menu instead. Full desktop bar >=1421px. */
@media (max-width: 1420px) {
    .esp-header__inner { display: none !important; }
    .esp-header__mobar { display: flex; direction: ltr; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; }
    .esp-header__overlay { display: block; }
    .esp-header__drawer { display: flex; }
}

/* Small phones: tighten the drawer rows/type so the whole menu + footer fits
   in one view without scrolling. */
@media (max-width: 480px) {
    .esp-header__drawer-top { padding: 12px 14px; }
    .esp-header__d-link,
    .esp-header__d-acc-btn { font-size: 17px; padding: 11px 18px; }
    .esp-header__d-sublink { font-size: 15px; padding: 9px 28px; }
    .esp-header__drawer-foot { padding: 12px; }
    .esp-header__d-action { font-size: 16px; padding: 11px; }
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.esp-footer {
    background: #ede0d4;
    padding: 32px;
}

.esp-footer__card {
    border: 1px solid #d4c4bc;
    border-radius: 16px;
    overflow: hidden;
}

.esp-footer__inner {
    display: flex;
}

.esp-footer__contact,
.esp-footer__links,
.esp-footer__brands,
.esp-footer__form-col {
    flex: 1;
    padding: 32px;
}

.esp-footer__links,
.esp-footer__brands,
.esp-footer__form-col {
    border-right: 1px solid #d4c4bc;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__col-heading {
    color: #75605a;
    margin: 0 0 16px 0;
}

.esp-footer__contact .esp-footer__col-heading {
    margin: 0;
}

.esp-footer__form-col .esp-footer__col-heading {
    margin: 0 0 8px 0;
}

.esp-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.esp-footer__logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    object-position: right;
    display: block;
    margin-bottom: 4px;
}

.esp-footer__contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #522c25;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #75605a;
}

.esp-footer__contact-item svg {
    flex-shrink: 0;
}

.esp-footer__contact-item--bold span {
    font-weight: bold;
    color: rgba(82, 44, 37, 0.8);
}

.esp-footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__links-list a {
    color: #75605a;
    text-decoration: none;
    transition: color 0.2s;
}

.esp-footer__links-list a:hover {
    color: #8b3a00;
}

.esp-footer__brands-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__brands-list a {
    color: #75605a;
    text-decoration: none;
    transition: color 0.2s;
}

.esp-footer__brands-list a:hover {
    color: #8b3a00;
}

.esp-footer__form-col {
    display: flex;
    flex-direction: column;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__form-subtitle {
    color: #75605a;
    margin: 0 0 16px 0;
}

.esp-footer__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.esp-footer__form input[type="text"],
.esp-footer__form textarea {
    background: #f6ede3;
    border: 1px solid #d4c4bc;
    border-radius: 8px;
    padding: 10px 16px;
    color: #522c25;
    font-size: 16px;
    font-family: 'Dialect PM', sans-serif;
    outline: none;
    resize: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.esp-footer__form input[type="text"]::placeholder,
.esp-footer__form textarea::placeholder {
    color: rgba(82, 44, 37, 0.35);
}

.esp-footer__form input[type="text"]:focus,
.esp-footer__form textarea:focus {
    border-color: #c46500;
}

.esp-footer__form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.esp-footer__form-checkbox span {
    font-family: 'Dialect PM', sans-serif;
    font-size: 14px;
    color: #75605a;
    line-height: 1.4;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__form-submit {
    background: #8b3a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    width: fit-content;
    cursor: pointer;
    transition: background 0.2s;
}

.esp-footer__form-submit:hover {
    background: #a34500;
}

.esp-footer__bottom {
    border-top: 1px solid #d4c4bc;
    background: #e0d0c4;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__copyright {
    color: #75605a;
    white-space: nowrap;
}

.esp-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__bottom-links a {
    color: #75605a;
    text-decoration: none;
    transition: opacity 0.2s;
}

.esp-footer__bottom-links a:hover {
    opacity: 0.9;
}

/* Typography stripped — controlled via Style tab */
.esp-footer__bottom-sep {
    color: rgba(82, 44, 37, 0.25);
}

/* Typography stripped — controlled via Style tab */
.esp-footer__attribution {
    color: #75605a;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.esp-footer__attribution:hover {
    opacity: 0.8;
}

/* ------------------------------------------------
   ADD-TO-CART BUTTON (shared — carousels: best-sellers / weekly-picks / sales)
   ------------------------------------------------ */
.esp-addcart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #8b3a00;
    color: #fff;
    font-family: 'Dialect PM', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    align-self: flex-start;
}
.esp-addcart-btn:hover { background: #6f4e37; }
.esp-addcart-btn:active { transform: scale(0.97); }
.esp-addcart-btn svg { width: 17px; height: 17px; }
/* 1.2s "added" feedback from the cart engine */
.esp-addcart-btn.esp-added { background: #2e7d32; }
.esp-addcart-btn.esp-added .esp-addcart-btn__label::after { content: ' ✓'; }

/* Imagify serves WebP by wrapping <img> in <picture> and moving the img's class and
   inline style onto <picture>. The widget sizing (class rules, or inline width/height as in
   the brands strip) then lands on the wrapper and the inner img keeps its natural size.
   Make the inner img fill the wrapper and keep its fit. */
picture[class*="esp-"] > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: inherit;
    object-position: inherit;
    border-radius: inherit;
}
/* Inline-style case: size only, so the widget's own img rules (e.g. object-fit: contain) still apply. */
[class*="esp-"] picture[style] > img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Star ratings removed site-wide along with the product reviews section (client 2026-09-23).
   Covers product cards (category/search/shop pages), related products, magazine + guide
   recommendations and the sticky buy bar. Delete this rule to bring the ratings back. */
.esp-cprod__rating,
.esp-rel__rating,
.esp-mzrec__rating,
.esp-grec__rating,
.esp-ph__bar-stars,
.esp-ph__bar-rating {
    display: none !important;
}

/* ------------------------------------------------
   STORE MEGA ("החנות") — client reference 2026-09-30
   Two columns of categories, each with a line icon; icon sits to the right (RTL).
   ------------------------------------------------ */
.esp-header__nav-item-wrap--store:hover > .esp-header__nav-item,
.esp-header__nav-item-wrap--store:focus-within > .esp-header__nav-item {
    color: #b35d17;
    box-shadow: inset 0 -2px 0 #b35d17;
}
.esp-header__nav-item-wrap--store:focus-within .esp-mega-menu { display: flex; }

.esp-mega-menu.esp-store-menu {
    width: 1240px;
    max-width: calc(100vw - 32px);
    top: 72px;
    padding: 36px 48px 44px;
    border: 0;
    border-top: 2px solid #b35d17;
    border-radius: 18px;
    background: #fff9f2;
    box-shadow: 0 24px 60px rgba(82, 44, 37, 0.16);
}
/* Invisible bridge over the gap between the nav item and the panel so hover holds. */
.esp-mega-menu.esp-store-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.esp-store-menu__title {
    align-self: flex-start;
    margin: 0 0 22px;
    padding-bottom: 6px;
    border-bottom: 2px solid #522c25;
    font-family: 'Dialect PM', sans-serif;
    font-size: clamp(24px, 1.8vw, 32px);
    line-height: 1.1;
    color: #522c25;
}

.esp-store-menu__cols {
    display: flex;
    align-items: stretch;
    gap: 48px;
}

.esp-store-menu__col {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.esp-store-menu__col li { margin: 0; padding: 0; }

.esp-store-menu__sep {
    width: 1px;
    flex-shrink: 0;
    background: #c9885a;
}

.esp-store-menu__link {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Dialect PM', sans-serif;
    font-size: clamp(20px, 1.6vw, 27px);
    line-height: 1.2;
    color: #522c25;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.esp-store-menu__link:hover,
.esp-store-menu__link:focus-visible {
    color: #b35d17;
    background: #f7ebdf;
}

.esp-store-menu__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #522c25;
}
.esp-store-menu__icon svg { width: 100%; height: 100%; display: block; }
.esp-store-menu__link:hover .esp-store-menu__icon { color: #b35d17; }

@media (max-width: 1560px) {
    .esp-mega-menu.esp-store-menu { padding: 28px 32px 32px; }
    .esp-store-menu__cols { gap: 28px; }
    .esp-store-menu__icon { width: 52px; height: 52px; }
    .esp-store-menu__link { gap: 16px; }
}

/* Mobile drawer: store rows with a small icon. */
.esp-header__d-sublink--icon {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.esp-header__d-sublink--icon .esp-store-menu__icon { width: 32px; height: 32px; }

/* Search box — client 2026-09-30: 20% wider, rounded 15px corners. */
.esp-header__search-wrap { width: 360px; }
@media (min-width: 1421px) { .esp-header__search-wrap { width: 264px; } }
@media (min-width: 1421px) and (max-width: 1560px) { .esp-header__search-wrap { width: 180px; } }
.esp-header__search-wrap .esp-header__search-input {
    border: 1px solid #522c25 !important;
    border-radius: 15px !important;
    padding: 6px 14px !important;
    height: 44px;
    box-sizing: border-box;
}

/* Store mega — 0.5s dissolve in and out (client 2026-09-30). Kept in the layout
   (display:flex) and toggled via opacity/visibility so both directions animate. */
.esp-header__nav-item-wrap--store .esp-mega-menu.esp-store-menu {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.esp-header__nav-item-wrap--store:hover .esp-mega-menu.esp-store-menu,
.esp-header__nav-item-wrap--store:focus-within .esp-mega-menu.esp-store-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

/* Mobile drawer — the החנות accordion button must look exactly like the plain links.
   The theme's button :focus/:active styles (white text, dark outline, pink border)
   leaked in after a tap; neutralise them. */
.esp-header__drawer .esp-header__d-acc-btn,
.esp-header__drawer .esp-header__d-acc-btn:focus,
.esp-header__drawer .esp-header__d-acc-btn:active {
    color: #522c25 !important;
    background: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f0e6dc !important;
    box-shadow: none !important;
    outline: none !important;
    font-weight: inherit !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    min-height: 0 !important;
    margin: 0 !important;
}
.esp-header__drawer .esp-header__d-acc.is-open > .esp-header__d-acc-btn {
    color: #8B3A00 !important;
    border-bottom: 2px solid #8B3A00 !important;
}

/* Mobile drawer — main rows 50% bigger (client 2026-09-30); the החנות accordion row
   spans the full drawer width with the same type and divider as the plain links. */
.esp-header__drawer .esp-header__d-acc { width: 100%; }
.esp-header__drawer .esp-header__d-link,
.esp-header__drawer .esp-header__d-acc-btn { font-size: 30px !important; width: 100% !important; box-sizing: border-box; font-family: 'Dialect PM', sans-serif !important; }
.esp-header__drawer .esp-header__d-acc-btn { justify-content: flex-start !important; }
@media (max-width: 480px) {
    .esp-header__drawer .esp-header__d-link,
    .esp-header__drawer .esp-header__d-acc-btn { font-size: 25.5px !important; }
}

/* Category / brand pages — the term's outro text ("איך בוחרים…") that replaces the
   Category SEO widget output: 30% bigger text + right-hand margin (client 2026-09-30). */
.elementor-widget-espressimo_category_seo_proto_v1 > .elementor-widget-container > p,
.elementor-widget-espressimo_category_seo_proto_v1 > .elementor-widget-container > ul,
.elementor-widget-espressimo_category_seo_proto_v1 > .elementor-widget-container > ol {
    font-size: 1.3em;
}
.elementor-widget-espressimo_category_seo_proto_v1 > .elementor-widget-container {
    padding-right: 48px;
}
@media (max-width: 767px) {
    .elementor-widget-espressimo_category_seo_proto_v1 > .elementor-widget-container { padding-right: 20px; }
}

/* Mobile drawer — החנות row right-aligned like the links (theme styled <button> as a
   centred inline-block), chevron 2x, store sub-rows 1.5x (client 2026-09-30). */
.esp-header__drawer .esp-header__d-acc-btn {
    display: flex !important;
    direction: rtl;
    text-align: right !important;
    justify-content: flex-start !important;
    gap: 10px;
}
.esp-header__drawer .esp-header__d-acc-btn svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }
.esp-header__drawer .esp-header__d-acc--store .esp-header__d-sublink { font-size: 25.5px !important; }
.esp-header__drawer .esp-header__d-acc--store .esp-header__d-sublink .esp-store-menu__icon { width: 40px; height: 40px; }
@media (max-width: 480px) {
    .esp-header__drawer .esp-header__d-acc--store .esp-header__d-sublink { font-size: 22.5px !important; }
}


/* Header logo (client 2026-10-13): the Elementor widget stores a fixed 196px width that
   stretched the 526x137 logo; keep its real ratio and give it room from the edge. */
.esp-header__logo img { width: auto !important; aspect-ratio: 526 / 137; }
@media (min-width: 1201px) { .esp-header__logo { padding-inline: 20px !important; } }

/* Times like 8:00-17:00 inside Hebrew text keep their left-to-right order. */
.esp-ltr-time { direction: ltr; unicode-bidi: isolate; }

/* Spec values that are all Latin/digits ("1400 RPM, 430W") keep their own order in RTL (2026-10-13). */
[class*="spec-value"], [class*="spec__value"] { unicode-bidi: plaintext; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }


/* Brand filters are <button>s now (2026-10-13): drop the browser button look. */
button.esp-cbrands__btn, button.esp-cprod__brand-filter {
    font: inherit; color: inherit; text-align: inherit; cursor: pointer;
    -webkit-appearance: none; appearance: none; background-color: transparent; width: 100%;
}
button.esp-cprod__brand-filter { display: flex !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; }
button.esp-cbrands__btn:hover, button.esp-cbrands__btn:focus, button.esp-cprod__brand-filter:hover, button.esp-cprod__brand-filter:focus { background-color: transparent; color: inherit; }

/* Header search (client 2026-10-18): Dialect PM has no Latin glyphs, so English fell back to the
   system sans and looked bigger than the Hebrew. "EspLatin" is the system sans scaled to 80%,
   used only for Latin characters, so "Jura" sits at the height of the Hebrew letters. */
@font-face { font-family: "EspLatin"; src: local("Segoe UI"), local("Helvetica Neue"), local("Helvetica"), local("Arial"), local("Roboto"), local("Liberation Sans"); unicode-range: U+0000-024F, U+2000-206F; size-adjust: 80%; }
.esp-header__search-input,
.esp-header__search-input::placeholder { font-family: "Dialect PM", "EspLatin", sans-serif !important; }


/* Mobile search row under the header bar (client 2026-10-19). Shown wherever the mobile bar is. */
.esp-header__mosearch { display: none; }
@media (max-width: 1420px) {
    .esp-header__mosearch {
        display: flex; align-items: center; gap: 8px; direction: rtl;
        margin: 0 16px 10px; padding: 0 14px; height: 42px;
        border: 1px solid #e6dad4; border-radius: 9999px; background: #fff;
    }
    .esp-header__mosearch .esp-header__search-input { font-size: 17px; height: 100%; }
    .esp-header__mosearch .esp-header__search-btn { opacity: .7; }
}

/* Mobile search row: drop the theme's input box, keep only the pill. */
.esp-header__mosearch .esp-header__search-input,
.esp-header__mosearch .esp-header__search-input:focus {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    border-radius: 0 !important; padding: 0 !important; outline: 0;
}
.esp-header__mosearch:focus-within { border-color: #8b3a00; }
.esp-header__mosearch .esp-header__search-btn { color: #522c25 !important; }

/* ── exec-ui 2026-10-19 ── */
/* Header search icon: brown, not the theme's pink button colour. */
.esp-header .esp-header__search-btn, .esp-header .esp-header__search-btn:focus { color: #522c25 !important; background: none !important; }
.esp-header .esp-header__search-btn:hover { color: #8b3a00 !important; }
/* Mobile search row: typed text as typed (no uppercase), no browser clear "X". */
.esp-header__mosearch .esp-header__search-input { text-transform: none !important; font-variant: normal !important; letter-spacing: normal !important; -webkit-appearance: none; appearance: none; }
.esp-header__mosearch .esp-header__search-input::-webkit-search-cancel-button,
.esp-header__mosearch .esp-header__search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* Secondary text contrast (d-contrast): widget defaults that print rgba(82,44,37,.4-.55). */
.esp-sales__price-original, .esp-blog__date { color: #75605a !important; }

/* Mobile header: round search button right of the burger; the search row stays closed until it is tapped
   (client 2026-10-19). The bar becomes a 3-column grid so the logo stays centred. */
.esp-header__mosearch-toggle { display: none; }
@media (max-width: 1420px) {
    .esp-header__mobar { display: grid !important; grid-template-columns: 1fr auto 1fr; }
    .esp-header__mobar-start { display: flex; align-items: center; gap: 8px; justify-self: start; }
    .esp-header__mobar-cart { justify-self: end; }
    .esp-header__mosearch-toggle {
        display: inline-flex !important; align-items: center; justify-content: center;
        width: 38px; height: 38px; padding: 0 !important; margin: 0;
        border: 1px solid #e6dad4 !important; border-radius: 50% !important;
        background: #fff !important; color: #522c25 !important; box-shadow: none !important; cursor: pointer;
    }
    .esp-header__mosearch-toggle[aria-expanded="true"] { border-color: #8b3a00 !important; color: #8b3a00 !important; }
    .esp-header__mosearch {
        max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0 !important;
        border-width: 0 !important; pointer-events: none;
        transition: max-height .25s ease, opacity .2s ease, margin-bottom .25s ease;
    }
    .esp-header__mosearch.is-open {
        max-height: 42px; opacity: 1; margin-bottom: 10px !important; border-width: 1px !important; pointer-events: auto;
    }
}
@media (max-width: 1420px) { .esp-header__mobar-start { min-width: max-content; } .esp-header__mosearch-toggle { flex: 0 0 38px; min-width: 38px; max-width: 38px; } }
