/* LESILE responsive header, Shop and search. Desktop rules remain unchanged. */
@media (max-width: 767px) {
  header.elementor.elementor-location-header { --lsl-admin-offset: 0px; }
  body.admin-bar header.elementor.elementor-location-header { --lsl-admin-offset: 46px; }
  header.elementor.elementor-location-header .header-wrapper:not(.elementor-sticky__spacer) { top: var(--lsl-admin-offset) !important; width: 100% !important; }
  header.elementor.elementor-location-header .menu-items-wrapper { left: 15px; right: 15px; width: auto; max-width: none; top: 15px; gap: 10px; }
  header.elementor.elementor-location-header .main-menu-header-wrapper { width: 100%; height: 50px; padding: 10px 15px; flex-shrink: 0; }
  header.elementor.elementor-location-header .menu-content-wrapper > .e-con:first-child { width: 100%; gap: 0; min-height: 30px; justify-content: flex-start; }
  header.elementor.elementor-location-header .elementor-widget-theme-site-logo { margin-left: clamp(20px, 8vw, 42px); width: 80px; flex-shrink: 0; }
  header.elementor.elementor-location-header .elementor-widget-theme-site-logo img { width: 80px; height: auto; }
  header.elementor.elementor-location-header .elementor-element-7242220 { display: none !important; }
  header.elementor.elementor-location-header .main-menu-header-wrapper.active { height: min(560px, calc(100dvh - 95px - var(--lsl-admin-offset))); overflow-y: auto; }
  header.elementor.elementor-location-header .main-menu-list-header { width: 100%; }
  header.elementor.elementor-location-header .shop-header-wrapper { position: relative; width: 100%; height: 50px; min-height: 50px; padding: 13px 15px; gap: 0; overflow: hidden; flex-shrink: 0; }
  header.elementor.elementor-location-header .shop-header-wrapper > .e-con:first-child { position: relative; width: 100%; min-height: 24px; flex-shrink: 0; cursor: pointer; }
  header.elementor.elementor-location-header .shop-header-wrapper > .e-con:first-child::after { content: '+'; position: absolute; right: 0; top: -3px; font: 26px/30px "STKBureauSefif"; font-weight: 100; color: #000; }
  header.elementor.elementor-location-header .shop-header-wrapper.active > .e-con:first-child::after { content: '×'; }
  header.elementor.elementor-location-header .shop-header-wrapper.active { width: 100%; height: auto; max-height: calc(100dvh - 95px - var(--lsl-admin-offset)); overflow-y: auto; }
  header.elementor.elementor-location-header .shop-header-wrapper > .e-con:nth-child(2) { position: static; width: 100%; min-width: 0; flex-direction: column; flex-wrap: nowrap; gap: 28px; padding: 35px 0 20px; }
  header.elementor.elementor-location-header .shop-header-wrapper:not(.active) .elementor-element-3da0ca3 { visibility: hidden; }
  header.elementor.elementor-location-header .shop-header-wrapper > .e-con:nth-child(2) > * { width: 100%; min-width: 0; }
  header.elementor.elementor-location-header .shop-header-wrapper .elementor-icon-list-text { font-size: 22px; line-height: 1.3; }
  header.elementor.elementor-location-header .shop-header-wrapper .fixed-icon-list ul li a { transform: translateX(-20px); }
  header.elementor.elementor-location-header .cart-header-wrapper,
  header.elementor.elementor-location-header .cart-header-wrapper.activated { display: flex !important; position: absolute; top: 15px; right: 30px; width: 122px; height: 50px; padding: 0; gap: 10px; background: transparent; overflow: visible; z-index: 200; transition: none; align-items: center; flex-wrap: nowrap; }
  header.elementor.elementor-location-header .cart-header-wrapper .open-search { display: block; width: 18px; flex: 0 0 18px; cursor: pointer; }
  header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget-image:not(.open-search):not(.close-search) { width: 16px; flex: 0 0 16px; }
  header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget-shortcode { width: auto; flex-shrink: 0; }
  header.elementor.elementor-location-header .cart-header-wrapper .cart-text { font-size: 16px; white-space: nowrap; }
  header.elementor.elementor-location-header .the-search { display: none; }
  header.elementor.elementor-location-header .the-search.activated { display: block; position: fixed; top: calc(145px + var(--lsl-admin-offset)); left: 15px; right: 15px; width: auto; height: min(550px, calc(100dvh - 165px - var(--lsl-admin-offset))); padding: 45px 15px 15px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 20%); overflow: visible; z-index: 10; transition: none; }
  header.elementor.elementor-location-header .the-search .e-search { display: block; width: 100%; height: 100%; }
  header.elementor.elementor-location-header .the-search .e-search-form { display: flex; flex-direction: column; width: 100%; height: 100%; gap: 15px; }
  header.elementor.elementor-location-header .the-search .e-search-input-wrapper { flex: 1; width: 100%; max-width: none; display: flex; align-items: center; position: relative; min-height: 0; }
  header.elementor.elementor-location-header .the-search .e-search-input { width: 100%; text-align: center; border: 0; background: #fff; padding: 12px; font-size: 24px; box-shadow: none; }
  header.elementor.elementor-location-header .the-search .e-search-submit { position: static; clip: auto; clip-path: none; width: 100%; height: 50px; margin: 0; padding: 0 15px; flex-shrink: 0; border: 0; border-radius: 4px; background: #000; color: #fff; overflow: visible; }
  header.elementor.elementor-location-header .the-search .e-search-submit::after { content: 'Search'; font-size: 16px; }
  header.elementor.elementor-location-header .the-search .e-search-results-container { max-height: 45%; overflow-y: auto; top: 55%; }
  header.elementor.elementor-location-header .close-search { display: none; }
  header.elementor.elementor-location-header .close-search.activated { display: flex; position: fixed; top: calc(150px + var(--lsl-admin-offset)); right: 20px; width: 40px !important; height: 40px; padding: 10px; z-index: 11; cursor: pointer; transition: none; }
  header.elementor.elementor-location-header .close-search img { width: 20px; height: 20px; }
  header.elementor.elementor-location-header .cart-header-wrapper * { transition: none; }
  header.elementor.elementor-location-header a:focus-visible, header.elementor.elementor-location-header button:focus-visible, header.elementor.elementor-location-header input:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  header.elementor.elementor-location-header .shop-header-wrapper.active { max-width: calc(100vw - 215px); }
  header.elementor.elementor-location-header .shop-header-wrapper > .e-con:nth-child(2) { max-width: 100%; }
}
@media (max-width: 359px) {
  header.elementor.elementor-location-header .elementor-widget-theme-site-logo { width: 65px; margin-left: 15px; }
  header.elementor.elementor-location-header .elementor-widget-theme-site-logo img { width: 65px; }
  header.elementor.elementor-location-header .cart-header-wrapper, header.elementor.elementor-location-header .cart-header-wrapper.activated { right: 25px; gap: 8px; width: 116px; }
}

/* Mobile alignment and menu stacking. */
@media (max-width: 767px) {
 header.elementor.elementor-location-header .cart-header-wrapper { background: transparent !important; box-shadow: none !important; border: 0; }
 header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget { margin: 0; }
 header.elementor.elementor-location-header .cart-header-wrapper img { display: block; }
 header.elementor.elementor-location-header .shop-header-wrapper { position: absolute; top: 60px; left: 0; }
 header.elementor.elementor-location-header .main-menu-header-wrapper.active { height: min(550px, calc(100dvh - 40px - var(--lsl-admin-offset))); }
 header.elementor.elementor-location-header .menu-content-wrapper { width: 100%; height: 100%; gap: 0; }
 header.elementor.elementor-location-header .menu-content-wrapper > .e-con:first-child { flex-shrink: 0; }
 header.elementor.elementor-location-header .menu-content-wrapper > .e-con:nth-child(2) { margin-top: 70px; }
 header.elementor.elementor-location-header .main-menu-list-header .elementor-icon-list-text { font-size: 22px; line-height: 1.3; }
 header.elementor.elementor-location-header .menu-content-wrapper > .elementor-widget-social-icons { margin-top: auto; padding-top: 30px; padding-bottom: 10px; }
 header.elementor.elementor-location-header .main-menu-header-wrapper:not(.active) .menu-content-wrapper > .e-con:nth-child(2),
 header.elementor.elementor-location-header .main-menu-header-wrapper:not(.active) .menu-content-wrapper > .elementor-widget-social-icons { visibility: hidden; }
 header.elementor.elementor-location-header .the-search .e-search-input,
 header.elementor.elementor-location-header .the-search .e-search-submit { font-family: STKBureauSefif, serif; }
 header.elementor.elementor-location-header .the-search .e-search-submit { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 767px) {
 header.elementor.elementor-location-header .menu-items-wrapper { flex-direction: column; flex-wrap: nowrap; }
 header.elementor.elementor-location-header .menu-content-wrapper { flex-direction: column; flex-wrap: nowrap; }
 header.elementor.elementor-location-header .menu-content-wrapper > .e-con:nth-child(2) { width: 100%; flex-shrink: 0; }
 header.elementor.elementor-location-header .menu-items-wrapper > .e-con:has(.sf-bar) { position: absolute; left: 0; top: 120px; width: 100%; z-index: 90; }
 header.elementor.elementor-location-header:has(.sf-bar) + [data-elementor-type="product-archive"] { padding-top: 60px; }
 header.elementor.elementor-location-header:has(.sf-bar) .menu-items-wrapper:has(.main-menu-header-wrapper.active, .shop-header-wrapper.active) > .e-con:has(.sf-bar) { visibility: hidden; }
 header.elementor.elementor-location-header:has(.sf-bar) .the-search.activated { top: calc(205px + var(--lsl-admin-offset)); height: min(550px, calc(100dvh - 225px - var(--lsl-admin-offset))); }
 header.elementor.elementor-location-header:has(.sf-bar) .close-search.activated { top: calc(210px + var(--lsl-admin-offset)); }
}

@media (max-width: 767px) {
 header.elementor.elementor-location-header .header-wrapper { z-index: 100; }
 header.elementor.elementor-location-header .menu-items-wrapper { z-index: 100; }
 header.elementor.elementor-location-header .main-menu-header-wrapper,
 header.elementor.elementor-location-header .shop-header-wrapper { z-index: 100; }
}

/* Figma mobile motion: vertical Shop reveal and Search entering from the right. */
@media (max-width: 767px) {
 header.elementor.elementor-location-header { --lsl-panel-duration: 600ms; --lsl-panel-ease: cubic-bezier(.22, 1, .36, 1); }
 header.elementor.elementor-location-header .shop-header-wrapper {
   height: 50px; flex-wrap: nowrap;
   transition: height var(--lsl-panel-duration) var(--lsl-panel-ease);
   scrollbar-width: none;
 }
 header.elementor.elementor-location-header .shop-header-wrapper::-webkit-scrollbar { display: none; }
 header.elementor.elementor-location-header .shop-header-wrapper.active {
   height: min(var(--lsl-shop-height, 580px), calc(100dvh - 95px - var(--lsl-admin-offset)));
 }
 header.elementor.elementor-location-header .shop-header-wrapper > .e-con:nth-child(2) {
   flex-shrink: 0;
   transition: visibility 0s;
 }
 header.elementor.elementor-location-header .shop-header-wrapper:not(.active) > .e-con:nth-child(2) {
   visibility: hidden;
   transition: visibility 0s var(--lsl-panel-duration);
 }
 header.elementor.elementor-location-header .shop-header-wrapper.active > .e-con:nth-child(2) { visibility: visible; }
 header.elementor.elementor-location-header .the-search,
 header.elementor.elementor-location-header .the-search.activated {
   display: block; position: fixed; top: calc(145px + var(--lsl-admin-offset));
   left: 15px; right: 15px; width: auto;
   height: min(550px, calc(100dvh - 165px - var(--lsl-admin-offset)));
   padding: 45px 15px 15px; border-radius: 5px; background: #fff;
   box-shadow: none; overflow: visible; z-index: 10;
   transition: transform var(--lsl-panel-duration) var(--lsl-panel-ease), visibility 0s var(--lsl-panel-duration);
 }
 header.elementor.elementor-location-header .the-search:not(.activated) {
   transform: translateX(100vw); visibility: hidden; pointer-events: none;
 }
 header.elementor.elementor-location-header .the-search.activated {
   transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s;
 }
 header.elementor.elementor-location-header .close-search,
 header.elementor.elementor-location-header .close-search.activated {
   display: flex; position: fixed; top: calc(150px + var(--lsl-admin-offset)); right: 20px;
   width: 40px !important; height: 40px; padding: 10px; z-index: 11;
   transition: transform var(--lsl-panel-duration) var(--lsl-panel-ease), visibility 0s var(--lsl-panel-duration);
 }
 header.elementor.elementor-location-header .close-search:not(.activated) {
   transform: translateX(100vw); visibility: hidden; pointer-events: none;
 }
 header.elementor.elementor-location-header .close-search.activated {
   transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s;
 }
 header.elementor.elementor-location-header .cart-header-wrapper::before {
   content: ''; position: fixed; inset: 0; background: rgb(0 0 0 / 20%);
   opacity: 0; visibility: hidden; pointer-events: none; z-index: 9;
   transition: opacity var(--lsl-panel-duration) ease, visibility 0s var(--lsl-panel-duration);
 }
 header.elementor.elementor-location-header .cart-header-wrapper.activated::before {
   opacity: 1; visibility: visible; transition-delay: 0s;
 }
 header.elementor.elementor-location-header:has(.sf-bar) .the-search {
   top: calc(205px + var(--lsl-admin-offset));
   height: min(550px, calc(100dvh - 225px - var(--lsl-admin-offset)));
 }
 header.elementor.elementor-location-header:has(.sf-bar) .close-search { top: calc(210px + var(--lsl-admin-offset)); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
 header.elementor.elementor-location-header { --lsl-panel-duration: 1ms; }
}

@media (max-width: 767px) {
 header.elementor.elementor-location-header .shop-header-wrapper > .e-con:first-child::after,
 header.elementor.elementor-location-header .shop-header-wrapper.active > .e-con:first-child::after {
   content: '+'; transform-origin: center; transition: transform var(--lsl-panel-duration) var(--lsl-panel-ease);
 }
 header.elementor.elementor-location-header .shop-header-wrapper.active > .e-con:first-child::after { transform: rotate(45deg); }
}

/* Figma parity: no focus box on mobile search input; divider under open Shop title. */
@media (max-width: 767px) {
header.elementor.elementor-location-header .the-search .e-search-input,
header.elementor.elementor-location-header .the-search .e-search-input:focus,
header.elementor.elementor-location-header .the-search .e-search-input:focus-visible { outline: 0 !important; border: 0 !important; box-shadow: none !important; }
header.elementor.elementor-location-header .shop-header-wrapper > .e-con:first-child { padding-bottom: 22px; }
header.elementor.elementor-location-header .shop-header-wrapper > .e-con:nth-child(2) { border-top: 1px solid #000; padding-top: 15px; }
}

/* Figma parity v2: aligned header icons, Shop bar behind open menu, "Shop" menu item with green categories view. */
@media (max-width: 767px) {
header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget-image:not(.close-search) { display: flex; align-items: center; justify-content: center; height: 24px; }
header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget-image:not(.close-search) .elementor-widget-container { display: flex; align-items: center; height: 100%; }
header.elementor.elementor-location-header .cart-header-wrapper > .elementor-widget-image:not(.close-search) img { width: auto; height: 20px; }
header.elementor.elementor-location-header { --lsl-slide-duration: 450ms; }
/* Shop bar goes behind the open menu via z-index only, so the theme's original panel animation stays intact. */
header.elementor.elementor-location-header .shop-header-wrapper { transition: height var(--lsl-panel-duration) var(--lsl-panel-ease), z-index 0s linear var(--lsl-panel-duration); }
header.elementor.elementor-location-header .menu-items-wrapper:has(.main-menu-header-wrapper.active) .shop-header-wrapper { z-index: 50; transition: height var(--lsl-panel-duration) var(--lsl-panel-ease), z-index 0s; }
/* Keep the theme's panel transition (600ms bounce) and add a smooth orange-to-green fade. */
header.elementor.elementor-location-header .main-menu-header-wrapper { transition: all 600ms cubic-bezier(0.47, 0.7, 0.36, 1.24), background-color var(--lsl-slide-duration) ease; }
header.elementor.elementor-location-header .main-menu-header-wrapper.lsl-shop-open { background-color: #09d12e; }
/* Menu list and Shop categories slide horizontally, like the Figma prototype. */
header.elementor.elementor-location-header .menu-content-wrapper { position: relative;  }
header.elementor.elementor-location-header .menu-content-wrapper > .e-con:nth-child(2) { position: absolute; top: 86px; left: 0; right: 0; width: 100%; margin-top: 0; transition: transform var(--lsl-slide-duration) var(--lsl-panel-ease), opacity var(--lsl-slide-duration) ease; }
header.elementor.elementor-location-header .main-menu-header-wrapper.lsl-shop-open .menu-content-wrapper > .e-con:nth-child(2) { transform: translateX(-100%); opacity: 0; pointer-events: none; }
header.elementor.elementor-location-header .lsl-shop-view { display: block; position: absolute; top: 86px; left: 0; right: 0; bottom: 64px; overflow-y: auto; scrollbar-width: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform var(--lsl-slide-duration) var(--lsl-panel-ease), opacity var(--lsl-slide-duration) ease, visibility 0s linear var(--lsl-slide-duration); }
header.elementor.elementor-location-header .main-menu-header-wrapper.lsl-shop-open .lsl-shop-view { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
header.elementor.elementor-location-header .lsl-shop-view::-webkit-scrollbar { display: none; }
header.elementor.elementor-location-header .lsl-shop-view > .e-con { position: static; flex-direction: column; flex-wrap: nowrap; width: 100%; min-width: 0; gap: 0; padding: 0 0 20px; }
header.elementor.elementor-location-header .lsl-shop-view > .e-con > * { width: 100%; min-width: 0; }
header.elementor.elementor-location-header .lsl-shop-view > .e-con > .e-con { gap: 0; }
header.elementor.elementor-location-header .lsl-shop-view .elementor-widget-heading { padding: 17px 0 16px; }
header.elementor.elementor-location-header .lsl-shop-view .elementor-icon-list-text { font-size: 22px; line-height: 1.3; }
header.elementor.elementor-location-header .lsl-shop-view .fixed-icon-list ul li a { transform: translateX(-20px); }
header.elementor.elementor-location-header .lsl-shop-view .lsl-back-list ul li a { transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { header.elementor.elementor-location-header { --lsl-slide-duration: 1ms; } }
@media (min-width: 768px) { header.elementor.elementor-location-header .lsl-shop-item, header.elementor.elementor-location-header .lsl-shop-view { display: none !important; } }

/* Shop / category pages (mobile): no green Shop bar, full-width Filter + Sort, Figma-style filter panel. */
@media (max-width: 767px) {
header.elementor.elementor-location-header:has(.sf-bar) .shop-header-wrapper { display: none; }
header.elementor.elementor-location-header .menu-items-wrapper > .e-con:has(.sf-bar) { top: 56px; }
header.elementor.elementor-location-header .sf-bar { display: flex; align-items: flex-start; gap: 5px; width: 100%; }
header.elementor.elementor-location-header .sf-bar .sf-item { flex: 1 1 0; min-width: 0; }
header.elementor.elementor-location-header .sf-bar .sf-item:not(.open) .sf-panel { width: 100% !important; }
header.elementor.elementor-location-header .sf-bar .sf-head, header.elementor.elementor-location-header .sf-bar .sf-toggle { height: 36px; }
header.elementor.elementor-location-header .sf-bar .sf-item.open .sf-head, header.elementor.elementor-location-header .sf-bar .sf-item.open .sf-toggle { height: 54px; }
header.elementor.elementor-location-header .sf-bar .sf-item.open .sf-panel { width: calc(100vw - 30px) !important; }
header.elementor.elementor-location-header .sf-bar .sf-item[data-sf="sort"].open .sf-panel { left: calc(-100% - 5px); }
header.elementor.elementor-location-header .sf-bar .sf-body { padding: 50px 16px 0; min-height: min(496px, calc(100dvh - 190px - var(--lsl-admin-offset))); max-height: calc(100dvh - 190px - var(--lsl-admin-offset)); overflow-y: auto; overscroll-behavior: contain; }
header.elementor.elementor-location-header .sf-bar .sf-list label { gap: 16px; padding: 13px 0; }
header.elementor.elementor-location-header .sf-bar .sf-box { width: 18px; height: 18px; }
header.elementor.elementor-location-header:has(.sf-bar) + [data-elementor-type="product-archive"] { padding-top: 0; }
header.elementor.elementor-location-header:has(.sf-bar) + [data-elementor-type="product-archive"] > .e-con:first-child { padding-top: 137px; }
header.elementor.elementor-location-header:has(.sf-bar) .the-search, header.elementor.elementor-location-header:has(.sf-bar) .the-search.activated { top: calc(127px + var(--lsl-admin-offset)); height: min(550px, calc(100dvh - 147px - var(--lsl-admin-offset))); }
header.elementor.elementor-location-header:has(.sf-bar) .close-search, header.elementor.elementor-location-header:has(.sf-bar) .close-search.activated { top: calc(132px + var(--lsl-admin-offset)); }
}

/* Search: Elementor hidden class (opacity 0) stays until its own JS runs, which can be late for visitors. Keep the form visible. */
@media (max-width: 767px) {
header.elementor.elementor-location-header .the-search .e-search.hidden { opacity: 1; visibility: visible; }
header.elementor.elementor-location-header .lsl-shop-view[hidden] { display: none !important; }
}

/* Elementor sticky keeps a copy of the header (.elementor-sticky__spacer) with a dead copy of the search panel and close button (no JS handlers, stale hidden class). It sat on top of the real ones, so the search looked empty and the X did nothing for visitors. Hide it and make it non-interactive. */
@media (max-width: 767px) {
header.elementor.elementor-location-header .elementor-sticky__spacer, header.elementor.elementor-location-header .elementor-sticky__spacer * { visibility: hidden !important; pointer-events: none !important; }
}
