/* Azuri Beauty — design system */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --az-black: #000000;
  --az-pink: #000000; /* accent = black */
  --az-pink-deep: #000000;
  --az-pink-soft: #f2f2f2;
  --az-ink: #111111;
  --az-surface: #f7f7f7;
  --az-muted: #666666;
  --az-line: rgba(0, 0, 0, 0.08);
  --az-radius: 18px;
  --az-radius-sm: 12px;
  --az-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --az-font-display: "Cormorant Garamond", Georgia, serif;
  --az-font-body: "DM Sans", system-ui, sans-serif;
  --az-nav-h: 0px;
  --az-nav-gap: 0px;
  --az-header-h: 56px;
  --az-header-clearance: calc(var(--az-header-h) + env(safe-area-inset-top, 0px));
  --az-scroll-end: calc(24px + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.azuri-app,
body.default {
  font-family: var(--az-font-body) !important;
  color: var(--az-ink);
  background:
    radial-gradient(120% 80% at 10% -10%, #f0f0f0 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(0, 0, 0, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--az-surface) 40%, #fff 100%) !important;
  min-height: 100vh;
}

html {
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.azuri-app,
body.default.azuri-app {
  height: auto !important;
  min-height: 100% !important;
  padding-bottom: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Kill Foodkuy double-offset / clipping on wrappers */
body.azuri-app .wrapper,
body.default.azuri-app .wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
}

body.azuri-app #content,
body.default.azuri-app #content {
  position: relative !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: transparent !important;
  padding-top: var(--az-header-clearance) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transition: none !important;
  overflow: visible !important;
}

body.azuri-app .content-wrap,
body.default.azuri-app .content-wrap {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  max-width: 100% !important;
  overflow: visible !important;
  background: transparent !important;
}

.az-page-end-spacer { display: none !important; }

/* Bottom bar removed */
.az-bottom-nav { display: none !important; }

/* Home slideshow sits fully below the fixed topbar */
.az-home-hero {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
  z-index: 1;
}
.az-home-slider {
  margin: 0;
}
.az-home-slider .slick-list,
.az-home-slider .slick-track {
  margin: 0;
}
.az-home-slide {
  position: relative;
  min-height: 210px;
  padding: 1.85rem 1.4rem 2.35rem;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  outline: none;
  overflow: hidden;
}
.az-home-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 80% at 90% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
}
.az-home-slide > * { position: relative; z-index: 1; }
.az-home-slide--dark {
  background: linear-gradient(155deg, #000 0%, #121212 55%, #1c1c1c 100%);
  color: #fff;
}
.az-home-slide--ink {
  background: linear-gradient(155deg, #111 0%, #000 60%, #1a1a1a 100%);
  color: #fff;
}
.az-home-slide--soft {
  background:
    radial-gradient(100% 80% at 50% -20%, #e8e8e8, transparent 55%),
    linear-gradient(180deg, #f4f4f4 0%, #fff 100%);
  color: #111;
}
.az-home-slide--soft .az-home-copy { color: #555; }
.az-home-slide--soft .az-home-kicker { color: #666; }
.az-home-slide--soft .az-home-cta {
  background: #000;
  color: #fff;
}
.az-home-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.az-home-title {
  margin: 0;
  font-family: var(--az-font-display);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.55rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.az-home-copy {
  margin: 0.45rem 0 0;
  max-width: 16rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}
.az-home-cta {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #000 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.az-home-cta:active { transform: scale(0.97); }
.az-home-slider .slick-dots {
  bottom: 10px;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex !important;
  justify-content: center;
  gap: 0.35rem;
}
.az-home-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}
.az-home-slider .slick-dots li button {
  width: 6px;
  height: 6px;
  padding: 0;
}
.az-home-slider .slick-dots li button:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  left: 0;
  top: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.az-home-slider .slick-dots li.slick-active button:before {
  width: 18px;
  background: #fff;
}
.az-home-slide--soft ~ .slick-dots li button:before,
.az-home-slider:has(.az-home-slide--soft.slick-current) .slick-dots li button:before {
  background: rgba(0, 0, 0, 0.2);
}
.az-home-slider:has(.az-home-slide--soft.slick-current) .slick-dots li.slick-active button:before {
  background: #000;
}
.az-home-loc {
  margin-top: 0.35rem;
}
.az-home-loc .az-location-field input {
  min-height: 56px;
  height: 56px;
  padding: 1.05rem 1.25rem 1.05rem 3.15rem;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.az-home-loc .az-location-field .az-loc-icon {
  width: 22px;
  height: 22px;
  left: 1.15rem;
}

.az-brand,
.navbar .logo {
  font-family: var(--az-font-display) !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.35rem !important;
  color: var(--az-black) !important;
}

.az-display {
  font-family: var(--az-font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.az-muted { color: var(--az-muted); font-size: 0.9rem; }

.az-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-family: var(--az-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
}
.az-btn:active { transform: scale(0.98); }
.az-btn-primary {
  background: var(--az-black);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.az-btn-primary:hover { background: #1a1a1a; color: #fff !important; }
.az-btn-pink {
  /* legacy class — black/white only */
  background: var(--az-black);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.az-btn-ghost {
  background: transparent;
  color: var(--az-black) !important;
  border: 1.5px solid var(--az-black);
}
.az-btn-soft {
  background: #f2f2f2;
  color: var(--az-black) !important;
}
.az-btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.az-btn-block { width: 100%; }

.az-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--az-line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--az-ink);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none !important;
}
.az-chip:hover,
.az-chip.is-active {
  background: var(--az-black);
  color: #fff !important;
  border-color: var(--az-black);
}

.az-section {
  padding: 0.85rem 1rem 0.35rem;
}
.az-section-title {
  font-family: var(--az-font-display);
  font-size: 1.65rem;
  margin: 0 0 0.25rem;
}
.az-section-sub {
  color: var(--az-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* Top bar — 3-column: menu | brand | cart+search */
.az-topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: calc(var(--az-header-h) + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--az-line);
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 0.65rem 0;
  margin: 0;
}
.az-topbar .az-brand {
  justify-self: center;
  text-align: center;
  pointer-events: none;
}
.az-topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.az-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.az-topbar-btn:hover,
.az-topbar-btn:focus {
  color: #000 !important;
  opacity: 0.7;
}
.az-cart-link {
  position: relative;
}
.az-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #000;
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}
.az-cart-badge.is-on { display: inline-block; }
.az-cart-badge[hidden] { display: none !important; }

/* Sidebar must sit above topbar (1040) / bottom nav (1050) so close works */
body.azuri-app #sidebarleft,
body.default.azuri-app #sidebarleft {
  z-index: 1200 !important;
}
body.azuri-app .overlay,
body.default.azuri-app .overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1190 !important;
  cursor: pointer;
}
body.azuri-app .overlay.active,
body.default.azuri-app .overlay.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.azuri-app #sidebarleft #dismiss,
body.default.azuri-app #sidebarleft #dismiss {
  z-index: 1201 !important;
  color: #000 !important;
  pointer-events: auto !important;
  cursor: pointer;
}
body.azuri-app #sidebarleft .sidebar-header,
body.default.azuri-app #sidebarleft .sidebar-header {
  display: none !important;
}
body.azuri-app #sidebarleft .az-sidebar-brand,
body.default.azuri-app #sidebarleft .az-sidebar-brand {
  padding: 4.25rem 1.25rem 1.25rem;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: center;
}
body.azuri-app #sidebarleft .az-sidebar-brand img,
body.default.azuri-app #sidebarleft .az-sidebar-brand img {
  display: block;
  margin: 0 auto;
  max-width: 160px;
  height: auto;
}

/* Straight sidebar nav: icons in one column, labels aligned — black on white */
#sidebarleft.sidenav,
body.azuri-app #sidebarleft,
body.default.azuri-app #sidebarleft {
  background: #fff !important;
  color: #111 !important;
}
#sidebarleft ul.components,
body.azuri-app #sidebarleft ul.components,
body.default.azuri-app #sidebarleft ul.components {
  padding: 0.75rem 0.75rem 1.5rem !important;
  margin: 0.35rem 0 0 !important;
  color: #111 !important;
}
#sidebarleft ul.components li,
body.azuri-app #sidebarleft ul.components li,
body.default.azuri-app #sidebarleft ul.components li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#sidebarleft ul.components li a,
#sidebarleft ul.components li a:visited,
#sidebarleft ul.components li a:focus,
#sidebarleft ul.components li a span,
body.azuri-app #sidebarleft ul.components li a,
body.azuri-app #sidebarleft ul.components li a span,
body.default.azuri-app #sidebarleft ul.components li a,
body.default.azuri-app #sidebarleft ul.components li a span {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 44px;
  padding: 0.55rem 0.85rem !important;
  margin: 0 !important;
  color: #111 !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  line-height: 1.2 !important;
  text-align: left !important;
  border-radius: 12px;
  text-decoration: none !important;
  opacity: 1 !important;
}
#sidebarleft ul.components li a span {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
}
#sidebarleft ul.components li a:hover,
#sidebarleft ul.components li a:hover span,
body.azuri-app #sidebarleft ul.components li a:hover,
body.default.azuri-app #sidebarleft ul.components li a:hover {
  background: #f3f3f3 !important;
  color: #000 !important;
}
#sidebarleft ul.components li a i,
#sidebarleft ul.components li a .fas,
#sidebarleft ul.components li a .fa,
#sidebarleft ul.components li a .svg-inline--fa,
#sidebarleft ul.components li a .svg-inline--fa path,
body.azuri-app #sidebarleft ul.components li a i,
body.azuri-app #sidebarleft ul.components li a .svg-inline--fa,
body.default.azuri-app #sidebarleft ul.components li a i,
body.default.azuri-app #sidebarleft ul.components li a .svg-inline--fa {
  flex: 0 0 1.5rem !important;
  width: 1.5rem !important;
  min-width: 1.5rem !important;
  max-width: 1.5rem !important;
  height: 1.5rem !important;
  margin: 0 0.75rem 0 0 !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  text-align: center !important;
  color: #111 !important;
  fill: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
}

