/* LIBSEH responsive layout — customer + merchant. Loaded last. Does not restyle platform-owner admin. */
html body:not(.admin-view),
html body.merchant-view {
  max-width: 100%;
}
html body:not(.admin-view) *,
html body.merchant-view * {
  box-sizing: border-box;
}
html body:not(.admin-view) img,
html body:not(.admin-view) video,
html body:not(.admin-view) svg,
html body.merchant-view img,
html body.merchant-view svg {
  max-width: 100%;
}
html body:not(.admin-view) .container,
html body.merchant-view .container {
  width: min(100% - 28px, 1180px) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}
html body:not(.admin-view) main,
html body.merchant-view .aya-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
html body:not(.admin-view) .libseh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--ls-line, #E6DED2);
  padding-top: env(safe-area-inset-top, 0px);
}
html body:not(.admin-view) .libseh-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 56px !important;
  flex-wrap: nowrap !important;
}
html body:not(.admin-view) .libseh-mark {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
html body:not(.admin-view) .libseh-actions,
html body:not(.admin-view) .header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0;
  margin-inline-start: auto;
}
html body:not(.admin-view) .round-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 0 0 auto;
}
html body:not(.admin-view) .header-tools .header-bell > span,
html body:not(.admin-view) .header-tools .header-fav > span,
html body:not(.admin-view) .bottom-cart-badge {
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  line-height: 16px;
}
html body:not(.admin-view) .hero-arrows,
html body:not(.admin-view) .carousel-arrow,
html body.home-page:not(.admin-view) .hero-arrows {
  display: none !important;
}
html body:not(.admin-view) .bottom-cart-link,
html body:not(.admin-view) .bag-trigger {
  position: relative !important;
  overflow: visible !important;
  color: #31352C !important;
}
html body:not(.admin-view) .customer-bottom-nav a.bottom-cart-link.active {
  color: #66001f !important;
}
html body:not(.admin-view) .header-cart-icon,
html body:not(.admin-view) .bottom-cart-icon {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  max-width: none !important;
  flex: 0 0 28px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  background: none !important;
  color: inherit !important;
}
html body:not(.admin-view) .header-cart-icon svg,
html body:not(.admin-view) .bottom-cart-icon svg,
html body:not(.admin-view) .bag-trigger svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.7 !important;
}
html body:not(.admin-view) .bottom-cart-badge {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  inset: auto !important;
  inset-block-start: -4px !important;
  inset-inline-end: -6px !important;
  inset-block-end: auto !important;
  inset-inline-start: auto !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 18px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #66001f !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
  text-align: center !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
  transform: none !important;
  letter-spacing: 0 !important;
  pointer-events: none !important;
}
html body:not(.admin-view) .customer-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
html body:not(.admin-view) .home-hero {
  max-width: 100%;
  min-height: min(72svh, 640px);
}
html body:not(.admin-view) .home-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 18%;
  width: min(42%, 280px);
  height: 10px;
  background: #66001f;
  border-radius: 0 999px 999px 0;
  opacity: .72;
  pointer-events: none;
  z-index: 2;
}
html[dir="ltr"] body:not(.admin-view) .home-hero::after {
  border-radius: 999px 0 0 999px;
  inset-inline-start: auto;
  inset-inline-end: 0;
}
html body:not(.admin-view) .home-hero-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
html body:not(.admin-view) .luxe-product-card,
html body:not(.admin-view) .directory-store,
html body:not(.admin-view) .featured-store,
html body:not(.admin-view) .order-card,
html body:not(.admin-view) .cart-line {
  min-width: 0;
  max-width: 100%;
}
html body:not(.admin-view) .luxe-product-card form,
html body:not(.admin-view) .featured-store-actions,
html body:not(.admin-view) .store-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html body:not(.admin-view) .main-category-circles {
  padding-inline: 4px 16px !important;
  scrollbar-width: none;
}
html body:not(.admin-view) .main-category-circles::-webkit-scrollbar { display: none; }
html body:not(.admin-view) .welcome-card {
  max-height: min(90svh, 640px);
  overflow: auto;
}
html body.merchant-view .aya-main,
html body.merchant-view .merchant-panel,
html body.merchant-view .m-order-card,
html body.merchant-view article {
  min-width: 0;
  max-width: 100%;
}
html body.merchant-view .m-kpis,
html body.merchant-view .m-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

