/* Browser-only layout. Telegram never receives the web-store body class. */
body.web-store #app { max-width: 800px; }
body.web-store a.nav-item,
body.web-store a.category-card,
body.web-store a.filter-chip { text-decoration: none; color: var(--text); font-family: inherit; }
body.web-store .app-shell {
  padding: 16px 24px 40px !important;
  min-height: auto !important;
}
body.web-store .topbar { margin-bottom: 12px !important; }
body.web-store .website-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(15,23,42,.05);
}
body.web-store .website-nav .nav-item {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  min-height: 48px !important;
  padding: 10px 14px !important;
  gap: 9px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
}
body.web-store .website-nav .nav-item.active { color: var(--green-dark); background: rgba(32,217,119,.13); }
body.web-store .website-nav .nav-icon { font-size: 20px !important; }
body.web-store .website-nav .nav-item em { position: static !important; border: 0; min-width: 19px; height: 19px; }
body.web-store .website-nav [hidden] { display: none !important; }
body.web-store .content { gap: 16px !important; padding-bottom: 0 !important; }
body.web-store .page-title h1,
body.web-store .catalog-head h2 { font-size: clamp(27px, 4vw, 36px) !important; line-height: 1.15 !important; }
body.web-store .categories-list.simple { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
body.web-store .category-card.simple {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 16px !important;
  min-height: 98px !important;
  padding: 18px 20px !important;
  border-radius: 24px !important;
  box-shadow: 0 7px 22px rgba(15,23,42,.05) !important;
}
body.web-store .category-logo-wrap.simple,
body.web-store .category-logo { width: 58px !important; height: 58px !important; }
body.web-store .category-copy.simple { min-width: 0; display: grid !important; gap: 5px !important; text-align: left; }
body.web-store .category-copy.simple b { font-size: 22px !important; line-height: 1.2 !important; }
body.web-store .category-copy.simple small { font-size: 14px !important; line-height: 1.4 !important; }
body.web-store .category-arrow.simple { position: static !important; transform: none !important; margin: 0 !important; }
body.web-store .catalog-cart-float.ios26-sticky-action,
body.web-store .cart-checkout-dock,
body.web-store .floating-actions,
body.web-store .fixed-action-row,
body.web-store .back-fab,
body.web-store .return-service-btn.ios26-fixed-action {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body.web-store .catalog-cart-float.ios26-sticky-action,
body.web-store .cart-checkout-dock { box-shadow: 0 8px 24px rgba(15,23,42,.08) !important; }
body.web-store .content > .fixed-action-row { order: 10; }
body.web-store .back-fab { width: fit-content !important; }
body.web-store .service-fixed-actions { display: flex !important; gap: 12px !important; }
body.web-store .service-fixed-actions .floating-cart-btn { flex: 1; min-width: 0 !important; }
body.web-store .order-fixed-actions { justify-content: flex-start !important; }
body.web-store .order-fixed-actions .fixed-pill { width: auto !important; }
body.web-store .screen-cart .content > :last-child,
body.web-store .screen-order .content > :last-child { margin-bottom: 0 !important; }
body.web-store .email-auth-card { margin: 0; max-width: none; width: 100%; }
body.web-store .website-email-card { padding: 24px; border-radius: 24px; }
body.web-store .website-email-card form { display: grid; gap: 10px; margin: 0; }
body.web-store .website-email-card label { font-size: 14px; font-weight: 650; }
body.web-store .website-email-card input { min-width: 0; width: 100%; min-height: 52px; border-radius: 14px; }
body.web-store .website-email-card input + label { margin-top: 8px; }
body.web-store .website-email-help { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 2px 0; }
body.web-store .website-form-message { color: var(--red); font-size: 14px; line-height: 1.4; margin: 0; }
body.web-store .website-form-message:empty { display: none; }
body.web-store .website-connection-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
body.web-store .website-connection-error[hidden] { display: none; }
body.web-store .website-connection-error .ghost-btn { width: auto; margin: 0; padding: 8px 12px; }
body.web-store .website-checkout-summary { margin: 0 !important; order: 0 !important; }
body.web-store .website-orders-account { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.web-store .website-orders-account span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(32,217,119,.12);
}
body.web-store .website-orders-account .ghost-btn { width: auto; margin: 0; }
body.web-store .primary-btn:disabled { opacity: .5; cursor: not-allowed; }
body.web-store .screen-email-auth .content { padding-top: 0 !important; }
body.web-store .screen-email-auth .email-auth-card { padding: 24px; }
body.web-store .screen-email-auth .email-auth-card h1 { margin: 0 0 18px; }
body.web-store .screen-email-auth .email-auth-card > p:not(#email-auth-message) { margin: 0 0 14px; }
body.web-store .screen-email-auth .email-auth-card form { margin: 0; }
body.web-store #email-auth-message:empty { display: none; }
body.web-store #email-auth-message { min-height: 0; margin: 12px 0 0; }
html.keyboard-open body.web-store .website-nav {
  visibility: hidden;
  pointer-events: none;
}
/* Keep the action plate inside the same column as the product cards. */
body.web-store .service-fixed-actions { padding: 8px !important; }
body.web-store .service-fixed-actions.only-back { display: none !important; }
body.web-store .service-fixed-actions::before,
body.web-store .cart-checkout-dock::before { inset: 0 !important; }
body.web-store .service-fixed-actions .back-fab::before { display: none !important; }
body.web-store .service-fixed-actions .back-fab { flex: 0 0 auto; }
body.web-store .service-fixed-actions .floating-cart-btn {
  grid-template-columns: minmax(0, 1fr) auto 34px !important;
  gap: 10px !important;
}
body.web-store .service-fixed-actions .floating-cart-btn i { margin: 0 !important; }
body.web-store .website-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
body.web-store .website-footer a { color: inherit; text-decoration: none; }
body.web-store .website-footer a:hover { color: var(--green-dark); text-decoration: underline; }
body.web-store .website-footer a:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 4px; border-radius: 3px; }
body.web-store .website-copyright { white-space: nowrap; }
@media (max-width: 540px) {
  body.web-store .app-shell { padding: 10px 14px 28px !important; }
  body.web-store .website-nav { margin-bottom: 22px; }
  body.web-store .website-nav .nav-item { font-size: 13px !important; gap: 6px !important; padding: 10px 6px !important; }
  body.web-store .category-card.simple { padding: 14px !important; gap: 12px !important; grid-template-columns: 48px minmax(0, 1fr) 26px !important; min-height: 88px !important; }
  body.web-store .category-logo-wrap.simple,
  body.web-store .category-logo { width: 48px !important; height: 48px !important; }
  body.web-store .category-copy.simple b { font-size: 19px !important; }
  body.web-store .category-copy.simple small { font-size: 13px !important; }
  body.web-store .website-email-card { padding: 18px; }
  body.web-store .service-fixed-actions { gap: 8px !important; }
  body.web-store .service-fixed-actions .back-fab { min-width: 76px !important; padding: 0 10px !important; gap: 6px !important; }
  body.web-store .service-fixed-actions .floating-cart-btn {
    grid-template-columns: minmax(0, 1fr) 34px !important;
    grid-template-rows: auto auto;
    column-gap: 8px !important;
    row-gap: 2px !important;
    padding: 7px 10px !important;
  }
  body.web-store .service-fixed-actions .floating-cart-btn .sticky-action-title { grid-column: 1; grid-row: 1; white-space: normal !important; font-size: 13px !important; line-height: 1.1 !important; }
  body.web-store .service-fixed-actions .floating-cart-btn b { grid-column: 1; grid-row: 2; font-size: 13px !important; }
  body.web-store .service-fixed-actions .floating-cart-btn i { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 767px) {
  /* A transformed shell would anchor fixed navigation to the document. */
  body.web-store .app-shell {
    animation: none !important;
    transform: none !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
  body.web-store .website-nav {
    position: fixed;
    z-index: 1000;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    margin: 0;
    padding: 6px;
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(15,23,42,.16);
  }
  body.web-store .website-nav .nav-item {
    position: relative;
    flex-direction: column !important;
    min-height: 60px !important;
    padding: 8px 6px !important;
    gap: 4px !important;
    font-size: 12px !important;
  }
  body.web-store .website-nav .nav-item em {
    position: absolute !important;
    top: 3px;
    right: calc(50% - 32px);
  }
  body.web-store .service-fixed-actions.has-cart,
  body.web-store .cart-checkout-dock {
    position: fixed !important;
    z-index: 999;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 84px) !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
  }
  body.web-store .screen-service:has(.service-fixed-actions.has-cart),
  body.web-store .screen-custom-usd:has(.service-fixed-actions.has-cart),
  body.web-store .screen-cart:has(.cart-checkout-dock) {
    padding-bottom: calc(200px + env(safe-area-inset-bottom)) !important;
  }
}
