/* Portal PWA do cliente — mobile-first, estilo catálogo */

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

.pc-body [hidden] { display: none !important; }

/* :where() mantém especificidade zero — .pc-btn e afins seguem definindo a própria cor */
.pc-body :where(a) {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Safari iOS dá zoom ao focar campo com fonte < 16px. max() nunca reduz o tamanho herdado. */
body.pc-body :is(input, select, textarea) {
    font-size: max(16px, 1em);
}

/* Campos do momConfirm (core, 14px) e o select de ordenação ficam no menor tamanho sem zoom */
body.pc-body :is(.mc-field-input, .mc-field-select, .mc-field-textarea),
body.pc-body .pc-store-sort select {
    font-size: 16px;
}

:root {
    --pc-ink: #020617;
    --pc-muted: #334155;
    --pc-line: #cbd5e1;
    --pc-surface: #ffffff;
    --pc-bg: #e8eef5;
    --pc-accent: var(--primary-color, #0f766e);
    --pc-accent-soft: color-mix(in srgb, var(--pc-accent) 18%, #fff);
    --pc-radius: 16px;
    --pc-radius-sm: 10px;
    --pc-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
    --pc-font: var(--font, 'Poppins', system-ui, sans-serif);
    --pc-top-h: 62px;
    /* iOS standalone usa status-bar translucida + viewport-fit=cover: o topo entra sob o relógio */
    --pc-top-safe: calc(62px + env(safe-area-inset-top, 0px));
    --pc-tab-h: 72px;
    --pc-danger: #b91c1c;
    --pc-ok: #15803d;
}

.pc-body {
    font-family: var(--pc-font);
    font-size: 18px;
    line-height: 1.55;
    color: var(--pc-ink);
    background:
        radial-gradient(1000px 420px at 10% -10%, color-mix(in srgb, var(--pc-accent) 16%, transparent), transparent 60%),
        var(--pc-bg);
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--pc-tab-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
}

.pc-body.is-login { padding-bottom: 0; }

.pc-top {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--pc-surface) 94%, transparent);
    border-bottom: 1px solid var(--pc-line);
    /* reserva a faixa do relógio/notch para o conteúdo do header não ficar sob ela */
    padding-top: env(safe-area-inset-top, 0px);
}

.pc-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--pc-top-h);
    width: min(720px, calc(100% - 24px));
    margin: 0 auto;
}

.pc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.pc-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.pc-brand__name {
    font-weight: 700;
    font-size: 1.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-top__actions { display: flex; gap: 8px; }

.pc-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--pc-line);
    border-radius: 12px;
    background: var(--pc-surface);
    color: var(--pc-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 1.05rem;
}

.pc-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--pc-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.pc-main {
    width: min(720px, calc(100% - 24px));
    margin: 0 auto;
    padding: 16px 0 24px;
}

.pc-main--login {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.pc-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--pc-surface);
    border-top: 1px solid var(--pc-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pc-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 2px 8px;
    text-decoration: none;
    color: var(--pc-muted);
    /* 5 abas: rótulo precisa caber em ~72px na tela de 360px */
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.pc-tab i { font-size: 1.24rem; }

.pc-tab.active,
.pc-tab:hover { color: var(--pc-accent); }

.pc-card {
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 16px;
}

.pc-h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.pc-h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pc-muted);
    margin: 18px 0 10px;
}

.pc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    margin: 0 0 16px;
    border-radius: 12px;
    border: 1px solid var(--pc-line);
    background: var(--pc-surface);
    color: var(--pc-ink);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--pc-shadow);
    width: auto;
}

.pc-back:hover { filter: brightness(0.98); }

.pc-chips {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.pc-chip {
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--pc-line);
    background: var(--pc-surface);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--pc-ink);
}

.pc-chip.is-on {
    background: var(--pc-accent);
    border-color: var(--pc-accent);
    color: #fff;
}

.pc-row--orc { border-left: 5px solid #64748b; }
.pc-row--ped { border-left: 5px solid var(--pc-accent); }

.pc-pill--orc { background: #e2e8f0; color: #334155; }
.pc-pill--ped { background: var(--pc-accent-soft); color: var(--pc-accent); }
.pc-pill--info { background: #e0f2fe; color: #0369a1; }

.pc-sub { color: var(--pc-muted); margin-bottom: 14px; }
.pc-sub:has(> .pc-pill[hidden]:only-child) { display: none; }

.pc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.pc-kpi {
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    color: var(--pc-ink);
    text-decoration: none;
}

.pc-kpi strong { display: block; font-size: 1.55rem; }
.pc-kpi span { font-size: 0.92rem; color: var(--pc-muted); font-weight: 600; }

.pc-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    margin-bottom: 10px;
    text-decoration: none;
}

.pc-alert--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--pc-danger);
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: var(--pc-radius-sm);
    padding: 14px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background: var(--pc-accent);
    color: #fff;
}

