/* Scoped product browsing surfaces; shared account and order screens are unchanged. */
.market-page,.market-detail{background:#fff;color:#222;letter-spacing:0}
.market-page .mobile,.market-detail .mobile{background:#fff;box-shadow:none}
.market-page .market-hero{background:#fff;color:#222;border-radius:0;box-shadow:none;border-bottom:1px solid #e5e5e5;padding:20px 24px}
.market-page .market-title{font-size:22px;line-height:1.4;margin:10px 0 0;letter-spacing:0}
.market-page .market-brandline{margin:0}
.market-page .shell{padding:20px 24px 36px}
.market-page .btn{background:#fff;color:#333;box-shadow:none;border:1px solid #ddd;border-radius:6px;letter-spacing:0}
.market-page .product-tabs .btn{min-width:0;flex:0 0 auto;padding:10px 18px;min-height:44px;border:0;border-radius:0;font-size:14px;white-space:nowrap}
.market-page .product-tabs .btn.active{background:#fff;color:#ce3448;border-bottom:3px solid #ce3448}
.market-page .product-tab-row{flex-wrap:nowrap;overflow-x:auto;margin:0;gap:4px;border-bottom:1px solid #ededed}
.market-page .product-tab-row+.product-tab-row{padding-top:6px;border:0}
.market-page .product-tab-row+.product-tab-row .btn{font-size:13px;border-radius:4px;min-height:36px;padding:6px 14px}
.market-page .product-tab-row+.product-tab-row .btn.active{background:#f4f4f4;color:#222;border:0}
.market-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) 180px auto;align-items:center;gap:12px;margin:20px 0}
.market-toolbar input,.market-toolbar select{height:44px;min-width:0;width:100%;border:1px solid #d9d9d9;border-radius:6px;background:#fff;padding:10px 12px;font:inherit;font-size:14px;color:#333}
.market-toolbar input{background:#f7f7f7}
.market-toolbar #productCount{font-size:13px;color:#666;white-space:nowrap}
.market-page .product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px;align-items:start}
.shop-product{display:block;min-width:0;color:#222;border-radius:6px;outline-offset:4px}
.shop-product-photo{position:relative;aspect-ratio:1;overflow:hidden;background:#f5f5f5;border-radius:6px}
.shop-product-photo img{width:100%;height:100%;object-fit:contain;transition:opacity .15s}
.shop-product:hover img{opacity:.94}
.shop-product-price{position:absolute;bottom:10px;left:0;max-width:100%;padding:4px 10px 4px 8px;background:rgba(25,25,25,.8);color:#fff;border-radius:0 16px 16px 0;font-size:18px;line-height:1.3;white-space:nowrap}
.shop-product-title{font-size:14px;font-weight:500;line-height:1.5;margin:8px 0 6px;height:3em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;letter-spacing:0}
.shop-product-meta{display:flex;justify-content:space-between;gap:6px;font-size:11px;color:#707070;line-height:1.5}
.shop-product-meta>span:first-child{min-width:0;overflow-wrap:anywhere}
.shop-product-stock{flex-shrink:0;color:#397463}
.market-empty,.market-page .empty-guide{grid-column:1/-1;padding:48px 16px;text-align:center;border:0;box-shadow:none;color:#666}
.market-page .load-more-row{padding-top:12px}
.market-page :focus-visible,.market-detail :focus-visible{outline:2px solid #267aaf;outline-offset:3px}
.market-page .line-support-fab,.market-detail .line-support-fab{position:static!important;transform:none!important;display:flex;width:max-content;max-width:calc(100% - 32px);margin:12px auto 100px;box-shadow:none!important}
.market-detail .product-detail-header{grid-template-columns:44px 1fr auto;background:#fff;backdrop-filter:none;padding:8px 20px}
.detail-list-link{font-size:13px;padding:10px 0 10px 8px;color:#555}
.market-detail .product-detail-brand strong{font-size:20px;color:#222}
.market-detail #detail{min-width:0}
.market-detail .product-detail-gallery{display:block;padding:0;aspect-ratio:auto;max-height:none;overflow:visible;background:#fff}
.detail-main-wrap{position:relative;aspect-ratio:1;background:#f5f5f5}
.market-detail .product-gallery-main{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in}
.market-detail .product-detail-gallery img{object-fit:contain;width:100%;height:100%}
.market-detail .product-detail-gallery-count{right:12px;top:auto;bottom:12px;font-size:12px;background:rgba(30,30,30,.75);border-radius:12px;padding:4px 10px}
.detail-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:12px 2px;scrollbar-width:thin}
.market-detail .detail-thumbnails button{flex:0 0 64px;width:64px;height:64px;border:2px solid transparent;padding:2px;border-radius:4px;cursor:pointer;background:#f5f5f5}
.market-detail .detail-thumbnails button[aria-pressed=true]{border-color:#ce3448}
.market-detail .product-detail-content{min-width:0;padding:20px 20px 32px}
.market-detail .product-detail-content h1{font-size:22px;line-height:1.5;font-weight:600;color:#222;overflow-wrap:anywhere}
.market-detail .product-detail-platform{font-size:13px;color:#666;margin-top:10px}
.market-detail .product-detail-price-line{flex-wrap:wrap;white-space:normal;gap:10px;margin:18px 0}
.market-detail .product-detail-price-line>strong{font-size:30px;color:#222}
.market-detail .product-detail-stock{border-radius:4px;background:#eff7f3;color:#34705d;padding:5px 8px}
.market-detail .product-detail-divider{display:none}
.market-detail .product-detail-reward{flex-basis:100%;color:#666}
.market-detail .product-detail-reward strong{font-size:16px;color:#333}
.detail-save-tools{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:14px 0;font-size:13px;color:#555}
.detail-save-tools summary{cursor:pointer;min-height:24px;line-height:24px}
.market-detail .product-copy-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0 0;border:0;gap:6px}
.market-detail .product-copy-actions button{border:1px solid #ddd;border-radius:4px;min-height:44px;font-size:12px;font-weight:500;flex-direction:row}
.market-detail .product-copy-actions button span{display:none}
.market-detail .product-detail-section{margin-top:28px}
.market-detail .product-detail-section h2{padding:0;font-size:17px;color:#222}
.market-detail .product-detail-section h2:before{display:none}
.market-detail .product-description{padding:0 0 20px;font-size:14px;line-height:1.8;color:#444}
.market-detail .product-info-row{padding:12px 0;gap:12px}
.market-detail .product-info-row dt{color:#666}
.market-detail .product-info-row dd{font-weight:400;color:#333}
.market-detail .product-detail-cta{grid-template-columns:1fr minmax(160px,1.3fr);background:#fff;box-shadow:none;border-radius:0;gap:16px}
.detail-cta-price{align-self:center;min-width:0}
.detail-cta-price small{display:block;font-size:11px;color:#666}
.detail-cta-price strong{display:block;font-size:23px;color:#222;white-space:nowrap}
.market-detail .product-detail-cta .btn{font-size:14px;background:#d9364b;color:#fff;border-radius:6px;white-space:normal;box-shadow:none}
.market-detail .photo-viewer{max-width:none;grid-template-rows:54px minmax(0,1fr) auto;background:#141414}
.market-detail .photo-viewer-stage{padding:12px 56px}
.market-detail .photo-viewer-main{background:#141414;touch-action:pan-y pinch-zoom}
.market-detail .photo-viewer-actions{max-width:480px;width:100%;margin:0 auto;background:#141414;grid-template-columns:1fr 1fr}
.market-detail .photo-viewer-actions .btn{background:#fff;color:#333;border:0;border-radius:6px}
.market-detail .photo-viewer [hidden]{display:none}
@media(min-width:821px){
  body.market-page.view-pc .product-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}
  body.market-page.view-pc .mobile,body.market-detail.view-pc .mobile{background:#fff;box-shadow:none}
  body.market-page.view-pc .mobile>.market-hero{border-radius:0}
  .market-detail #detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:32px;padding:28px 28px 110px}
  body.market-detail.view-pc .product-detail-gallery{position:sticky;top:88px;max-height:none;aspect-ratio:auto}
  body.market-detail.view-pc .product-detail-content{padding:0}
  body.market-detail.view-pc .product-detail-cta{left:calc(max(0px,50% - 640px) + 184px);right:max(0px,calc(50% - 640px));bottom:0;transform:none;width:auto;border-width:1px 0 0;box-shadow:none;padding:14px 32px;grid-template-columns:1fr 260px}
  .market-detail .line-support-fab{margin-bottom:112px}
}
@media(min-width:1450px){body.market-page.view-pc .product-list{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:820px){
  .market-page .mobile,.market-detail .mobile{max-width:none}
  .market-page .market-hero{padding:14px 16px}
  .market-page .market-title{font-size:20px;margin-top:8px}
  .market-page .shell{padding:12px 12px 28px}
  .market-toolbar{grid-template-columns:minmax(0,1fr) 134px;gap:8px;margin:14px 0}
  .market-toolbar input,.market-toolbar select{font-size:16px;padding:8px}
  .market-toolbar #productCount{grid-column:1/-1}
  .shop-product-price{font-size:16px;bottom:8px}
  .shop-product-title{font-size:13px}
  .shop-product-meta{font-size:10px;flex-wrap:wrap}
  .market-detail .detail-thumbnails{padding:10px 12px}
  .market-detail .product-detail-content h1{font-size:20px}
  .market-detail .product-detail-cta{left:0;right:0;transform:none;width:100%;bottom:calc(64px + env(safe-area-inset-bottom));padding:12px 16px}
  .market-detail .product-detail-page{padding-bottom:180px}
  .market-detail .photo-viewer-stage{padding:0}
  .market-detail .photo-viewer-actions{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.shop-product-photo img{transition:none}}
