:root {
    --sdp-shell-bg: #f5f7fb;
    --sdp-shell-surface: #ffffff;
    --sdp-shell-ink: #172033;
    --sdp-shell-muted: #667085;
    --sdp-shell-primary: #b42318;
    --sdp-shell-border: #e4e7ec;
    --sdp-shell-width: 1440px;
}

html { box-sizing: border-box; overflow-x: hidden; }
*, *::before, *::after { box-sizing: inherit; }
body.sdp-delivery-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden !important;
    background: var(--sdp-shell-bg) !important;
    color: var(--sdp-shell-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.sdp-delivery-page > header,
body.sdp-delivery-page > footer,
body.sdp-delivery-page > .wp-site-blocks > header,
body.sdp-delivery-page > .wp-site-blocks > footer { display: none !important; }

.sdp-shell { min-height: 100vh; display: flex; flex-direction: column; width: 100%; }
.sdp-shell-skip { position: fixed; left: 12px; top: -80px; z-index: 100000; padding: 10px 14px; background: #fff; color: #111; border-radius: 8px; }
.sdp-shell-skip:focus { top: 12px; }
.sdp-shell-header { position: sticky; top: 0; z-index: 9990; width: 100%; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--sdp-shell-border); backdrop-filter: blur(12px); }
.admin-bar .sdp-shell-header { top: 32px; }
.sdp-shell-header__inner { width: min(var(--sdp-shell-width), calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sdp-shell-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sdp-shell-ink) !important; text-decoration: none !important; min-width: 0; }
.sdp-shell-brand img, .sdp-shell-brand__icon { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: #fff1f0; font-size: 25px; }
.sdp-shell-brand span:last-child { display: grid; line-height: 1.2; }
.sdp-shell-brand strong { font-size: 17px; font-weight: 800; }
.sdp-shell-brand small { color: var(--sdp-shell-muted); font-size: 12px; margin-top: 3px; }
.sdp-shell-nav { display: flex; align-items: center; gap: 8px; }
.sdp-shell-nav a { color: #344054 !important; text-decoration: none !important; font-weight: 700; font-size: 14px; padding: 11px 15px; border-radius: 10px; white-space: nowrap; }
.sdp-shell-nav a:hover, .sdp-shell-nav a.is-active { background: #fff1f0; color: var(--sdp-shell-primary) !important; }
.sdp-shell-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--sdp-shell-border); background: #fff; border-radius: 10px; padding: 10px; }
.sdp-shell-menu-button > span:not(.screen-reader-text) { display: block; height: 2px; background: #344054; margin: 4px 0; }
.sdp-shell-content { flex: 1; width: 100%; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.sdp-shell-content > * { max-width: none; }
.sdp-shell-content--checkout { padding: 38px 20px 64px !important; }
.sdp-shell-content--cliente { padding: 32px 20px 64px !important; }
.sdp-shell-content--checkout > .sdp-checkout,
.sdp-shell-content--checkout .sdp-checkout { width: min(1280px, 100%) !important; max-width: 1280px !important; margin-inline: auto !important; }
.sdp-shell-footer { width: min(var(--sdp-shell-width), calc(100% - 40px)); margin: 24px auto 0; padding: 26px 28px; border: 1px solid var(--sdp-shell-border); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 8px 26px rgba(15,23,42,.05); display: grid; grid-template-columns: minmax(180px,.8fr) minmax(260px,1.4fr) minmax(240px,1fr); align-items: center; gap: 24px; color: var(--sdp-shell-muted); font-size: 13px; }
.sdp-shell-footer div { display: grid; gap: 5px; }
.sdp-shell-footer strong { color: var(--sdp-shell-ink); font-size: 16px; }
.sdp-shell-footer__contact { justify-items: start; }
.sdp-shell-footer__contact span { display: inline-flex; align-items: center; gap: 7px; line-height: 1.5; }
.sdp-shell-footer__contact b { font-weight: 400; }
.sdp-shell-footer__legal { justify-items: end; text-align: right; }
.sdp-shell-footer__legal small { color: #98a2b3; }
.sdp-shell-footer p { margin: 0; }

/* A loja já possui cabeçalho/rodapé internos nas versões anteriores. */
.sdp-shell-content--loja .sdp-loja > .sdp-header,
.sdp-shell-content--loja .sdp-loja > .sdp-footer { display: none !important; }
.sdp-shell-content--loja .sdp-loja { margin-top: 0 !important; }

@media (max-width: 782px) {
    .admin-bar .sdp-shell-header { top: 46px; }
}
@media (max-width: 760px) {
    .sdp-shell-header__inner { width: min(100% - 24px, var(--sdp-shell-width)); min-height: 66px; }
    .sdp-shell-brand small { display: none; }
    .sdp-shell-brand img, .sdp-shell-brand__icon { width: 40px; height: 40px; border-radius: 12px; }
    .sdp-shell-menu-button { display: block; }
    .sdp-shell-nav { display: none; position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; padding: 10px; background: #fff; border: 1px solid var(--sdp-shell-border); border-radius: 0 0 14px 14px; box-shadow: 0 18px 36px rgba(16,24,40,.14); }
    .sdp-shell-nav.is-open { display: grid; }
    .sdp-shell-nav a { width: 100%; }
    .sdp-shell-content--checkout, .sdp-shell-content--cliente { padding: 22px 12px 48px !important; }
    .sdp-shell-footer { width: calc(100% - 24px); grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
    .sdp-shell-footer__legal { justify-items: start; text-align: left; }
}