.pc-btn:hover { filter: brightness(1.05); }
.pc-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pc-btn--ghost {
    background: #f8fafc;
    color: var(--pc-ink);
    border: 1px solid var(--pc-line);
}

.pc-btn--danger { background: var(--pc-danger); }

.pc-list { display: flex; flex-direction: column; gap: 10px; }

.pc-row {
    display: block;
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--pc-shadow);
}

.pc-row__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.pc-row__id { font-weight: 800; }
.pc-row__meta { color: var(--pc-muted); font-size: 1rem; margin-top: 4px; }
.pc-row__val { font-weight: 800; }

.pc-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

.pc-pill--ok { background: #dcfce7; color: var(--pc-ok); }
.pc-pill--warn { background: #fef3c7; color: #b45309; }
.pc-pill--off { background: #fee2e2; color: var(--pc-danger); }

.pc-state {
    text-align: center;
    padding: 40px 12px;
    color: var(--pc-muted);
}

.pc-state i { font-size: 1.8rem; opacity: 0.45; margin-bottom: 8px; }

.pc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pc-prod {
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.pc-prod__media {
    aspect-ratio: 1;
    background: #dbe4ef;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.pc-prod__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-prod__body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-prod__title {
    font-weight: 700;
    font-size: 1.08rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-prod__price { font-weight: 800; font-size: 1.28rem; margin-top: auto; }

.pc-group {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pc-muted);
    margin: 18px 0 10px;
}

.pc-group:first-child { margin-top: 4px; }

#pcProdGrid .pc-grid { margin-bottom: 6px; }

.pc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 12px;
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-sm);
    margin-bottom: 12px;
}

.pc-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    min-width: 0;
}

.pc-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-sm);
    padding: 12px 14px;
    font: inherit;
}

.pc-input:focus {
    outline: none;
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 3px var(--pc-accent-soft);
}

.pc-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 16px;
    padding: 28px 22px 20px;
    box-shadow: var(--pc-shadow);
}

.pc-login-card h1 {
    font-size: 1.55rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-login-card .pc-sub { margin-bottom: 16px; }

.pc-login-card label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pc-login-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: var(--pc-danger);
    font-size: 0.95rem;
    border: 1px solid #fecaca;
}

.pc-hint { margin-top: 14px; font-size: 0.95rem; color: #64748b; }

.pc-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--pc-line);
}

.pc-item:last-child { border-bottom: none; }

.pc-item img, .pc-item__ph {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #dbe4ef;
    display: grid;
    place-items: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.pc-item__grow { flex: 1; min-width: 0; }
.pc-qty {
    width: 72px;
    min-height: 46px;
    text-align: center;
}

.pc-totais { margin-top: 12px; }
.pc-totais div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.pc-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--pc-tab-h) + env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 180;
    min-height: 52px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--pc-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
    display: none;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pc-body.has-cart .pc-fab { display: inline-flex; }
.pc-body.has-buybar { padding-bottom: calc(var(--pc-tab-h) + 76px + env(safe-area-inset-bottom, 0px)); }
.pc-body.has-buybar .pc-fab {
    bottom: calc(var(--pc-tab-h) + 76px + env(safe-area-inset-bottom, 0px) + 12px);
}

.pc-store-sticky {
    position: sticky;
    top: var(--pc-top-safe);
    z-index: 160;
    background: color-mix(in srgb, var(--pc-bg) 94%, #fff);
    margin: 0 -4px 12px;
    padding: 4px 4px 10px;
}

.pc-store-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-sm);
}
.pc-store-search:focus-within {
    background: #fff;
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 3px var(--pc-accent-soft);
}
.pc-store-search > i { color: var(--pc-muted); flex-shrink: 0; }
.pc-store-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: var(--pc-ink);
    padding: 10px 0;
    -webkit-appearance: none;
    appearance: none;
}
.pc-store-search input::-webkit-search-decoration,
.pc-store-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.pc-store-search__clear {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--pc-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pc-store-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 2px 4px;
    scrollbar-width: none;
}
.pc-store-chips[hidden] { display: none !important; }
.pc-store-chips::-webkit-scrollbar { display: none; }
.pc-store-chips .pc-chip { flex: 0 0 auto; white-space: nowrap; }

