/* ==================================================================
   Wrapper & positioning
   ================================================================== */


/* MT-Themes © proprietary stylesheet — licensed to BAgs only.
   ممنوع نسخ هذا الملف أو استعماله تجارياً، وكل خرق يُحال
   إلى الجهة القانونية المختصة باعتباره انتهاكاً مكتملاً. */

/* `data-sticky-mode="static"` — header sits in normal document flow at the
   top of the page and scrolls away with content (the "not sticky" choice in
   the editor). All the fixed-positioning rules below are overridden via the
   `[data-sticky-mode="static"]` selector further down so they only apply to
   the always-pinned / hide-on-scroll modes. */
.bags-header-wrapper {
  position: fixed;
  top: var(--bags-header-top, 0px);
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  font-family: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bags-header-wrapper.is-hidden {
  transform: translateY(-100%);
}

.bags-header-spacer {
  height: var(--bags-header-spacer-height, 0px);
  flex-shrink: 0;
}

body:has(.bags-header-wrapper.is-overlay) .main,
body:has(.bags-header-wrapper.is-overlay) .app-content {
  margin-top: calc(-1 * var(--bags-header-spacer-height, 0px));
  padding-top: 0;
}

/* ===== Sticky mode: "static" — header in normal flow, scrolls away =====
   Override the default `position: fixed` and collapse the spacer to zero
   (the header itself now occupies the flow space, so no extra spacer needed).
   Also kill the `is-sticky` background swap so it stays at its initial look
   while it's still in view. */
.bags-header-wrapper[data-sticky-mode="static"] {
  position: static;
  top: auto;
  transform: none !important;
}
body:has(.bags-header-wrapper[data-sticky-mode="static"]) .bags-header-spacer {
  display: none;
}


/* ==================================================================
   Announcement bar
   ================================================================== */

.bags-announcement {
  position: relative;
  overflow: hidden;
  background-color: var(--ann-bg, #000);
  color: var(--ann-text, #fff);
  z-index: 4;
}

.bags-announcement.d-none {
  display: none !important;
}

.bags-announcement__container {
  position: relative;
}

.bags-announcement__inner {
  width: 100%;
  position: relative;
}

.bags-announcement__slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
}

.bags-announcement__slide {
  outline: none;
}

.bags-announcement__link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.bags-announcement__link:hover,
.bags-announcement__link:focus {
  color: inherit;
  text-decoration: none;
}

.bags-announcement__text {
  color: inherit;
  font-size: 1.2rem;
  padding: 10px 0 8px;
  margin: 0;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}


/* ===== Arrows ===== */

.bags-announcement__arrow {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.12);
  color: inherit;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  z-index: 99;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.bags-announcement__arrow--prev {
  inset-inline-start: 35px;
}

.bags-announcement__arrow::after {
  position: absolute;
  top: 0;
  inset-inline-end: -100%;
  z-index: 2;
  display: block;
  content: '';
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
  transform: skewX(-45deg);
}

.bags-announcement__arrow:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.bags-announcement__arrow:hover::after {
  -webkit-animation: bags-shine 0.75s;
  animation: bags-shine 0.75s;
}

@-webkit-keyframes bags-shine {
  100% {
    inset-inline-end: 200%;
  }
}

@keyframes bags-shine {
  100% {
    inset-inline-end: 200%;
  }
}


/* ===== Close ===== */

.bags-announcement__close {
  position: absolute;
  inset-inline-end: 15px;
  top: calc(50% - 10px);
  color: inherit;
  font-size: 17px;
  cursor: pointer;
  z-index: 99;
  background: transparent;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
}


/* ===== Mobile ===== */

@media (max-width: 767px) {
  .bags-announcement__arrow {
    display: none !important;
  }
  .bags-announcement__text {
    font-size: 1rem;
  }
  .bags-announcement__close {
    inset-inline-end: 12px;
  }
}


/* ==================================================================
   Main header bar
   ================================================================== */

.bags-header__container {
  position: relative;
}

.bags-header__bar {
  background-color: var(--hdr-bg);
  border-radius: 0;
  padding: 20px 30px;
  transition: all 0.3s ease;
}

.bags-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  transition: all 0.3s ease;
}


/* صناعة فريق إم-تي ثيمز — الإذن مقتصر على متجر بـ•اج•س.
   كل نسخ تجاري ممنوع ويُعد خرقاً مكتملاً للحقوق. */


/* ===== Container max-width ===== */

.bags-header-wrapper .container {
  max-width: var(--bags-container-max, 1320px);
}


/* ===== Pill shape ===== */

.bags-header-wrapper[data-shape="pill"] .bags-header__bar {
  border-radius: 100px;
  backdrop-filter: blur(137px);
  -webkit-backdrop-filter: blur(137px);
  max-width: var(--bags-container-max, 1320px);
  margin-inline: auto;
}


/* ===== Full-width shape ===== */

.bags-header-wrapper[data-shape="full_width"] .bags-header {
  padding-block: 0;
}

.bags-header-wrapper[data-shape="full_width"] .bags-header__bar {
  border-radius: 0;
  padding: 20px 0;
  backdrop-filter: blur(137px);
  -webkit-backdrop-filter: blur(137px);
}

.bags-header-wrapper[data-shape="full_width"] .bags-header__container {
  max-width: none;
  width: 100%;
  padding-inline: 0 !important;
}

.bags-header-wrapper[data-shape="full_width"] .bags-header__inner {
  max-width: var(--bags-container-max, 1320px);
  margin-inline: auto;
}


/* ===== Overlay mode ===== */

.bags-header-wrapper.is-overlay .bags-header__bar {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


/* ===== Sticky state ===== */

.bags-header-wrapper.is-sticky {
  --hdr-bg: var(--hdr-sticky-bg);
  --hdr-text: var(--hdr-sticky-text);
  --hdr-icons: var(--hdr-sticky-icons);
  --hdr-logo: var(--hdr-sticky-logo);
  --hdr-pill-bg: var(--hdr-sticky-pill-bg);
  --hdr-pill-border: var(--hdr-sticky-pill-border);
}

.bags-header-wrapper.is-sticky .bags-header__bar {
  background-color: var(--hdr-sticky-bg);
}

.bags-header-wrapper.is-overlay.is-sticky .bags-header__bar {
  background-color: var(--hdr-sticky-bg);
}

.bags-header-wrapper.is-sticky[data-sticky-shape="pill"] .bags-header__bar {
  border-radius: 100px;
  max-width: var(--bags-container-max, 1320px);
  margin-inline: auto;
  padding: 20px 30px;
  margin:10px auto 0
}

.bags-header-wrapper.is-sticky[data-sticky-shape="full_width"] .bags-header {
  padding-block: 0;
}

.bags-header-wrapper.is-sticky[data-sticky-shape="full_width"] .bags-header__bar {
  border-radius: 0;
  padding: 20px 0;
  max-width: none;
}

.bags-header-wrapper.is-sticky[data-sticky-shape="full_width"] .bags-header__container {
  padding-inline: 0 !important;
}

.bags-header-wrapper.is-sticky[data-sticky-shape="full_width"] .bags-header__inner {
  max-width: var(--bags-container-max, 1320px);
  margin-inline: auto;
  padding-inline: 30px;
}

@media(max-width:992px) {
  .bags-header-wrapper.is-sticky[data-sticky-shape="full_width"] .bags-header__inner {
    padding-inline: 0px;
  }
}


/* ==================================================================
   Logo
   ================================================================== */

.bags-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--hdr-logo);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-inline-end: auto;
}

