/* SDFood — primeira etapa desktop: somente o header, reconstruído do zero. */
@media (min-width: 769px) {
  :root { --head-purple:#000000; --head-text:#202124; --head-muted:#777; --head-border:#e4e4e4; --head-search:#f7f7f7; }

  /* O app original alterna display inline no header durante autenticação e
     carregamento. Para visitantes o sino permanece oculto. */
  html body.sd-desktop:not(.sd-logged) .topbar-right #notificationBtn {
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
  html body .topbar-right #addressBtn {
    display:flex !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  html, body { min-width:769px; margin:0; background:#fff; }
  body.sd-desktop > *:not(#app):not(#overlay):not(#sdProductSheet):not(#sdDesktopSiteFooter):not(#sdDesktopFooterDocumentOverlay):not(#toast) { display:none; }
  body.sd-desktop #main,
  body.sd-desktop .floating-cart-btn,
  body.sd-desktop .bottom-nav,
  body.sd-desktop #overlay.hidden,
  body.sd-desktop #sdBootLoading,
  body.sd-desktop #sdfood-intro-lottie-screen { display:none; }

  body.sd-desktop .topbar {
    display:block; width:100%; height:68px; position:sticky; top:0; z-index:1000;
    background:#fff;
    border-top:1px solid rgba(255,255,255,.66);
    border-bottom:1px solid rgba(210,210,210,.48);
  }
  body.sd-desktop .topbar-inner {
    display:flex; align-items:center; width:100%; max-width:1380px; height:100%; margin:0 auto; padding:0 17px; box-sizing:border-box;
  }
  body.sd-desktop .topbar-left { display:flex; align-items:center; height:100%; min-width:0; }
  body.sd-desktop .topbar-left .brand {
    display:flex; align-items:center; gap:7px; flex:0 0 auto; width:auto; height:38px; margin:0; padding:0;
    border:0; background:transparent; color:var(--head-purple); cursor:pointer;
  }
  body.sd-desktop .topbar-left .brand img { display:block; width:60px; height:60px; object-fit:contain; }
  body.sd-desktop .topbar-left .brand::after {
    content:none; display:none;
  }
  body.sd-desktop .topbar-left .nav { display:flex !important; align-items:center; gap:23px; height:100% !important; min-height:34px !important; margin-left:36px; visibility:visible !important; opacity:1 !important; }
  body.sd-desktop .topbar-left .nav button {
    position:relative; display:inline-flex !important; align-items:center !important; height:34px !important; min-height:34px !important; width:auto !important; padding:0; border:0; background:transparent; color:#202020;
    font:600 14px/1 Inter,sans-serif; white-space:nowrap; cursor:pointer;
  }
  body.sd-desktop .topbar-left .nav button::after { content:""; position:absolute; right:0; bottom:0; left:0; height:2px; border-radius:2px; background:var(--head-purple); opacity:0; }
  body.sd-desktop .topbar-left .nav button:hover,
  body.sd-desktop .topbar-left .nav button.is-active { color:var(--head-purple); }
  body.sd-desktop .topbar-left .nav button.is-active::after { opacity:1; background:var(--head-purple); }

  body.sd-desktop .topbar-inner > .sd-desktop-header-search {
    display:flex; align-items:center; flex:0 1 438px; width:438px; height:38px; margin-left:auto; margin-right:auto;
    padding:0 13px; border:1px solid #d9d9d9; border-radius:13px; background:var(--head-search); box-sizing:border-box;
  }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search:focus-within { background:#fff; border-color:#bdbdbd; box-shadow:0 0 0 3px rgba(0, 0, 0, .10); }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search .sd-home-search-icon { display:grid; place-items:center; width:19px; height:19px; flex:0 0 19px; color:#697078; }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search .sd-home-search-icon svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:2.2; }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search input { width:100%; height:100%; padding:0 10px; border:0; outline:0; background:transparent; color:#222; font:400 14px/1 Inter,sans-serif; }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search input::placeholder { color:#858585; }
  body.sd-desktop .topbar-inner > .sd-desktop-header-search .search-clear { display:none; }

  body.sd-desktop .topbar-right { display:flex; align-items:center; justify-content:flex-end; flex:0 0 auto; gap:18px; min-width:230px; height:100%; }
  body.sd-desktop .topbar-right .topbar-mascot,
  body.sd-desktop .topbar-right .sdh-shop-header,
  body.sd-desktop .topbar-right .sdh-auth-home,
  body.sd-desktop .topbar-right #profileBtn,
  body.sd-desktop .topbar-right .cart-cluster,
  body.sd-desktop .topbar-right #adminCouponsBtn,
  body.sd-desktop .topbar-right .sd-desktop-username { display:none; }
  body.sd-desktop .topbar-right #addressBtn {
    display:flex; align-items:center; gap:7px; min-height:38px; padding:0; border:0; background:transparent;
    color:#202020; font:600 14px/1 Inter,sans-serif; white-space:nowrap; cursor:pointer;
  }
  body.sd-desktop .topbar-right #addressBtn .address-default-icon { flex:0 0 24px; width:24px; height:24px; color:var(--head-purple); fill:var(--head-purple); stroke:#fff; stroke-width:2.5; }
  body.sd-desktop .topbar-right #addressBtn .sdfood-map-lottie { display:none; }
  body.sd-desktop .topbar-right #addressBtn #addressLabel { max-width:142px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.sd-desktop .topbar-right #addressBtn #addressLabel::after { content:none; }
  body.sd-desktop .topbar-right > .sdh-login-btn {
    display:flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:0 14px;
    border:0; border-radius:8px; background:transparent; color:#252525; font:600 14px/1 Inter,sans-serif; cursor:pointer;
  }
  body.sd-desktop .topbar-right > .sdh-login-btn:hover { background:#f2f2f2; color:var(--head-purple); }
  body.sd-desktop .topbar-right > .sdh-login-btn svg,
  body.sd-desktop .topbar-right > .sdh-login-btn img,
  body.sd-desktop .topbar-right > .sdh-login-btn .sdh-login-icon { width:18px; height:18px; object-fit:contain; stroke-width:1.8; }

  /* No desktop, visitante e usuário autenticado ocupam o mesmo slot.
     O botão Entrar não pode coexistir com o avatar do perfil. */
  body.sd-desktop.sd-logged .topbar-right > .sdh-login-btn { display:none !important; }
  body.sd-desktop:not(.sd-logged) .topbar-right > .sdh-login-btn { display:flex !important; }

  /* O botão é vazio para visitante, mas reaparece com o avatar autenticado. */
  body.sd-desktop:not(.sd-logged) .topbar-right #profileBtn { display:none !important; }
  body.sd-desktop.sd-logged .topbar-right #profileBtn,
  body.sd-desktop .topbar-right #profileBtn.profile-ready {
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:40px !important; min-width:40px !important; height:40px !important; min-height:40px !important;
    padding:0 !important; border:0 !important; border-radius:50% !important;
    background:transparent !important; visibility:visible !important; opacity:1 !important;
  }
  body.sd-desktop .topbar-right #profileBtn .topbar-avatar,
  body.sd-desktop .topbar-right #profileBtn .sdfood-profile-asset {
    display:block !important; width:34px !important; height:34px !important;
    min-width:34px !important; min-height:34px !important; max-width:34px !important; max-height:34px !important;
    object-fit:cover !important; border:2px solid var(--head-purple) !important; border-radius:50% !important;
    background:#efefef !important; visibility:visible !important; opacity:1 !important; animation:none !important;
  }

  @media (max-width:1000px) {
    body.sd-desktop .topbar-left .nav { margin-left:25px; gap:16px; }
    body.sd-desktop .topbar-inner > .sd-desktop-header-search { flex-basis:350px; }
    body.sd-desktop .topbar-right { gap:12px; min-width:210px; }
  }
}


/* Drawer desktop legado removido: o painel lateral agora é neutro e os cards
   internos reutilizam exclusivamente as regras visuais do perfil mobile. */

/* Perfil desktop: drawer lateral neutro e cards internos preservados. */
@media (min-width:769px) {
  html body #overlay.sd-profile-overlay,
  html body #overlay.sd-delivery-overlay {
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    max-width:none !important;
    height:100dvh !important;
    min-height:100dvh !important;
    background:transparent !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    z-index:80 !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer,
  html body #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer {
    position:absolute !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:auto !important;
    box-sizing:border-box !important;
    width:min(438px, calc(100vw - 28px)) !important;
    max-width:438px !important;
    min-width:0 !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:max(18px, env(safe-area-inset-top, 18px)) 22px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:none !important;
    animation:none !important;
    transform:none !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-screen {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-height:calc(100dvh - 34px) !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:hidden !important;
    color:var(--sd-profile-text) !important;
    font-family:"Inter",sans-serif !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-account-card {
    width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-summary {
    width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .profile-menu.sd-profile-menu {
    width:100% !important;
    max-width:none !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-menu-item {
    width:100% !important;
    max-width:none !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-logout {
    width:100% !important;
    max-width:none !important;
  }
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-profile-terms {
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* Subpáginas seguem a mesma largura interna, sem reestilizar seus cards. */
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .sd-subpage,
  html body #overlay.sd-profile-overlay > .drawer.profile-drawer .wallet-mobile {
    width:100% !important;
    max-width:none !important;
    min-height:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }
  html body #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer .sd-delivery-code-screen {
    width:100% !important;
    min-height:100% !important;
    margin:0 !important;
    padding:0 0 24px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }
  html body #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer .sd-delivery-code-head,
  html body #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer .sd-delivery-hero-card,
  html body #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer .sd-delivery-code-body {
    max-width:none !important;
  }
}

/* Header desktop: um único estado visual, sem transição entre CEP e sino. */
@media (min-width:769px) {
  html body.sd-desktop .topbar,
  html body.sd-desktop .topbar-inner,
  html body.sd-desktop .topbar-left,
  html body.sd-desktop .topbar-right {
    visibility:visible !important;
    opacity:1 !important;
  }
  html body.sd-desktop .topbar-inner,
  html body.sd-desktop .topbar-left,
  html body.sd-desktop .topbar-right {
    display:flex !important;
  }
  html body.sd-desktop .topbar .address#addressBtn {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
  }
  html body.sd-desktop:not(.sd-logged) .topbar #notificationBtn {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    flex:0 0 40px !important;
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 -10px 0 0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    color:#000000 !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
  }
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn:hover,
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn:focus-visible,
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn:active {
    background:transparent !important;
    outline:none;
  }
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn .sd-notification-lottie {
    display:none !important;
  }
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn .sd-notification-lottie svg {
    display:none !important;
  }
  html body.sd-desktop.sd-logged .topbar-right #notificationBtn .sd-desktop-notification-icon {
    display:block !important;
    width:20px !important;
    height:20px !important;
    flex:0 0 20px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
    overflow:visible !important;
  }
  html body.sd-desktop #notificationBtn #notificationBadge {
    position:absolute !important;
    top:1px !important;
    right:1px !important;
    z-index:2 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:2px !important;
    height:14px !important;
    padding:0 4px !important;
    border:2px solid #fff !important;
    border-radius:999px !important;
    background:#000000 !important;
    color:#fff !important;
    font:600 10px/1 Arial,sans-serif !important;
    font-style:normal !important;
  }
  html body.sd-desktop #notificationBtn #notificationBadge.hidden {
    display:none !important;
  }
  html body.sd-desktop.sd-logged .topbar #profileBtn {
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
  }
  html body.sd-desktop:not(.sd-logged) .topbar #profileBtn { display:none !important; }
  html body.sd-desktop:not(.sd-logged) .topbar .sdh-login-btn {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }
  html body.sd-desktop.sd-logged .topbar .sdh-login-btn { display:none !important; }
}