/* Bottom nav */
.az-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--az-nav-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 1050;
  height: var(--az-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--az-line);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(26, 18, 22, 0.12);
  padding: 0 0.25rem;
}
.az-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none !important;
  color: var(--az-muted) !important;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, transform 0.2s;
  padding: 0.4rem;
}
.az-bottom-nav a i { font-size: 1.15rem; }
.az-bottom-nav a.is-active,
.az-bottom-nav a:hover {
  color: var(--az-pink) !important;
}
.az-bottom-nav a.is-active { transform: translateY(-2px); }

/* Story rings */
.az-stories {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.az-stories::-webkit-scrollbar { display: none; }
.az-story {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  text-decoration: none !important;
  color: var(--az-ink) !important;
  cursor: pointer;
}
.az-story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #000, #444 45%, #000);
  margin: 0 auto 0.35rem;
  animation: az-pulse 2.8s ease-in-out infinite;
}
.az-story-ring img,
.az-story-ring .az-story-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--az-pink-soft);
  font-family: var(--az-font-display);
  font-size: 1.2rem;
}
.az-story span {
  display: block;
  font-size: 0.68rem;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes az-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
}

/* Business / product cards */
.az-biz-card,
.az-product-card,
.az-post-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius);
  overflow: hidden;
  box-shadow: var(--az-shadow);
  transition: transform 0.25s ease;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.az-biz-card:hover,
