.mercari-page *{box-sizing:border-box}
.mercari-page{color:#3d2b23;background:#fff;font-size:15px;line-height:1.6}
.mercari-page button,.mercari-page input,.mercari-page select{font:inherit}
.mercari-page button,.mercari-page select{cursor:pointer}
.mercari-page [hidden]{display:none!important}
.mercari-page a:focus-visible,.mercari-page button:focus-visible,.mercari-page input:focus-visible,.mercari-page select:focus-visible{outline:3px solid #995133;outline-offset:4px}
.mg-header{background:#fff9f4;border-bottom:1px solid #f5e4d7;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px max(24px,calc((100% - 1120px)/2))}
.mg-brand{font-weight:800;font-size:21px;white-space:nowrap}.mg-brand span{color:#d75d35}
.mg-header nav{display:flex;gap:26px;font-size:14px}.mg-header nav a:first-child{color:#b8522e;font-weight:600}
.mg-preview{background:#fff3e9;color:#86604b;font-size:12px;text-align:center;padding:7px 18px}
.mg-main{max-width:1168px;margin:auto;padding:36px 24px 72px}
.mg-hero{border-radius:24px;padding:46px 48px;margin-bottom:32px;background:linear-gradient(115deg,#fff0e5,#fdf6f0 70%,#f4e7d9);position:relative;overflow:hidden}
.mg-kicker{color:#ad6141;font-size:12px;font-weight:700;letter-spacing:3px}
.mg-hero h1{font-size:48px;line-height:1.25;margin:14px 0 18px;letter-spacing:-2px}
.mg-hero p{color:#7f6252;margin:0;max-width:500px}.mg-hero-label{position:absolute;right:42px;bottom:46px;color:#946954;font-size:13px;letter-spacing:1px}
.mg-search{display:flex;gap:12px;border:1px solid #ead9ce;border-radius:14px;padding:8px;margin-bottom:20px;background:white}
.mg-search input{min-width:0;flex:1;border:0;border-radius:8px;padding:10px 14px;color:#3d2b23}
.mg-search button,.mg-button{border:0;border-radius:10px;background:#df653e;color:white!important;padding:12px 23px;font-weight:600;text-align:center;display:inline-block}
.mg-chips{display:flex;gap:9px;flex-wrap:wrap;margin:8px 0 36px}
.mg-chips a{padding:8px 18px;border:1px solid #eaded5;border-radius:24px;color:#786051;font-size:14px}
.mg-chips a.active{background:#3d2b23;color:white;border-color:#3d2b23}
.mg-list-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:28px 0 12px}
.mg-list-heading h2{margin:0;font-size:24px;letter-spacing:-.5px}.mg-list-heading p{margin:4px 0 0}
.mg-muted,.mg-original{color:#7d695d;font-size:13px}.mg-original{overflow-wrap:anywhere}
.mg-sort{display:flex;gap:6px;align-items:center}.mg-sort select,.mg-sort button{padding:8px 10px;border:1px solid #eaded5;background:#fff;border-radius:8px;color:#685244;font-size:13px}
.mg-rate{font-size:12px;color:#806858;line-height:1.8;margin:12px 0 24px}.mg-rate strong{font-weight:600}
.mg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 22px;margin-top:20px}
.mg-card{display:block;min-width:0}.mg-card-photo{aspect-ratio:1;background:#f7f2ed;border-radius:16px;overflow:hidden;display:grid;place-items:center}
.mg-card-photo img{width:100%;height:100%;object-fit:contain;transition:transform .2s}.mg-card:hover img{transform:scale(1.025)}
.mg-image-fallback{font-size:13px;color:#927966;padding:24px;text-align:center}
.mg-eyebrow{font-size:11px;color:#92765f;margin:14px 0 6px}
.mg-card h3{font-size:15px;line-height:1.55;font-weight:600;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px;overflow-wrap:anywhere}
.mg-price{display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap}.mg-price strong{font-size:21px;letter-spacing:-.5px}.mg-price span{font-size:13px;color:#7e6656;white-space:nowrap}.mg-card-note{font-size:12px;margin:6px 0 0;overflow-wrap:anywhere}
.mg-guide-strip{margin-top:48px;padding:26px 30px;border-radius:15px;background:#fff6ee}.mg-guide-strip h2{font-size:19px;margin:0 0 6px}.mg-guide-strip p{font-size:14px;color:#866b5b;margin:0}
.mg-pagination{display:flex;align-items:center;justify-content:center;gap:28px;margin:36px 0}.mg-pagination a{padding:9px 16px;border:1px solid #eaded5;border-radius:8px}
.mg-empty{padding:65px 20px;text-align:center;border-radius:18px;background:#faf7f3;margin:24px 0}.mg-empty h1,.mg-empty h2{font-size:25px;margin:0 0 12px}.mg-empty p{color:#806858}
.mg-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;color:#8a6e5a;font-size:12px;margin-bottom:26px}
.mg-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px}.mg-detail>section{min-width:0}
.mg-main-photo{aspect-ratio:1;background:#f7f2ed;border-radius:20px;display:grid;place-items:center;overflow:hidden}.mg-main-photo img{width:100%;height:100%;object-fit:contain}
.mg-thumbs{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.mg-thumbs button{width:66px;height:66px;border:2px solid transparent;border-radius:10px;padding:3px;background:#f7f2ed}.mg-thumbs button[aria-pressed=true]{border-color:#df653e}.mg-thumbs img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.mg-sale{font-size:12px;color:#487758;font-weight:600;margin:0 0 8px}.mg-summary h1{font-size:29px;line-height:1.4;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}.mg-summary .mg-original{margin:8px 0 18px}
.mg-price-large{margin:18px 0 6px}.mg-price-large strong{font-size:36px}.mg-price-large span{font-size:18px}
.mg-facts{display:grid;grid-template-columns:112px minmax(0,1fr);gap:13px 14px;border-top:1px solid #eddcd0;border-bottom:1px solid #eddcd0;padding:24px 0;margin:24px 0;font-size:14px}.mg-facts dt{color:#876b57}.mg-facts dd{margin:0;overflow-wrap:anywhere}
.mg-copy{width:100%;font-size:15px;padding:17px}.mg-copy-guide{text-align:center;color:#8a6d59;font-size:12px;margin:10px 0}.mg-seller{background:#fff8f1;padding:18px 22px;border-radius:14px;margin-top:22px}.mg-seller p{font-size:12px;margin:5px 0 0;color:#9b593c}.mg-seller span{margin-right:10px;white-space:nowrap}
.mg-warning{font-size:13px;color:#93552b;background:#fff3e6;padding:10px 14px;border-radius:8px}
.mg-description-section{border-top:1px solid #eddfd4;margin:40px 0;padding-top:16px}.mg-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin:26px 0}
.mg-language{display:flex;border:1px solid #eddfd4;border-radius:10px;padding:3px;flex-shrink:0}.mg-language button{border:0;background:transparent;color:#806858;padding:8px 12px;border-radius:7px;font-size:13px}.mg-language button[aria-pressed=true]{background:#fff0e4;color:#9e4327}
#mg-copy-status{font-size:13px;color:#487758;overflow-wrap:anywhere}#mg-copy-fallback{display:block;font-size:12px;color:#806858}#mg-copy-fallback input{width:100%;font-size:14px;padding:9px;border:1px solid #eaded5;border-radius:6px;margin-top:6px}
.mg-footer{border-top:1px solid #f0e4db;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:26px max(24px,calc((100% - 1120px)/2));color:#907563;font-size:12px}
.mg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){.mg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-detail{gap:24px}.mg-hero-label{position:static;display:block;margin-top:20px}.mg-summary h1{font-size:25px}}
@media(max-width:620px){.mg-header{padding:17px 18px;flex-wrap:wrap;gap:10px}.mg-header nav{font-size:12px;gap:18px}.mg-brand{font-size:19px}.mg-main{padding:24px 16px 46px}.mg-hero{padding:30px 25px;border-radius:17px;margin-bottom:22px}.mg-hero h1{font-size:36px}.mg-hero p{font-size:14px}.mg-hero-label{font-size:11px}.mg-search{gap:4px}.mg-search input{font-size:16px;padding:8px;min-width:0}.mg-search button{padding:10px 15px}.mg-chips{gap:7px;margin-bottom:26px}.mg-chips a{font-size:12px;padding:9px 12px}.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.mg-list-heading{flex-wrap:wrap;gap:12px}.mg-list-heading h2{font-size:21px}.mg-sort select{font-size:16px}.mg-card h3{font-size:14px;min-height:43px}.mg-price strong{font-size:19px}.mg-price span{font-size:12px}.mg-detail{grid-template-columns:minmax(0,1fr);gap:28px}.mg-summary h1{font-size:25px}.mg-price-large strong{font-size:32px}.mg-price-large span{font-size:17px}.mg-thumbs button{width:58px;height:58px}.mg-guide-strip{padding:23px}.mg-guide-strip h2{font-size:17px}.mg-guide-strip p{font-size:13px}.mg-description-section{margin-top:30px}.mg-footer{padding:23px 18px}.mg-language button,.mg-sort button{min-height:44px}.mg-rate{font-size:11px}.mg-facts{grid-template-columns:95px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.mg-card-photo img{transition:none}}

.mg-filter-box{margin:20px 0;padding:20px;border:1px solid #dedbd4;border-radius:16px;background:#fff}.mg-filter-box summary{font-weight:700;cursor:pointer}.mg-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.mg-filters label{display:flex;flex-direction:column;gap:8px;font-size:14px}.mg-filters input,.mg-filters select,.mg-search select{min-width:0;max-width:100%;padding:12px;border:1px solid #d8d6d0;border-radius:8px;background:#fff;font:inherit}.mg-search input{min-width:0}.mg-search select{flex:0 1 150px}[data-retry]{padding:10px 18px;cursor:pointer}[data-explore]{margin:24px 0}@media(max-width:700px){.mg-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-search{flex-wrap:wrap}.mg-search input{flex-basis:100%}.mg-search select{flex:1}}

/* A small parcel waiting with the reader; no images or external requests. */
.mercari-page .mg-loading{position:relative;min-height:144px;padding:104px 20px 22px;margin:20px 0;text-align:center;color:#88634d;font-size:14px;background:#fff9f3;border-radius:20px}
.mg-loading::before{content:"";position:absolute;z-index:1;left:calc(50% - 25px);top:30px;width:50px;height:44px;border:2px solid #b87950;border-radius:9px 9px 12px 12px;background:radial-gradient(ellipse at 28% 73%,#efaa91 0 4px,transparent 4.5px),radial-gradient(ellipse at 72% 73%,#efaa91 0 4px,transparent 4.5px),radial-gradient(circle at 34% 57%,#68452f 0 2px,transparent 2.5px),radial-gradient(circle at 66% 57%,#68452f 0 2px,transparent 2.5px),linear-gradient(#ffe4b9,#ffe4b9) center top/10px 15px no-repeat,#efc48f;box-shadow:inset 0 -5px 0 #e8b67b;animation:mg-parcel-hop 1.5s ease-in-out infinite;transform-origin:center bottom}
.mg-loading::after{content:"";position:absolute;top:80px;left:calc(50% - 24px);width:48px;height:7px;border-radius:50%;background:#ead8c7;animation:mg-parcel-shadow 1.5s ease-in-out infinite}
.mercari-page .mg-loading-compact{min-height:114px;padding-top:88px;margin:0 0 18px;font-size:13px}
.mg-loading-compact::before{top:18px}.mg-loading-compact::after{top:68px}
@keyframes mg-parcel-hop{0%,100%{transform:translateY(0) rotate(-4deg)}40%{transform:translateY(-12px) rotate(4deg)}65%{transform:translateY(0) scale(1.06,.94)}80%{transform:translateY(-3px) rotate(-2deg)}}
@keyframes mg-parcel-shadow{0%,65%,100%{transform:scaleX(1);opacity:.8}40%{transform:scaleX(.65);opacity:.45}}
@media(prefers-reduced-motion:reduce){.mg-loading::before,.mg-loading::after{animation:none}}

/* Responsive review: readable headings, compact filters and photo navigation. */
.mg-hero h1{word-break:keep-all;text-wrap:balance}
.mg-filter-count{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:20px;background:#fff0e4;color:#9e4327;font-size:12px}
.mg-filter-box summary{min-height:44px;align-content:center}
@media(max-width:700px){
  .mg-filter-box{padding:12px 16px}
  .mg-filter-box:not([open]){margin:16px 0}
  .mg-filters input,.mg-filters select,.mg-search select{font-size:16px;min-height:44px}
  .mg-filters{gap:18px 12px}
}
@media(max-width:620px){
  .mg-hero{padding:24px}
  .mg-hero h1{font-size:clamp(26px,7.2vw,32px);letter-spacing:-1px;line-height:1.35}
  .mg-chips a{min-height:44px;display:inline-flex;align-items:center}
  .mg-thumbs{flex-wrap:nowrap;overflow-x:auto;padding:3px 2px 8px;scroll-snap-type:x proximity}
  .mg-thumbs button{flex:0 0 58px;scroll-snap-align:start}
  .mg-summary h1{word-break:keep-all;overflow-wrap:anywhere}
  .mg-header nav a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:360px){.mg-filters{grid-template-columns:minmax(0,1fr)}}
.mg-personal-nav{max-width:1168px;margin:0 auto;padding:12px 24px 0;text-align:right;font-size:13px;color:#82563f}
.mg-personal-nav a,.mg-return{display:inline-flex;align-items:center;min-height:44px}
.mg-return{font-size:14px;color:#81543b;margin-bottom:12px}
.mg-product-card{position:relative;min-width:0}.mg-product-card h3{margin-top:12px}
.mg-favorite{position:absolute;z-index:2;right:7px;top:7px;width:44px;height:44px;border:1px solid #e5d5c8;border-radius:50%;background:#fffdf9;color:#91543a;font-size:26px!important;line-height:1;box-shadow:0 2px 8px #0001}
.mg-favorite[aria-pressed=true]{color:#bc4e3a;background:#fff0e8}
.mg-save-detail{width:100%;border:1px solid #dac1b0;border-radius:10px;background:#fff9f3;color:#895238;padding:12px;min-height:48px;margin-bottom:10px}
.mg-toast{position:fixed;z-index:1000;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;padding:12px 20px;border-radius:12px;background:#3d2b23;color:white;box-shadow:0 4px 20px #0002;font-size:14px}
.mg-saved-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0}
.mg-saved-controls>button{border:1px solid #dfcdbf;border-radius:8px;padding:10px 14px;background:white;min-height:44px}
.mg-main-photo{position:relative}.mg-zoom-open{position:absolute;z-index:1;right:10px;bottom:10px;min-height:44px;padding:8px 14px;background:#fffdf9ee;border:1px solid #d9c7b9;border-radius:10px;color:#654533}
.mg-lightbox{width:min(1000px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:none;padding:16px;border:0;border-radius:18px;background:#fffaf5;color:#3d2b23}
.mg-lightbox::backdrop{background:#211711c9}.mg-lightbox[open]{display:flex;flex-direction:column;gap:10px}
.mg-lightbox-toolbar,.mg-lightbox-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.mg-lightbox-toolbar span{margin-right:auto}.mg-lightbox-controls{justify-content:space-between}
.mg-lightbox button{min-height:44px;padding:8px 14px;border:1px solid #ddc9b9;border-radius:9px;background:white;color:#634633}.mg-lightbox button:disabled{opacity:.4;cursor:default}
.mg-lightbox-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:pan-y;background:#f3ede7;border-radius:10px}
.mg-lightbox-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain}.mg-lightbox-stage.is-zoomed{display:block;touch-action:auto}.mg-lightbox-stage.is-zoomed img{width:200%;max-width:none;max-height:none}
/* Reserve a small refresh row so completion doesn't shift the product. */
#mg-live{min-height:16px}#mg-live-status{min-height:0;margin:0 0 16px;display:flex;align-items:center}
.mercari-page #mg-live-status.mg-loading-compact{min-height:48px;padding:10px 14px 10px 62px;margin:0 0 16px;text-align:left;border-radius:12px}
#mg-live-status.mg-loading-compact::before{width:28px;height:26px;left:16px;top:8px;animation:mg-parcel-hop 1.5s ease-in-out infinite}
#mg-live-status.mg-loading-compact::after{width:28px;height:4px;left:17px;top:37px}
@media(max-width:620px){.mg-personal-nav{padding:4px 16px 0}.mg-lightbox{padding:10px}.mg-lightbox-toolbar{gap:6px}.mg-favorite{width:44px;height:44px}.mg-main>h1{word-break:keep-all}}
@media(max-width:360px){.mg-header{padding:15px;gap:4px}.mg-brand{font-size:17px}.mg-header nav{font-size:11px;gap:10px}}
@media(prefers-reduced-motion:reduce){#mg-live-status.mg-loading-compact::before{animation:none}}

.mg-main{padding-top:20px}
.mg-hero{padding:36px 42px;margin-bottom:24px}
.mg-personal-nav{padding-top:8px}
.mg-filter-box:not([open]){width:max-content;max-width:100%;margin:0 0 20px;padding:0;border:0;background:transparent}
.mg-filter-box:not([open]) summary{display:list-item;min-height:44px;padding:9px 16px;border:1px solid #eaded5;border-radius:10px;background:#fff9f4}
@media(max-width:620px){
  .mg-main{padding-top:16px}
  .mg-hero{padding:24px;margin-bottom:20px}
  .mg-chips{flex-wrap:nowrap;overflow-x:auto;gap:8px;margin-bottom:20px;padding-bottom:6px;scrollbar-width:none}
  .mg-chips::-webkit-scrollbar{display:none}
  .mg-chips a{flex:0 0 auto}
  .mg-list-heading{margin-top:20px}
  .mg-list-heading .mg-sort{margin-left:auto}
}
@media(max-width:360px){.mg-header nav{font-size:12px;gap:8px}}

.mg-filter-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.mg-filter-reset{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border:1px solid #d8c6b8;border-radius:10px;background:#fff;color:#6b4e3d;font-weight:600;text-decoration:none}
@media(max-width:360px){.mg-filter-actions>*{width:100%}}

@media(max-width:620px){
  .mg-header{min-height:58px;padding:10px 16px;flex-wrap:nowrap}
  .mg-preview{padding:4px 12px}
  .mg-personal-nav{padding:4px 16px 0}
  .mg-personal-nav .mg-button{min-height:44px;padding:4px 0;background:transparent;color:#92573f!important}
  .mg-home{padding-top:8px}
  .mg-home .mg-hero{padding:0;margin:0 0 12px;background:none;border-radius:0}
  .mg-home .mg-kicker{display:none}
  .mg-home .mg-hero h1{font-size:24px;line-height:1.3;letter-spacing:-.8px;margin:0 0 3px}
  .mg-home .mg-hero p{font-size:13px}
  .mg-home .mg-search{margin-bottom:8px;padding:5px}
  .mg-home .mg-search input{padding:7px 8px}
  .mg-home .mg-filter-box:not([open]){margin-bottom:8px}
  .mg-home .mg-chips{margin:0 0 8px;padding-bottom:2px}
  .mg-home .mg-chips a{min-height:40px;padding:7px 12px}
  .mg-home .mg-list-heading{flex-wrap:nowrap;gap:6px;margin:10px 0 4px}
  .mg-home .mg-list-heading h2{font-size:18px;line-height:1.3}
  .mg-home .mg-sort select{font-size:16px;min-height:44px;padding:6px 8px}
  .mg-home .mg-sort.mg-auto-sort button{display:none}
  .mg-home .mg-rate{margin:5px 0 12px;line-height:1.5}
  .mg-home .mg-grid{margin-top:10px}
}
.mg-comments-section{border-top:1px solid #eddfd4;padding-top:20px}.mg-comments-section h2{font-size:24px;margin:0 0 18px}.mg-comments-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}.mg-comment{padding:18px 20px;border:1px solid #eddfd4;border-radius:14px;background:#fffaf6;min-width:0}.mg-comment strong{font-size:14px}.mg-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:9px 0 0}.mg-comment details{margin-top:10px;color:#806858;font-size:13px}.mg-comment summary{cursor:pointer;width:max-content;max-width:100%;padding:4px 0}.mg-comment details p{margin-top:7px}
@media(max-width:620px){.mg-comments-section h2{font-size:21px}.mg-comment{padding:15px 16px}}
