html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface-warm);
}
:root {
  --safhat-device-safe-area-top: env(safe-area-inset-top, 0px);
  --safhat-device-safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safhat-header-safe-extra: 0px;
  --safhat-bottom-safe-extra: 0px;
}
body.safhat-phone-preview {
  width: 100%;
  min-height: 100dvh;
  background: var(--surface-warm);
  color: var(--navy);
}
html:not([data-preview-hydrated]) .safhat-phone-preview .clean-phone-screen,
html[data-preview-hydrated="error"] .safhat-phone-preview .clean-phone-screen { visibility: hidden; }
html[data-preview-hydrated="error"]:not([data-safhat-recovery]) body.safhat-phone-preview::before {
  content: "Published Storefront state is unavailable. Refresh after the Storefront service is reachable.";
  position: fixed;
  inset: 24px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font: 600 14px/1.5 var(--font);
}
.safhat-phone-preview .phone-screen {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  border-radius: 0;
  clip-path: none;
  contain: none;
  box-shadow: none;
  background: var(--surface-warm);
  display: flex;
  flex-direction: column;
}
.clean-navbar-host {
  position: relative;
  z-index: auto;
  width: 100%;
  flex: 0 0 auto;
  padding-top: calc(var(--safhat-device-safe-area-top) + var(--safhat-header-safe-extra));
  background: var(--storefront-background);
}
.safhat-phone-preview .storefront-sections-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  padding-bottom: calc(126px + var(--safhat-device-safe-area-bottom) + var(--safhat-bottom-safe-extra));
}
.clean-navbar-host .safhat-navbar {
  width: min(100%, var(--safhat-header-max-width, 100%));
  margin-inline: auto;
}
.safhat-phone-preview .navbar-toprow {
  min-height: var(--safhat-header-min-height, 0px);
}
.safhat-phone-preview .navbar-search-wrap {
  max-width: min(var(--safhat-search-bar-max-width, 100%), 100%);
}
.safhat-phone-preview .search-dropdown {
  max-width: 100%;
}
.clean-storefront-body {
  min-height: calc(100dvh - 160px);
  padding: 24px 18px calc(126px + var(--safhat-device-safe-area-bottom) + var(--safhat-bottom-safe-extra));
}
.clean-body-intro { display: grid; gap: 12px; justify-items: start; }
.clean-body-intro span, .clean-body-intro strong, .clean-body-lines i {
  display: block;
  border-radius: 999px;
  background: #efebf1;
}
.clean-body-intro span { width: 88px; height: 11px; }
.clean-body-intro strong { width: min(260px,68vw); height: 20px; }
.clean-body-card {
  height: 150px;
  margin-top: 26px;
  border-radius: var(--radius-lg);
  background: #f3eff6;
  box-shadow: var(--soft-shadow);
}.clean-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.clean-body-grid i {
  height: 100px;
  border-radius: var(--radius-md);
  background: #f1edf3;
}
.clean-body-lines { display: grid; gap: 11px; margin-top: 28px; }
.clean-body-lines i { height: 10px; width: 100%; }
.clean-body-lines i:nth-child(2) { width: 82%; }
.clean-body-lines i:nth-child(3) { width: 64%; }
.clean-bottom-host {
  position: fixed;
  z-index: 80;
  left: var(--safhat-bottom-nav-inset, 12px);
  right: var(--safhat-bottom-nav-inset, 12px);
  bottom: calc(var(--safhat-bottom-nav-inset, 12px) + var(--safhat-bottom-nav-vertical-offset, 3px));
  max-width: calc(100vw - (2 * var(--safhat-bottom-nav-inset, 12px)));
}
.clean-bottom-host .bottom-nav { width: 100%; }
.prototype-internals { display: none !important; }
.safhat-phone-preview .phone-screen[dir="ltr"] .search-icon { left: 17px; right: auto; }
.safhat-phone-preview .phone-screen[dir="ltr"] .scanner-btn { right: 7px; left: auto; }
.safhat-phone-preview .phone-screen[dir="ltr"] .search-field input { text-align: left; }
.safhat-phone-preview .phone-screen[dir="rtl"] .search-field input { text-align: right; }
@media (min-width: 700px) {
  .clean-storefront-body { max-width: 560px; margin-inline: auto; }
  .clean-navbar-host .safhat-navbar { max-width: 560px; }
  .safhat-phone-preview .storefront-sections-host { max-width: 560px; margin-inline: auto; }
  .clean-bottom-host { left: 50%; right: auto; width: min(536px, calc(100vw - 24px)); transform: translateX(-50%); }
}
