/* Mobile-first presentation layer. The original sidebar remains active on desktop. */
.mobile-store-header,
.mobile-navigation,
.mobile-app-nav,
.home-extra-category-tabs {
  display: none;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background: #faf8f4;
  }

  .mobile-store-header *,
  .mobile-navigation *,
  .experiment-page * {
    box-sizing: border-box;
  }

  .experiment-sidebar {
    display: none !important;
  }

  .mobile-store-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: block;
    width: 100%;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid #eee6db;
    background: rgba(255, 253, 250, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-store-header-inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    width: min(100%, 1180px);
    min-height: 52px;
    margin: 0 auto;
  }

  .mobile-header-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #eee6db;
    border-radius: 14px;
    background: #fffdfa;
    color: #842f28;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-header-button svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-header-button:focus-visible,
  .mobile-nav-link:focus-visible,
  .mobile-drawer-whatsapp:focus-visible {
    outline: 3px solid rgba(126, 48, 41, .28);
    outline-offset: 2px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: #511d32;
    text-decoration: none;
  }

  .mobile-logo-crop {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: #f6e9ca;
  }

  .mobile-logo-crop img {
    display: block;
    width: auto;
    max-width: none;
    height: 48px;
    margin: -1px 0 0;
    object-fit: cover;
  }

  .mobile-brand-name {
    overflow: hidden;
    color: #511d32;
    font-size: clamp(15px, 4.4vw, 19px);
    font-weight: 800;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cart-count,
  .mobile-navigation-count {
    display: grid;
    position: absolute;
    top: -4px;
    right: -4px;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 2px solid #fffdfa;
    border-radius: 999px;
    background: #842f28;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-cart-count[hidden],
  .mobile-navigation-count[hidden] {
    display: none !important;
  }

  .mobile-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    box-sizing: border-box;
    width: min(88vw, 360px);
    max-width: calc(100vw - 32px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 20px 20px 0;
    background: #fffdfa;
    color: #302922;
    box-shadow: 10px 0 38px rgba(42, 28, 22, .18);
  }

  .mobile-navigation[open] {
    display: block;
    animation: mobile-menu-enter .18s ease-out both;
  }

  .mobile-navigation::backdrop {
    background: rgba(31, 23, 20, .38);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-navigation-shell {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));
  }

  .mobile-navigation-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 16px;
    border-bottom: 1px solid #eee6db;
  }

  .mobile-navigation-kicker {
    margin: 0 0 3px;
    color: #842f28;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-navigation-header h2 {
    margin: 0;
    color: #302922;
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .mobile-menu-close {
    flex: 0 0 44px;
  }

  .mobile-navigation-links {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 2px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .mobile-nav-link {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #eee6db;
    border-radius: 13px;
    background: #fffdfa;
    color: #5c5147;
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-link.is-active {
    border-color: #842f28;
    background: #842f28;
    color: #fff;
  }

  .mobile-nav-group > .mobile-nav-summary.is-active {
    border-color: #842f28;
    background: #842f28;
    color: #fff;
  }

  .mobile-nav-icon {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    color: currentColor;
  }

  .mobile-nav-icon svg,
  .mobile-nav-chevron {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-group {
    min-width: 0;
    border: 1px solid #eee6db;
    border-radius: 14px;
    background: #fffdfa;
  }

  .mobile-nav-group > .mobile-nav-summary {
    justify-content: flex-start;
    border: 0;
    background: transparent;
    list-style: none;
  }

  .mobile-nav-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-summary > span:nth-child(2) {
    flex: 1 1 auto;
  }

  .mobile-nav-chevron {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    transition: transform .16s ease;
  }

  .mobile-nav-group[open] .mobile-nav-chevron {
    transform: rotate(180deg);
  }

.mobile-basket-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 0 9px 9px;
  }

  .mobile-nav-link.mobile-basket-size {
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
    font-size: .86rem;
    text-align: center;
  }

  .mobile-nav-offers {
    border-color: #842f28;
    background: #842f28;
    color: #fff;
  }

  .mobile-navigation-checkout {
    min-height: 50px;
    border-color: #842f28;
    background: #fbf5ef;
    color: #842f28;
  }

  .mobile-navigation-count {
    position: static;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    border: 0;
    background: #842f28;
  }

  .mobile-drawer-whatsapp {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 9px 13px;
    border-radius: 13px;
    background: #11834b;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-drawer-whatsapp svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-drawer-whatsapp small {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-navigation-fallback::before {
    position: fixed;
    z-index: 99;
    inset: 0;
    background: rgba(31, 23, 20, .38);
    content: "";
  }

  .mobile-navigation[data-fallback-open="true"] {
    display: block;
    z-index: 100;
  }

  .experiment-page {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
  }

  .experiment-page main {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 0 calc(26px + env(safe-area-inset-bottom));
  }

  .experiment-page .welcome {
    padding: 8px 2px 18px;
  }

  .experiment-page .welcome h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .experiment-page #catalog,
  .experiment-page #ofertas,
  .experiment-page #home-extras,
  .experiment-page .home-extra-category,
  .experiment-page [data-home-extra-section] {
    scroll-margin-top: calc(76px + env(safe-area-inset-top));
  }

  .experiment-page #basket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .experiment-page .basket-card {
    display: grid;
    grid-template-columns: clamp(112px, 38vw, 152px) minmax(0, 1fr);
    align-items: stretch;
    min-width: 0;
    min-height: 148px;
  }

  .experiment-page .basket-photo {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 148px;
    aspect-ratio: auto;
    object-fit: contain;
    background: #f4eee4;
  }

  .experiment-page .basket-body {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 12px 12px 0;
  }

  .experiment-page .basket-title {
    min-width: 0;
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .experiment-page .basket-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
  }

  .experiment-page .card-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: .9rem;
  }

  .experiment-page .home-extra-grid,
  .experiment-page .public-offers-grid,
  .experiment-page .extra-product-list,
  .experiment-page .product-option-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    min-width: 0;
  }

  .experiment-page .product-choice {
    display: grid;
    grid-template-columns: clamp(96px, 27vw, 124px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 126px;
    padding: 10px;
    overflow: hidden;
  }

  .experiment-page .product-choice img {
    display: block;
    width: clamp(96px, 27vw, 124px);
    height: clamp(96px, 27vw, 124px);
    max-width: 100%;
    object-fit: contain;
    background: #f7f2eb;
  }

  .experiment-page .product-choice-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }

  .experiment-page .product-choice-copy strong {
    display: block;
    min-width: 0;
    font-size: clamp(.92rem, 3.8vw, 1.05rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .experiment-page .product-choice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .experiment-page .product-choice-price {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(.88rem, 3.8vw, 1rem) !important;
    font-weight: 800;
    white-space: nowrap;
  }

  .experiment-page .product-option-stepper {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .experiment-page .option-quantity-button {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 11px;
  }

  .experiment-page .product-option-quantity {
    min-width: 20px;
    font-size: .95rem;
  }

  .experiment-page .product-choice-offer {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .experiment-page .product-search,
  .experiment-page .product-search-control,
  .experiment-page .product-search-results,
  .experiment-page .home-extra-category,
  .experiment-page .extra-category,
  .experiment-page .public-offers {
    width: 100%;
    min-width: 0;
  }

  .experiment-page .product-search-control input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .experiment-page .home-extra-category-heading h3,
  .experiment-page .public-offers-heading h2 {
    overflow-wrap: anywhere;
  }

  .experiment-page .basket-detail-view {
    gap: 12px;
    width: 100%;
    padding: 0 0 10px;
  }

  body.basket-detail-open .experiment-page main {
    width: calc(100% - 32px);
    max-width: 1180px;
    padding-top: 12px;
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .experiment-page .basket-detail-header {
    gap: 8px;
    padding: 0 2px 12px;
  }

  .experiment-page .basket-back-link {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    font-size: .9rem;
  }

  .experiment-page .basket-detail-heading h2 {
    font-size: clamp(1.65rem, 7vw, 2rem);
    overflow-wrap: anywhere;
  }

  .experiment-page #detail-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 15px;
    overflow: visible;
  }

  .experiment-page .product-list,
  .experiment-page .product-row,
  .experiment-page .product-row-main {
    min-width: 0;
    width: 100%;
  }

  .experiment-page .product-row {
    padding: 7px 0 12px;
  }

  .experiment-page .product-row + .product-row {
    padding-top: 12px;
  }

  .experiment-page .product-name {
    max-width: 100%;
    font-size: clamp(1.15rem, 5vw, 1.38rem);
    overflow-wrap: anywhere;
  }

  .experiment-page .variation-toggle {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
  }

  .experiment-page .basket-detail-actions {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #eee6db;
    background: rgba(255, 253, 250, .98);
    box-shadow: 0 -8px 20px rgba(48, 41, 35, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .experiment-page .basket-detail-actions .total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    font-size: .98rem;
  }

  .experiment-page .basket-detail-actions .total-line strong {
    flex: 0 0 auto;
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    white-space: nowrap;
  }

  .experiment-page .basket-detail-actions .button-wide {
    width: 100%;
    min-height: 50px;
  }

  .experiment-page #detail-content {
    padding-bottom: 18px;
  }

  .experiment-page .home-extra-summary {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 12px 0;
  }

  .experiment-page .home-extra-summary-copy {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .experiment-page .home-extra-summary .button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .experiment-page .product-choice {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  .experiment-page .product-choice img {
    width: 90px;
    height: 90px;
  }

  .experiment-page .product-choice-meta {
    display: grid;
    justify-items: start;
    gap: 7px;
  }

  .experiment-page .option-quantity-button {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .experiment-page .product-choice-price {
    white-space: normal;
  }

  .experiment-page .basket-card {
    grid-template-columns: clamp(104px, 36vw, 140px) minmax(0, 1fr);
  }

  .experiment-page .basket-photo {
    min-height: 140px;
  }

  .experiment-page .basket-body {
    padding-right: 10px;
  }

  .mobile-navigation .mobile-drawer-whatsapp small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navigation[open] {
    animation: none;
  }

  .mobile-nav-chevron {
    transition: none;
  }
}

@keyframes mobile-menu-enter {
  from { transform: translateX(-12px); opacity: .96; }
  to { transform: translateX(0); opacity: 1; }
}

/* App bar fixa, rotas mobile e cards horizontais */
@media (max-width:820px) {
 :root{--mobile-app-nav-height:70px}
 .experiment-page main{display:flex;flex-direction:column;width:calc(100% - 16px);padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 body[data-mobile-page="home"] .experiment-page main>:not(#inicio):not(#catalog):not(#order-receipt),
 body[data-mobile-page="detail"] .experiment-page main>:not(#detail-sheet):not(#order-receipt),
 body[data-mobile-page="builder"] .experiment-page main>:not(#home-extras):not(#home-extra-category-tabs):not(#home-extra-popular-panel):not(#ofertas):not(#home-extra-categories-panel):not(#home-extra-summary):not(#order-receipt),
 body[data-mobile-page="offers"] .experiment-page main>:not(#home-extra-category-tabs):not(#ofertas):not(#order-receipt){display:none!important}
 .experiment-page main>#order-receipt:not([hidden]){display:block;order:-1}
 body[data-mobile-page="builder"] .experiment-page main{padding-bottom:calc(218px + env(safe-area-inset-bottom))}
 body[data-mobile-page="detail"] .experiment-page main,body.basket-detail-open .experiment-page main{padding-bottom:calc(220px + env(safe-area-inset-bottom))}
 .experiment-page .basket-card{grid-template-columns:clamp(126px,41vw,168px) minmax(0,1fr);min-height:162px;border-radius:16px;background:#fff;border-color:#eee5da;box-shadow:0 3px 12px rgba(58,40,22,.06)}
 .experiment-page .basket-photo{min-height:162px;aspect-ratio:1/1;object-fit:contain;background:#f7f2eb}
 .experiment-page .basket-body{align-content:center;gap:8px;padding:12px 12px 12px 0}
 .experiment-page .home-extras{order:0;width:100%;padding-top:10px}
 .experiment-page .home-extra-category-tabs{display:flex;gap:8px;width:100%;margin:14px 0 5px;padding:2px 1px 8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .experiment-page .home-extra-category-tabs::-webkit-scrollbar{display:none}
 .experiment-page .home-extra-category-tab{display:inline-flex;flex:0 0 auto;align-items:center;min-height:42px;padding:0 14px;border:1px solid #e4d0bb;border-radius:13px;background:#fffaf4;color:var(--brand-dark);font-size:.9rem;text-decoration:none;white-space:nowrap}
 .experiment-page .home-extra-category-tab.is-active{background:var(--brand);color:#fff}
 .experiment-page #home-extra-popular-panel{order:1}.experiment-page #ofertas{order:2}.experiment-page #home-extra-categories-panel{order:3}.experiment-page #home-extra-summary{order:4}
 .experiment-page .home-extra-category-group{display:grid;gap:12px;width:100%;margin-top:8px}
 .experiment-page .home-extra-category,.experiment-page .public-offers{width:100%;margin:0;padding:14px 0;border-bottom:1px solid #eadfd2}
 .experiment-page .home-extra-grid,.experiment-page .public-offers-grid{gap:12px}
 .experiment-page .product-choice{grid-template-columns:clamp(118px,36vw,150px) minmax(0,1fr);gap:10px;min-height:148px;padding:10px;overflow:visible;border:1px solid #eee5da;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(58,40,22,.055)}
 .experiment-page .product-choice img{width:100%;height:auto;aspect-ratio:1/1;border-radius:12px;object-fit:contain;background:#f7f2eb}
 .experiment-page .product-choice-copy strong{font-size:clamp(.95rem,4vw,1.12rem);line-height:1.25}
 .experiment-page .product-choice-price{color:var(--brand);font-size:clamp(.95rem,4vw,1.12rem)!important;font-weight:850}
 .experiment-page .option-quantity-button{flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px}
 .experiment-page #detail-content{padding:8px 8px 18px}
 .experiment-page .basket-detail-actions{bottom:calc(var(--mobile-app-nav-height) + env(safe-area-inset-bottom));padding-bottom:12px}
 body[data-mobile-page="builder"] .experiment-page .home-extra-summary:not([hidden]){position:fixed;z-index:36;right:10px;bottom:calc(var(--mobile-app-nav-height) + env(safe-area-inset-bottom));left:10px;display:grid;gap:10px;box-sizing:border-box;width:auto;margin:0 auto;padding:12px;border:1px solid #e9ddd0;border-radius:16px;background:rgba(255,253,250,.98);box-shadow:0 -4px 18px rgba(48,41,35,.1);backdrop-filter:blur(10px)}
 .mobile-app-nav{position:fixed;z-index:35;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:var(--mobile-app-nav-height);box-sizing:border-box;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #e9ddd0;background:rgba(255,253,250,.98);box-shadow:0 -5px 18px rgba(48,41,35,.09);backdrop-filter:blur(10px)}
 .mobile-app-nav-link{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:2px 3px;border-radius:12px;color:#756a5f;font-size:clamp(.56rem,2.5vw,.7rem);font-weight:800;line-height:1.15;text-align:center;text-decoration:none}
 .mobile-app-nav-link svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mobile-app-nav-link.is-active{background:#f6eee5;color:var(--brand)}.mobile-app-nav-whatsapp{color:#198a50}
}
@media (max-width:390px){
 .experiment-page .basket-card{grid-template-columns:clamp(118px,40vw,148px) minmax(0,1fr)}
 .experiment-page .basket-photo{min-height:148px}
 .experiment-page .product-choice{grid-template-columns:clamp(112px,35vw,136px) minmax(0,1fr);gap:8px;min-height:138px;padding:8px}
 .experiment-page .product-choice img{width:100%;height:auto}
 .experiment-page .product-choice-meta{display:flex;flex-wrap:wrap}.experiment-page .product-choice-price{white-space:nowrap}
 .mobile-app-nav-link{font-size:.56rem}
 .mobile-app-nav-checkout > span:not(.mobile-app-nav-count){font-size:.55rem}
}

/* Ajustes de respiro, navegação fixa e sacola inferior no mobile */
@media (max-width: 820px) {
  :root { --mobile-app-nav-height: 76px; }
  .experiment-page .basket-card { column-gap: 10px; }
  .experiment-page .basket-body { padding: 12px; }
  .experiment-page .basket-title { line-height: 1.25; overflow-wrap: anywhere; }
  .experiment-page .card-button {
    width: min(100%, 158px);
    max-width: 158px;
    justify-self: start;
    padding-inline: 10px;
  }

  #home-extra-category-tabs.home-extra-category-tabs {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top));
    z-index: 44;
    order: 0;
    margin: 0 0 10px;
    padding: 8px 0 10px;
    border-bottom: 1px solid #e9ddd0;
    background: rgba(250, 248, 244, .98);
    box-shadow: 0 5px 12px rgba(48, 41, 35, .08);
  }

  body[data-mobile-page="builder"] #home-extra-popular-panel,
  body[data-mobile-page="builder"] #ofertas,
  body[data-mobile-page="builder"] #home-extra-categories-panel,
  body[data-mobile-page="offers"] #ofertas {
    scroll-margin-top: calc(132px + env(safe-area-inset-top));
  }

  .experiment-page .product-choice {
    grid-template-columns: clamp(112px, 33vw, 140px) minmax(0, 1fr);
    gap: 12px;
    min-height: 140px;
    padding: 10px;
  }
  .experiment-page .product-choice img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .experiment-page .product-choice-copy { gap: 10px; }
  .experiment-page .product-choice-copy strong { line-height: 1.3; }
  .experiment-page .product-choice-meta { gap: 8px; }

  .experiment-page .home-extra-more,
  .experiment-page .public-offers-more,
  .experiment-page .product-search-more {
    display: block;
    width: fit-content;
    max-width: min(100%, 210px);
    min-height: 44px;
    margin: 12px auto 4px;
    padding-inline: 18px;
  }
  .experiment-page .public-offers { padding: 16px 12px 18px; }

  .mobile-app-nav { grid-template-columns: .9fr 1.28fr .88fr .94fr; }
  .mobile-app-nav-link {
    gap: 4px;
    padding: 2px;
    font-size: clamp(.52rem, 2.2vw, .66rem);
  }
  .mobile-app-nav-link span:not(.mobile-app-nav-count) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .mobile-app-nav-checkout {
    position: relative;
    justify-self: center;
    align-self: center;
    width: min(100%, 74px);
    min-height: 58px;
    border: 0;
    border-radius: 15px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 11px rgba(126, 48, 41, .24);
    font: inherit;
    cursor: pointer;
  }
  .mobile-app-nav-checkout svg { width: 25px; height: 25px; color: inherit; }
  .mobile-app-nav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 4px;
    border: 2px solid #fffdfa;
    border-radius: 999px;
    background: #511d32;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-app-nav-checkout > span:not(.mobile-app-nav-count) { font-size: .6rem; line-height: 1; letter-spacing: .02em; }
  .mobile-app-nav-count[hidden] { display: none !important; }
}

@media (max-width: 390px) {
  .experiment-page .product-choice {
    grid-template-columns: clamp(108px, 32vw, 128px) minmax(0, 1fr);
    gap: 10px;
  }
  .mobile-app-nav { grid-template-columns: .88fr 1.25fr .9fr .92fr; }
}

/* Maior legibilidade no botão de opções dos produtos das cestas */
.experiment-page .product-variations-toggle {
  font-size: .92rem;
  font-weight: 800;
}

/* Nomes dos produtos no checkout: legíveis e limitados a quatro linhas */
.order-review-item-copy strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 1.05rem;
  line-height: 1.25;
}
