.cart-account-controls { display: contents; }
@media (max-width: 760px) {
    html { scroll-padding-top: 7rem; }
    .topbar { display: none; }
    .main-nav { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
    .main-nav-inner, .cart-page { width: calc(100% - 1.5rem); }
    .main-nav-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; min-height: 0; gap: .2rem; padding: .35rem 0; }
    .marketgo-logo { justify-self: start; min-width: 104px; height: 34px; padding: .25rem .55rem .3rem; }
    .marketgo-word { font-size: 1.15rem; }
    .marketgo-tag { font-size: .36rem; }
    .nav-actions { display: contents; }
    .cart-account-controls { display: flex; grid-column: 2; grid-row: 1; }
    .cart-account-controls .shop-action { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
    .cart-account-controls .shop-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .cart-account-controls i, .delivery-control i, .cart-summary-mini i { font-size: 1.1rem; color: #ff8a24; margin: 0; }
    .cart-summary-mini { grid-column: 3; grid-row: 1; width: auto; min-height: 44px; padding: .3rem .5rem; gap: .35rem; background: #f4fbf7; border: 1px solid #dbeee4; }
    .cart-summary-mini .cart-nav-total { display: none; }
    .cart-summary-mini .cart-nav-count { font-size: .8rem; }
    .cart-nav-count #cart-count.d-none { display: inline !important; }
    .cart-summary-mini b { color: #20864e; }
    .delivery-control { display: flex; grid-column: 1 / -1; grid-row: 2; align-items: center; min-height: 44px; padding: 0 .4rem; gap: .4rem; }
    .delivery-copy { flex: 1; min-width: 0; }
    .delivery-label { display: none; }
    .delivery-copy strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .85rem; }
    .delivery-change-btn { width: auto; min-height: 44px; margin: 0; padding: .2rem .55rem; font-size: .75rem; }
    .cart-page { padding-top: 1.25rem; }
    .cart-header { flex-direction: row; align-items: center; gap: .75rem; }
    .cart-header h1 { font-size: 1.4rem; }
    .cart-header > form { flex: 0 0 auto; width: auto; }
    .clear-cart { min-height: 44px; padding: .4rem .6rem; background: transparent; color: #e52424; font-size: .75rem; white-space: nowrap; }
    .cart-layout { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
    .cart-list { padding: 0; gap: .85rem; background: transparent; }
    .cart-item { grid-template-columns: 84px minmax(0,1fr); gap: .4rem .85rem; padding: 1rem; background: #fff; border: 1px solid #e1eee6; border-radius: 14px; }
    .cart-item-image { grid-column: 1; grid-row: 1 / 4; width: 84px; height: 100px; align-self: start; }
    .cart-item-main { display: contents; }
    .cart-item-title { grid-column: 2; grid-row: 1; font-size: .95rem; line-height: 1.35; }
    .cart-item-market { grid-column: 2; grid-row: 2; font-size: .78rem; }
    .cart-item-price { grid-column: 2; grid-row: 3; justify-items: start; text-align: left; padding: 0; white-space: normal; gap: .25rem; }
    .cart-item-price .primary-price { font-size: 1.05rem; line-height: 1.3; }
    .cart-item-price .regular-price { font-size: .8rem; }
    .cart-item-price .savings-line { font-size: .75rem; }
    .cart-item-actions { grid-column: 1 / -1; grid-row: 4; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .65rem; padding-top: .75rem; border-top: 1px solid #eef0f2; }
    .cart-qty-form { width: auto; }
    .cart-qty-control { width: 132px; grid-template-columns: 44px 44px 44px; min-height: 44px; background: #fff; }
    .cart-qty-btn { height: 44px; }
    .cart-qty-value { width: 44px; height: 44px; font-size: 16px; }
    .cart-link { min-height: 44px; padding: .4rem .6rem; border: 0; background: transparent; text-decoration: none; font-size: .8rem; }
    .cart-item-actions > a[href="#"] { display: none; }
    .cart-side { gap: .85rem; }
    .summary-panel { padding: 1rem; border: 1px solid #e0eee6; background: #eef7ef; }
    .summary-line { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: .9rem; margin: .75rem 0; }
    .summary-line > strong { text-align: right; }
    .summary-line .summary-total { font-size: 1.15rem; }
    .cart-cta { gap: .65rem; }
    .checkout-btn, .continue-btn { min-height: 48px; padding: .75rem; border-radius: 10px; font-size: .85rem; }
    .cart-empty { display: block; padding: 2rem 1.25rem; text-align: center; }
    .cart-empty .cart-item-main { display: grid; gap: 1.25rem; }
    .cart-empty .cart-item-title { grid-column: auto; grid-row: auto; }
    .cart-empty .continue-btn { width: 100%; }
    .cart-layout:has(.cart-empty) .cart-side { display: none; }
    .frequently-header { flex-direction: row; align-items: center; gap: .75rem; }
    .frequently-header h2 { font-size: 1.2rem; }
    .related-card { flex-basis: min(65vw,220px); min-height: 350px; padding: .75rem; }
    .related-image-link { height: 150px; }
    .related-title { font-size: .9rem; }
    .related-add-btn { font-size: .8rem; min-height: 44px; }
    .location-form input { min-width: 0; font-size: 16px; }
    .location-form-actions button { min-height: 44px; }
    .cart-qty-btn:focus-visible, .cart-link:focus-visible, .checkout-btn:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
}
@media (max-width: 360px) {
    .cart-account-controls .shop-action { width: 36px; }
    .main-nav-inner { column-gap: 0; }
    .cart-summary-mini { padding-inline: .35rem; }
}