.az-product-card:hover { transform: translateY(-3px); }
.az-biz-card img,
.az-product-card img,
.az-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.az-biz-card .az-card-body,
.az-product-card .az-card-body,
.az-post-card .az-card-body {
  padding: 0.85rem 1rem 1rem;
}
.az-biz-card h3,
.az-product-card h3 {
  font-family: var(--az-font-display);
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}
.az-price {
  font-weight: 700;
  color: var(--az-pink-deep);
}

.az-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.az-scroll-x {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.az-scroll-x::-webkit-scrollbar { display: none; }
.az-scroll-x .az-biz-card {
  flex: 0 0 260px;
}

/* Storefront hero */
.az-store-hero {
  position: relative;
  margin: 0 -0; /* full within content */
  min-height: 220px;
  background: var(--az-black);
  color: #fff;
  overflow: hidden;
}
.az-store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 80% at 80% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}
.az-store-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.az-store-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: var(--az-pink-soft);
}
.az-store-hero h1 {
  font-family: var(--az-font-display);
  font-size: 2.2rem;
  margin: 0;
  color: #fff;
}
.az-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tabs */
.az-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--az-line);
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.55);
  position: sticky;
  top: var(--az-header-h);
  z-index: 20;
}
.az-tabs::-webkit-scrollbar { display: none; }
.az-tabs a,
.az-tabs button {
  border: none;
  background: transparent;
  font-family: var(--az-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--az-muted);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
}
.az-tabs a.is-active,
.az-tabs button.is-active,
.az-tabs .nav-link.active {
  background: var(--az-black) !important;
  color: #fff !important;
}

