.shop-intro { margin-top: 1rem; max-width: 42rem; opacity: .75; font-size: .9rem; line-height: 1.7; }
.shop-image-note { margin-top: .75rem; font-size: .75rem; line-height: 1.5; opacity: .75; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.shop-tabs button,.shop-button { border: 1px solid currentColor; border-radius: .375rem; padding: .65rem 1rem; font-size: .8rem; cursor: pointer; font-weight: 600; }
.shop-tabs .active,.shop-button { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.shop-search { display: grid; gap: .5rem; max-width: 24rem; font-size: .8rem; }
.shop-search input { width: 100%; border: 1px solid #7b969e; border-radius: .375rem; padding: .75rem; background: #ffffff0d; color: inherit; }
.shop-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.shop-card { border: 1px solid #8ca9b433; border-radius: .375rem; overflow: hidden; display: flex; flex-direction: column; background: #ffffff0c; min-width: 0; }
.shop-photo,.shop-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shop-photo { display: block; }
.shop-gallery { min-width: 0; }
.shop-gallery-image { touch-action: pan-y; }
.shop-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: .1rem; padding: .15rem; background: var(--secondary); color: var(--secondary-foreground); }
.shop-gallery-controls button { flex: 0 0 auto; width: 28px; min-height: 32px; border: 0; border-radius: .2rem; background: var(--primary); color: var(--primary-foreground); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.shop-gallery-controls button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop-gallery-controls span { font-size: .65rem; }
.shop-placeholder { display: grid; place-items: center; background: #0b3441; color: #c8e5e9; }
.shop-card-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.shop-card h3 { font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.shop-size { font-size: .8rem; opacity: .8; }
.shop-description { font-size: .8rem; line-height: 1.5; opacity: .85; white-space: pre-line; overflow-wrap: anywhere; }
.shop-price { font-weight: 700; font-size: .9rem; margin-top: auto; }
.shop-card .shop-button { width: 100%; margin-top: .4rem; }
.shop-stock { margin: .25rem 0; padding: .35rem .45rem; border-radius: .25rem; background: #fff0b3; color: #674900; font-size: .7rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.shop-card .shop-stock { margin-top: auto; }
.shop-checkout { display: grid; gap: 1rem; }
.shop-checkout fieldset { display: grid; gap: .8rem; min-width: 0; padding: 0; border: 0; }
.shop-checkout legend { margin-bottom: .8rem; font-size: 1rem; font-weight: 700; }
.shop-checkout label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 600; }
.shop-checkout input,.shop-checkout textarea { width: 100%; min-width: 0; padding: .65rem; border: 1px solid #91a8af; border-radius: .375rem; background: white; color: #092b36; font: inherit; font-size: 16px; }
.shop-checkout textarea { resize: vertical; }
.shop-checkout :is(input,textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop-products .shop-card { background: white; }
.shop-more { display: block; margin: 1.5rem auto 0; }
.shop-empty { padding: 2rem 0; opacity: .75; }
.shop-cart-toggle { position: fixed; bottom: 5rem; right: 1rem; z-index: 45; padding: .8rem 1.1rem; background: var(--primary); color: var(--primary-foreground); font-weight: 700; border: 1px solid var(--primary); border-radius: 2rem; box-shadow: 0 4px 20px #0003; cursor: pointer; font-size: .85rem; }
.shop-announcement { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shop-cart { margin: auto; width: min(94vw,34rem); max-height: 88dvh; padding: 1.5rem; border: 0; border-radius: .75rem; background: #f3f8fa; color: #092b36; overflow-y: auto; }
.shop-cart::backdrop { background: #001820b8; }
.shop-cart-heading,.shop-total { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.shop-cart h2 { font-size: 1.5rem; font-weight: 800; }
.shop-close { font-size: 2rem; cursor: pointer; padding: 0 .5rem; }
.shop-cart-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #bed0d6; font-size: .8rem; }
.shop-cart-row h3 { font-weight: 700; overflow-wrap: anywhere; }
.shop-cart-row strong { white-space: nowrap; }
.shop-quantity { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-top: .7rem; }
.shop-quantity button { padding: .2rem .55rem; border: 1px solid #91a8af; border-radius: .25rem; cursor: pointer; }
.shop-total { margin-top: 1.25rem; font-size: 1rem; }
.shop-cart-note { font-size: .75rem; margin: .75rem 0 1.25rem; }
.shop-cart>.shop-button { width: 100%; }
.shop-continue { display: block; margin: .9rem auto 0; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.shop-error { color: #a51e1e; margin: 1rem 0; font-size: .85rem; }
.shop-button:disabled { opacity: .5; cursor: not-allowed; }
.shop-button:focus-visible,.shop-tabs button:focus-visible,.shop-cart button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media(max-width:1023px) { .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
  .shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
  .shop-card-body { padding: .45rem; gap: .4rem; }
  .shop-card h3 { font-size: .75rem; line-height: 1.35; }
  .shop-card .shop-size { font-size: .65rem; line-height: 1.4; overflow-wrap: anywhere; }
  .shop-card .shop-description { font-size: .7rem; }
  .shop-card .shop-price { font-size: .7rem; line-height: 1.4; overflow-wrap: anywhere; }
  .shop-card .shop-button { min-height: 44px; padding: .4rem .2rem; font-size: .65rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
  .shop-placeholder { font-size: .7rem; }
}
@media(max-width:540px) { .shop-cart { padding: 1rem; } }