.bags-header__logo:hover {
  color: var(--hdr-logo);
  opacity: 0.85;
}

.bags-header__logo-svg {
  display: block;
  color: var(--hdr-logo);
}

.bags-header__logo-img--mobile {
  display: none;
}

@media (max-width: 767px) {
  .bags-header__logo:has(.bags-header__logo-img--mobile) .bags-header__logo-img--desktop {
    display: none;
  }
  .bags-header__logo:has(.bags-header__logo-img--mobile) .bags-header__logo-img--mobile {
    display: block;
  }
}


/* ==================================================================
   Navigation pill
   ================================================================== */

.bags-header__nav-wrapper {
  display: flex;
  background-color: var(--hdr-pill-bg);
  backdrop-filter: blur(157px);
  -webkit-backdrop-filter: blur(157px);
  padding: 20px 8px;
  border-radius: 10px;
  height: 58px;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.bags-header__nav {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.bags-header__nav-item {
  position: relative;
  flex-shrink: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), margin-inline-start 0.8s cubic-bezier(0.4, 0, 0.2, 1), margin-inline-end 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bags-header__nav-item.is-fit-hidden {
  display: none !important;
}

.bags-header__nav-item.is-overflow-hidden {
  opacity: 0;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(22px) scale(0.7);
}

[dir="ltr"] .bags-header__nav-item.is-overflow-hidden {
  transform: translateX(-22px) scale(0.7);
}

.bags-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hdr-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  margin: 0 12px;
}

.bags-header__nav-link:hover {
  color: var(--hdr-text);
  opacity: 0.7;
}

.bags-header__nav-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.bags-header__nav-item.has-children:hover .bags-header__nav-arrow {
  transform: rotate(-180deg);
}


/* ===== Submenu ===== */

.bags-header__sub-menu {
  position: absolute;
  inset-block-start: calc(100% + 18px);
  inset-inline-start: 0;
  min-width: 200px;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.bags-header__sub-menu::before {
  content: "";
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 0;
  width: 100%;
  height: 14px;
}

.bags-header__nav-item.has-children:hover > .bags-header__sub-menu,
.bags-header__sub-item.has-children:hover > .bags-header__sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bags-header__sub-item {
  position: relative;
}

.bags-header__sub-menu a {
  display: block;
  padding: 10px 14px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.bags-header__sub-menu a:hover {
  background-color: #f5f5f5;
  color: #000;
}

.bags-header__sub-menu--nested {
  inset-block-start: -8px;
  inset-inline-start: calc(100% + 10px);
}


/* ==================================================================
   Actions pill (cart + wishlist + search)
   ================================================================== */

.bags-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--hdr-pill-bg);
  backdrop-filter: blur(157px);
  -webkit-backdrop-filter: blur(157px);
  padding: 4px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.bags-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding-inline: 16px;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--hdr-icons);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.bags-header__action:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--hdr-icons);
}