/* Feed */
.az-post-card { margin-bottom: 1rem; }
.az-post-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0;
}
.az-post-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.az-post-actions {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 1rem 1rem;
  font-size: 0.9rem;
}
.az-post-actions button {
  border: none;
  background: none;
  font-weight: 600;
  color: var(--az-ink);
  cursor: pointer;
  padding: 0;
}
.az-post-actions button.liked { color: var(--az-pink); }

/* Empty state */
.az-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--az-muted);
}
.az-empty h3 {
  font-family: var(--az-font-display);
  color: var(--az-ink);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

/* Messages */
.az-msg-list a {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--az-line);
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.6);
}
.az-msg-list a img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.az-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  min-height: 55vh;
}
.az-bubble {
  max-width: 78%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.az-bubble.mine {
  align-self: flex-end;
  background: var(--az-black);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.az-bubble.theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--az-line);
  border-bottom-left-radius: 4px;
}
.az-composer {
  position: sticky;
  bottom: calc(var(--az-nav-h) + 16px);
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 250, 252, 0.95);
  border-top: 1px solid var(--az-line);
}
.az-composer input {
  flex: 1;
  border: 1px solid var(--az-line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #fff;
  font-family: var(--az-font-body);
}

/* Cart groups */
.az-cart-group {
  background: #fff;
  border-radius: var(--az-radius);
  border: 1px solid var(--az-line);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--az-shadow);
}
.az-cart-group h4 {
  font-family: var(--az-font-display);
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
.az-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--az-line);
  font-size: 0.9rem;
}
.az-cart-line:last-child { border-bottom: none; }

/* Location field */
.az-location-field {
  position: relative;
}
.az-location-field input {
  width: 100%;
  border: 1px solid var(--az-line);
  border-radius: 999px;
  padding: 0.95rem 1.15rem 0.95rem 2.85rem;
  background: #fff;
  box-shadow: var(--az-shadow);
  font-family: var(--az-font-body);
  font-size: 0.92rem;
  color: var(--az-ink);
}
.az-location-field input:focus {
  outline: none;
  border-color: #000;
}
.az-location-field .az-loc-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}
.az-scroll-x .az-biz-card img {
  height: 220px;
}

/* Category row */
.az-cats {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}
.az-cats::-webkit-scrollbar { display: none; }

