/* =========================================================
   AES UX UPGRADE — NDGROUP / Sleek Shopify theme
   Purpose: premium commerce UX layer without touching homepage sections
   Version: 2026-06-11
   ========================================================= */

:root {
  --aes-ink: #111111;
  --aes-ink-soft: #2f2f2f;
  --aes-muted: #777777;
  --aes-line: rgba(17, 17, 17, 0.12);
  --aes-line-strong: rgba(17, 17, 17, 0.22);
  --aes-bg: #ffffff;
  --aes-bg-soft: #f8f6f3;
  --aes-rose: #ee8fa0;
  --aes-red: #d93636;
  --aes-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --aes-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
  --aes-radius: 20px;
  --aes-pill: 999px;
}

html[dir="rtl"] body {
  text-align: right;
}

body {
  background: var(--aes-bg-soft);
}

/* Keep user built homepage sections intact: only global chrome/product/shop UI below */
.main-content > .shopify-section:not([class*="template"]):first-child {
  isolation: isolate;
}

/* =========================================================
   Header: premium 2-row desktop layout inspired by modern beauty stores
   ========================================================= */
.header-section {
  position: relative;
  z-index: 40;
  background: #fff;
}

.header-sticky,
.shopify-section-group-header-group {
  z-index: 70;
}