.bags-header__action--icon {
  width: 50px;
  padding-inline: 0;
}

.bags-header__action--cart .bags-header__action-icon {
  display: inline-flex;
}

.bags-header__action-icon svg {
  display: block;
}

.bags-header__action-label {
  white-space: nowrap;
  color: var(--hdr-text);
}


/* ===== Cart badge ===== */

.bags-header__action .cart-badge {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background-color: var(--primary-color, #c8b35b);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ==================================================================
   Inline search bar
   ================================================================== */

.bags-header__search-bar {
  display: flex;
  position: relative;
  align-items: center;
  height: 50px;
  max-width: 100%;
  width: 0;
  padding: 0;
  border: 0 solid var(--hdr-pill-border);
  border-radius: 5px;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, border-width 0.35s ease, opacity 0.25s ease, visibility 0.25s ease, overflow 0s linear 0s;
}

.bags-header-wrapper.is-search-active .bags-header__search-bar {
  width: 326px;
  padding: 0 26px;
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, padding 0.8s ease 0.05s, border-width 0.8s ease 0.05s, opacity 0.6s ease 0.1s, visibility 0.6s ease 0.05s, overflow 0s linear 0.85s;
}

.bags-header-wrapper.is-search-active .bags-header__action--search-icon {
  display: none;
}

.bags-header-wrapper.is-search-closing .bags-header__nav-item {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-inline-start 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-inline-end 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* M T -Themes © proprietary header stylesheet — Bags-only deployment.
   Reuse on a different storefront is a confirmed IP violation. */


/* ==================================================================
   Search autocomplete
   ================================================================== */

.bags-header__autocomplete {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  inset-inline-end: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
}

.bags-header__autocomplete.is-active {
  max-height: 300px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  padding: 8px;
}

.bags-header__autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1502;
  transition: background-color 0.2s ease;
}

.bags-header__autocomplete-item:hover,
.bags-header__autocomplete-item:focus {
  background-color: #faf6e6;
  color: #1a1502;
}

.bags-header__autocomplete-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.bags-header__autocomplete-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.bags-header__autocomplete-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1502;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bags-header__autocomplete-price {
  font-size: 13px;
  font-weight: 600;
  color: #c8b35b;
}

.bags-header__autocomplete-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.bags-header__autocomplete-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.bags-header__autocomplete-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #1a1502;
  border-radius: 50%;
  animation: bags-autocomplete-spin 0.7s linear infinite;
}

@keyframes bags-autocomplete-spin {
  to {
    transform: rotate(-360deg);
  }
}

.popup-search-box .bags-header__autocomplete {
  inset-block-start: calc(100% + 12px);
  background-color: #ffffff;
  width: calc(100% - 60px);
  left: 30px;
}

@media (max-width: 575px) {
  .bags-header__autocomplete-img {
    width: 40px;
    height: 40px;
  }
  .bags-header__autocomplete-item {
    padding: 8px 10px;
  }
}

.bags-header__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  height: 100%;
  color: var(--hdr-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding-inline: 0;
}

.bags-header__search-input::placeholder {
  color: var(--hdr-text);
  opacity: 0.85;
}

.bags-header__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--hdr-icons);
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
}


