.site-main.shop-page{width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;padding:18px 0 32px;font-size:16px}
.shop-page-head,
.shop-controls,
.shop-notice,
.shop-tabs-wrap,
.shop-content-controls,
.shop-content-panel>h2,
.shop-footnote{
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding-left:12px;
  padding-right:12px;
  box-sizing:border-box;
}
.shop-page-head h1{font-size:clamp(22px,3vw,30px);margin:0 0 6px;font-weight:900}.shop-page-head p{margin:0 0 10px;font-size:14px;color:var(--ui-text-muted)}
.shop-notice{border:0;padding-top:0;padding-bottom:0;margin:8px auto;color:var(--ui-text-muted);background:none;font-size:14px;line-height:1.5}.shop-notice[hidden]{display:none}

.shop-controls{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin:10px auto 14px;
  min-width:0;
}
.shop-control{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  max-width:100%;
}
.shop-control-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--ui-text-muted);
  line-height:1.2;
}
.shop-control--revision{flex:1 1 220px;min-width:min(100%,180px)}
.shop-control--revision[hidden]{display:none}
.shop-control-select,
.shop-share-btn,
.shop-fullscreen-btn{
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  min-height:var(--ui-control-height);
  height:var(--ui-control-height);
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-control);
  background:var(--ui-surface);
  color:var(--ui-text);
  font:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  transition:border-color .15s ease, background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.shop-control-select{
  width:100%;
  min-width:0;
  max-width:100%;
  padding:0 34px 0 12px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ui-text-muted) 50%),
    linear-gradient(135deg, var(--ui-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  cursor:pointer;
}
.shop-control:not(.shop-control--revision) .shop-control-select{width:auto;min-width:9.5rem}
.shop-control-select:hover:not(:disabled),
.shop-share-btn:hover:not(:disabled),
.shop-fullscreen-btn:hover:not(:disabled){
  border-color:var(--ui-border-strong);
  background-color:var(--ui-surface-hover);
}
.shop-control-select:focus-visible,
.shop-share-btn:focus-visible,
.shop-fullscreen-btn:focus-visible{
  outline:none;
  border-color:var(--ui-primary);
  box-shadow:var(--focus-ring);
}
.shop-control-select:disabled,
.shop-share-btn:disabled,
.shop-fullscreen-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.shop-share-btn{
  flex:0 0 auto;
  padding:0 16px;
  background:var(--ui-primary);
  border-color:var(--ui-primary);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.shop-share-btn:hover:not(:disabled){
  background:var(--ui-primary-hover);
  border-color:var(--ui-primary-hover);
  color:#fff;
}
.shop-share-btn:active:not(:disabled){transform:translateY(1px)}
.shop-share-status{
  flex:1 1 100%;
  margin:0;
  font-size:13px;
  color:var(--ui-success);
  overflow-wrap:anywhere;
}
.shop-share-status:empty{display:none}

.shop-tabs-wrap{display:flex;align-items:center;gap:8px;margin:0 auto 12px}
.shop-tabs{display:flex;flex:1;min-width:0;gap:8px;overflow-x:auto;scrollbar-width:none;padding:3px;touch-action:pan-x pan-y}
.shop-tabs-next{
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-control);
  padding:0;
  background:var(--ui-surface);
  color:var(--ui-text);
  font-size:20px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.shop-tabs-next:hover{background:var(--ui-surface-hover);border-color:var(--ui-border-strong)}
.shop-tabs-next[hidden]{display:none}
.shop-fullscreen-btn{
  display:none;
  flex:0 0 auto;
  padding:0 14px;
  background:var(--ui-surface);
  border-color:var(--ui-border);
  color:var(--ui-text);
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.shop-fullscreen-btn:hover:not(:disabled){background:var(--ui-surface-hover);border-color:var(--ui-border-strong);color:var(--ui-text)}
.shop-fullscreen-btn[hidden]{display:none}
.shop-tabs::-webkit-scrollbar,.shop-viewport::-webkit-scrollbar{display:none;width:0;height:0}
html.shop-fullscreen-active,
html.shop-fullscreen-active body{overflow:hidden;overscroll-behavior:none}
.shop-fullscreen{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  width:100dvw;
  height:100dvh;
  z-index:10050;
  background:#000;
  color:#fff;
  overflow:hidden;
}
.shop-fullscreen[hidden]{display:none !important}
.shop-fullscreen-close{
  position:absolute;
  top:max(6px, env(safe-area-inset-top, 0px));
  right:max(8px, env(safe-area-inset-right, 0px));
  z-index:3;
  width:44px;
  height:44px;
  min-height:0 !important;
  margin:0;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#fff !important;
  font:inherit;
  font-size:28px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
  text-shadow:0 1px 3px rgba(0,0,0,.55);
}
.shop-fullscreen-close:focus-visible{outline:2px solid #91bdff;outline-offset:2px}
.shop-fullscreen-hint{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:24px;
  text-align:center;
  font-size:18px;
  font-weight:700;
  line-height:1.5;
  color:#fff;
  background:#000;
  pointer-events:none;
}
.shop-fullscreen-hint[hidden]{display:none !important}
.shop-fullscreen-viewport{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  overscroll-behavior-x:contain;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.shop-fullscreen-viewport[hidden]{display:none !important}
.shop-fullscreen-viewport.is-zoomed{overflow:auto;touch-action:none}
.shop-fullscreen-viewport.is-dragging{cursor:grabbing}
.shop-fullscreen-viewport::-webkit-scrollbar{display:none;width:0;height:0}
.shop-fullscreen-track{
  display:flex;
  align-items:stretch;
  width:max-content;
  height:100%;
  gap:14px;
  will-change:transform;
}
.shop-fullscreen-panel{
  flex:0 0 auto;
  height:100%;
  min-width:0;
}
.shop-fullscreen-img{
  display:block;
  width:auto;
  height:100%;
  max-width:none;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.shop-tab{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  min-height:40px;
  padding:7px 12px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-control);
  background:var(--ui-surface);
  color:var(--ui-text);
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.shop-tab:hover{background:var(--ui-surface-hover);border-color:var(--ui-border-strong)}
.shop-tab img{width:26px;height:26px;object-fit:contain}
.shop-tab[aria-selected=true]{background:var(--ui-primary);border-color:var(--ui-primary);color:#fff}
.shop-tab:focus-visible{outline:none;box-shadow:var(--focus-ring)}

.shop-viewport{--strip-height:460px;width:100%;max-width:none;height:calc(var(--strip-height) * var(--active-rows,1));overflow-x:auto;overflow-y:hidden;border-radius:0;background:#101724;scrollbar-width:none;touch-action:pan-y;overscroll-behavior-x:contain;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-overflow-scrolling:touch;overflow-anchor:none}
.shop-viewport.is-zoomed{overflow:auto;cursor:grab;touch-action:none}
.shop-zoom-space{position:relative;width:max-content;min-width:100%;overflow:hidden}
.shop-fullscreen-viewport>.shop-zoom-space{height:100%}
.shop-zoom-space>.shop-track,.shop-zoom-space>.shop-fullscreen-track{position:absolute;left:0;top:0}
.shop-track{display:flex;align-items:flex-start;width:max-content;position:relative;gap:14px;will-change:transform}
.shop-section{flex:0 0 auto;min-width:0;color:#fff;background-color:#101724}
.shop-viewport:focus-visible{outline:3px solid #91bdff;outline-offset:-3px}.shop-viewport.is-dragging{cursor:grabbing}
.shop-strip{display:block;flex:0 0 auto;width:auto;height:calc(var(--strip-height) * var(--strip-rows,1));max-width:none;pointer-events:none;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.shop-strip[hidden]{display:none}
.shop-footnote{font-size:14px;line-height:1.6;color:var(--ui-text-muted);margin-top:18px}

.shop-content-controls{display:flex;align-items:center;gap:8px;margin:-4px auto 12px;font-size:14px;min-width:0;color:var(--ui-text-muted);font-weight:700}
.shop-content-controls>span{white-space:nowrap;flex:0 0 auto}
.shop-content-tabs{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:3px}
.shop-content-tabs::-webkit-scrollbar{display:none}
.shop-content-tab{
  flex:0 0 auto;
  white-space:nowrap;
  font:inherit;
  font-size:13px;
  font-weight:700;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-control);
  background:var(--ui-surface);
  color:var(--ui-text);
  cursor:pointer;
}
.shop-content-tab:hover{background:var(--ui-surface-hover)}
.shop-content-tab[aria-selected=true]{background:var(--ui-primary);color:#fff;border-color:var(--ui-primary)}
.shop-content-tab:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.shop-content-panel{margin-top:16px;min-width:0;width:100%;max-width:none}
.shop-content-panel h2{font-size:18px;margin:0 auto 8px}
.shop-content-viewport{--active-rows:1}
.shop-content-controls[hidden],.shop-content-panel[hidden]{display:none}

.shop-page .shop-controls :is(select,button:not(.shop-fullscreen-btn)){
  min-height:var(--ui-control-height) !important;
  height:var(--ui-control-height) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  font-size:14px !important;
}
.shop-page .shop-share-btn{
  padding-left:16px !important;
  padding-right:16px !important;
}
.shop-page .shop-fullscreen-btn{
  min-height:var(--ui-control-height) !important;
  height:var(--ui-control-height) !important;
  padding:0 14px !important;
  font-size:14px !important;
}

@media(max-width:640px){
  .site-main.shop-page{padding:12px 0 24px}
  .shop-page-head,
  .shop-controls,
  .shop-notice,
  .shop-tabs-wrap,
  .shop-content-controls,
  .shop-content-panel>h2,
  .shop-footnote{padding-left:6px;padding-right:6px}
  .shop-controls{gap:8px}
  .shop-control:not(.shop-control--revision){flex:1 1 auto;min-width:0;order:1}
  .shop-control:not(.shop-control--revision) .shop-control-select{width:100%;min-width:0}
  .shop-share-btn{order:2}
  .shop-fullscreen-btn{order:3;display:inline-flex;align-items:center;justify-content:center}
  .shop-control--revision{flex:1 1 100%;order:4}
  .shop-share-status{order:5}
  .shop-tabs{gap:6px}
  .shop-tab{min-height:36px;padding:6px 10px}
  .shop-tab img{width:24px;height:24px}
  .shop-viewport{--strip-height:320px}
}
