.shop-header { min-height: 4.5rem; }
.shop-site-link { font-weight: 650; }
.shop-nav { position: sticky; top: 0; z-index: 8; background: var(--paper); border-bottom: 1px solid var(--line); }
.shop-nav-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; padding-block: .4rem; }
.shop-nav a { display: flex; justify-content: center; align-items: center; min-height: 2.8rem; gap: .25rem; border-radius: .7rem; padding-inline: .35rem; font-weight: 650; text-align: center; text-decoration: none; }
.shop-nav a:hover { background: #e4f1e5; }
.shop-nav a[aria-current] { background: #cdebe0; color: #123f36; }
.shop-count { padding: 0 .3rem; border-radius: .4rem; background: var(--green); color: white; font-size: .77rem; }
.shop-main { min-height: 57vh; padding-block: 1.2rem 3.5rem; }
.shop-location { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; margin-bottom: 1.4rem; }
.shop-location label { font-weight: 750; }
.shop-location select { max-width: 100%; padding: .45rem .55rem; border: 1px solid #80978a; border-radius: .5rem; background: white; color: var(--ink); }
.shop-view h1 { margin-bottom: .8rem; font-size: clamp(2.45rem, 6vw, 4.25rem); }
.shop-view h1:focus { outline: none; }
.shop-view.is-entering { animation: shop-enter .32s cubic-bezier(.21,.65,.28,1) both; }
.shop-welcome { padding: clamp(1.4rem, 5vw, 3.5rem); border-radius: 1.35rem; background: linear-gradient(120deg,#d9ecd2,#c2e9e2); }
.shop-welcome p { margin-bottom: 1rem; }
.shop-section-title { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-top: 1.7rem; }
.shop-section-title h2, #shop-orders h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
#shop-orders { margin-top: 1.45rem; }
.shop-return { display: inline-block; margin-top: 1rem; }
#home-status:not(:empty), #favorite-status:not(:empty) { margin-top: .8rem; }
@keyframes shop-enter { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 42rem) {
  .shop-nav { position: fixed; inset: auto 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .shop-nav-inner { width: calc(100% - .5rem); gap: .1rem; padding-bottom: max(.4rem, env(safe-area-inset-bottom)); }
  .shop-nav a { font-size: clamp(.72rem, 2.9vw, .94rem); padding-inline: .1rem; }
  .shop-page { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
  .shop-page .swon-cookie { bottom: calc(4.35rem + env(safe-area-inset-bottom)); max-height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom)); }
  .shop-count { font-size: .68rem; padding-inline: .18rem; }
}
@media (prefers-reduced-motion: reduce) { .shop-view.is-entering { animation: none; } }
#store-note, #catalog-status, #cart-total, #auth-status { margin-block: .7rem; }
#account-actions[hidden], #auth-form[hidden], #more[hidden] { display: none; }
.product-picture { display: grid; place-items: center; height: 10rem; border-radius: .75rem; margin-bottom: .75rem; background: #e6f0e9; color: var(--muted); }
.product-picture img { width: 100%; height: 10rem; object-fit: contain; }
.product-description { overflow-wrap: anywhere; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .65rem; }
.product-actions .button { margin: 0; min-height: 2.5rem; }
.price { display: block; font-size: 1.18rem; font-weight: 800; margin-block: .55rem .15rem; }
#more { margin-top: 1rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-line button { min-width: 2rem; min-height: 2rem; border-radius: .45rem; border: 1px solid var(--line); background: white; cursor: pointer; }
.qty-controls { display: flex; gap: .55rem; align-items: center; }
.order-card .action-row { margin-top: .65rem; }
#camera-video { display: block; width: min(100%, 25rem); border-radius: .85rem; margin-block: .65rem; }
#barcode-result:empty { margin: 0; }