.header-section .header {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.header-section .header::before {
  background-color: #fff !important;
  opacity: 1 !important;
}

.header-section .header__logo a {
  align-items: center;
}

.header-section .header__logo--image img,
.header-section .header__logo img {
  object-fit: contain;
}

.header-section .header__buttons > :is(a, button) {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.header-section .header__buttons > :is(a, button):hover {
  background: #f3f3f3;
  transform: translateY(-1px);
}

.header-section .cart-count,
.header-section .aes-cart-badge-target[data-aes-cart-count]:not([data-aes-cart-count="0"])::after {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  background: var(--aes-red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  .header-section .header {
    min-height: 112px;
    padding: 16px 44px 12px !important;
    grid-template:
      "aes-left aes-logo aes-right" auto
      "aes-nav aes-nav aes-nav" auto / minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
    row-gap: 12px;
    column-gap: 24px;
    align-items: center;
  }

  .header-section .header__logo {
    grid-area: aes-logo !important;
    justify-self: center !important;
    max-width: none !important;
  }

  .header-section .header__logo--image {
    max-width: min(var(--logo-width, 140px), 170px) !important;
  }

  .header-section .header__icons--right {
    grid-area: aes-left !important;
    justify-self: start !important;
    align-self: center;
  }

  .header-section .header__icons--left {
    grid-area: aes-right !important;
    justify-self: end !important;
    align-self: center;
  }

  .header-section .header__navigation,
  .header-section .header__navigation--split {
    grid-area: aes-nav !important;
    width: 100% !important;
    justify-content: center !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 10px;
  }

  .header-section .header__navigation > nav,
  .header-section .header__navigation > ul,
  .header-section .header__navigation .menu,
  .header-section .header__navigation .list-menu {
    justify-content: center !important;
  }

  .header-section .menu__item {
    padding-inline: 16px;
    min-height: 34px;
    font-size: 15px;
    font-weight: 700;
    color: var(--aes-ink);
    transition: color 0.2s ease;
  }

  .header-section .menu__item:hover,
  .header-section .menu__item[aria-expanded="true"] {
    color: #000;
  }

  .header-sticky.header-scrolled .header {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06) !important;
  }
}

@media (max-width: 1023.98px) {
  .header-section .header {
    min-height: 68px;
    padding: 8px 14px !important;
  }

  .header-section .header__buttons > :is(a, button) {
    width: 40px;
    height: 40px;
  }
}

/* Mega menu / dropdowns */
.header-section .mega-menu__container,
.header-section .dropdown__container {
  border: 0 !important;
  box-shadow: var(--aes-shadow);
}

.header-section .mega-menu__wrapper {
  padding-block: 34px 42px !important;
  gap: 26px !important;
}

.header-section .mega-menu__link--top,
.header-section .dropdown__nav a,
.header-section .mega-menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-section .dropdown__nav a:hover,
.header-section .mega-menu a:hover {
  color: #000;
  transform: translateX(-2px);
}

/* =========================================================
   Search drawer and predictive results
   ========================================================= */
.search-drawer .drawer__inner {
  max-width: min(92vw, 560px) !important;
  background: #fff !important;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.14);
}

.search-drawer .drawer__header {
  padding: 28px 26px 16px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-drawer .drawer__heading {
  font-size: 26px !important;
  letter-spacing: -0.02em;
}

.search-drawer .search__form {
  padding: 22px 24px 28px !important;
}

.search-drawer .search__field {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.search-drawer .search__input {
  height: 54px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 16px;
}

.search-drawer .search__content {
  padding-block: 24px !important;
}

.search-drawer .predictive-search__list-item > .flex,
.search__products-recommendation .predictive-search__list-item > .flex {
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-drawer .predictive-search__list-item > .flex:hover,
.search__products-recommendation .predictive-search__list-item > .flex:hover {
  background: #f7f7f7;
}

.search-drawer .predictive-search__list-item .media-wrapper {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 14px !important;
  background: #fff;
}

.search-drawer .predictive-search__list-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   Collection / PLP
   ========================================================= */
.collection-template .main-content,
.search-template .main-content {
  background: var(--aes-bg-soft);
}

.collection-template .collection,
.search-template .collection {
  background: transparent;
}

.collection-template .collection__grid,
.search-template .collection__grid,
.collection-template #product-grid,
.search-template #product-grid {
  align-items: stretch;
}

.collection-template .collection__toolbar,
.collection-template .collection__sticky-header,
.search-template .collection__toolbar,
.search-template .collection__sticky-header {
  background: transparent !important;
  border: 0 !important;
}

.facet-accordion-details.aes-hidden-filter,
.facets__item.aes-hidden-filter,
.facets__disclosure.aes-hidden-filter,
.facet-drawer-wrapper .aes-hidden-filter {
  display: none !important;
}

.facet-accordion-details,
.facets__disclosure,
.collection__aside .accordion-details {
  border-color: rgba(0, 0, 0, 0.09) !important;
}

.collection__aside,
.facets-drawer,
.facet-drawer-wrapper .drawer__inner {
  background: #fff !important;
}

.collection__aside .accordion-details__summary,
.facets-drawer .accordion-details__summary {
  font-weight: 800;
  font-size: 17px;
}

.price-range,
.facets-price,
.facet-price,
.facet-price-range {
  direction: rtl;
}

/* =========================================================
   Product cards: clean beauty shop layout
   ========================================================= */
.product-card:not(.product-card--list) {
  height: 100%;
}

.product-card:not(.product-card--list) .product-card__wrapper {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:not(.product-card--list) .product-card__wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--aes-shadow-soft);
}

.product-card:not(.product-card--list) .product-card__image-wrapper {
  order: 1;
  background: #fff !important;
  border-radius: 22px 22px 0 0 !important;
  overflow: hidden !important;
}

.product-card:not(.product-card--list) .product-card__image-wrapper a {
  display: block;
}

.product-card:not(.product-card--list) .product-card__image,
.product-card:not(.product-card--list) .media-wrapper.product-card__image {
  background: #fff !important;
}

.product-card:not(.product-card--list) .product-card__image img {
  object-fit: contain !important;
  padding: 8px;
}

.product-card:not(.product-card--list) .product-card__badge {
  top: 14px;
  inset-inline-start: 14px;
  gap: 6px;
}

.product-card:not(.product-card--list) .f-badge {
  background: #fff !important;
  color: var(--aes-red) !important;
  border: 1px solid rgba(217, 54, 54, 0.14) !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}

.product-card:not(.product-card--list) .product-card__quickview {
  width: 42px !important;
  height: 42px !important;
  top: 14px !important;
  inset-inline-end: 14px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

.product-card:not(.product-card--list) .product-card__info {
  order: 2;
  padding: 18px 18px 0 !important;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  gap: 5px !important;
}

.product-card:not(.product-card--list) .product-card__vendor,
.product-card:not(.product-card--list) .product-card__type {
  color: #8a8a8a !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px !important;
  line-height: 1.4;
}

.product-card:not(.product-card--list) .product-card__title {
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: var(--aes-ink) !important;
  margin: 0 !important;
}

.product-card:not(.product-card--list) .product-card__title a {
  background: none !important;
}

.product-card:not(.product-card--list) .f-price {
  margin-top: 4px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--aes-ink) !important;
}

.product-card:not(.product-card--list) .product-card__actions,
.product-card:not(.product-card--list) .product-card__main-actions {
  order: 3;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 14px 18px 20px !important;
  display: flex !important;
  justify-content: center !important;
}

.product-card:not(.product-card--list) .product-card__actions > *,
.product-card:not(.product-card--list) .product-card__main-actions > * {
  width: 100% !important;
}

.product-card:not(.product-card--list) .product-card__atc,
.product-card:not(.product-card--list) .product-card__action-button {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease !important;
}

.product-card:not(.product-card--list) .product-card__atc:hover,
.product-card:not(.product-card--list) .product-card__action-button:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.product-card:not(.product-card--list) .product-card__atc::before,
.product-card:not(.product-card--list) .product-card__atc::after,
.product-card:not(.product-card--list) .product-card__action-button::before,
.product-card:not(.product-card--list) .product-card__action-button::after {
  display: none !important;
  content: none !important;
}

.product-card:not(.product-card--list) .product-card__atc-icon,
.product-card:not(.product-card--list) .product-card__action-icon,
.product-card:not(.product-card--list) .product-card__atc svg,
.product-card:not(.product-card--list) .product-card__action-button svg {
  display: none !important;
}

.product-card:not(.product-card--list) .product-card__atc-text,
.product-card:not(.product-card--list) .product-card__action-text,
.product-card:not(.product-card--list) .aes-atc-label {
  position: static !important;
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  color: inherit !important;
}

.product-card:not(.product-card--list) .btn--loading > *:not(.loading__spinner) {
  opacity: 1 !important;
}

.product-card:not(.product-card--list) .loading__spinner {
  display: none !important;
}

/* Card quantity after add */
.product-card:not(.product-card--list) form.aes-card-qty-form {
  order: 3;
  margin: auto 0 0 !important;
  padding: 14px 18px 20px !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
}

.aes-card-qty {
  width: 100%;
  height: 46px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.aes-card-qty__btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}

.aes-card-qty__number {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #111;
}

.aes-card-qty.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .product-card:not(.product-card--list) .product-card__wrapper {
    border-radius: 16px;
  }

  .product-card:not(.product-card--list) .product-card__image-wrapper {
    border-radius: 16px 16px 0 0 !important;
  }

  .product-card:not(.product-card--list) .product-card__info {
    padding: 14px 12px 0 !important;
    min-height: 118px;
  }

  .product-card:not(.product-card--list) .product-card__title {
    font-size: 14px !important;
  }

  .product-card:not(.product-card--list) .product-card__actions,
  .product-card:not(.product-card--list) .product-card__main-actions,
  .product-card:not(.product-card--list) form.aes-card-qty-form {
    padding: 12px 12px 14px !important;
  }

  .product-card:not(.product-card--list) .product-card__atc,
  .product-card:not(.product-card--list) .product-card__action-button,
  .aes-card-qty {
    height: 42px !important;
    min-height: 42px !important;
  }

  .aes-card-qty {
    grid-template-columns: 42px 1fr 42px;
  }

  .aes-card-qty__btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 17px !important;
  }
}

/* =========================================================
   Cart drawer: clean conversion drawer
   ========================================================= */
cart-drawer.drawer--right .drawer__inner,
#CartDrawer.drawer--right .drawer__inner,
.cart-drawer.drawer--right .drawer__inner {
  max-width: min(92vw, 510px) !important;
  background: #fff !important;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.16) !important;
}

cart-drawer .drawer__header,
.cart-drawer .drawer__header {
  padding: 22px 24px 18px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

cart-drawer .drawer__heading,
.cart-drawer .drawer__heading {
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

cart-drawer .drawer__close-btn,
.cart-drawer .drawer__close-btn {
  top: 16px !important;
  inset-inline-end: 16px !important;
  background: #f5f5f5 !important;
  width: 42px !important;
  height: 42px !important;
}

cart-drawer .free-shipping-goal,
.cart-drawer .free-shipping-goal {
  width: 100%;
  max-width: none !important;
  margin: 14px 0 0 !important;
  text-align: right !important;
}

cart-drawer .progress-bar,
.cart-drawer .progress-bar {
  height: 5px !important;
  background: #e7e7e7 !important;
  color: #111 !important;
}

cart-drawer .drawer__body,
.cart-drawer .drawer__body {
  padding-inline: 22px !important;
}

cart-drawer .cart-item,
.cart-drawer .cart-item {
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 12px !important;
}

cart-drawer .cart-item__product,
.cart-drawer .cart-item__product {
  align-items: center !important;
}

cart-drawer .cart-item__media,
.cart-drawer .cart-item__media {
  flex: 0 0 84px !important;
  width: 84px !important;
  height: 84px !important;
  border-radius: 14px !important;
  background: #fff !important;
}

cart-drawer .cart-item__media img,
.cart-drawer .cart-item__media img {
  object-fit: contain !important;
  padding: 4px;
}

cart-drawer .cart-item__title,
.cart-drawer .cart-item__title {
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  background: none !important;
}

cart-drawer .cart-item__prices,
.cart-drawer .cart-item__prices {
  margin-top: 5px;
}

cart-drawer .cart-quantity,
.cart-drawer .cart-quantity {
  width: 116px !important;
  min-height: 38px !important;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px !important;
  overflow: hidden;
}

cart-drawer .cart-quantity .quantity__input,
.cart-drawer .cart-quantity .quantity__input {
  box-shadow: none !important;
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 38px !important;
  font-weight: 800 !important;
}

cart-drawer .cart-quantity .quantity__button,
.cart-drawer .cart-quantity .quantity__button {
  width: 36px !important;
  height: 38px !important;
  min-height: 38px !important;
}

cart-drawer .drawer__footer,
.cart-drawer .drawer__footer {
  padding: 18px 24px 22px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.04);
}

cart-drawer .drawer__footer-buttons .btn,
.cart-drawer .drawer__footer-buttons .btn,
cart-drawer button[name="checkout"],
.cart-drawer button[name="checkout"] {
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  font-weight: 900 !important;
  height: 50px !important;
  min-height: 50px !important;
}

cart-drawer .cart__addon,
.cart-drawer .cart__addon,
cart-drawer .cart-drawer__addons,
.cart-drawer .cart-drawer__addons {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* =========================================================
   Product page: variants/options + buy area
   ========================================================= */
.product-template .product {
  background: #fff;
  border-radius: 28px;
  padding: clamp(18px, 3vw, 42px);
  box-shadow: var(--aes-shadow-soft);
}

.product-template .product__info-wrapper {
  background: #fff;
}

.product-template .product__title,
.product-template h1.product__title,
.product-template .product__info-wrapper h1 {
  font-size: clamp(30px, 3.4vw, 48px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em;
}

.product-template .product-form__input {
  margin-block: 18px !important;
}

.product-template .product-form__input .form__label {
  width: 100%;
  margin-bottom: 10px;
  font-size: 15px;
}

.product-template .product-form__input--button label,
.product-template .product-form__input--button .swatch-input__label,
.product-template .product-form__input input[type="radio"] + label {
  min-width: 54px;
  min-height: 44px;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  background: #fff !important;
  color: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-template .product-form__input input[type="radio"]:checked + label,
.product-template .product-form__input--button label:has(input:checked) {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.product-template .product-form__buttons .btn,
.product-template .product-form__submit,
.product-template button[name="add"] {
  min-height: 54px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.product-template .product-form__buttons .btn:hover,
.product-template .product-form__submit:hover,
.product-template button[name="add"]:hover {
  background: #fff !important;
  color: #111 !important;
}

/* =========================================================
   General buttons / inputs polish
   ========================================================= */
.form-control,
select,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea {
  border-radius: 999px;
}

textarea {
  border-radius: 18px;
}

.btn:not(.btn--plain):not(.btn--underline):not(.btn--link) {
  border-radius: 999px;
}

/* Accessibility widget / floating buttons should remain visible */
.joinchat,
.whatsapp-floating,
.aes-floating-whatsapp,
[class*="accessibility"] {
  z-index: 2147483000;
}

@media (min-width: 1024px) {
  .header-section .aes-header-account {
    grid-area: aes-right !important;
    justify-self: end !important;
    align-items: center;
  }

  .header-section .aes-header-account__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    transition: background 0.22s ease, transform 0.22s ease;
  }

  .header-section .aes-header-account__link:hover {
    background: #f3f3f3;
    transform: translateY(-1px);
  }

  .header-section .header__icons--right .account-button {
    display: none !important;
  }
}


/* =========================================================
   AES UX UPGRADE V2 — header controls, compact search, cart fly, card qty
   Added after first QA pass
   ========================================================= */

:root {
  --aes-card-action-max: 196px;
  --aes-card-action-height: 40px;
}

/* ---------- Header compact controllable layout ---------- */
.header-section .header[data-aes-header-mode] {
  --aes-header-line: rgba(0,0,0,.075);
}

@media (min-width: 1024px) {
  .header-section .header[data-aes-header-mode="compact_center"],
  .header-section .header[data-aes-header-mode="two_row_center"] {
    min-height: calc(var(--aes-header-desktop-height, 78px) + var(--aes-header-nav-height, 36px) + var(--aes-header-row-gap, 2px)) !important;
    padding: 0 var(--aes-header-x-padding, 42px) !important;
    grid-template:
      "aes-left aes-logo aes-right" var(--aes-header-desktop-height, 78px)
      "aes-nav aes-nav aes-nav" var(--aes-header-nav-height, 36px) / minmax(170px, 1fr) auto minmax(170px, 1fr) !important;
    row-gap: var(--aes-header-row-gap, 2px) !important;
    column-gap: 26px !important;
    align-items: center !important;
  }

  .header-section .header[data-aes-header-mode="two_row_center"] {
    --aes-header-desktop-height: max(var(--aes-header-desktop-height, 94px), 88px);
    --aes-header-nav-height: max(var(--aes-header-nav-height, 42px), 40px);
  }

  .header-section .header[data-aes-header-mode="one_row"] {
    min-height: var(--aes-header-desktop-height, 76px) !important;
    padding: 0 var(--aes-header-x-padding, 42px) !important;
    grid-template: "aes-right aes-logo aes-left" var(--aes-header-desktop-height, 76px) / minmax(0, 1fr) auto minmax(0, 1fr) !important;
    column-gap: 26px !important;
  }

  .header-section .header[data-aes-header-mode="one_row"] .header__navigation,
  .header-section .header[data-aes-header-mode="one_row"] .header__navigation--split {
    grid-area: aes-right !important;
    border-top: 0 !important;
    padding-top: 0 !important;
    justify-self: start !important;
    width: auto !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo {
    grid-area: aes-logo !important;
    justify-self: center !important;
    align-self: center !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo--image {
    max-width: min(var(--logo-width, 140px), var(--aes-header-logo-max, 132px)) !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo img {
    max-height: calc(var(--aes-header-desktop-height, 78px) - 14px) !important;
    object-fit: contain !important;
  }

  /* visual left side: cart + search; visual right: account */
  .header-section .header[data-aes-header-icons="icons-left-account-right"] .header__icons--right {
    grid-area: aes-left !important;
    justify-self: start !important;
  }

  .header-section .header[data-aes-header-icons="icons-left-account-right"] .aes-header-account {
    grid-area: aes-right !important;
    justify-self: end !important;
  }

  .header-section .header[data-aes-header-icons="icons-right-account-left"] .header__icons--right {
    grid-area: aes-right !important;
    justify-self: end !important;
  }

  .header-section .header[data-aes-header-icons="icons-right-account-left"] .aes-header-account {
    grid-area: aes-left !important;
    justify-self: start !important;
  }

  .header-section .header[data-aes-header-mode] .header__icons--right .header__buttons {
    gap: 4px !important;
    margin: 0 !important;
  }

  .header-section .header[data-aes-header-mode] .header__buttons > :is(a, button) {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .header-section .header[data-aes-header-mode] .header__navigation,
  .header-section .header[data-aes-header-mode] .header__navigation--split {
    grid-area: aes-nav !important;
    width: 100% !important;
    height: var(--aes-header-nav-height, 36px) !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-top: 1px solid var(--aes-header-line) !important;
    padding-top: 0 !important;
  }

  .header-section .header[data-aes-header-mode] .menu__item {
    min-height: var(--aes-header-nav-height, 36px) !important;
    height: var(--aes-header-nav-height, 36px) !important;
    padding-inline: 14px !important;
    font-size: var(--aes-header-menu-size, 15px) !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .header-section .header[data-aes-header-mode] .aes-header-account__link {
    min-height: 38px !important;
    padding-inline: 10px !important;
  }
}

@media (max-width: 1023.98px) {
  .header-section .header[data-aes-header-mode] {
    min-height: 62px !important;
    padding: 6px 12px !important;
  }
  .header-section .header__buttons > :is(a, button) {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ---------- Reliable cart badge ---------- */
body .aes-cart-badge-target {
  position: relative !important;
}

body .aes-cart-badge-target[data-aes-cart-count]:not([data-aes-cart-count="0"])::after {
  content: attr(data-aes-cart-count) !important;
  position: absolute !important;
  top: -6px !important;
  right: -7px !important;
  left: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #d93636 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  z-index: 20 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

body .aes-cart-badge-target[data-aes-cart-count="0"]::after,
body .aes-cart-badge-target:not([data-aes-cart-count])::after {
  display: none !important;
  content: none !important;
}

body .aes-cart-badge-target.aes-cart-bump {
  animation: aesCartBump .42s cubic-bezier(.2, .9, .2, 1);
}

@keyframes aesCartBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.aes-fly-to-cart {
  position: fixed !important;
  z-index: 2147483001 !important;
  pointer-events: none !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.18) !important;
  object-fit: contain !important;
  will-change: transform, opacity !important;
}

/* ---------- Inline smart search instead of side drawer ---------- */
.aes-smart-search {
  position: fixed;
  z-index: 2147483002;
  width: min(460px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  direction: rtl;
}

.aes-smart-search.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.aes-smart-search__bar {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.aes-smart-search__icon,
.aes-smart-search__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aes-smart-search__close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.aes-smart-search__input {
  height: 42px !important;
  min-height: 42px !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.aes-smart-search__input::placeholder {
  color: #8b8b8b;
}

.aes-smart-search__results {
  max-height: min(440px, calc(100vh - 170px));
  overflow: auto;
  padding: 10px;
}

.aes-smart-search__hint,
.aes-smart-search__empty {
  padding: 22px 14px;
  color: #777;
  font-size: 14px;
  text-align: center;
}

.aes-smart-search__item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #111 !important;
  transition: background .18s ease, transform .18s ease;
}

.aes-smart-search__item:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
}

.aes-smart-search__img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,.06);
}

.aes-smart-search__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.aes-smart-search__price {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.aes-smart-search__all {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin: 8px 8px 4px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
}

@media (max-width: 767.98px) {
  .aes-smart-search {
    width: calc(100vw - 18px);
    left: 9px !important;
    right: 9px !important;
    border-radius: 18px;
  }
  .aes-smart-search__results {
    max-height: calc(100vh - 150px);
  }
  .aes-smart-search__item {
    grid-template-columns: 56px 1fr;
  }
  .aes-smart-search__price {
    grid-column: 2;
  }
  .aes-smart-search__img {
    width: 56px;
    height: 56px;
  }
}

/* ---------- Product cards: narrower action / quantity, no giant plus bar ---------- */
.product-card:not(.product-card--list) .product-card__actions,
.product-card:not(.product-card--list) .product-card__main-actions {
  padding: 10px 18px 18px !important;
  justify-content: center !important;
  margin-top: 8px !important;
}

.product-card:not(.product-card--list) .product-card__actions > *,
.product-card:not(.product-card--list) .product-card__main-actions > *,
.product-card:not(.product-card--list) form.aes-card-qty-form {
  width: 100% !important;
  max-width: var(--aes-card-action-max) !important;
  margin-inline: auto !important;
}

.product-card:not(.product-card--list) .product-card__atc,
.product-card:not(.product-card--list) .product-card__action-button {
  max-width: var(--aes-card-action-max) !important;
  height: var(--aes-card-action-height) !important;
  min-height: var(--aes-card-action-height) !important;
  font-size: 13.5px !important;
}

.product-card:not(.product-card--list) form.aes-card-qty-form {
  padding: 10px 18px 18px !important;
  justify-content: center !important;
}

.aes-card-qty {
  width: 100% !important;
  max-width: var(--aes-card-action-max) !important;
  height: var(--aes-card-action-height) !important;
  min-height: var(--aes-card-action-height) !important;
  grid-template-columns: 38px 1fr 38px !important;
  margin-inline: auto !important;
  box-shadow: none !important;
}

.aes-card-qty__btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  font-size: 16px !important;
}

.aes-card-qty__number {
  font-size: 14px !important;
}

@media (max-width: 767.98px) {
  :root {
    --aes-card-action-max: 100%;
    --aes-card-action-height: 40px;
  }
  .product-card:not(.product-card--list) .product-card__actions,
  .product-card:not(.product-card--list) .product-card__main-actions,
  .product-card:not(.product-card--list) form.aes-card-qty-form {
    padding: 10px 12px 14px !important;
  }
  .aes-card-qty {
    grid-template-columns: 36px 1fr 36px !important;
  }
  .aes-card-qty__btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* =========================================================
   ART-E-SHOCK UX UPGRADE V3 — final QA pass
   Search rebuild, mobile header balance, faster cards, non-sticky filters
   ========================================================= */

:root {
  --aes-card-action-max: 176px;
  --aes-card-action-height: 40px;
}

/* ---------- Mobile header exactly: right menu+search / center logo / left account+cart ---------- */
@media (max-width: 1023.98px) {
  .header-section .header[data-aes-header-mode] {
    min-height: var(--aes-header-mobile-height, 62px) !important;
    height: var(--aes-header-mobile-height, 62px) !important;
    padding: 6px 12px !important;
    grid-template: "aes-mobile-left aes-logo aes-mobile-right" var(--aes-header-mobile-height, 62px) / minmax(82px, 1fr) auto minmax(82px, 1fr) !important;
    column-gap: 10px !important;
    align-items: center !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo {
    grid-area: aes-logo !important;
    justify-self: center !important;
    align-self: center !important;
    max-width: none !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo--image {
    max-width: min(var(--logo-width-mobile, 92px), 112px) !important;
  }

  .header-section .header[data-aes-header-mode] .header__logo img {
    max-height: calc(var(--aes-header-mobile-height, 62px) - 14px) !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .header-section .header[data-aes-header-mode] .header__icons--left {
    grid-area: aes-mobile-right !important;
    display: flex !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  .header-section .header[data-aes-header-mode] .header__icons--right {
    grid-area: aes-mobile-left !important;
    display: flex !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .header-section .header[data-aes-header-mode] .header__buttons {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .header-section .header[data-aes-header-mode] .header__buttons > :is(a, button),
  .header-section .header[data-aes-header-mode] .account-button,
  .header-section .header[data-aes-header-mode] .cart-drawer-button,
  .header-section .header[data-aes-header-mode] .search-drawer-button,
  .header-section .header[data-aes-header-mode] .menu-drawer-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-section .header[data-aes-header-mode] .account-button {
    display: inline-flex !important;
  }

  .header-section .header[data-aes-header-mode] .header__icons--right .search-drawer-button {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .header-section .header[data-aes-header-mode] .header__icons--right .account-button {
    display: none !important;
  }
}

/* ---------- Search: no drawer, clean floating predictive box ---------- */
html.aes-search-open #SearchDrawer,
html.aes-search-open search-drawer.search-drawer {
  display: none !important;
  pointer-events: none !important;
}

.aes-smart-search {
  position: fixed !important;
  z-index: 2147483002 !important;
  width: min(440px, calc(100vw - 28px));
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.16) !important;
  overflow: hidden !important;
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease !important;
  direction: rtl;
  contain: layout paint style;
}

.aes-smart-search.is-open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.aes-smart-search__bar {
  display: grid !important;
  grid-template-columns: 34px 1fr 32px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.075) !important;
  background: #fff !important;
}

.aes-smart-search__icon,
.aes-smart-search__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f4f4f4 !important;
  color: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.aes-smart-search__close {
  cursor: pointer !important;
  font-size: 20px !important;
  font-weight: 400 !important;
}

.aes-smart-search__input {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 40px !important;
}

.aes-smart-search__input::placeholder {
  color: #8a8a8a !important;
}

.aes-smart-search__results {
  max-height: min(430px, calc(100vh - 170px)) !important;
  overflow: auto !important;
  padding: 9px !important;
  overscroll-behavior: contain !important;
}

.aes-smart-search__hint,
.aes-smart-search__empty {
  padding: 20px 12px !important;
  color: #777 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

.aes-smart-search__empty a {
  display: inline-flex !important;
  margin-top: 8px !important;
  color: #111 !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.aes-smart-search__item {
  display: grid !important;
  grid-template-columns: 58px 1fr auto !important;
  gap: 11px !important;
  align-items: center !important;
  padding: 8px !important;
  border-radius: 15px !important;
  text-decoration: none !important;
  color: #111 !important;
  transition: background .16s ease, transform .16s ease !important;
}

.aes-smart-search__item:hover {
  background: #f7f7f7 !important;
  transform: translateY(-1px) !important;
}

.aes-smart-search__img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 13px !important;
  background: #fff !important;
  object-fit: contain !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

.aes-smart-search__title {
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.aes-smart-search__price {
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.aes-smart-search__all {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 40px !important;
  margin: 8px 6px 3px !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

@media (max-width: 767.98px) {
  .aes-smart-search {
    width: calc(100vw - 18px) !important;
    left: 9px !important;
    right: 9px !important;
    border-radius: 18px !important;
  }

  .aes-smart-search__results {
    max-height: calc(100vh - 145px) !important;
  }

  .aes-smart-search__item {
    grid-template-columns: 54px 1fr !important;
    gap: 10px !important;
  }

  .aes-smart-search__price {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .aes-smart-search__img {
    width: 54px !important;
    height: 54px !important;
  }
}

/* ---------- Product card action is narrower and faster-feeling ---------- */
.product-card:not(.product-card--list) .product-card__actions,
.product-card:not(.product-card--list) .product-card__main-actions {
  padding: 9px 18px 18px !important;
  margin-top: 6px !important;
  justify-content: center !important;
}

.product-card:not(.product-card--list) .product-card__actions > *,
.product-card:not(.product-card--list) .product-card__main-actions > *,
.product-card:not(.product-card--list) form.aes-card-qty-form {
  width: 100% !important;
  max-width: var(--aes-card-action-max, 176px) !important;
  margin-inline: auto !important;
}

.product-card:not(.product-card--list) .product-card__atc,
.product-card:not(.product-card--list) .product-card__action-button {
  max-width: var(--aes-card-action-max, 176px) !important;
  height: var(--aes-card-action-height, 40px) !important;
  min-height: var(--aes-card-action-height, 40px) !important;
  font-size: 13.5px !important;
}

.product-card:not(.product-card--list) form.aes-card-qty-form {
  padding: 9px 18px 18px !important;
  justify-content: center !important;
}

.aes-card-qty {
  width: 100% !important;
  max-width: var(--aes-card-action-max, 176px) !important;
  height: var(--aes-card-action-height, 40px) !important;
  min-height: var(--aes-card-action-height, 40px) !important;
  grid-template-columns: 37px 1fr 37px !important;
  margin-inline: auto !important;
  box-shadow: none !important;
}

.aes-card-qty__btn {
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  min-height: 29px !important;
  max-width: 29px !important;
  max-height: 29px !important;
  font-size: 16px !important;
}

.aes-card-qty__number {
  font-size: 14px !important;
}

@media (max-width: 767.98px) {
  :root {
    --aes-card-action-height: 40px;
  }

  .product-card:not(.product-card--list) .product-card__actions,
  .product-card:not(.product-card--list) .product-card__main-actions,
  .product-card:not(.product-card--list) form.aes-card-qty-form {
    padding: 9px 12px 14px !important;
  }

  .aes-card-qty {
    grid-template-columns: 36px 1fr 36px !important;
  }

  .aes-card-qty__btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* ---------- Do not let sort/filter chase the customer while scrolling ---------- */
body.collection-template .collection__content .sticky-element,
body.search-template .collection__content .sticky-element,
body.collection-template #FacetFiltersContainer .sticky-element,
body.search-template #FacetFiltersContainer .sticky-element,
body.collection-template #ProductGridWrapper > .sticky-element,
body.search-template #ProductGridWrapper > .sticky-element {
  position: static !important;
  top: auto !important;
  inset-block-start: auto !important;
  transform: none !important;
  will-change: auto !important;
}

body.collection-template .collection__toolbar,
body.search-template .collection__toolbar,
body.collection-template .collection__sticky-header,
body.search-template .collection__sticky-header {
  position: static !important;
  top: auto !important;
  inset-block-start: auto !important;
  z-index: 1 !important;
}

body.collection-template #ProductGridWrapper.show-toolbar,
body.search-template #ProductGridWrapper.show-toolbar {
  margin-block-start: 0 !important;
}

body.collection-template .collection__aside,
body.search-template .collection__aside,
body.collection-template #FacetFiltersContainer,
body.search-template #FacetFiltersContainer {
  position: static !important;
  top: auto !important;
  align-self: flex-start !important;
}

/* =========================================================
   ART-E-SHOCK UX UPGRADE V4 — final mobile header + search + menu QA
   ========================================================= */

/* Mobile: right side = menu + search, center = logo, left side = account + cart. No duplicate hamburger near cart. */
@media (max-width: 1023.98px) {
  .header-section .header[data-aes-version="v4"],
  .header-section .header[data-aes-header-mode] {
    grid-template: "aes-mobile-left aes-logo aes-mobile-right" var(--aes-header-mobile-height, 62px) / minmax(92px, 1fr) auto minmax(92px, 1fr) !important;
    padding-inline: 10px !important;
    overflow: visible !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--left,
  .header-section .header[data-aes-header-mode] .header__icons--left {
    grid-area: aes-mobile-right !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--right,
  .header-section .header[data-aes-header-mode] .header__icons--right {
    grid-area: aes-mobile-left !important;
    justify-self: start !important;
    justify-content: flex-start !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--right .menu-drawer-button,
  .header-section .header[data-aes-header-mode] .header__icons--right .menu-drawer-button {
    display: none !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--left .menu-drawer-button,
  .header-section .header[data-aes-version="v4"] .header__icons--left .search-drawer-button,
  .header-section .header[data-aes-header-mode] .header__icons--left .menu-drawer-button,
  .header-section .header[data-aes-header-mode] .header__icons--left .search-drawer-button {
    display: inline-flex !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--left .header__buttons,
  .header-section .header[data-aes-header-mode] .header__icons--left .header__buttons {
    flex-direction: row !important;
  }

  html[dir="rtl"] .header-section .header[data-aes-version="v4"] .header__icons--left .header__buttons,
  html[dir="rtl"] .header-section .header[data-aes-header-mode] .header__icons--left .header__buttons {
    direction: rtl !important;
  }

  .header-section .header[data-aes-version="v4"] .header__icons--right .header__buttons,
  .header-section .header[data-aes-header-mode] .header__icons--right .header__buttons {
    flex-direction: row !important;
    direction: ltr !important;
  }

  .header-section .header[data-aes-version="v4"] .header__logo,
  .header-section .header[data-aes-header-mode] .header__logo {
    grid-area: aes-logo !important;
  }
}

/* Drawer search mode fix: when user chooses drawer, it opens above the header and is not cut. */
#SearchDrawer,
search-drawer.search-drawer,
.search-drawer.drawer {
  z-index: 2147482900 !important;
}

#SearchDrawer .drawer__inner,
search-drawer.search-drawer .drawer__inner,
.search-drawer.drawer .drawer__inner {
  top: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
}

#SearchDrawer .drawer__body,
search-drawer.search-drawer .drawer__body,
.search-drawer.drawer .drawer__body {
  max-height: calc(100dvh - 90px) !important;
  overflow: auto !important;
}

/* Smart search V4: stable, always above menu, no clipping, better mobile height. */
.aes-smart-search {
  z-index: 2147483100 !important;
  isolation: isolate !important;
  contain: none !important;
  overflow: hidden !important;
}

.aes-smart-search__results {
  scrollbar-width: thin;
}

@media (max-width: 767.98px) {
  .aes-smart-search {
    top: calc(var(--header-height, 62px) + var(--header-offset-top, 0px) + 8px) !important;
    width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
  }

  .aes-smart-search__bar {
    grid-template-columns: 32px 1fr 32px !important;
    padding: 9px 10px !important;
  }

  .aes-smart-search__results {
    max-height: min(58vh, 430px) !important;
  }
}

/* Desktop menu: larger hover bridge so submenu does not close while moving into children. */
.header-section details[is="details-dropdown"] > .dropdown,
.header-section details[is="details-mega"] > .mega-menu {
  pointer-events: auto !important;
}

.header-section details[is="details-dropdown"] > summary::after,
.header-section details[is="details-mega"] > summary::after {
  content: "";
  position: absolute;
  inset-inline: -14px;
  bottom: -18px;
  height: 22px;
  display: block;
}

.header-section .dropdown__container,
.header-section .mega-menu__container {
  margin-top: 0 !important;
}

/* Fly-to-cart V4: slower visible flight, still does not block fast add-to-cart. */
.aes-fly-to-cart {
  border-radius: 16px !important;
  outline: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.22) !important;
}


/* =========================================================
   ART-E-SHOCK UX UPGRADE V5 — search result layout + menu click fix
   ========================================================= */

/* Search results: clean compact product rows, no squeezed text / no horizontal mess. */
.aes-smart-search,
.aes-smart-search * {
  box-sizing: border-box !important;
}

.aes-smart-search__results {
  overflow-x: hidden !important;
}

.aes-smart-search__item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-areas: "media meta" !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 10px !important;
  border-radius: 16px !important;
  color: #111111 !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.aes-smart-search__media {
  grid-area: media !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  overflow: hidden !important;
}

.aes-smart-search__img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: #ffffff !important;
  display: block !important;
}

.aes-smart-search__meta {
  grid-area: meta !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  overflow: hidden !important;
  text-align: right !important;
}

.aes-smart-search__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  color: #111111 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.aes-smart-search__price {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  color: #111111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

@media (max-width: 767.98px) {
  .aes-smart-search {
    border-radius: 18px !important;
  }

  .aes-smart-search__results {
    max-height: min(62vh, 460px) !important;
    padding: 8px !important;
  }

  .aes-smart-search__item {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 9px !important;
  }

  .aes-smart-search__media {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
  }
}

/* Parent menu clicks should open/close submenus, not instantly navigate. */
.header-section details[is="details-dropdown"] > summary,
.header-section details[is="details-mega"] > summary {
  cursor: pointer !important;
}


/* =========================================================
   ART-E-SHOCK V6 FIX — Search input without clear/close X
   ========================================================= */
.aes-smart-search__bar {
  grid-template-columns: 34px minmax(0, 1fr) !important;
}

.aes-smart-search__close {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.aes-smart-search__input::-webkit-search-decoration,
.aes-smart-search__input::-webkit-search-cancel-button,
.aes-smart-search__input::-webkit-search-results-button,
.aes-smart-search__input::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.aes-smart-search__input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* =========================================================
   ART-E-SHOCK V9 — Product options as clean dropdowns
   Scope: product page + quick-view / choose-options drawer
   ========================================================= */

variant-selects {
  display: grid;
  gap: 12px;
  width: 100%;
}

.product-template variant-selects,
.quick-view variant-selects,
quick-view-modal variant-selects,
.drawer variant-selects {
  margin-block: 14px 18px !important;
}

.product-template .product-form__input--dropdown,
.quick-view .product-form__input--dropdown,
quick-view-modal .product-form__input--dropdown,
.drawer .product-form__input--dropdown {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
}

.product-template .product-form__input--dropdown .form__label,
.quick-view .product-form__input--dropdown .form__label,
quick-view-modal .product-form__input--dropdown .form__label,
.drawer .product-form__input--dropdown .form__label {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #111 !important;
}

.product-template .product-form__input--dropdown .form__label .flex,
.quick-view .product-form__input--dropdown .form__label .flex,
quick-view-modal .product-form__input--dropdown .form__label .flex,
.drawer .product-form__input--dropdown .form__label .flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
}

.product-template .product-form__input--dropdown .form__label .font-body-bold,
.quick-view .product-form__input--dropdown .form__label .font-body-bold,
quick-view-modal .product-form__input--dropdown .form__label .font-body-bold,
.drawer .product-form__input--dropdown .form__label .font-body-bold {
  font-weight: 900 !important;
}

.product-template .product-form__input--dropdown [data-selected-swatch-value],
.quick-view .product-form__input--dropdown [data-selected-swatch-value],
quick-view-modal .product-form__input--dropdown [data-selected-swatch-value],
.drawer .product-form__input--dropdown [data-selected-swatch-value] {
  color: #777 !important;
  font-weight: 700 !important;
}

.product-template .product-form__input--dropdown .select,
.quick-view .product-form__input--dropdown .select,
quick-view-modal .product-form__input--dropdown .select,
.drawer .product-form__input--dropdown .select {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

.product-template .product-form__input--dropdown select,
.quick-view .product-form__input--dropdown select,
quick-view-modal .product-form__input--dropdown select,
.drawer .product-form__input--dropdown select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 18px 0 46px !important;
  border: 1px solid rgba(17, 17, 17, 0.18) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 50px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.product-template .product-form__input--dropdown select:hover,
.quick-view .product-form__input--dropdown select:hover,
quick-view-modal .product-form__input--dropdown select:hover,
.drawer .product-form__input--dropdown select:hover {
  border-color: rgba(17, 17, 17, 0.34) !important;
}

.product-template .product-form__input--dropdown select:focus,
.product-template .product-form__input--dropdown select:focus-visible,
.quick-view .product-form__input--dropdown select:focus,
.quick-view .product-form__input--dropdown select:focus-visible,
quick-view-modal .product-form__input--dropdown select:focus,
quick-view-modal .product-form__input--dropdown select:focus-visible,
.drawer .product-form__input--dropdown select:focus,
.drawer .product-form__input--dropdown select:focus-visible {
  border-color: #111 !important;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .08) !important;
}

.product-template .product-form__input--dropdown select option:disabled,
.quick-view .product-form__input--dropdown select option:disabled,
quick-view-modal .product-form__input--dropdown select option:disabled,
.drawer .product-form__input--dropdown select option:disabled {
  color: #999 !important;
}

.product-template .product-form__input--dropdown .select > svg,
.quick-view .product-form__input--dropdown .select > svg,
quick-view-modal .product-form__input--dropdown .select > svg,
.drawer .product-form__input--dropdown .select > svg {
  position: absolute !important;
  top: 50% !important;
  left: 17px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  color: #111 !important;
  pointer-events: none !important;
  opacity: .78 !important;
}

.quick-view .product__info-container variant-selects,
quick-view-modal .product__info-container variant-selects {
  padding-block: 6px 2px !important;
}

.quick-view .product-form__buttons,
quick-view-modal .product-form__buttons,
.drawer .product-form__buttons {
  margin-top: 12px !important;
}

.quick-view .product-form__submit,
quick-view button[name="add"],
quick-view-modal .product-form__submit,
quick-view-modal button[name="add"] {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

@media (max-width: 767.98px) {
  .product-template .product-form__input--dropdown select,
  .quick-view .product-form__input--dropdown select,
  quick-view-modal .product-form__input--dropdown select,
  .drawer .product-form__input--dropdown select {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }
}


/* =========================================================
   ART-E-SHOCK V10 — Product description as dropdown
   Makes long description / instructions closed by default
   so variants and add-to-cart stay easy to reach.
   ========================================================= */
.product__block--description-accordion {
  margin-block: 12px !important;
}

.product-template .product__block--description-accordion,
.quick-view .product__block--description-accordion,
quick-view-modal .product__block--description-accordion,
.drawer .product__block--description-accordion {
  width: 100% !important;
}

.aes-product-description-details {
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.aes-product-description-summary {
  min-height: 50px !important;
  padding: 13px 16px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: #ffffff !important;
  border: 0 !important;
}

.aes-product-description-summary:hover {
  background: #fafafa !important;
}

.aes-product-description-title {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  color: #111111 !important;
}

.aes-product-description-details .icon-plus-toggle,
.aes-product-description-details svg {
  flex-shrink: 0 !important;
}

.aes-product-description-content {
  padding: 0 16px 16px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #303030 !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.aes-product-description-content > *:first-child {
  margin-top: 0 !important;
}

.aes-product-description-content > *:last-child {
  margin-bottom: 0 !important;
}

.aes-product-description-content ul,
.aes-product-description-content ol {
  padding-inline-start: 1.2rem !important;
  margin-block: 10px !important;
}

.aes-product-description-content li {
  margin-block: 4px !important;
}

.quick-view .aes-product-description-content,
quick-view-modal .aes-product-description-content,
.drawer .aes-product-description-content {
  max-height: 230px !important;
}

.quick-view .product__block--description-accordion,
quick-view-modal .product__block--description-accordion,
.drawer .product__block--description-accordion {
  margin-block: 8px !important;
}

@media (max-width: 767.98px) {
  .product__block--description-accordion {
    margin-block: 10px !important;
  }

  .aes-product-description-details {
    border-radius: 14px !important;
  }

  .aes-product-description-summary {
    min-height: 48px !important;
    padding: 12px 14px !important;
  }

  .aes-product-description-title {
    font-size: 14px !important;
  }

  .aes-product-description-content {
    padding: 0 14px 14px !important;
    max-height: 240px !important;
    font-size: 13.5px !important;
  }
}
/* =========================================================
   AES FIX — Header always sticky / always visible
   Keeps cart, search and account visible while scrolling
   ========================================================= */

body .site-wrapper {
  overflow: visible !important;
  overflow-x: clip !important;
}

body .shopify-section-group-header-group,
body .header-section,
body .header-sticky {
  position: sticky !important;
  top: 0 !important;
  inset-block-start: 0 !important;
  z-index: 2147482500 !important;
  transform: none !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .header-section .header,
body .header-sticky .header,
body .header-scrolled .header,
body.header-pinned .header-scrolled .header,
body:not(.header-pinned) .header-scrolled .header {
  transform: none !important;
  translate: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.header-pinned) .header-scrolled {
  pointer-events: auto !important;
}

body.header-pinned .header-section,
body.header-pinned .header-sticky,
body .header-section.header-scrolled,
body .header-sticky.header-scrolled {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .header-section .header::before {
  opacity: 1 !important;
  background-color: #ffffff !important;
}

body .header-section {
  background: #ffffff !important;
}

/* שלא ייחתך חיפוש / עגלה / מגירות בגלל הסטיקי */
body .aes-smart-search,
body #SearchDrawer,
body search-drawer.search-drawer,
body cart-drawer,
body .cart-drawer,
body #CartDrawer {
  z-index: 2147483000 !important;
}

/* במובייל שלא יהיה קפיצה מוזרה כשההדר סטיקי */
@media (max-width: 1023.98px) {
  body .shopify-section-group-header-group,
  body .header-section,
  body .header-sticky {
    top: 0 !important;
    inset-block-start: 0 !important;
  }
}