/* Mobile UI Fixes matching attached reference design */

/* Reset & Global mobile setup */
@media screen and (max-width: 1024px) {
  body {
    padding-bottom: 65px !important;
    overflow-x: hidden !important;
  }
}

/* 1. Announcement Bar Fix */
#shopify-section-sections--27023383494939__announcement-bar,
.section-announcement-bar,
announcement-bar {
  background-color: #5c2420 !important;
  color: #ffffff !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

announcement-bar {
  padding: 6px 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  height: auto !important;
  min-height: 32px !important;
}

announcement-bar .marquee {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

announcement-bar .announcement__bar-message {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  color: #ffffff !important;
  padding: 0 10px !important;
}

/* 2. Header Layout Fix for Mobile (< 1025px) */
@media screen and (max-width: 1024px) {
  .bls_header {
    background: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    position: relative !important;
    z-index: 100 !important;
  }

  header-inner,
  .logo-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    height: 56px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hamburger Menu Toggle on Left */
  .header__menu {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  .mobile-menu-toggle,
  .hamb,
  .btn-close-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .icon-menu {
    background-color: #5c2420 !important;
    height: 2px !important;
    width: 22px !important;
    display: block !important;
    margin: 3px 0 !important;
    border-radius: 1px !important;
  }

  /* AMARAA Logo Centered */
  .header__logo {
    order: 2 !important;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header__heading-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header__heading-logo {
    height: 28px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
  }

  /* Header Actions on Right (Search + Cart) */
  .header__action {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin: 0 !important;
    width: auto !important;
  }

  .header__icon svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: #1e1e1e !important;
  }

  .header__icon--cart {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .header__icon--cart .cart-count {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    width: 18px !important;
    height: 18px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hide mobile main-menu inline container from pushing layout */
  .mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 85% !important;
    max-width: 360px !important;
    background: #ffffff !important;
    z-index: 10000 !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
  }

  #side-menu:checked ~ .mobile-menu-drawer,
  .mobile-menu-drawer.active {
    transform: translateX(0) !important;
  }
}

/* 3. Hero Banner Mobile Fixes */
@media screen and (max-width: 767px) {
  .slideshow-item {
    min-height: 480px !important;
    position: relative !important;
  }

  .slide-text {
    padding: 30px 20px !important;
    bottom: 40px !important;
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
  }

  .slide-description h4 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    margin-bottom: 14px !important;
  }

  .btn-slideshow .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    padding: 10px 28px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-transform: uppercase !important;
  }
}

/* 4. Feature Icons Row Fixes */
.feature-icons-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  background: #ffffff !important;
  padding: 16px 8px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.feature-item {
  text-align: center !important;
  padding: 6px 4px !important;
}

.feature-item .icon-wrap {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #fbf1f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 8px !important;
}

.feature-item .icon-wrap img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.feature-item h4 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #1e1e1e !important;
  margin: 0 !important;
}

/* 5. Product Slider & Cards Visibility Fixes */
.slide-container,
slide-section .slide-container {
  opacity: 1 !important;
  visibility: visible !important;
}

@media screen and (max-width: 767px) {
  .slide-container {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 0 16px 16px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .slide-container::-webkit-scrollbar {
    display: none !important;
  }

  .product-wrapper {
    min-width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
    scroll-snap-align: start !important;
  }

  .product__inner {
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .product__badges-sale {
    background: #e60000 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 3px 8px !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 3 !important;
  }

  /* Quick add cart button on product card */
  button-quickview,
  .button-quickview {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    z-index: 5 !important;
    padding: 0 !important;
  }

  button-quickview svg,
  .button-quickview svg {
    width: 20px !important;
    height: 20px !important;
    fill: #1e1e1e !important;
  }

  .product-name a {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #5c2420 !important;
    font-weight: 500 !important;
  }

  .price.special-price {
    color: #e60000 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .price-item.compare-price {
    color: #888888 !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
  }
}

/* 6. Mobile Bottom Navigation Bar Fix */
@media screen and (max-width: 1024px) {
  .bls__mobile-navigation-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #e8e8e8 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06) !important;
  }

  .bls__mobile-navigation-bar ul {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: space-around !important;
  }

  .bls__mobile-navigation-bar li {
    flex: 1 !important;
    text-align: center !important;
  }

  .bls__mobile-navigation-bar a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #444444 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    position: relative !important;
  }

  .bls__mobile-navigation-bar a.active,
  .bls__mobile-navigation-bar a:hover {
    color: #5c2420 !important;
  }

  .bls__mobile-navigation-bar svg {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 3px !important;
    fill: currentColor !important;
  }

  .bls__mobile-navigation-bar .cart-count {
    position: absolute !important;
    top: -2px !important;
    right: 20% !important;
    background: #000000 !important;
    color: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ---------------------------------------------------------------------------
   One hamburger, not two.

   The theme ships a pair of menu triggers: a JS one (<toggle-menu>, whose custom
   element would add .open-nav) and a no-JS fallback (#side-menu checkbox + label),
   and hides whichever is not needed. Here both stay visible because the utility
   classes on them (.flex / .d-block) win over those hiding rules, and only the
   checkbox one actually opens the drawer — it is pure CSS. So the JS trigger is
   hidden and the working one is kept.
--------------------------------------------------------------------------- */
.header__menu toggle-menu.mobile-menu-toggle {
  display: none !important;
}