@media (max-width: 1023px) {
  html body:not(.admin-view) .libseh-nav.customer-main-nav,
  html body:not(.admin-view) .language-switcher:not(.mobile-language-switcher) {
    display: none !important;
  }
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .header-search,
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .account-menu,
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .header-fav,
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .bag-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .header-dashboard-link,
  html body:not(.admin-view):not(.merchant-view) .libseh-header .header-tools > .header-text-link {
    display: none !important;
  }
  html body.merchant-view .aya-shell {
    display: block !important;
  }
  html body.merchant-view .aya-menu-toggle {
    display: inline-flex !important;
  }
  html body.merchant-view .aya-sidebar {
    position: fixed !important;
    inset-block: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(86vw, 320px) !important;
    max-width: 100% !important;
    transform: translateX(100%) !important;
    visibility: hidden;
    pointer-events: none;
    z-index: 80;
    padding-top: env(safe-area-inset-top, 0px);
    transition: transform .2s ease, visibility .2s ease;
  }
  html[dir="ltr"] body.merchant-view .aya-sidebar,
  html body.merchant-view.dir-ltr .aya-sidebar {
    transform: translateX(-100%) !important;
  }
  html body.merchant-view.aya-nav-open .aya-sidebar {
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  html body.merchant-view .merchant-table,
  html body.merchant-view .order-table {
    display: grid !important;
    gap: 10px;
  }
  html body.merchant-view table.aya-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  html body:not(.admin-view) .luxe-product-grid,
  html body:not(.admin-view) .home-product-grid,
  html body:not(.admin-view) .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  html body:not(.admin-view) .hero-actions,
  html body:not(.admin-view) .welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  html body:not(.admin-view) .hero-actions .pill,
  html body:not(.admin-view) .cart-sticky-bar .pill,
  html body:not(.admin-view) .product-sticky-bar .pill {
    flex: 1 1 160px;
  }
  html body:not(.admin-view) .cart-layout,
  html body:not(.admin-view) .product-detail,
  html body:not(.admin-view) .dashboard-order-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 390px) {
  html body:not(.admin-view) .header-bell {
    display: inline-grid !important;
  }
  html body:not(.admin-view) .libseh-mark {
    max-width: 108px;
  }
  html body:not(.admin-view) .container {
    width: min(100% - 28px, 1180px) !important;
  }
  html body:not(.admin-view) .libseh-header-inner {
    gap: 4px !important;
  }
}

@media (max-width: 360px) {
  html body:not(.admin-view) .luxe-product-grid,
  html body:not(.admin-view) .home-product-grid,
  html body:not(.admin-view) .directory-grid {
    grid-template-columns: 1fr !important;
  }
  html body:not(.admin-view) .customer-bottom-nav a span {
    font-size: 10px !important;
  }
}

@media (min-width: 768px) {
  html body:not(.admin-view) .container {
    width: min(100% - 48px, 1180px) !important;
  }
}

@media (min-width: 1024px) {
  html body:not(.admin-view) .luxe-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  html body:not(.admin-view) .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1440px) {
  html body:not(.admin-view) .container {
    width: min(100% - 64px, 1280px) !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  html body:not(.admin-view) .home-hero {
    min-height: 100svh;
  }
  html body:not(.admin-view) .welcome-card {
    max-height: 92svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(.admin-view) *,
  html body.merchant-view * {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

html body:not(.admin-view):not(.merchant-view) .header-tools .round-icon,
html body:not(.admin-view):not(.merchant-view) .header-tools .account-menu summary.round-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #66001f !important;
}
html body:not(.admin-view):not(.merchant-view) .header-tools .round-icon svg,
html body:not(.admin-view):not(.merchant-view) .header-tools .account-menu summary.round-icon svg {
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.65 !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-cover {
  display: none !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-avatar {
  width: min(38vw, 132px) !important;
  height: min(38vw, 132px) !important;
  max-width: 132px !important;
  max-height: 132px !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-avatar img,
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-avatar img[data-fit="contain"] {
  object-fit: contain !important;
  padding: 10px !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .store-carousel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .carousel-arrow {
  display: none !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .store-carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  padding-block: 8px 16px !important;
  padding-inline: 2px 12px !important;
  box-sizing: border-box !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store {
  box-sizing: border-box !important;
  flex: 0 0 min(240px, 100%) !important;
  width: min(240px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  scroll-snap-align: start !important;
}
html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-avatar {
  width: min(120px, 100%) !important;
  height: min(120px, 100%) !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
}
@media (min-width: 768px) {
  html body:not(.admin-view):not(.merchant-view) #featured-stores .store-carousel-track {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
  html body:not(.admin-view):not(.merchant-view) #featured-stores .featured-store {
    flex: 0 0 200px !important;
    width: 200px !important;
  }
}

html body:not(.admin-view) #about-libseh,
html body:not(.admin-view) #site-footer {
  scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
}
html body:not(.admin-view) #about-libseh.about-libseh {
  position: relative !important;
  min-height: min(68svh, 540px) !important;
  overflow: hidden !important;
  background: #E8D8BE !important;
  align-items: center !important;
  justify-items: end !important;
}
html body:not(.admin-view) #about-libseh .about-libseh-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 22% !important;
}
html body:not(.admin-view) #about-libseh.about-libseh::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(to left, rgba(251, 247, 240, .94) 0%, rgba(251, 247, 240, .72) 42%, rgba(251, 247, 240, .12) 78%, rgba(251, 247, 240, 0) 100%) !important;
}
html[dir="ltr"] body:not(.admin-view) #about-libseh.about-libseh::after {
  background: linear-gradient(to right, rgba(251, 247, 240, .94) 0%, rgba(251, 247, 240, .72) 42%, rgba(251, 247, 240, .12) 78%, rgba(251, 247, 240, 0) 100%) !important;
}
html body:not(.admin-view) #about-libseh .about-libseh-copy {
  position: relative !important;
  z-index: 2 !important;
  width: min(100% - 32px, 560px) !important;
  margin-inline: 16px auto !important;
  color: #31352C !important;
  text-align: start !important;
  justify-items: start !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[dir="ltr"] body:not(.admin-view) #about-libseh .about-libseh-copy {
  margin-inline: auto 16px !important;
}
html body:not(.admin-view) #about-libseh .about-libseh-copy > * {
  max-width: 40rem !important;
  margin-inline: 0 !important;
}
html body:not(.admin-view) #about-libseh .eyebrow {
  color: #31352C !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
}
html body:not(.admin-view) #about-libseh h2 {
  color: #59633A !important;
  font-size: clamp(28px, 5vw, 42px) !important;
  line-height: 1.25 !important;
}
html body:not(.admin-view) #about-libseh h3 {
  color: #66001f !important;
  font-size: clamp(1.05rem, 3vw, 1.45rem) !important;
  margin: 8px 0 0 !important;
}
html body:not(.admin-view) #about-libseh p {
  color: #31352C !important;
}
