/* One loading surface contract, shared by document bootstrap and React media. */
html[data-storefront-state="loading"] #root { visibility:hidden;position:absolute;top:0;inset-inline:0;max-height:100dvh;overflow:hidden;pointer-events:none; }
html[data-storefront-state="loading"] { overflow:hidden;overscroll-behavior:none; }
html[data-storefront-state="loading"] body { height:100dvh;overflow:hidden;padding:0; }
html[data-storefront-state="error"] body { padding-bottom:0; }
html[data-storefront-state="error"] #root:not(:has([data-storefront-recovery])) { display:none; }
html[data-storefront-state]:not([data-storefront-state="ready"]) .privacy-footer-link { display:none; }
.pm-loading-surface,
.pm-image-skeleton {
  --m3e-skeleton-color:var(--pm-color-surface-container-high, #f7f1ec);
  --m3e-skeleton-tint-color:var(--pm-color-on-surface-variant, #4f453d);
  --m3e-skeleton-accent-color:var(--pm-color-surface, #fff);
  --m3e-skeleton-accent-opacity:.12;
}
#petala-boot {
  /* The 8% default tint film reads as a shadow on the cream scaffold; keep the wave. */
  --m3e-skeleton-tint-opacity:0;
  min-height:100dvh;
  height:100dvh;
  overflow:clip;
  width:100%;
  box-sizing:border-box;
  position:relative;
  contain:layout paint;
  background:var(--pm-color-background);
  color:var(--pm-color-on-surface);
  font-family:var(--pm-type-body-font);
}
#petala-boot .petala-boot-inner { max-width:1280px;margin:auto;padding:24px; }
.pm-boot-header { height:88px;background:var(--pm-color-header-surface);display:flex;align-items:center;gap:24px;padding:0 max(24px,calc((100vw - 1232px)/2)); }
.pm-boot-brand { width:104px;height:26px;border-radius:12px; }
.pm-boot-search { width:min(520px,65%);height:44px;border-radius:999px; }
.pm-boot-categories { display:flex;gap:16px;margin:0 0 24px; }
.pm-boot-categories span { width:140px;height:24px;border-radius:12px; }
.pm-boot-banner { height:220px;border-radius:24px;margin-bottom:32px; }
.pm-boot-heading { width:190px;height:28px;border-radius:12px;margin-bottom:16px; }
.pm-boot-products { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;overflow:clip; }
.pm-boot-card { min-width:0; }
.pm-boot-photo { aspect-ratio:4/5;border-radius:28px; }
.pm-boot-line { height:16px;margin-top:12px;border-radius:8px; }
.pm-boot-line--short { width:55%; }
.petala-boot-row { margin-block:24px; }
.petala-boot-message { margin:0; }
.petala-boot-retry {
  min-height:48px;padding:12px 24px;border:0;border-radius:999px;
  background:var(--pm-color-primary);color:var(--pm-color-on-primary);
  font:var(--pm-type-action-weight) var(--pm-type-action-medium-size)/1.4 var(--pm-type-action-font);cursor:pointer;
}
.petala-boot-retry:focus-visible { outline:3px solid var(--pm-color-focus);outline-offset:3px; }
#petala-boot.has-error .pm-boot-layout { display:none; }
#petala-boot.has-error { min-height:100dvh;height:auto;overflow:visible; }
#petala-boot.has-error .petala-boot-message { display:block; }
/* A stale optional bundle must not add its old centered indicator to the scaffold. */
#petala-boot .petala-md3-boot-state { display:none!important; }
.pm-loading-surface m3e-skeleton,.pm-image-skeleton,.pm-media-region { display:contents; }
/* Static, geometry-preserving fallback if the optional component cannot load. */
m3e-skeleton:not(:defined) > * {
  background:var(--m3e-skeleton-color,var(--pm-color-surface-container-high,#f7f1ec));
}
.pm-image-skeleton:not(:defined) > img { visibility:visible; }
.pm-loading-status { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
@media(max-width:640px) {
  /* Reserve the real mobile navigation surface before its controls mount.
     Removed with the scaffold; no duplicated interactive navigation. */
  html[data-storefront-state="loading"] #petala-boot::after {
    content:"";position:fixed;inset:auto 0 0;
    height:calc(var(--pm-bottom-nav-height,68px) + env(safe-area-inset-bottom));
    background:var(--pm-color-header-surface);z-index:1600;pointer-events:none;
  }
  #petala-boot .petala-boot-inner { padding:20px 12px; }
  .pm-boot-header { height:90px;padding:12px;gap:16px; }
  .pm-boot-brand { width:40px; }
  .pm-boot-categories { gap:12px;overflow:hidden; }
  .pm-boot-categories span { flex:none;width:96px;height:20px; }
  .pm-boot-banner { height:192px;margin-bottom:24px; }
  .pm-boot-products { display:flex;gap:12px;overflow:hidden; }
  .pm-boot-card { flex:0 0 186px; }
}