/* Preloader — visible black / white */
.preloading {
  display: table !important;
  z-index: 999999 !important;
}
.preloading.is-done {
  display: none !important;
}
.preloading .wrap-preload {
  background: #000 !important;
}
.preloading .cssload-loader {
  background: #fff !important;
  border-top-color: #fff !important;
  border-left-color: #fff !important;
}

/* Fade-up motion */
.az-fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: az-fade-up 0.7s ease forwards;
}
.az-fade-up:nth-child(2) { animation-delay: 0.08s; }
.az-fade-up:nth-child(3) { animation-delay: 0.16s; }
.az-fade-up:nth-child(4) { animation-delay: 0.24s; }
@keyframes az-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Auth landing */
.az-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(165deg, #000000 0%, #111111 45%, #1a1a1a 100%);
  color: #fff;
  font-family: var(--az-font-body);
  overflow-x: hidden;
}
.az-auth-hero {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  animation: az-fade-up 0.9s ease both;
}
.az-auth-hero .az-brand-mark {
  font-family: var(--az-font-display);
  font-size: clamp(3.2rem, 12vw, 4.5rem);
  letter-spacing: 0.22em;
  margin: 0;
  color: #fff;
}
.az-auth-hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 22rem;
  margin: 0.65rem auto 0;
  font-size: 0.98rem;
}
.az-auth-panel {
  flex: 1;
  background: #fff;
  color: var(--az-ink);
  border-radius: 28px 28px 0 0;
  padding: 1.75rem 1.35rem 2.5rem;
  margin-top: auto;
  animation: az-slide-up 0.75s ease both 0.15s;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}
@keyframes az-slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.az-auth-panel .form-control {
  border-radius: 999px !important;
  background: #f7f2f5 !important;
  border: 1px solid transparent !important;
  height: 48px;
}
.az-auth-toggle {
  display: flex;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.25rem;
}
.az-auth-toggle a {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--az-muted) !important;
  text-decoration: none !important;
}
.az-auth-toggle a.is-active {
  background: var(--az-black);
  color: #fff !important;
}

/* Auth modals sit on white panels — never inherit hero white text */
.az-auth .modal-content {
  color: #111 !important;
  background: #fff !important;
}
.az-auth .modal-header,
.az-auth .modal-body,
.az-auth .modal-footer {
  color: #111 !important;
}
.az-auth .modal-title,
.az-auth .modal-body label,
.az-auth .modal-body h5,
.az-auth .modal-body h6,
.az-auth .modal-body p,
.az-auth .modal-body span,
.az-auth .modal-body .az-display {
  color: #111 !important;
}
.az-auth .modal-body .form-control,
.az-auth .modal-body select,
.az-auth .modal-body textarea,
.az-auth .modal-body input {
  color: #111 !important;
  background: #f5f5f5 !important;
}
.az-auth .modal .close {
  color: #111 !important;
  opacity: 0.7;
  text-shadow: none;
}

/* Story viewer overlay */
.az-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: none;
  flex-direction: column;
  color: #fff;
}
.az-story-viewer.is-open { display: flex; }
.az-story-viewer img {
  flex: 1;
  width: 100%;
  object-fit: contain;
  background: #111;
}
.az-story-viewer .az-story-bar {
  height: 3px;
  background: rgba(255,255,255,0.25);
  margin: 12px 12px 0;
  border-radius: 3px;
  overflow: hidden;
}
.az-story-viewer .az-story-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--az-pink);
  animation: az-story-progress 5s linear forwards;
}
@keyframes az-story-progress {
  to { width: 100%; }
}
.az-story-viewer .az-story-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}
.az-story-viewer .az-story-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Loader override */
.loader .loading {
  border-top-color: var(--az-pink) !important;
  border-left-color: var(--az-pink) !important;
}

@media (min-width: 768px) {
  .az-bottom-nav {
    max-width: 480px;
    margin: 0 auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 24px);
  }
  body.azuri-app #content,
  body.default.azuri-app #content {
    max-width: 520px;
  }
}