/* ==================================================================
   Lang/Country & profile pill
   ================================================================== */

.bags-header__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 4px;
  background-color: var(--hdr-pill-bg);
  backdrop-filter: blur(157px);
  -webkit-backdrop-filter: blur(157px);
  border: none;
  border-radius: 10px;
  color: var(--hdr-icons);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease, color 0.2s ease;
  position: relative;
}

.bags-header__lang:hover {
  color: var(--hdr-icons);
  opacity: 0.85;
  text-decoration: none;
}

.bags-header__lang svg {
  display: block;
}


/* ==================================================================
   Mobile menu toggle + mobile search icon
   ================================================================== */

.bags-header__menu-toggle,
.bags-header__mobile-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--hdr-icons);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bags-header__mobile-icon-btn:hover,
.bags-header__menu-toggle:hover {
  opacity: 0.7;
}

.bags-header__mobile-icon-btn:active,
.bags-header__menu-toggle:active {
  transform: scale(0.92);
}

@media (max-width: 991px) {
  .bags-header__menu-toggle,
  .bags-header__mobile-icon-btn {
    display: inline-flex;
  }
  .bags-header__nav-wrapper {
    display: none !important;
  }
  .bags-header__actions,
  .bags-header__lang {
    display: none !important;
  }
  .bags-header__bar {
    padding: 16px 24px !important;
  }
  .bags-header-wrapper[data-shape="pill"] .bags-header__bar {
    border-radius: 0 !important;
  }
  .bags-header__inner {
    gap: 8px;
    justify-content: space-between;
  }
  .bags-header__search-bar,
  .bags-header-wrapper.is-search-active .bags-header__search-bar {
    display: none !important;
  }
  .bags-header__mobile-icon-btn + .bags-header__menu-toggle {
    margin-inline-start: 4px;
  }
  .bags-header__logo {
    margin-inline-end: auto;
  }
}

@media (max-width: 575px) {
  .bags-header__menu-toggle,
  .bags-header__mobile-icon-btn {
    width: 40px;
    height: 40px;
  }
  .bags-header__bar {
    padding: 14px 16px !important;
  }
}


/* ==================================================================
   Mobile bottom navigation bar
   ================================================================== */

.bags-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .bags-mobile-nav {
    display: block;
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 999;
    background-color: #1a1502;
    color: #c8b35b;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    padding-block-end: env(safe-area-inset-bottom, 0);
  }
  .bags-mobile-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-inline: 20px;
    padding-block: 6px 8px;
    max-width: 540px;
    margin-inline: auto;
    height: 80px;
  }
  .bags-mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 4px 0;
    background: transparent;
    border: 0;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    line-height: 1;
  }
  .bags-mobile-nav__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: inherit;
  }
  .bags-mobile-nav__icon svg {
    width: 28px;
    height: 28px;
  }
  .bags-mobile-nav__label {
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .bags-mobile-nav__icon .cart-badge {
    position: absolute;
    inset-block-start: -4px;
    inset-inline-end: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #c8b35b;
    color: #1a1502;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  body {
    padding-block-end: calc(70px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 575px) {
  .bags-header__action--icon {
    width: 42px;
    height: 42px;
  }
  .bags-header__lang {
    width: 42px;
    height: 42px;
  }
  .bags-header__menu-toggle {
    width: 42px;
    height: 42px;
  }
  .bags-header__bar {
    padding: 12px 16px !important;
  }
  .bags-header__logo-svg,
  .bags-header__logo-img {
    height: 28px !important;
  }
}


/* ==================================================================
   Cart sidebar
   ================================================================== */

.cartBox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}


/* ام تي ثيمزه © all rights reserved — exclusive license for b_AGs.
   Any redistribution is a documented copyright violation. */

.cartBox.active {
  visibility: visible;
  opacity: 1;
}

.cartBox .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 21, 2, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cartBox .content {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .cartBox .content {
  transform: translateX(-100%);
}

.cartBox.active .content {
  transform: translateX(0);
}


/* ===== Header ===== */

.cartBox .bags-cart__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background-color: #ffffff;
  border-block-end: 1px solid #f0ece0;
}

.cartBox .bags-cart__head-text {
  min-width: 0;
}

.cartBox .cartTitle {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1502;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cartBox .bags-cart__head-count {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8b8270;
  font-weight: 500;
}

.cartBox .close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: #f6f3e8;
  color: #1a1502;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
  position: static;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.cartBox .close:hover {
  background-color: #1a1502;
  color: #ffffff;
  transform: rotate(-90deg);
}


/* ===== Scrollable body ===== */

.cartBox .bags-cart__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #ffffff;
}

.cartBox .bags-cart__scroll::-webkit-scrollbar {
  width: 4px;
}

.cartBox .bags-cart__scroll::-webkit-scrollbar-thumb {
  background-color: #d8c473;
  border-radius: 50px;
}

.cartBox .bags-cart__scroll::-webkit-scrollbar-track {
  background-color: transparent;
}


/* ===== Free-shipping progress ===== */

.cartBox #cart-shipping {
  margin: 16px 16px 6px !important;
  padding: 20px 22px 16px !important;
  background-color: #faf7e9;
  border: 1px solid #ece5cb;
  border-radius: 12px;
  position: relative;
}