/* Carrinho desktop: visual próprio, usando somente o estado lógico do app. */
@media (min-width:769px) {
  html body.sd-desktop #floatingCartBtn {
    display:flex !important;
    position:fixed !important;
    right:28px !important;
    bottom:26px !important;
    z-index:70 !important;
    align-items:center !important;
    gap:0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    flex:0 0 auto !important;
    min-height:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
    transition:none !important;
  }
  html body.sd-desktop #floatingCartBtn.hidden { display:none !important; }
  html body.sd-desktop #floatingCartBtn .floating-cart-head { display:none !important; }
  html body.sd-desktop .floating-cart-avatar { width:48px !important; height:48px !important; flex:0 0 48px !important; border:1px solid #f3f4f6 !important; border-radius:14px !important; object-fit:cover !important; }
  html body.sd-desktop .floating-cart-info { min-width:0 !important; gap:3px !important; }
  html body.sd-desktop .floating-cart-store { overflow:hidden !important; color:#000000 !important; font:600 14px/1.2 Inter,sans-serif !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
  html body.sd-desktop .floating-cart-meta { color:#000000 !important; font:400 12px/1.25 Inter,sans-serif !important; }
  html body.sd-desktop .floating-cart-meta strong { color:#000000 !important; font-weight:600 !important; }
  html body.sd-desktop #floatingCartBtn .floating-cart-action { display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:8px !important; flex:0 0 auto !important; min-height:42px !important; padding:0 14px !important; border:0 !important; border-radius:12px !important; background:#000000 !important; color:#fff !important; font:600 13px/1 Inter,sans-serif !important; box-shadow:0 8px 18px rgba(0, 0, 0, .24) !important; }
  html body.sd-desktop #floatingCartBtn .floating-cart-text { display:inline !important; color:#fff !important; font:600 13px/1 Inter,sans-serif !important; }
  html body.sd-desktop #floatingCartBtn .sdfood-bag-lottie { display:none !important; width:0 !important; height:0 !important; }
  html body.sd-desktop .floating-cart-icon { width:17px !important; height:17px !important; stroke:#fff !important; fill:none !important; }
  html body.sd-desktop .floating-cart-badge { display:grid !important; place-items:center !important; width:20px !important; height:20px !important; border-radius:50% !important; background:#fff !important; color:#000000 !important; font:700 11px/1 Inter,sans-serif !important; }
  html body.sd-desktop .floating-cart-text { display:inline !important; color:#fff !important; }
}


/* Login desktop: gaveta lateral própria, independente do layout mobile. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-auth-overlay {
    display:flex !important;
    position:fixed !important;
    inset:0 !important;
    z-index:3000 !important;
    align-items:stretch !important;
    justify-content:flex-end !important;
    width:100vw !important;
    height:100vh !important;
    background:rgba(0, 0, 0, .28) !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay.hidden { display:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay > .drawer {
    display:block !important;
    position:relative !important;
    top:auto !important;
    right:auto !important;
    width:min(440px, 100vw) !important;
    min-width:440px !important;
    max-width:440px !important;
    height:100vh !important;
    min-height:100vh !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:-14px 0 38px rgba(0, 0, 0, .18) !important;
    transform:none !important;
    animation:none !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-page {
    display:block !important;
    width:100% !important;
    min-height:100vh !important;
    padding:36px 38px 32px !important;
    background:#fff !important;
    color:#000000 !important;
    font-family:Inter,sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-top-art { display:flex !important; align-items:center !important; justify-content:space-between !important; min-height:86px !important; margin:0 0 34px !important; background:#fff !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-title { color:#000000 !important; font:700 23px/1 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-form-column { display:block !important; width:100% !important; max-width:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-head { display:block !important; height:0 !important; padding:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-close { position:absolute !important; top:18px !important; right:20px !important; width:34px !important; height:34px !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-close::before { content:"×" !important; display:block !important; color:#000000 !important; font:28px/34px Inter,sans-serif !important; text-align:center !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-note { display:block !important; margin:0 0 22px !important; color:#000000 !important; font:400 14px/1.45 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay #authForm { display:grid !important; gap:15px !important; width:100% !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field { display:grid !important; gap:7px !important; width:100% !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field label { color:#000000 !important; font:600 13px/1 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field input { display:block !important; width:100% !important; height:46px !important; padding:0 13px !important; border:1px solid #d9d9d9 !important; border-radius:9px !important; background:#fff !important; color:#000000 !important; font:400 14px/1 Inter,sans-serif !important; outline:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field input:focus { border-color:#000000 !important; box-shadow:0 0 0 3px rgba(0, 0, 0, .12) !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-submit { display:block !important; width:100% !important; height:46px !important; margin-top:3px !important; border:0 !important; border-radius:9px !important; background:#000000 !important; color:#fff !important; font:700 13px/1 Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-divider { display:flex !important; align-items:center !important; gap:10px !important; color:#000000 !important; font:400 12px/1 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-divider::before, html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-divider::after { content:"" !important; flex:1 !important; height:1px !important; background:#e5e5e5 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-google { display:flex !important; align-items:center !important; justify-content:center !important; width:100% !important; height:46px !important; border:1px solid #d9d9d9 !important; border-radius:9px !important; background:#fff !important; color:#000000 !important; font:600 13px/1 Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-switch { display:block !important; margin:22px 0 0 !important; color:#000000 !important; text-align:center !important; font:400 13px/1.4 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-switch button { border:0 !important; padding:0 !important; background:transparent !important; color:#000000 !important; font:700 13px/1.4 Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-step[hidden] { display:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-step:not([hidden]) { display:grid !important; gap:15px !important; width:100% !important; min-width:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-inline-fields { display:grid !important; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) !important; gap:10px !important; width:100% !important; min-width:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-actions { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; align-items:stretch !important; gap:10px !important; width:100% !important; min-width:0 !important; margin-top:8px !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-actions > button { box-sizing:border-box !important; display:flex !important; align-items:center !important; justify-content:center !important; align-self:stretch !important; vertical-align:top !important; width:100% !important; min-width:0 !important; max-width:100% !important; height:44px !important; min-height:44px !important; margin:0 !important; padding:0 10px !important; line-height:1 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-actions .sd-auth-back { margin:0 !important; align-self:stretch !important; transform:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay #authForm .sd-signup-actions > button.primary.sd-auth-submit { height:44px !important; min-height:44px !important; margin:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-back,
  html body.sd-desktop #overlay.sd-auth-overlay .sd-location-button { box-sizing:border-box !important; width:100% !important; min-width:0 !important; min-height:44px !important; padding:0 16px !important; border-radius:9px !important; background:#fff !important; color:#000000 !important; font:600 13px/44px Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-back { border:1px solid #d9d9d9 !important; background:#fff !important; box-shadow:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-location-button { border:1px solid #d9d9d9 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-map { box-sizing:border-box !important; width:100% !important; height:150px !important; margin:0 0 12px !important; overflow:hidden !important; border:1px solid #e3e3e3 !important; border-radius:10px !important; background:#f4f4f4 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-map iframe { width:100% !important; height:100% !important; border:0 !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-captcha { width:100% !important; max-width:100% !important; overflow:hidden !important; }
}

/* Fallback para quando a rota PC for aberta diretamente em uma tela estreita. */



/* Painéis laterais desktop; perfil mantém suas regras específicas abaixo. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay,
  html body.sd-desktop #overlay.sd-delivery-overlay,
  html body.sd-desktop #overlay.sd-checkout-overlay,
  html body.sd-desktop #overlay.sd-desktop-panel:not(.hidden) {
    display:flex !important;
    position:fixed !important;
    inset:0 !important;
    z-index:2900 !important;
    align-items:stretch !important;
    justify-content:flex-end !important;
    background:rgba(0, 0, 0, .28) !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay > .drawer,
  html body.sd-desktop #overlay.sd-delivery-overlay > .drawer,
  html body.sd-desktop #overlay.sd-checkout-overlay > .drawer,
  html body.sd-desktop #overlay.sd-desktop-panel:not(.hidden) > .drawer {
    position:relative !important;
    width:min(460px,100vw) !important;
    min-width:460px !important;
    max-width:460px !important;
    height:100vh !important;
    min-height:100vh !important;
    margin:0 !important;
    padding:24px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:#faf9fc !important;
    box-shadow:-14px 0 38px rgba(0, 0, 0, .18) !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    color:#000000 !important;
    font-family:Inter,sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary,
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu.sd-profile-menu,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-logout,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-terms { width:100% !important; max-width:none !important; margin-right:0 !important; margin-left:0 !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item {
    box-sizing:border-box !important;
    border:1px solid #e3e3e3 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 4px 14px rgba(0, 0, 0, .05) !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card {
    display:flex !important; align-items:center !important; gap:12px !important; min-height:92px !important; margin:0 0 14px !important; padding:14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-user-photo { display:block !important; flex:0 0 58px !important; width:58px !important; height:58px !important; border-radius:50% !important; object-fit:cover !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-copy { display:flex !important; flex:1 1 auto !important; min-width:0 !important; flex-direction:column !important; gap:4px !important; text-align:left !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-copy strong { color:#000000 !important; font:700 15px/1.25 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-copy span,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-copy small { display:block !important; overflow:hidden !important; color:#000000 !important; font:400 12px/1.25 Inter,sans-serif !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary { display:grid !important; grid-template-columns:1fr 1fr !important; gap:12px !important; margin:0 0 14px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card { display:grid !important; grid-template-columns:36px 1fr 16px !important; align-items:center !important; min-height:78px !important; padding:12px !important; text-align:left !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-icon { display:grid !important; place-items:center !important; width:34px !important; height:34px !important; border-radius:10px !important; background:#eeeeee !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-icon img { width:22px !important; height:22px !important; object-fit:contain !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-copy { display:flex !important; min-width:0 !important; flex-direction:column !important; gap:3px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-copy span { color:#000000 !important; font:400 11px/1.2 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-copy strong { color:#000000 !important; font:700 14px/1.2 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-copy small { color:#000000 !important; font:400 11px/1.2 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-divider { display:none !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu.sd-profile-menu { display:grid !important; gap:10px !important; margin:0 0 14px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item { display:grid !important; grid-template-columns:42px minmax(0,1fr) 22px !important; align-items:center !important; min-height:72px !important; padding:12px 14px !important; text-align:left !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card:hover { border-color:#f3f4f6 !important; background:#fbfbfb !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-icon { display:grid !important; place-items:center !important; width:36px !important; height:36px !important; border-radius:10px !important; background:#eeeeee !important; color:#000000 !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-icon svg { display:block !important; width:20px !important; height:20px !important; stroke:currentColor !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu-copy { display:flex !important; min-width:0 !important; flex-direction:column !important; gap:4px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu-copy strong { color:#000000 !important; font:600 14px/1.2 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu-copy > span { overflow:hidden !important; color:#000000 !important; font:400 12px/1.2 Inter,sans-serif !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-tail { display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:5px !important; color:#000000 !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .profile-menu-arrow { font:400 24px/1 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-logout { min-height:46px !important; border:1px solid #e2e2e2 !important; border-radius:11px !important; background:#fff !important; color:#a23955 !important; font:600 13px/1 Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-terms { display:block !important; margin-top:12px !important; padding:12px !important; border:0 !important; background:transparent !important; color:#000000 !important; font:400 12px/1.3 Inter,sans-serif !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-head { display:flex !important; align-items:center !important; gap:12px !important; min-height:46px !important; margin:0 0 18px !important; border-bottom:1px solid #e3e3e3 !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-back { display:grid !important; place-items:center !important; width:34px !important; height:34px !important; border:0 !important; border-radius:9px !important; background:#eeeeee !important; color:#000000 !important; cursor:pointer !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-back svg { width:19px !important; height:19px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subhead-text { color:#000000 !important; font:700 17px/1 Inter,sans-serif !important; }
}

/* Login desktop: mesma caixa lateral e acabamento do painel de informações da loja. */
@media (min-width:769px) {
  html body.sd-desktop #overlay.sd-auth-overlay {
    display:flex !important;
    position:fixed !important;
    inset:0 !important;
    z-index:3000 !important;
    align-items:stretch !important;
    justify-content:flex-end !important;
    width:100% !important;
    height:100dvh !important;
    background:rgba(0, 0, 0, .18) !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay.hidden { display:none !important; }
  html body.sd-desktop #overlay.sd-auth-overlay > .drawer {
    display:block !important;
    position:relative !important;
    top:auto !important;
    right:auto !important;
    box-sizing:border-box !important;
    width:min(420px,100%) !important;
    min-width:0 !important;
    max-width:420px !important;
    height:100dvh !important;
    min-height:0 !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    border:0 !important;
    border-radius:18px 0 0 18px !important;
    background:#fff !important;
    box-shadow:-12px 0 34px rgba(0, 0, 0, .14) !important;
    transform:none !important;
    animation:none !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-page {
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-height:100dvh !important;
    padding:22px 24px 28px !important;
    overflow-x:hidden !important;
    background:#fff !important;
    color:#000000 !important;
    font-family:Inter,sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-top-art {
    box-sizing:border-box !important;
    min-height:72px !important;
    margin:0 0 22px !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-title { font:600 20px/1.25 Inter,sans-serif !important; }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-form-column,
  html body.sd-desktop #overlay.sd-auth-overlay #authForm,
  html body.sd-desktop #overlay.sd-auth-overlay .sd-signup-step,
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-field input {
    box-sizing:border-box !important;
    width:100% !important;
    border-radius:10px !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-submit,
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-google {
    box-sizing:border-box !important;
    width:100% !important;
    border-radius:10px !important;
  }
}

@media (min-width: 769px) {
  body.sd-desktop button:not(:disabled),
  body.sd-desktop a,
  body.sd-desktop [role="button"]:not(:disabled),
  body.sd-desktop .store-card,
  body.sd-desktop .product-card-modern,
  body.sd-desktop .sd-profile-menu-item,
  body.sd-desktop .sd-profile-summary-card,
  body.sd-desktop .sd-profile-account-card,
  body.sd-desktop .wallet-action,
  body.sd-desktop .terms-option,
  body.sd-desktop .sd-hist-card,
  body.sd-desktop .favorite-address-card,
  body.sd-desktop .store-tab-link {
    cursor: pointer !important;
  }

  body.sd-desktop .store-card:hover,
  body.sd-desktop .product-card-modern:hover,
  body.sd-desktop .wallet-action:hover,
  body.sd-desktop .terms-option:hover,
  body.sd-desktop .sd-hist-card:hover,
  body.sd-desktop .favorite-address-card:hover {
    border-color: #f3f4f6 !important;
    background: #fbfbfb !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card:hover {
    border-color: #f3f4f6 !important;
    background: #fbfbfb !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08) !important;
  }
}


/* Auth desktop: não transformar o botão Entrar em pílula nos estados interativos. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-auth-overlay:has(#authForm) .sd-auth-page[data-auth-mode="login"] #authForm > button.primary.sd-auth-submit,
  html body.sd-desktop #overlay.sd-auth-overlay:has(#authForm) .sd-auth-page[data-auth-mode="login"] #authForm > button.primary.sd-auth-submit:hover,
  html body.sd-desktop #overlay.sd-auth-overlay:has(#authForm) .sd-auth-page[data-auth-mode="login"] #authForm > button.primary.sd-auth-submit:focus,
  html body.sd-desktop #overlay.sd-auth-overlay:has(#authForm) .sd-auth-page[data-auth-mode="login"] #authForm > button.primary.sd-auth-submit:focus-visible,
  html body.sd-desktop #overlay.sd-auth-overlay:has(#authForm) .sd-auth-page[data-auth-mode="login"] #authForm > button.primary.sd-auth-submit:active {
    border-radius: 10px !important;
  }
}


/* Autenticação desktop: rolagem funcional, scrollbar visualmente invisível. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-auth-overlay,
  html body.sd-desktop #overlay.sd-auth-overlay > .drawer {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: auto !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay::-webkit-scrollbar,
  html body.sd-desktop #overlay.sd-auth-overlay > .drawer::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}


/* A página interna também rola quando a altura disponível é menor que o formulário. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-page {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-page::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}