.pc-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 2px 0;
}
.pc-store-count {
    margin: 0;
    color: var(--pc-muted);
    font-weight: 700;
    font-size: 0.92rem;
}
.pc-store-sort { position: relative; }
.pc-store-sort select {
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid var(--pc-line);
    background: var(--pc-surface);
    border-radius: 999px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--pc-ink);
    max-width: 46vw;
    -webkit-appearance: none;
    appearance: none;
}
.pc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.pc-store-sentinel {
    text-align: center;
    color: var(--pc-muted);
    padding: 16px 0 8px;
}
.pc-store-more { text-align: center; margin-top: 14px; }
.pc-store-more .pc-btn { width: auto; min-width: 220px; margin: 0 auto; }

.pc-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 640px) {
    .pc-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pc-store-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
@media (min-width: 640px) {
    .pc-store-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pc-store-cat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 128px;
    padding: 14px;
    border: 1px solid var(--pc-line);
    border-radius: 16px;
    background: var(--pc-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--pc-shadow);
}
.pc-store-cat.is-on {
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 2px var(--pc-accent-soft);
}
.pc-store-cat__icon,
.pc-store-cat__img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--pc-accent-soft);
    color: var(--pc-accent);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.pc-store-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pc-store-cat__txt { min-width: 0; width: 100%; margin-top: auto; }
.pc-store-cat__name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
}
.pc-store-cat__count {
    display: block;
    color: var(--pc-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 4px;
}
.pc-store-aisle { margin: 0 0 22px; }
.pc-store-aisle__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}
.pc-store-aisle__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
}
.pc-store-aisle__more {
    border: none;
    background: none;
    color: var(--pc-accent);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
}
.pc-store-card {
    position: relative;
    background: var(--pc-surface);
    border: 1px solid var(--pc-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pc-store-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.pc-store-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #dbe4ef;
    overflow: hidden;
}
.pc-store-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #dbe4ef;
}
.pc-store-card__ph {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 1.6rem;
}
.pc-store-card__media .pc-store-card__ph {
    position: absolute;
    inset: 0;
    min-height: 0;
}
.pc-store-card__body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.pc-store-card__brand {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-store-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.pc-store-card__price {
    margin-top: auto;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--pc-accent);
    letter-spacing: -0.03em;
}
.pc-store-card__add {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--pc-accent);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
    z-index: 2;
}
.pc-store-card__add:hover { filter: brightness(1.08); }
.pc-store-card.is-skel {
    pointer-events: none;
    min-height: 240px;
    background: linear-gradient(90deg, #e8eef5 25%, #f8fafc 50%, #e8eef5 75%);
    background-size: 200% 100%;
    animation: pcSkel 1.2s infinite;
}
@keyframes pcSkel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.pc-pdp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pc-surface) 88%, transparent);
    color: var(--pc-ink);
    cursor: pointer;
    box-shadow: var(--pc-shadow);
}
.pc-pdp-nav--prev { left: 8px; }
.pc-pdp-nav--next { right: 8px; }
.pc-pdp-brand {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pc-muted);
}
.pc-desc img { max-width: 100%; height: auto; }
.pc-carac__html { list-style: none; margin-left: -18px; }

.pc-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    background: #f8fafc;
}
.pc-thumbs img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
}
.pc-thumbs img.is-on { border-color: var(--pc-accent); }

.pc-carac { margin: 0; padding-left: 18px; }
.pc-carac li { margin: 6px 0; }
.pc-spec { width: 100%; border-collapse: collapse; }
.pc-spec th, .pc-spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--pc-line); vertical-align: top; }
.pc-spec th { width: 42%; color: var(--pc-muted); font-weight: 700; }
.pc-desc { line-height: 1.5; }

.pc-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--pc-tab-h) + env(safe-area-inset-bottom, 0px));
    z-index: 170;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--pc-surface) 94%, transparent);
    border-top: 1px solid var(--pc-line);
    backdrop-filter: blur(10px);
}
.pc-buybar .pc-btn { margin: 0 auto; max-width: 720px; display: flex; }

.pc-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.pc-modal[hidden] { display: none; }
.pc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.pc-modal__box {
    position: relative;
    width: min(440px, 100%);
    background: var(--pc-surface);
    border-radius: 18px 18px 12px 12px;
    padding: 20px 18px 16px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.2);
}
.pc-install-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pc-install-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 1.05rem;
    line-height: 1.4;
}
.pc-install-num {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pc-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}
@media (min-width: 640px) {
    .pc-modal { align-items: center; }
    .pc-modal__box { border-radius: 16px; }
}

@media (min-width: 640px) {
    .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