.cartBox #cart-shipping::before {
  content: none !important;
}

.cartBox .cart-shipping-header {
  display: block;
}

.cartBox .cart-shipping-notice {
  display: block;
}

.cartBox .cart-goal {
  display: block !important;
  margin: 0 !important;
}

.cartBox .cart-goal::before,
.cartBox .cart-goal::after {
  content: none !important;
}

.cartBox .cart-goal-wrap {
  margin: 0 !important;
  width: auto;
  min-width: 0;
}

.cartBox .cart-goal-progress.minimog-progress {
  position: relative;
  height: 10px;
  background-color: #ebe5cb;
  border-radius: 50px;
  overflow: visible !important;
  margin: 0 !important;
}

.cartBox .cart-goal-progress.minimog-progress::before,
.cartBox .cart-goal-progress.minimog-progress::after {
  content: none !important;
}

.cartBox .cart-goal-progress.minimog-progress .progress-bar-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  border-radius: 50px;
}

.cartBox .cart-goal-progress.minimog-progress .progress-bar-wrap::before,
.cartBox .cart-goal-progress.minimog-progress .progress-bar-wrap::after {
  display: none !important;
  content: none !important;
}

.cartBox .minimog-progress-bar {
  position: relative;
  height: 100%;
  background: linear-gradient(-90deg, #c8b35b, #d8c473) !important;
  border-radius: 50px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  overflow: visible !important;
}

.cartBox .minimog-progress-bar::before {
  display: none !important;
  content: none !important;
}

.cartBox .minimog-progress-bar::after {
  content: '\f0d1';
  font-family: FontAwesome;
  position: absolute;
  inset-block-start: 50%;
  margin-block-start: -13px;
  inset-inline-end: -13px;
  width: 26px;
  height: 26px;
  background-color: var(--primary-color, #c8b35b);
  color: #1a1502;
  border: 2px solid #faf7e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(26, 21, 2, 0.2);
  pointer-events: none;
}

.cartBox .minimog-progress-bar .progress-value {
  display: none !important;
}

.cartBox .shipping-alert {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  text-align: center;
}

.cartBox .shipping-alert .free-shipping {
  display: inline !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #1a1502 !important;
  font-weight: 600 !important;
  line-height: 1.5;
  text-align: center !important;
}


/* ===== Items list ===== */

.cartBox .items {
  padding: 6px 18px 16px;
  margin: 0;
}

.cartBox .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-block-end: 1px solid #f4f1e6;
}

.cartBox .item:last-child {
  border-block-end: none;
}

.cartBox .item .img {
  flex: 0 0 100px;
  width: 100px;
  height: 95px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #faf7e9;
  display: block;
  align-self: stretch;
}

.cartBox .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cartBox .item:hover .img img {
  transform: scale(1.04);
}

.cartBox .item .details {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block-start: 2px;
}

.cartBox .item .title {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1502;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
  word-break: break-word;
}

.cartBox .item .title:hover {
  color: var(--primary-color, #c8b35b);
}

.cartBox .item .price {
  margin: 0;
  color: #1a1502;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cartBox .item .count {
  margin: 0;
  font-size: 11.5px;
  color: #8b8270;
  font-weight: 500;
}

.cartBox .item .count::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--primary-color, #c8b35b);
  border-radius: 50%;
  vertical-align: middle;
  margin-inline-end: 8px;
}


/* ===== Quantity stepper ===== */

.cartBox .item .qty-stepper {
  display: inline-flex;
  align-items: center;
  background-color: #faf7e9;
  border: 1px solid #ece5cb;
  border-radius: 100px;
  padding: 3px;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.cartBox .item .qty-stepper.is-loading {
  opacity: 0.5;
}

.cartBox .item .qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #1a1502;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cartBox .item .qty-btn:hover:not(:disabled) {
  background-color: #1a1502;
  color: var(--primary-color, #c8b35b);
}

.cartBox .item .qty-btn:disabled {
  cursor: wait;
}

.cartBox .item .qty-value {
  min-width: 24px;
  padding: 0 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1502;
}


/* ===== Remove button ===== */

.cartBox .item .remove {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: none;
  background-color: transparent;
  color: #c4baa0;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  align-self: flex-start;
  margin-block-start: 2px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cartBox .item .remove:hover {
  background-color: #fbe9e9;
  color: #c63838;
}


/* ===== Footer ===== */

.cartBox .footerSub {
  flex: 0 0 auto;
  padding: 18px 22px 20px;
  background-color: #ffffff;
  border-block-start: 1px solid #f0ece0;
  box-shadow: 0 -10px 30px rgba(26, 21, 2, 0.04);
}


/* ===== Totals ===== */

.cartBox .cart-totals-div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px !important;
  font-size: inherit;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  color: #6b6452;
  font-weight: 500;
  padding: 2px 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper .flex-grow-1 {
  flex: 1;
  unicode-bidi: plaintext;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper .flex-shrink-0 {
  width: auto !important;
  color: #1a1502;
  font-weight: 700;
  font-size: inherit;
  text-align: end;
  white-space: nowrap;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper:last-child {
  margin-block-start: 6px;
  padding: 14px 16px;
  background-color: #faf7e9;
  border: 1px solid #ece5cb;
  border-radius: 14px;
  align-items: center;
  font-size: 14px;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper:last-child .flex-grow-1 {
  color: #1a1502;
  font-weight: 700;
  font-size: 14px;
}

.cartBox .cart-product-row-wrapper.cart-totals-row-wrapper:last-child .flex-shrink-0 {
  color: var(--primary-color, #c8b35b);
  font-weight: 800;
  font-size: 17px;
}


/* ===== Coupon ===== */

.cartBox .coupon-form {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.cartBox .coupon-form .form-group {
  margin: 0;
}

.cartBox .coupon-form h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #8b8270;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cartBox .coupon-form .d-flex {
  display: flex;
  align-items: center;
  background-color: #faf7e9;
  border: 1px solid #ece5cb;
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cartBox .coupon-form .d-flex:focus-within {
  border-color: var(--primary-color, #c8b35b);
  background-color: #ffffff;
}

.cartBox .coupon-form input.send-coupon,
.cartBox .coupon-form input.form-control.send-coupon {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 8px 12px !important;
  font-size: 13px;
  color: #1a1502;
  outline: none !important;
  font-family: inherit;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.cartBox .coupon-form input.send-coupon::placeholder {
  color: #b4a988;
}

.cartBox .coupon-form .d-flex > button {
  flex: 0 0 auto;
  background-color: #1a1502 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 22px !important;
  width: auto !important;
  min-width: 88px;
  height: 38px !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
  margin: 0 !important;
}

.cartBox .coupon-form .d-flex > button:hover {
  background-color: var(--primary-color, #c8b35b) !important;
  color: #fff !important;
}

.cartBox .coupon-form .send-coupon-progress {
  width: 14px;
  height: 14px;
}


/* ===== Applied-coupon pill ===== */

.cartBox .message-coupon {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-block: 8px !important;
  padding-inline-start: 18px !important;
  padding-inline-end: 8px !important;
  background-color: #f6f3e8 !important;
  border: 1px solid #ece5cb !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  color: #1a1502 !important;
  font-weight: 600 !important;
  position: static !important;
  width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.cartBox .message-coupon > span {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block !important;
  color: #1a1502 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cartBox .message-coupon .removeCoupon {
  position: static !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: center !important;
  border: none !important;
  background-color: #1a1502 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  flex-shrink: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cartBox .message-coupon .removeCoupon:active {
  transform: scale(0.92) !important;
}

.cartBox .message-coupon .removeCoupon:hover {
  background-color: #c63838 !important;
  color: #ffffff !important;
}

.cartBox .message-coupon .removeCoupon i,
.cartBox .message-coupon .removeCoupon .pe-7s-trash,
.cartBox .message-coupon .removeCoupon .fa {
  font-size: 12px !important;
  line-height: 1 !important;
  display: inline-block !important;
  color: inherit !important;
  width: auto !important;
  height: auto !important;
}


/* ===== Buttons ===== */

.cartBox .elrawda-mini-cart__buttons.buttons,
.cartBox .buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.cartBox .checkBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  background-color: #1a1502;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.cartBox .checkBtn i {
  font-size: 11px;
  transform:translateX(0px) rotate(180deg);
  transition: transform 0.2s ease;
}

.cartBox .checkBtn:hover {
  background-color: var(--primary-color, #c8b35b);
  color: #fff;
}

.cartBox .checkBtn:hover i {
  transform: translateX(4px) rotate(180deg);
}


.cartBox .checkBtn:active {
  transform: scale(0.99);
}

.cartBox .viewBag {
  display: block;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b6452;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ddd5b8;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cartBox .viewBag:hover {
  color: #1a1502;
  text-decoration-color: var(--primary-color, #c8b35b);
}


/* ===== Empty cart ===== */

.cartBox .cart-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  gap: 12px;
}

.cartBox .cart-empty .cart-icon {
  width: 130px;
  height: 130px;
  background-color: #faf7e9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  overflow: hidden;
}

.cartBox .cart-empty .cart-icon img {
  display: block;
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;
}

.cartBox .cart-empty h1 {
  margin: 0;
  font-size: 17px;
  color: #1a1502;
  font-weight: 700;
}

.cartBox .cart-empty p {
  margin: 0;
  font-size: 13px;
  color: #8b8270;
}

.cartBox .bags-cart__empty-cta {
  margin-block-start: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background-color: #1a1502;
  color: #ffffff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cartBox .bags-cart__empty-cta:hover {
  background-color: var(--primary-color, #c8b35b);
  color: #1a1502;
}


/* ===== Loading ===== */

.cartBox .loading {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #c8b35b);
}


/* ===== Mobile ===== */

@media (max-width: 575px) {
  .cartBox .content {
    max-width: 100%;
  }
  .cartBox .bags-cart__head {
    padding: 14px 16px;
  }
  .cartBox .cartTitle {
    font-size: 16px;
  }
  .cartBox #cart-shipping {
    margin: 14px 14px 4px;
    padding: 12px 14px 14px;
  }
  .cartBox .items {
    padding: 4px 14px 12px;
  }
  .cartBox .footerSub {
    padding: 14px 16px 18px;
  }
  .cartBox .item {
    padding: 14px 0;
    gap: 10px;
  }
  .cartBox .item .img {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }
  .cartBox .item .qty-btn {
    width: 22px;
    height: 22px;
  }
}


/* ==================================================================
   Legacy slide menu (hidden — kept for compatibility)
   ================================================================== */

.mobileMenu {
  display: none;
}

#sidenav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sidenav-overlay.active,
.sidenav-open #sidenav-overlay {
  opacity: 1;
  visibility: visible;
}

.slide-menu {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 320px;
  max-width: 90%;
  height: 100vh;
  background-color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

[dir="rtl"] .slide-menu {
  inset-inline-end: 0;
  transform: translateX(100%);
}

.sidenav-open .slide-menu,
.slide-menu.active {
  transform: translateX(0);
}

.slide-menu .menuHead {
  position: relative;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.slide-menu .menuHead .closeX {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  color: #000;
}

.slide-menu .menuHead .logo {
  max-width: 180px;
}

.slide-menu .menuHead .logo img {
  max-width: 100%;
  height: auto;
}

.slide-menu .menuHead .loginBtn {
  background-color: var(--primary-color, #c8b35b);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slide-menu > nav > ul > li > a,
.slide-menu .slide-menu-ul-li > a {
  display: block;
  padding: 14px 20px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.slide-menu .slide-menu-ul-li > a:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

@media (max-width: 991px) {
  .mobileMenu {
    display: block;
  }
}


/* ==================================================================
   Popup search box
   ================================================================== */

.popup-search-box {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 68%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-search-box.show {
  opacity: 1;
  visibility: visible;
}

.popup-search-box .searchClose {
  position: absolute;
  inset-block-start: 32px;
  inset-inline-end: 32px;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
}

.popup-search-box .searchClose i {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.popup-search-box .searchClose i::before,
.popup-search-box .searchClose i::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.popup-search-box .searchClose i::before {
  transform: rotate(-45deg);
}

.popup-search-box .searchClose i::after {
  transform: rotate(45deg);
}

.popup-search-box .searchClose:hover i::before {
  transform: rotate(-225deg);
}

.popup-search-box .searchClose:hover i::after {
  transform: rotate(-135deg);
}

.popup-search-box form {
  width: 100%;
  max-width: 700px;
  padding-inline: 30px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-search-box.show form {
  transform: scale(1);
}

.popup-search-box form input {
  width: 100%;
  height: 70px;
  padding-block: 0;
  padding-inline-start: 30px;
  padding-inline-end: 70px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.popup-search-box form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.popup-search-box form input:focus {
  border-color: var(--primary-color, #c8b35b);
}

.popup-search-box form button.btn-search {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 35px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}


/* ==================================================================
   Store messages
   ================================================================== */

.storeMsg .availability-bar {
  padding: 10px 0;
  background: #fcf1d6;
}


/* ==================================================================
   Mobile slide menu (BAGS)
   ================================================================== */

.bags-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.bags-mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bags-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.bags-mobile-menu.is-open .bags-mobile-menu__overlay {
  opacity: 1;
}

.bags-mobile-menu__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 88%;
  max-width: 360px;
  background-color: #1a1502;
  color: #eee8cf;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .bags-mobile-menu__panel {
  transform: translateX(-100%);
}

.bags-mobile-menu.is-open .bags-mobile-menu__panel {
  transform: translateX(0) !important;
}


/* ===== Top bar ===== */

.bags-mobile-menu__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(238, 232, 207, 0.12);
  flex-shrink: 0;
}

.bags-mobile-menu__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(238, 232, 207, 0.08);
  border: none;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.bags-mobile-menu__close:hover {
  background-color: rgba(238, 232, 207, 0.18);
}

.bags-mobile-menu__logo {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.bags-mobile-menu__logo img,
.bags-mobile-menu__logo svg {
  height: 28px;
  width: auto;
}


/* ===== Account ===== */

.bags-mobile-menu__account {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(238, 232, 207, 0.12);
  flex-shrink: 0;
}

.bags-mobile-menu__account-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background-color: rgba(238, 232, 207, 0.05);
  transition: background-color 0.2s ease;
}

.bags-mobile-menu__account-link:hover {
  background-color: rgba(238, 232, 207, 0.12);
  color: inherit;
}

.bags-mobile-menu__account-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c8b35b;
  color: #1a1502;
  border-radius: 50%;
  flex-shrink: 0;
}

.bags-mobile-menu__account-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bags-mobile-menu__account-greeting {
  font-size: 12px;
  opacity: 0.7;
}

.bags-mobile-menu__account-text strong {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bags-mobile-menu__login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background-color: #c8b35b;
  color: #1a1502;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.bags-mobile-menu__login-btn:hover {
  background-color: #d6c372;
  color: #1a1502;
}

.bags-mobile-menu__login-btn:active {
  transform: scale(0.98);
}

/* When the user is already authenticated, the `zid-customer-fetched` handler in
   layout.jinja adds `.is-customer` to this button and rewrites it as a greeting
   ("Hi Mohammed"). The login arrow SVG becomes meaningless in that state, so
   hide it — the button still works as a link to the account profile. */
.bags-mobile-menu__login-btn.is-customer svg {
  display: none;
}


/* ===== Scrollable content ===== */

.bags-mobile-menu__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 8px;
}

.bags-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bags-mobile-menu__item {
  border-bottom: 1px solid rgba(238, 232, 207, 0.06);
}

.bags-mobile-menu__link-row {
  display: flex;
  align-items: center;
}

.bags-mobile-menu__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.bags-mobile-menu__link:hover {
  background-color: rgba(238, 232, 207, 0.06);
  color: #c8b35b;
}

.bags-mobile-menu__chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

[dir="rtl"] .bags-mobile-menu__chevron {
  transform: scaleX(-1);
}

.bags-mobile-menu__toggle {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.bags-mobile-menu__toggle:hover {
  opacity: 1;
}

.bags-mobile-menu__item.is-expanded .bags-mobile-menu__toggle {
  transform: rotate(-180deg);
  color: #c8b35b;
}

.bags-mobile-menu__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0, 0, 0, 0.2);
}

.bags-mobile-menu__item.is-expanded .bags-mobile-menu__sublist {
  max-height: 1000px;
}

.bags-mobile-menu__sublink {
  display: block;
  padding: 12px 36px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.bags-mobile-menu__sublink:hover {
  background-color: rgba(238, 232, 207, 0.06);
  color: #c8b35b;
  opacity: 1;
}


/* ===== Footer ===== */

.bags-mobile-menu__footer {
  margin-top: 16px;
  padding: 8px 0 24px;
}

.bags-mobile-menu__footer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: start;
}

.bags-mobile-menu__footer-btn:hover {
  background-color: rgba(238, 232, 207, 0.06);
  color: #c8b35b;
}

.bags-mobile-menu__footer-btn span {
  flex: 1;
}

.bags-mobile-menu__footer-btn svg:first-child {
  flex-shrink: 0;
  opacity: 0.8;
}

.mobileMenu {
  display: none !important;
}