
:root{--bg:#EEEAE5;--paper:#fff;--ink:#111;--muted:#77736f;--line:#d7d2cc;--accent:#111}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans JP",sans-serif;font-size:15px}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.shop-header{height:94px;background:#fff;display:grid;grid-template-columns:260px 1fr 220px;align-items:center;padding:0 48px;border-bottom:1px solid #eee;position:sticky;top:0;z-index:40}.shop-logo{display:flex;align-items:center;gap:12px}.shop-logo img{width:58px;height:58px;object-fit:contain}.shop-logo b{font-size:20px;letter-spacing:.08em}.shop-logo small{display:block;font-size:8px;margin-top:4px;letter-spacing:.06em}.shop-nav{display:flex;justify-content:center;gap:54px;font-size:14px;font-weight:600;letter-spacing:.06em}.shop-tools{display:flex;justify-content:flex-end;gap:18px}.icon-btn{width:42px;height:42px;border:0;background:transparent;display:grid;place-items:center;position:relative;cursor:pointer}.icon-btn svg,.filter-btn svg,.search-close svg,.filter-head button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.badge-count{position:absolute;right:-1px;top:1px;background:#111;color:#fff;border-radius:50%;font-size:9px;min-width:16px;height:16px;display:grid;place-items:center}.shop-shell{max-width:1680px;margin:0 auto;padding:56px 36px 80px}.shop-title-row{display:flex;align-items:end;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:28px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--muted);font-weight:700}.shop-title-row h1,.subpage h1{font-size:42px;letter-spacing:-.03em;margin:6px 0 8px}.shop-title-row>div>span{font-size:11px;color:var(--muted)}.listing-actions{display:flex;gap:10px}.filter-btn,select{height:44px;border:1px solid var(--line);background:#fff;padding:0 17px}.filter-btn{display:flex;align-items:center;gap:8px;cursor:pointer}.filter-btn svg{width:18px}.category-tabs{display:flex;gap:30px;padding:20px 0 34px}.category-tabs button{border:0;background:none;padding:5px 0;font-weight:600;color:#777;cursor:pointer;border-bottom:2px solid transparent}.category-tabs button.active{color:#111;border-color:#111}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:42px 20px}.product-card{min-width:0;position:relative}.product-photo{aspect-ratio:1/1;background:#dedad4;overflow:hidden;position:relative}.product-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}.product-card:hover .product-photo img{transform:scale(1.025)}.product-tag{position:absolute;top:13px;left:13px;background:#111;color:#fff;padding:6px 9px;font-size:10px;font-weight:700}.fav-btn{position:absolute;right:11px;top:11px;border:0;background:rgba(255,255,255,.88);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;cursor:pointer}.fav-btn svg{width:20px;height:20px;fill:none;stroke:#111;stroke-width:1.5}.fav-btn.on svg{fill:#111}.product-meta{padding-top:13px}.product-meta small{color:var(--muted);font-size:10px}.product-name{font-size:14px;line-height:1.55;margin:6px 0 7px;font-weight:500}.product-price{font-size:14px;font-weight:600}.pagination{display:flex;justify-content:center;gap:8px;margin:60px 0 0}.pagination button{width:40px;height:40px;border:1px solid var(--line);background:#fff;cursor:pointer}.pagination button.active{background:#111;color:#fff}.shop-footer-new{background:#fff;padding:54px 48px 26px;display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:40px}.shop-footer-new strong{font-size:22px;letter-spacing:.12em}.shop-footer-new .footer-brand span{display:block;font-size:10px;margin-top:15px}.shop-footer-new b{font-size:11px}.shop-footer-new a{display:block;font-size:10px;line-height:2.1;color:#555}.shop-footer-new small{grid-column:1/-1;text-align:center;margin-top:20px}.search-overlay{position:fixed;inset:0;background:rgba(238,234,229,.97);z-index:90;opacity:0;visibility:hidden;transition:.25s}.search-overlay.open{opacity:1;visibility:visible}.search-close{position:absolute;right:40px;top:30px;width:45px;height:45px;border:0;background:none;cursor:pointer}.search-dialog{max-width:900px;margin:140px auto 0;padding:0 30px}.search-dialog>p{letter-spacing:.16em;font-size:12px}.search-dialog label{display:flex;border-bottom:2px solid #111;padding:8px 0}.search-dialog input{border:0;background:transparent;outline:0;font-size:32px;width:100%}.search-dialog label span svg{width:30px;height:30px;fill:none;stroke:#111;stroke-width:1.7}.search-results{margin-top:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.search-result{background:#fff;padding:10px}.search-result img{width:100%;aspect-ratio:1;object-fit:cover}.filter-drawer{position:fixed;right:0;top:0;width:min(440px,90vw);height:100vh;background:#fff;z-index:85;padding:34px;transform:translateX(100%);transition:.3s;overflow:auto}.filter-drawer.open{transform:none}.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:80;display:none}.drawer-backdrop.open{display:block}.filter-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;padding-bottom:20px}.filter-head button{border:0;background:none;width:36px}.filter-block{padding:25px 0;border-bottom:1px solid #eee}.filter-block>b{display:block;margin-bottom:13px}.filter-block label{display:block;padding:8px 0}.filter-apply{width:100%;height:48px;background:#111;color:#fff;border:0;margin-top:28px}.breadcrumbs{display:flex;gap:10px;color:#777;font-size:11px;margin-bottom:30px}.product-detail{display:grid;grid-template-columns:1.12fr .88fr;gap:70px}.detail-image{background:#ddd9d4}.detail-image img{width:100%;display:block}.detail-info{padding:28px 0}.detail-info h1{font-size:34px;line-height:1.35;margin:8px 0 10px}.detail-info .detail-price{font-size:20px;margin:18px 0}.detail-copy{color:#5d5955;line-height:1.9}.detail-actions{display:flex;gap:10px;margin:30px 0}.detail-actions button{height:52px;border:1px solid #111;padding:0 26px;background:#fff}.detail-actions .add-cart{background:#111;color:#fff;flex:1}.detail-accordion{border-top:1px solid #ccc}.detail-accordion div{padding:18px 0;border-bottom:1px solid #ccc;display:flex;justify-content:space-between}.detail-recommend{margin-top:100px}.detail-recommend h2{font-size:28px}.compact{grid-template-columns:repeat(4,1fr)}.subpage{min-height:65vh}.empty-state{text-align:center;padding:100px 20px}.empty-state a{display:inline-block;background:#111;color:#fff;padding:14px 28px;margin-top:15px}.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:50px}.cart-item{display:grid;grid-template-columns:150px 1fr auto;gap:22px;padding:18px 0;border-bottom:1px solid #ccc}.cart-item img{width:150px;height:150px;object-fit:cover}.cart-item h3{font-size:15px}.cart-item button{border:0;background:none;text-decoration:underline}.cart-summary{background:#fff;padding:30px;height:max-content}.cart-summary{display:grid;grid-template-columns:1fr auto;gap:15px}.cart-summary p,.cart-summary button{grid-column:1/-1}.cart-summary button{height:50px;background:#111;color:#fff;border:0}.cart-summary p{font-size:11px;color:#777}.empty-state.hidden{display:none}
@media(max-width:1000px){.shop-header{grid-template-columns:1fr auto;padding:0 22px}.shop-nav{display:none}.product-grid{grid-template-columns:repeat(3,1fr)}.shop-footer-new{grid-template-columns:repeat(3,1fr)}.footer-brand{grid-column:1/-1}.product-detail{grid-template-columns:1fr;gap:25px}.cart-layout{grid-template-columns:1fr}.cart-summary{width:100%}}
@media(max-width:680px){.shop-header{height:78px}.shop-logo img{width:48px;height:48px}.shop-logo small{display:none}.shop-tools{gap:4px}.shop-shell{padding:34px 14px 60px}.shop-title-row{display:block}.listing-actions{margin-top:22px}.product-grid{grid-template-columns:repeat(2,1fr);gap:30px 10px}.shop-title-row h1,.subpage h1{font-size:34px}.category-tabs{overflow:auto;white-space:nowrap}.search-dialog{margin-top:100px}.search-dialog input{font-size:23px}.search-results{grid-template-columns:repeat(2,1fr)}.shop-footer-new{grid-template-columns:repeat(2,1fr);padding:40px 20px}.cart-item{grid-template-columns:100px 1fr}.cart-item img{width:100px;height:100px}.cart-item>strong{grid-column:2}.compact{grid-template-columns:repeat(2,1fr)}}


/* ===== SHOP V2.1 ===== */

/* Homepage header reused on the shop. */
.brand img{
  width:190px!important;
  height:48px!important;
  object-fit:contain!important;
  object-position:left center!important;
}

.shop-site-header{
  position:sticky;
  top:0;
  z-index:70;
  width:100%;
  background:#EDEAE5;
}
.site-header-inner{
  width:100%;
  min-height:82px;
  padding:0 34px;
  display:grid;
  grid-template-columns:245px minmax(620px,1fr) auto;
  align-items:center;
  gap:24px;
}
.site-brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:20px;
  font-weight:700;
  letter-spacing:.04em;
  white-space:nowrap;
}
.site-brand img{
  width:56px;
  height:48px;
  object-fit:contain;
}
.site-main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  height:82px;
}
.site-main-nav>a,
.site-nav-trigger{
  border:0;
  background:none;
  color:#151515;
  padding:11px 13px;
  font-size:18px!important;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  border-radius:25px;
}
.site-main-nav>a:hover,
.site-nav-trigger:hover,
.site-nav-trigger.active{
  background:#EEEAE5;
}
.site-nav-item{
  height:100%;
  display:flex;
  align-items:center;
  position:relative;
}
.site-dropdown{
  position:absolute;
  left:50%;
  top:70px;
  transform:translateX(-50%) translateY(8px);
  width:280px;
  padding:14px 0;
  background:rgba(255,253,250,.98);
  border:1px solid #d6d0c9;
  box-shadow:0 18px 45px rgba(0,0,0,.08);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.18s ease;
}
.site-dropdown-goods{width:340px}
.site-nav-item.open .site-dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.site-dropdown a{
  display:block;
  padding:10px 24px;
  color:#69645f;
  font-size:15px;
}
.site-dropdown a:hover{
  color:#111;
  background:#f4f1ed;
}
.site-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  white-space:nowrap;
}
.site-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 19px;
  background:#111;
  color:#fff;
  border-radius:24px;
  font-size:15px;
  font-weight:700;
}
.site-lang{position:relative}
.site-lang>button{
  height:44px;
  padding:0 16px;
  border:1px solid #d9d5d0;
  background:#fff;
  border-radius:24px;
}
.site-lang-menu{
  position:absolute;
  right:0;
  top:48px;
  width:110px;
  background:#fff;
  border:1px solid #ddd;
  display:none;
}
.site-lang:hover .site-lang-menu{display:block}
.site-lang-menu a{display:block;padding:9px 13px}
.site-icon-btn{
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  display:grid;
  place-items:center;
  position:relative;
}
.site-icon-btn svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:#111;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Listing: remove the ugly dividing line. */
.shop-title-row{
  border-bottom:0!important;
  padding-bottom:8px!important;
}

/* Reference-style compact filter and sort controls. */
.listing-actions{
  gap:10px!important;
  align-items:center;
}
.filter-btn,
#sortSelect{
  height:46px!important;
  background:#fff!important;
  border:1px solid #cfcac4!important;
  color:#111!important;
  border-radius:0!important;
  box-shadow:none!important;
  font-size:15px!important;
}
.filter-btn{
  min-width:118px;
  justify-content:center;
  padding:0 17px!important;
  gap:9px!important;
}
.filter-btn svg{
  width:18px!important;
  height:18px!important;
}
#sortSelect{
  width:158px;
  padding:0 38px 0 18px!important;
}

/* Product card flow fix: product info must always occupy its own vertical space. */
.product-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:auto!important;
  overflow:visible!important;
}
.product-photo{
  display:block!important;
  width:100%!important;
  aspect-ratio:4 / 3!important;
  flex:0 0 auto!important;
  position:relative!important;
  overflow:hidden!important;
  background:#dedad4!important;
}
.product-photo img{
  position:static!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.product-meta{
  display:block!important;
  position:static!important;
  flex:0 0 auto!important;
  min-height:92px!important;
  padding:12px 0 0!important;
  background:transparent!important;
  z-index:auto!important;
}
.product-name{
  display:block!important;
  margin:5px 0 6px!important;
  line-height:1.55!important;
}
.product-price{
  display:block!important;
  margin-top:0!important;
}
.product-grid{
  align-items:start!important;
  grid-auto-rows:auto!important;
  row-gap:42px!important;
}

/* Category tabs without extra horizontal line. */
.category-tabs{
  border-top:0!important;
  border-bottom:0!important;
  padding-top:18px!important;
}

@media(max-width:1450px){
  .site-header-inner{grid-template-columns:210px 1fr auto;padding:0 22px}
  .site-main-nav{gap:10px}
  .site-main-nav>a,.site-nav-trigger{font-size:16px!important;padding:10px 8px}
  .site-pill{padding:0 13px}
}
@media(max-width:1080px){
  .site-header-inner{grid-template-columns:1fr auto}
  .site-main-nav,.site-pill,.site-lang{display:none}
}


/* ===== SHOP V3 ===== */

/* Shop-specific action area: JP + user + search + favorite + cart. */
.site-header-actions{
  gap:10px!important;
}
.site-pill,
.site-lang{
  display:none!important;
}
.shop-lang-compact{
  border:0;
  background:transparent;
  padding:0 8px;
  height:42px;
  font-size:18px;
  font-weight:500;
  cursor:pointer;
}
.shop-user-icon{
  margin-right:2px;
}

/* Reference-style filter + sort: no boxes, no white panels. */
.listing-actions{
  display:flex!important;
  align-items:center!important;
  gap:30px!important;
}
.filter-btn,
#sortSelect{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  padding:8px 0!important;
  font-size:15px!important;
  color:#4c4946!important;
}
.filter-btn{
  gap:8px!important;
  cursor:pointer;
}
.filter-btn svg{
  width:20px!important;
  height:20px!important;
}
#sortSelect{
  padding-right:26px!important;
  cursor:pointer;
}
#sortSelect:focus,
.filter-btn:focus{
  outline:none;
}

/* Product cards: remove TOMO ONE/category kicker spacing completely. */
.product-meta{
  min-height:76px!important;
  padding-top:10px!important;
}
.product-meta>small{
  display:none!important;
}
.product-name{
  margin:0 0 6px!important;
}

/* Pagination */
.pagination{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:14px!important;
  margin-top:58px!important;
}
.pagination button{
  border:0!important;
  background:transparent!important;
  color:#777!important;
  min-width:28px!important;
  width:auto!important;
  height:34px!important;
  padding:0 5px!important;
  font-size:14px!important;
  cursor:pointer;
  position:relative;
}
.pagination button.active{
  color:#111!important;
  font-weight:700;
}
.pagination button.active::after{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  bottom:1px;
  height:1px;
  background:#111;
}
.pagination button:disabled{
  opacity:.28;
  cursor:default;
}
.pagination .page-arrow{
  font-size:22px!important;
}

/* On desktop, filter/sort sit naturally at right side like the reference site. */
@media(min-width:1081px){
  .shop-title-row{
    align-items:end!important;
  }
}

/* Product category tabs are still available, but stay visually light. */
.category-tabs{
  margin-top:8px!important;
  padding:14px 0 32px!important;
}

@media(max-width:1080px){
  .shop-lang-compact{
    display:none;
  }
}


/* ===== SHOP V4 ===== */

/* Language JP/CN dropdown */
.shop-lang-compact-wrap{
  position:relative;
}
.shop-lang-compact{
  display:flex!important;
  align-items:center;
  gap:5px;
  border:0!important;
  background:transparent!important;
  padding:0 5px!important;
  height:42px!important;
  font-size:18px!important;
  cursor:pointer;
}
.shop-lang-compact svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:#111;
  stroke-width:1.8;
  transition:transform .2s ease;
}
.shop-lang-compact-wrap.open .shop-lang-compact svg{
  transform:rotate(180deg);
}
.shop-lang-menu{
  position:absolute;
  top:48px;
  right:0;
  width:116px;
  padding:7px 0;
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:.18s ease;
  z-index:90;
}
.shop-lang-compact-wrap.open .shop-lang-menu{
  opacity:1;
  visibility:visible;
  transform:none;
}
.shop-lang-menu button{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:9px 15px;
  cursor:pointer;
}
.shop-lang-menu button:hover{background:#f4f4f4}

/* Centered collection heading like reference */
.shop-listing-shell{
  max-width:1680px!important;
  padding-top:34px!important;
}
.shop-listing-heading{
  text-align:center;
  padding:16px 0 22px;
}
.shop-listing-heading h1{
  margin:0 0 7px;
  font-size:28px;
  font-weight:500;
  letter-spacing:0;
}
.shop-listing-heading span{
  font-size:11px;
  color:#797572;
}

/* Category chips stay light above heading */
.category-tabs{
  justify-content:center;
  gap:12px!important;
  padding:0 0 8px!important;
}
.category-tabs button{
  background:#e5e2df!important;
  padding:13px 22px!important;
  border:0!important;
  border-bottom:0!important;
  color:#222!important;
}
.category-tabs button.active{
  background:#d8d4cf!important;
}

/* Toolbar: Filter on far left, sort on far right */
.catalog-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:54px;
  margin:0 0 12px;
}
.reference-filter-toggle{
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  color:#5d5955;
  cursor:pointer;
  font-size:15px;
}
.reference-filter-toggle>svg:first-child{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reference-filter-toggle .filter-chevron{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  transition:transform .28s ease;
}
.reference-filter-toggle.open .filter-chevron{
  transform:rotate(180deg);
}

.reference-sort{
  position:relative;
  z-index:22;
}
.reference-sort-trigger{
  border:0;
  background:transparent;
  min-width:150px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:10px 0;
  color:#5d5955;
  cursor:pointer;
}
.reference-sort-trigger svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  transition:transform .22s ease;
}
.reference-sort.open .reference-sort-trigger svg{transform:rotate(180deg)}
.reference-sort-menu{
  position:absolute;
  right:0;
  top:44px;
  width:220px;
  padding:7px 0;
  background:#fff;
  box-shadow:0 6px 24px rgba(0,0,0,.13);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.reference-sort.open .reference-sort-menu{
  opacity:1;
  visibility:visible;
  transform:none;
}
.reference-sort-menu button{
  display:block;
  width:100%;
  padding:10px 22px;
  border:0;
  background:#fff;
  color:#68635f;
  text-align:left;
  cursor:pointer;
  font-size:14px;
}
.reference-sort-menu button:hover,
.reference-sort-menu button.active{
  background:#f5f5f5;
  color:#111;
}

/* Inline filter layout: collapsed -> open with smooth left column expansion */
.catalog-body{
  display:grid;
  grid-template-columns:0 minmax(0,1fr);
  column-gap:0;
  align-items:start;
  transition:grid-template-columns .32s cubic-bezier(.2,.7,.2,1),column-gap .32s ease;
}
.catalog-body.filter-open{
  grid-template-columns:310px minmax(0,1fr);
  column-gap:44px;
}
.reference-filter-panel{
  min-width:0;
  overflow:hidden;
  opacity:0;
  transform:translateX(-16px);
  transition:opacity .24s ease,transform .32s cubic-bezier(.2,.7,.2,1);
  pointer-events:none;
}
.catalog-body.filter-open .reference-filter-panel{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.reference-filter-panel>*{
  min-width:270px;
}
.filter-stock-row{
  padding:2px 0 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#5d5955;
}
.mini-segment{
  display:flex;
  background:#f5f5f5;
}
.mini-segment button{
  border:0;
  background:transparent;
  padding:7px 10px;
  color:#777;
}
.mini-segment button.active{
  background:#fff;
  box-shadow:inset 0 0 0 1px #999;
  color:#333;
}
.reference-filter-group{
  border-top:0;
  border-bottom:0;
}
.reference-filter-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
  cursor:pointer;
  color:#5d5955;
  font-weight:500;
}
.reference-filter-group summary::-webkit-details-marker{display:none}
.reference-filter-group summary span{
  transition:transform .2s ease;
}
.reference-filter-group[open] summary span{transform:rotate(180deg)}
.reference-filter-group label{
  display:block;
  padding:6px 0 6px 4px;
  color:#777;
  font-size:13px;
}

/* Product grid adapts from 4 columns to 3 while filter is open, matching reference behavior */
.catalog-body .product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:46px 20px!important;
}
.catalog-body.filter-open .product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

/* Pagination: 16 items/page, subtle reference styling */
.pagination{
  margin-top:62px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center;
  gap:14px!important;
}
.pagination button{
  border:0!important;
  background:transparent!important;
  color:#777!important;
  font-size:14px!important;
  cursor:pointer;
  min-width:28px!important;
  height:34px!important;
}
.pagination button.active{
  color:#111!important;
  font-weight:700!important;
}
.pagination button.active::after{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:0;
  height:1px;
  background:#111;
}
.pagination button{position:relative}
.pagination button:disabled{opacity:.3;cursor:default}
.pagination .page-arrow{font-size:22px!important}

/* Old controls no longer used */
.listing-actions,
#sortSelect,
.filter-drawer,
.drawer-backdrop{
  display:none!important;
}

@media(max-width:1200px){
  .catalog-body.filter-open{
    grid-template-columns:250px minmax(0,1fr);
    column-gap:26px;
  }
  .reference-filter-panel>*{min-width:220px}
  .catalog-body .product-grid,
  .catalog-body.filter-open .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .catalog-body,
  .catalog-body.filter-open{
    display:block;
  }
  .reference-filter-panel{
    max-height:0;
    opacity:0;
    transform:none;
    transition:max-height .35s ease,opacity .2s ease;
  }
  .catalog-body.filter-open .reference-filter-panel{
    max-height:1200px;
    opacity:1;
    margin-bottom:28px;
  }
  .catalog-body .product-grid,
  .catalog-body.filter-open .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .reference-sort-menu{right:0}
}


/* ===== SHOP V4.2 LANGUAGE ===== */
.shop-lang-compact-wrap{
  position:relative!important;
  height:82px;
  display:flex;
  align-items:center;
}
.shop-lang-compact{
  height:44px!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  background:transparent!important;
  border:0!important;
  border-radius:24px!important;
  font-size:18px!important;
  font-weight:600!important;
  cursor:pointer!important;
}
.shop-lang-compact:hover,
.shop-lang-compact-wrap.open .shop-lang-compact{
  background:#EEEAE5!important;
}
.shop-lang-compact svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:#111!important;
  stroke-width:1.8!important;
  transition:transform .18s ease!important;
}
.shop-lang-compact-wrap.open .shop-lang-compact svg{
  transform:rotate(180deg)!important;
}
.shop-lang-menu{
  position:absolute!important;
  top:70px!important;
  right:50%!important;
  transform:translate(50%,8px)!important;
  width:150px!important;
  padding:10px 0!important;
  background:rgba(255,253,250,.98)!important;
  border:1px solid #d6d0c9!important;
  border-radius:18px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.08)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:.18s ease!important;
  z-index:95!important;
}
.shop-lang-compact-wrap.open .shop-lang-menu{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translate(50%,0)!important;
}
.shop-lang-menu button{
  display:block!important;
  width:100%!important;
  padding:11px 20px!important;
  border:0!important;
  background:transparent!important;
  color:#69645f!important;
  text-align:left!important;
  font-size:15px!important;
  cursor:pointer!important;
}
.shop-lang-menu button:hover{
  color:#111!important;
  background:#f4f1ed!important;
}


/* ===== SHOP V4.4 FILTER FIX ===== */

/* Never rotate summary text; only rotate the SVG icon. */
.reference-filter-group summary span{
  transform:none!important;
}
.reference-filter-group[open] summary span{
  transform:none!important;
}
.filter-group-arrow{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease;
}
.reference-filter-group[open] .filter-group-arrow{
  transform:rotate(180deg);
}

/* V3-style filter content, keeping the newer left-side slide animation. */
.reference-filter-title{
  min-width:270px;
  padding:2px 0 18px;
  font-size:14px;
  font-weight:600;
  color:#333;
}
.reference-filter-group{
  min-width:270px;
  border:0!important;
  margin:0;
}
.reference-filter-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 0;
  cursor:pointer;
  color:#3d3935;
  font-weight:500;
  user-select:none;
}
.reference-filter-group summary::-webkit-details-marker{
  display:none;
}
.reference-filter-group label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 0;
  color:#6a6560;
  font-size:14px;
  cursor:pointer;
}
.reference-filter-group input[type="radio"]{
  width:15px;
  height:15px;
  margin:0;
  accent-color:#111;
}
.reference-filter-clear{
  margin-top:22px;
  width:100%;
  height:42px;
  border:1px solid #aaa49e;
  background:transparent;
  color:#3e3a36;
  cursor:pointer;
  transition:.18s ease;
}
.reference-filter-clear:hover{
  background:#111;
  border-color:#111;
  color:#fff;
}

/* Delete old copied-reference blocks from view even if stale HTML/CSS survives cache. */
.filter-stock-row,
.mini-segment{
  display:none!important;
}

/* v45: detail multi-image gallery */
.detail-gallery{min-width:0}.detail-main-image{background:#ddd9d4;overflow:hidden}.detail-main-image img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.detail-thumbs{display:flex;gap:10px;margin-top:12px}.detail-thumbs button{width:92px;height:92px;padding:0;border:1px solid transparent;background:none;cursor:pointer;overflow:hidden}.detail-thumbs button.active{border-color:#111}.detail-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:680px){.detail-thumbs button{width:72px;height:72px}.product-detail{gap:18px}.detail-info{padding-top:8px}}
.product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:54px;align-items:start}.detail-gallery{display:block!important}.detail-main-image{width:100%;background:#dedad4;overflow:hidden}.detail-main-image img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.detail-thumbs{display:flex!important;gap:12px;margin-top:14px}.detail-thumbs button{width:88px;height:88px;padding:0;border:1px solid transparent;background:#dedad4;overflow:hidden}.detail-thumbs button.active{border-color:#111}.detail-thumbs img{width:100%;height:100%;object-fit:cover}@media(max-width:800px){.product-detail{grid-template-columns:1fr;gap:28px}.detail-thumbs button{width:72px;height:72px}}

/* ===== V47 SHOP HEADER / BACKGROUND SYNC ===== */
:root{--bg:#F6F3EE!important}
html,body,.shop-shell,.shop-listing-shell,.subpage,.shop-footer-new{background:#fff!important}
.site-header.shop-site-header{background:#fff!important;border-bottom:0!important}
.site-header-inner{background:#fff!important}

/* Keep the working header from the user's uploaded version. */
.site-header{height:82px!important;position:sticky!important;top:0!important;z-index:100!important}
.site-header-inner{height:100%!important;display:grid!important;grid-template-columns:245px 1fr auto!important;align-items:center!important;padding:0 34px!important;gap:20px!important}
.site-header .brand img{width:190px!important;height:48px!important;object-fit:contain!important;object-position:left center!important}
.site-main-nav{display:flex!important;justify-content:center!important;align-items:center!important;gap:26px!important;height:100%!important;font-size:18px!important;font-weight:600!important}
.site-main-nav>a,.site-nav-trigger{font-size:18px!important;font-weight:600!important}
.site-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important}

/* Working homepage-style dropdown behavior/content. */
.site-nav-item{position:relative!important;height:100%!important;display:flex!important;align-items:center!important}
.site-dropdown{
  position:absolute!important;top:70px!important;left:50%!important;
  transform:translateX(-50%) translateY(8px)!important;
  min-width:250px!important;padding:10px!important;background:#fff!important;
  border:1px solid #ded8d1!important;border-radius:16px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.08)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:.18s ease!important;z-index:120!important
}
.site-nav-item.open>.site-dropdown,.site-nav-item:hover>.site-dropdown{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  transform:translateX(-50%) translateY(0)!important
}
.site-dropdown a{display:block!important;padding:10px 12px!important;border-radius:10px!important;color:#555!important}
.site-dropdown a:hover{background:#fff!important;color:#111!important}

/* Compact JP/EN dropdown */
.shop-lang-menu{background:#fff!important;border-color:#ded8d1!important}
.shop-lang-menu button:hover{background:#fff!important}

/* Search overlay background harmony */
.search-overlay{background:rgba(246,243,238,.96)!important}

/* Keep detail gallery from v46 */
.detail-gallery{display:block!important}
.detail-thumbs{display:flex!important}

/* Shop mobile header still collapses cleanly. */
@media(max-width:1080px){
  .site-header-inner{grid-template-columns:1fr auto!important;padding:0 18px!important}
  .site-main-nav{display:none!important}
  .shop-lang-compact-wrap{display:none!important}
  .site-header-actions .site-icon-btn{display:flex!important}
}


/* ===== V48 HEADER VISUAL SYNC WITH HOME =====
   Keep shop-only search/favorites/cart, but align logo/nav geometry
   and typography to the homepage header so page transitions don't jump.
*/
.site-header.shop-site-header{
  height:82px!important;
  background:#fff!important;
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  border:0!important;
  font-family:"Noto Sans JP",sans-serif!important;
}
.site-header .site-header-inner{
  height:82px!important;
  display:grid!important;
  grid-template-columns:245px 1fr auto!important;
  align-items:center!important;
  padding:0 34px!important;
  gap:20px!important;
  background:#fff!important;
}
.site-header .brand{
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
}
.site-header .brand img{
  width:180px!important;
  height:54px!important;
  display:block!important;
  object-fit:contain!important;
  object-position:left center!important;
  margin:0!important;
  padding:0!important;
}
.site-main-nav{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:26px!important;
  height:100%!important;
  font-family:"Noto Sans JP",sans-serif!important;
}
.site-main-nav>a,
.site-nav-trigger{
  border:0!important;
  background:none!important;
  padding:12px 14px!important;
  border-radius:24px!important;
  font-family:"Noto Sans JP",sans-serif!important;
  font-size:18px!important;
  font-weight:600!important;
  line-height:1.45!important;
  letter-spacing:0!important;
  color:#111!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
.site-main-nav>a:hover,
.site-nav-trigger:hover,
.site-nav-trigger.active{
  background:#EEEAE5!important;
}
.site-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  height:100%!important;
}

/* Avoid browser default button font rendering making SHOP/FEEDING look heavier */
.site-nav-trigger,
.shop-lang-compact,
.shop-lang-menu button,
.site-icon-btn{
  font-family:"Noto Sans JP",sans-serif!important;
}

/* Maintain exact home-like visual rhythm at medium desktop widths */
@media (min-width:1081px) and (max-width:1280px){
  .site-header .site-header-inner{padding:0 24px!important}
  .site-main-nav{gap:18px!important}
  .site-main-nav>a,.site-nav-trigger{padding-left:10px!important;padding-right:10px!important}
}


/* ===== V48 DETAIL CONTENT ===== */
.detail-rich-content{
  width:min(1320px,calc(100% - 64px));
  margin:70px auto 100px;
  color:#111;
}
.detail-rich-intro{
  display:grid;
  grid-template-columns:minmax(240px,.75fr) minmax(420px,1.25fr);
  gap:70px;
  align-items:start;
  padding:56px 0;
  border-top:1px solid rgba(17,17,17,.18);
}
.detail-kicker{
  margin:0 0 16px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
}
.detail-rich-intro h2,
.detail-specs h2,
.detail-note-panel h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(34px,3vw,50px);
  line-height:1.15;
}
.detail-rich-intro>p:last-child{
  margin:0;
  max-width:720px;
  font-size:16px;
  line-height:2;
  color:#4f4a46;
}
.detail-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:rgba(17,17,17,.12);
}
.detail-feature-grid article{
  min-height:260px;
  padding:38px 34px 42px;
  background:#fff;
}
.detail-feature-grid article>span{
  display:block;
  margin-bottom:54px;
  font-size:12px;
  letter-spacing:.12em;
  color:#77706a;
}
.detail-feature-grid h3{
  margin:0 0 16px;
  font-size:21px;
  font-weight:600;
}
.detail-feature-grid p{
  margin:0;
  font-size:15px;
  line-height:1.9;
  color:#5a544f;
}
.detail-specs{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:70px;
  padding:70px 0;
  border-bottom:1px solid rgba(17,17,17,.18);
}
.detail-specs dl{margin:0}
.detail-specs dl>div{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:30px;
  padding:18px 0;
  border-bottom:1px solid rgba(17,17,17,.12);
}
.detail-specs dt{font-weight:600}
.detail-specs dd{margin:0;color:#5a544f}
.detail-note-panel{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:70px;
  align-items:start;
  margin-top:70px;
  padding:50px;
  background:#EEEAE5;
}
.detail-note-panel>p{
  margin:0;
  font-size:16px;
  line-height:2;
  color:#4f4a46;
}

@media(max-width:800px){
  .detail-rich-content{width:calc(100% - 32px);margin:48px auto 70px}
  .detail-rich-intro,.detail-specs,.detail-note-panel{grid-template-columns:1fr;gap:28px}
  .detail-feature-grid{grid-template-columns:1fr}
  .detail-feature-grid article{min-height:0}
  .detail-feature-grid article>span{margin-bottom:26px}
  .detail-specs dl>div{grid-template-columns:110px 1fr;gap:18px}
  .detail-note-panel{padding:32px 24px}
}


/* ===== V49 HEADER POSITION LOCK =====
   Homepage uses a wider right action group (予約 / My Page / language).
   Shop has compact icons, so grid-template-columns:auto made the middle nav
   slide to the right. Lock the right track to the same width to remove the jump.
*/
@media(min-width:1081px){
  .site-header .site-header-inner{
    grid-template-columns:245px 1fr 320px!important;
  }
  .site-header-actions{
    width:320px!important;
    min-width:320px!important;
    justify-content:flex-end!important;
  }
}
/* Match homepage logo baseline exactly. */
.site-header .brand img{
  width:180px!important;
  height:54px!important;
  object-position:left center!important;
}


/* ===== V49 SCRUFFS-LIKE PRODUCT DETAIL ===== */
body[data-page="detail"] .shop-main{
  width:min(1380px,calc(100% - 64px));
  margin:0 auto;
}
body[data-page="detail"] .product-detail{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr)!important;
  gap:68px!important;
  align-items:start!important;
  padding:34px 0 70px!important;
}
.scruffs-detail-gallery{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.scruffs-detail-thumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.scruffs-detail-thumbs button{
  width:88px;
  aspect-ratio:1/1;
  padding:0;
  border:1px solid transparent;
  background:#e7e2dc;
  cursor:pointer;
  overflow:hidden;
}
.scruffs-detail-thumbs button.active{border-color:#111}
.scruffs-detail-thumbs img{
  width:100%;height:100%;display:block;object-fit:cover;
}
.scruffs-detail-main{
  background:#e7e2dc;
  overflow:hidden;
}
.scruffs-detail-main>img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.scruffs-detail-info{
  position:sticky;
  top:108px;
  padding-top:4px;
}
.scruffs-detail-brand{
  margin:0 0 12px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
}
.scruffs-detail-info h1{
  margin:0 0 18px;
  font-size:clamp(28px,2.5vw,42px);
  line-height:1.18;
  font-weight:500;
}
.scruffs-detail-price{
  margin-bottom:6px;
  font-size:23px;
  font-weight:600;
}
.scruffs-detail-tax{
  margin:0 0 22px;
  font-size:12px;
  color:#77716c;
}
.scruffs-detail-stock{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 24px;
  font-size:13px;
}
.scruffs-detail-stock span{
  width:8px;height:8px;border-radius:50%;background:#54775d;
}
.scruffs-detail-buy{
  display:grid;
  grid-template-columns:110px 1fr 48px;
  gap:10px;
  align-items:end;
  margin-bottom:28px;
}
.scruffs-detail-buy>label{
  grid-column:1/-1;
  font-size:13px;
  font-weight:600;
}
.scruffs-qty{
  height:52px;
  display:grid;
  grid-template-columns:36px 1fr 36px;
  border:1px solid #bdb7b0;
}
.scruffs-qty button,
.scruffs-qty input{
  border:0;background:transparent;text-align:center;font:inherit;
}
.scruffs-qty input{width:100%;outline:0}
.scruffs-add-cart{
  height:52px;
  border:0;
  background:#111;
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.03em;
  cursor:pointer;
}
.scruffs-fav{
  height:52px;
  border:1px solid #bdb7b0;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.scruffs-fav svg{width:20px;height:20px}
.scruffs-fav.on svg{fill:#111}
.scruffs-detail-accordions{
  border-top:1px solid rgba(17,17,17,.2);
}
.scruffs-accordion{
  border-bottom:1px solid rgba(17,17,17,.2);
}
.scruffs-accordion-head{
  width:100%;
  min-height:58px;
  padding:0;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}
.scruffs-accordion-head svg{
  width:16px;height:16px;
  fill:none;stroke:#111;stroke-width:1.6;
  transition:transform .2s;
}
.scruffs-accordion.open .scruffs-accordion-head svg{transform:rotate(180deg)}
.scruffs-accordion-body{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .24s ease;
}
.scruffs-accordion-body>div{overflow:hidden}
.scruffs-accordion.open .scruffs-accordion-body{grid-template-rows:1fr}
.scruffs-accordion-body p,
.scruffs-accordion-body ul{
  margin:0;
  padding:0 0 22px;
  font-size:14px;
  line-height:1.85;
  color:#57514c;
}
.scruffs-accordion-body ul{padding-left:18px;padding-bottom:22px}
.scruffs-accordion-body li+li{margin-top:5px}

.detail-service-strip{
  width:min(1380px,calc(100% - 64px));
  margin:16px auto 70px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid rgba(17,17,17,.18);
  border-bottom:1px solid rgba(17,17,17,.18);
}
.detail-service-strip>div{
  min-height:150px;
  padding:30px;
  display:grid;
  justify-items:center;
  align-content:center;
  text-align:center;
}
.detail-service-strip>div+div{border-left:1px solid rgba(17,17,17,.18)}
.detail-service-strip svg{
  width:29px;height:29px;
  margin-bottom:13px;
  fill:none;stroke:#111;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
}
.detail-service-strip strong{font-size:14px;margin-bottom:6px}
.detail-service-strip span{font-size:12px;color:#77716c}

@media(max-width:900px){
  body[data-page="detail"] .shop-main{width:calc(100% - 32px)}
  body[data-page="detail"] .product-detail{
    grid-template-columns:1fr!important;
    gap:30px!important;
    padding-top:20px!important;
  }
  .scruffs-detail-info{position:static}
  .detail-service-strip{width:calc(100% - 32px);grid-template-columns:1fr;margin-bottom:45px}
  .detail-service-strip>div+div{border-left:0;border-top:1px solid rgba(17,17,17,.18)}
}
@media(max-width:560px){
  .scruffs-detail-gallery{grid-template-columns:1fr}
  .scruffs-detail-thumbs{order:2;flex-direction:row}
  .scruffs-detail-thumbs button{width:72px}
  .scruffs-detail-buy{grid-template-columns:100px 1fr 48px}
}


/* ===== V50 SHOP HEADER: EXACT SAME DESKTOP COORDINATES AS HOME ===== */
@media(min-width:1081px){
  .site-header.shop-site-header{
    height:82px!important;
    font-family:"Noto Sans JP",sans-serif!important;
  }
  .site-header .site-header-inner{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:82px!important;
    padding:0!important;
    max-width:none!important;
  }
  .site-header .brand{
    position:absolute!important;
    left:34px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    height:54px!important;
    display:flex!important;
    align-items:center!important;
  }
  .site-header .brand img{
    width:180px!important;
    height:54px!important;
    display:block!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .site-main-nav{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    height:82px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:26px!important;
    font-family:"Noto Sans JP",sans-serif!important;
    white-space:nowrap!important;
  }
  .site-main-nav>a,.site-nav-trigger{
    font-family:"Noto Sans JP",sans-serif!important;
    font-size:18px!important;
    font-weight:600!important;
    line-height:1.45!important;
    letter-spacing:0!important;
  }
  .site-header-actions{
    position:absolute!important;
    right:34px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:320px!important;
    height:54px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
  }
}


/* ===== V50 REFERENCE-LIKE DETAIL PAGE ===== */
body[data-page="detail"] .shop-main{
  width:min(1320px,calc(100% - 64px))!important;
  margin:0 auto!important;
}
body[data-page="detail"] .product-detail{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr)!important;
  gap:48px!important;
  align-items:start!important;
  padding:44px 0 80px!important;
}
.ref-detail-gallery{min-width:0}
.ref-detail-main{
  position:relative;
  width:100%;
  background:#d9d4ce;
  overflow:hidden;
}
.ref-detail-main>img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.ref-detail-tag{
  position:absolute;
  left:30px;
  top:30px;
  z-index:2;
  padding:5px 10px;
  border-radius:4px;
  background:#2d2d2d;
  color:#fff;
  font-size:14px;
  font-weight:700;
}
.ref-detail-next{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:0;
  background:rgba(255,255,255,.82);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.ref-detail-next svg{
  width:24px;height:24px;
  fill:none;stroke:#666;stroke-width:1.5;
}
.ref-detail-thumbs{
  display:flex;
  gap:8px;
  margin-top:20px;
  overflow-x:auto;
  padding-bottom:2px;
}
.ref-detail-thumbs button{
  flex:0 0 66px;
  width:66px;height:66px;
  padding:0;
  border:1px solid transparent;
  background:#e2ddd8;
  cursor:pointer;
  overflow:hidden;
}
.ref-detail-thumbs button.active{border-color:#222}
.ref-detail-thumbs img{
  width:100%;height:100%;
  display:block;object-fit:cover;
}

.ref-detail-info{
  padding:0 0 20px;
  color:#3f3f3f;
}
.ref-detail-info h1{
  margin:0 0 22px;
  font-size:27px;
  line-height:1.25;
  font-weight:500;
  color:#363636;
}
.ref-detail-price{
  margin-bottom:28px;
  font-size:20px;
  font-weight:500;
  color:#666;
}
.ref-detail-rule{
  height:1px;
  background:#e0e0e0;
  margin-bottom:30px;
}
.ref-detail-quantity label{
  display:block;
  margin-bottom:12px;
  font-size:15px;
  font-weight:600;
  color:#686868;
}
.ref-qty-buttons{
  display:flex;
  gap:11px;
  margin-bottom:44px;
}
.ref-qty-buttons button,
.ref-qty-buttons input{
  width:53px;
  height:53px;
  border:1px solid #d3d3d3;
  background:#fff;
  text-align:center;
  font-size:16px;
  color:#666;
}
.ref-qty-buttons input{outline:none}
.ref-add-cart,
.ref-wishlist{
  width:100%;
  height:53px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:2px;
  font-size:15px;
  cursor:pointer;
}
.ref-add-cart{
  border:1px solid #333;
  background:transparent;
  color:#222;
  margin-bottom:27px;
}
.ref-wishlist{
  gap:11px;
  border:1px solid #333;
  background:#313131;
  color:#fff;
  margin-bottom:102px;
}
.ref-wishlist svg{
  width:21px;height:21px;
  fill:none;stroke:currentColor;
}
.ref-wishlist.on svg{fill:#fff}

.ref-detail-accordion-list{
  border-top:1px solid #e2e2e2;
}
.ref-accordion{
  border-bottom:1px solid #e2e2e2;
}
.ref-accordion-head{
  width:100%;
  min-height:65px;
  padding:0 10px;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#696969;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}
.ref-accordion-head svg{
  width:16px;height:16px;
  fill:none;stroke:#777;stroke-width:1.8;
  transition:transform .18s;
}
.ref-accordion.open .ref-accordion-head svg{transform:rotate(180deg)}
.ref-accordion-body{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .22s ease;
}
.ref-accordion-body>div{overflow:hidden}
.ref-accordion.open .ref-accordion-body{grid-template-rows:1fr}
.ref-accordion-body p,
.ref-accordion-body ul{
  margin:0;
  padding:0 32px 27px;
  font-size:14px;
  line-height:1.8;
  color:#696969;
}
.ref-accordion-body ul{padding-left:50px}
.ref-accordion-body li+li{margin-top:4px}

/* Remove older experimental detail modules/styles from visible flow. */
.detail-rich-content,.detail-service-strip,.scruffs-detail-gallery,.scruffs-detail-info{display:none!important}

@media(max-width:900px){
  body[data-page="detail"] .shop-main{width:calc(100% - 32px)!important}
  body[data-page="detail"] .product-detail{
    grid-template-columns:1fr!important;
    gap:34px!important;
    padding-top:24px!important;
  }
  .ref-wishlist{margin-bottom:54px}
}
@media(max-width:560px){
  .ref-detail-info h1{font-size:24px}
  .ref-detail-tag{left:16px;top:16px}
  .ref-detail-thumbs button{flex-basis:58px;width:58px;height:58px}
}


/* ===== V6.1 DETAIL GALLERY NAV + LIGHTBOX ===== */
.ref-detail-main{
  cursor:zoom-in;
}
.ref-detail-prev,
.ref-detail-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:0;
  background:rgba(255,255,255,.82);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
}
.ref-detail-prev{left:0}
.ref-detail-next{right:0}
.ref-detail-prev.hidden,
.ref-detail-next.hidden,
.detail-lightbox-prev.hidden,
.detail-lightbox-next.hidden{
  display:none!important;
}
.ref-detail-prev svg,
.ref-detail-next svg{
  width:24px;height:24px;
  fill:none;stroke:#666;stroke-width:1.5;
}

/* Fullscreen-style image zoom */
.detail-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  background:#fff;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease;
}
.detail-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body.detail-lightbox-open{
  overflow:hidden!important;
}
.detail-lightbox-stage{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:min(74vw,1180px);
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.detail-lightbox-stage img{
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.detail-lightbox-close{
  position:absolute;
  right:18px;
  top:14px;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  display:grid;
  place-items:center;
  z-index:5;
  cursor:pointer;
}
.detail-lightbox-close svg,
.detail-lightbox-prev svg,
.detail-lightbox-next svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:#111;
  stroke-width:1.5;
}
.detail-lightbox-prev,
.detail-lightbox-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:72px;
  border:0;
  background:transparent;
  display:grid;
  place-items:center;
  z-index:5;
  cursor:pointer;
}
.detail-lightbox-prev{left:10px}
.detail-lightbox-next{right:10px}
.detail-lightbox-thumbs{
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  display:flex;
  gap:2px;
  padding:3px;
  background:rgba(255,255,255,.92);
  z-index:6;
}
.detail-lightbox-thumbs button{
  width:58px;
  height:58px;
  padding:0;
  border:2px solid transparent;
  background:#eee;
  overflow:hidden;
  cursor:pointer;
}
.detail-lightbox-thumbs button.active{
  border-color:#111;
}
.detail-lightbox-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media(max-width:800px){
  .detail-lightbox-stage{
    width:100vw;
    padding:54px 24px 92px;
  }
  .detail-lightbox-prev{left:0}
  .detail-lightbox-next{right:0}
  .detail-lightbox-thumbs button{
    width:50px;
    height:50px;
  }
}


/* ===== V6.2 MOBILE SHOP HEADER ===== */
@media(max-width:1080px){
  html,body{
    overflow-x:hidden!important;
    max-width:100%!important;
  }

  .site-header.shop-site-header{
    height:70px!important;
    overflow:visible!important;
  }

  .site-header .site-header-inner{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    height:70px!important;
    padding:0 16px!important;
    gap:12px!important;
    overflow:visible!important;
  }

  .site-header .brand{
    position:static!important;
    transform:none!important;
    height:42px!important;
    flex:0 1 auto!important;
    min-width:0!important;
  }

  .site-header .brand img{
    width:158px!important;
    height:42px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }

  .site-main-nav,
  .site-header-actions > .shop-lang-compact-wrap,
  .site-header-actions > .site-icon-btn{
    display:none!important;
  }

  .site-header-actions{
    position:static!important;
    transform:none!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
  }

  .site-mobile-menu-btn{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#111!important;
    cursor:pointer!important;
  }

  .site-mobile-menu-btn svg{
    width:26px!important;
    height:26px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
  }

  .site-mobile-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:160!important;
    background:rgba(0,0,0,.3)!important;
    opacity:0!important;
    visibility:hidden!important;
    transition:.2s ease!important;
  }
  .site-mobile-overlay.open{
    opacity:1!important;
    visibility:visible!important;
  }

  .site-mobile-drawer{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    z-index:170!important;
    width:min(88vw,390px)!important;
    padding:18px!important;
    background:#fff!important;
    transform:translateX(105%)!important;
    transition:transform .24s ease!important;
    overflow-y:auto!important;
    box-shadow:-18px 0 50px rgba(0,0,0,.12)!important;
  }
  .site-mobile-drawer.open{
    transform:translateX(0)!important;
  }

  .site-mobile-drawer-head{
    height:56px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    border-bottom:1px solid rgba(17,17,17,.14)!important;
  }

  .site-mobile-drawer-head img{
    width:160px!important;
    height:40px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }

  .site-mobile-drawer-close{
    width:42px!important;
    height:42px!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    background:transparent!important;
  }

  .site-mobile-drawer-close svg{
    width:24px!important;
    height:24px!important;
    fill:none!important;
    stroke:#111!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
  }

  .site-mobile-drawer nav{
    display:grid!important;
  }

  .site-mobile-drawer nav a,
  .site-mobile-drawer nav summary{
    min-height:54px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:0!important;
    border-bottom:1px solid rgba(17,17,17,.14)!important;
    color:#111!important;
    text-decoration:none!important;
    font-size:16px!important;
    font-weight:700!important;
    list-style:none!important;
  }

  .site-mobile-drawer nav summary::-webkit-details-marker{
    display:none!important;
  }

  .site-mobile-drawer nav details > a{
    min-height:auto!important;
    padding:11px 12px!important;
    border:0!important;
    color:#5e5853!important;
    font-size:14px!important;
    font-weight:500!important;
  }

  .site-mobile-drawer-lang{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:20px!important;
  }

  .site-mobile-drawer-lang button{
    border:1px solid #d7d2cc!important;
    border-radius:999px!important;
    background:#fff!important;
    padding:10px!important;
    font-weight:700!important;
  }

  .site-mobile-drawer-lang button.active{
    background:#111!important;
    color:#fff!important;
    border-color:#111!important;
  }

  body.site-mobile-menu-open{
    overflow:hidden!important;
  }
}

/* ===== V6.2 MOBILE LISTING WIDTH / FAVORITE FIX ===== */
@media(max-width:700px){
  .shop-listing-shell,
  .shop-main,
  .listing-main,
  .products-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }

  .product-grid{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px 12px!important;
    padding:0 16px!important;
    box-sizing:border-box!important;
  }

  .product-card{
    position:relative!important;
    min-width:0!important;
    width:100%!important;
    overflow:visible!important;
  }

  .product-card-media{
    position:relative!important;
    width:100%!important;
    overflow:hidden!important;
  }

  .product-card img{
    width:100%!important;
    height:auto!important;
    display:block!important;
  }

  .product-card .fav-btn,
  .product-card .product-fav,
  .product-card [data-fav]{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    left:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    z-index:4!important;
  }

  .product-card .fav-btn svg,
  .product-card .product-fav svg,
  .product-card [data-fav] svg{
    width:20px!important;
    height:20px!important;
    margin:0!important;
  }
}


/* ===== V6.3 MOBILE COMPONENT VISIBILITY GUARD ===== */
.site-mobile-menu-btn,
.site-mobile-overlay,
.site-mobile-drawer{
  display:none;
}

@media(max-width:1080px){
  .site-mobile-menu-btn{
    display:grid!important;
  }
  .site-mobile-overlay{
    display:block!important;
  }
  .site-mobile-drawer{
    display:block!important;
  }

  /* Mobile search row inside drawer */
  .site-mobile-search-btn{
    width:100%!important;
    min-height:54px!important;
    padding:0!important;
    border:0!important;
    border-bottom:1px solid rgba(17,17,17,.14)!important;
    background:transparent!important;
    color:#111!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    font-family:"Noto Sans JP",sans-serif!important;
    font-size:16px!important;
    font-weight:700!important;
    text-align:left!important;
    cursor:pointer!important;
  }
  .site-mobile-search-btn svg{
    width:21px!important;
    height:21px!important;
    fill:none!important;
    stroke:#111!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
  }
}

.ref-detail-price{display:flex;align-items:baseline;gap:10px}.ref-detail-compare-price{font-size:15px;color:#999;font-weight:400}.ref-detail-compare-price del{text-decoration-thickness:1px;text-decoration-color:#888}


/* ===== V39 DETAIL FIRST-SCREEN IMAGE / BREADCRUMB ===== */
body[data-page="detail"] .breadcrumbs {
  font-size:15px!important;
}
body[data-page="detail"] section.product-detail#productDetail {
  padding:0!important;
}
body[data-page="detail"] .ref-detail-main>img {
  width:100%!important;
  height:min(720px, max(280px, calc(100vh - 185px)))!important;
  height:min(720px, max(280px, calc(100dvh - 185px)))!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:900px) {
  body[data-page="detail"] section.product-detail#productDetail {padding:0!important;}
  body[data-page="detail"] .ref-detail-main>img {
    height:min(620px, max(240px, calc(100dvh - 155px)))!important;
  }
}


/* ===== V40 DETAIL LANDSCAPE GALLERY (4:3) ===== */
/* Keep the entire photo visible in a shorter landscape frame. */
body[data-page="detail"] .ref-detail-main {
  aspect-ratio:4 / 3!important;
  height:auto!important;
  position:relative!important;
}
body[data-page="detail"] .ref-detail-main>img {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:900px) {
  body[data-page="detail"] .ref-detail-main {aspect-ratio:4 / 3!important;}
  body[data-page="detail"] .ref-detail-main>img {height:100%!important;}
}

/* ===== V41 DETAIL GALLERY: REMOVE GREY LETTERBOX BARS ===== */
body[data-page="detail"] .ref-detail-main {
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
}
body[data-page="detail"] .ref-detail-main>img {
  background:#fff!important;
}

/* ===== V42 DETAIL GALLERY: FILL LANDSCAPE FRAME ===== */
body[data-page="detail"] .ref-detail-main > img {
  object-fit:cover!important;
  object-position:center center!important;
}

/* V43: consistent breadcrumb and product count typography */
.breadcrumbs, body[data-page="detail"] .breadcrumbs {font-size:15px!important;}
.shop-listing-heading span, #resultCount {font-size:15px!important;}
/* V43: SALE-only red typography, keeping existing backgrounds and NEW badges */
.category-tabs button[data-category="sale"],
.category-tabs button[data-category="sale"].active {color:#d32f2f!important;}
.product-tag.is-sale, .ref-detail-tag.is-sale {color:#e53935!important;}
.ref-detail-price.is-sale {color:#d32f2f!important;}
.ref-detail-price.is-sale .ref-detail-compare-price,
.ref-detail-price.is-sale .ref-detail-compare-price del {color:#999!important;}
/* Mobile menu SALE item only */
.site-mobile-drawer a[href*="category=sale"] {color:#d32f2f!important;}

/* TOMO V46 SKU color and size selectors */
.tomo-card-colors,.tomo-detail-color-list,.tomo-detail-size-list{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tomo-card-colors{margin-top:10px;gap:9px}
.tomo-color-dot{appearance:none;position:relative;width:22px;height:22px;border-radius:50%;border:1px solid rgba(0,0,0,.18);background:var(--tomo-swatch);cursor:pointer;flex:0 0 auto;padding:0}
.tomo-color-dot.active:after{content:"";position:absolute;inset:-5px;border:1.5px solid #262626;border-radius:50%;pointer-events:none}
.tomo-card-colors .tomo-color-dot{width:17px;height:17px}
.tomo-card-colors .tomo-color-dot.active:after{inset:-4px}
.tomo-detail-option{margin:16px 0 22px}
.tomo-detail-option-label{font-size:15px;margin-bottom:14px;color:#333}
.tomo-detail-color-list{gap:17px;padding:4px}
.tomo-detail-color-list .tomo-color-dot{width:27px;height:27px}
.tomo-size-choice{min-width:48px;padding:10px 15px;background:white;border:1px solid #ccc;color:#333;cursor:pointer;font:inherit;font-size:14px}
.tomo-size-choice.active{border-color:#222;background:#222;color:#fff}
.tomo-size-choice:disabled{opacity:.3;cursor:not-allowed;text-decoration:line-through}
.ref-add-cart:disabled{opacity:.5;cursor:not-allowed}


/* ===== V49 CART: quantity control, line totals, stock notice ===== */
.tomo-cart-item{grid-template-columns:150px minmax(0,1fr) 200px!important;gap:22px!important;align-items:start!important}
.tomo-cart-item>img{width:150px!important;height:150px!important;object-fit:cover!important}
.tomo-cart-description{min-width:0;padding-top:4px}
.tomo-cart-description h3{margin:0 0 12px;font-size:16px;line-height:1.55}
.tomo-cart-specs{margin:0 0 12px;font-size:14px;line-height:1.65;overflow-wrap:anywhere;color:#555}
.tomo-cart-description [data-remove-cart]{padding:0;color:#666;font-size:14px;cursor:pointer}
.tomo-cart-controls{display:flex;flex-direction:column;align-items:flex-end;gap:12px;padding-top:3px}
.tomo-cart-stepper{display:grid;grid-template-columns:38px 44px 38px;height:40px;border:1px solid #c9c9c9}
.tomo-cart-stepper button{width:38px;height:38px!important;border:0!important;background:#fff!important;text-decoration:none!important;font-size:20px;cursor:pointer}
.tomo-cart-stepper button:disabled{color:#bbb;cursor:not-allowed}
.tomo-cart-stepper output{display:grid;place-items:center;font-size:15px;border-left:1px solid #e3e3e3;border-right:1px solid #e3e3e3}
.tomo-cart-line-total{font-size:17px;white-space:nowrap}
.tomo-cart-stock-notice{margin:0;color:#d32f2f;font-size:13px;text-align:right;line-height:1.5;min-height:0}
.tomo-cart-stock-notice:empty{display:none}
@media(max-width:700px){.tomo-cart-item{grid-template-columns:90px minmax(0,1fr)!important;gap:12px!important}.tomo-cart-item>img{width:90px!important;height:90px!important}.tomo-cart-controls{grid-column:2;align-items:flex-start;padding-top:0}.tomo-cart-stock-notice{text-align:left}.tomo-cart-description h3{font-size:14px}.tomo-cart-specs{font-size:13px}}

/* ===== V50 CART MICRO-INTERACTIONS ===== */
.tomo-cart-item{transition:opacity .23s ease,transform .23s ease,background-color .23s ease}
.tomo-cart-item.tomo-cart-removing{opacity:0;transform:translateX(18px);pointer-events:none}
.tomo-cart-item.tomo-cart-just-updated .tomo-cart-line-total,
.tomo-cart-item.tomo-cart-just-updated .tomo-cart-stepper output{animation:tomoCartValuePop .32s ease both}
@keyframes tomoCartValuePop{0%{transform:translateY(5px);opacity:.45}70%{transform:translateY(-2px);opacity:1}100%{transform:translateY(0);opacity:1}}
.tomo-cart-stepper button{transition:background-color .18s ease,color .18s ease,transform .18s ease}
.tomo-cart-stepper button:not(:disabled):hover{background:#f0eeeb!important;color:#111}
.tomo-cart-stepper button:not(:disabled):active{transform:scale(.88)}
.tomo-cart-controls .tomo-cart-remove{margin-top:auto;padding:5px 0 0!important;border:0!important;background:transparent!important;color:#777!important;font-size:13px!important;line-height:1.5;text-decoration:underline;text-underline-offset:3px;cursor:pointer;transition:color .18s ease,opacity .18s ease}
.tomo-cart-controls .tomo-cart-remove:hover{color:#d32f2f!important}
.tomo-cart-controls{align-self:stretch;min-height:150px}
@media(max-width:700px){.tomo-cart-controls{min-height:0;align-items:flex-end!important;grid-column:2!important}.tomo-cart-stock-notice{text-align:right!important}.tomo-cart-controls .tomo-cart-remove{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.tomo-cart-item,.tomo-cart-stepper button,.tomo-cart-controls .tomo-cart-remove{transition:none!important}.tomo-cart-item.tomo-cart-just-updated .tomo-cart-line-total,.tomo-cart-item.tomo-cart-just-updated .tomo-cart-stepper output{animation:none!important}}

/* V51: Empty cart occupies full width; no zero-value checkout sidebar. */
.cart-layout.tomo-cart-is-empty{display:block!important;grid-template-columns:none!important;}
.cart-layout.tomo-cart-is-empty .cart-summary,
.cart-layout .cart-summary[hidden]{display:none!important;}
.cart-layout.tomo-cart-is-empty #cartList{display:none!important;}
.cart-layout.tomo-cart-is-empty .empty-state{width:100%;max-width:none;margin:0 auto;text-align:center;}

/* ===== V52 SHOP CARD COLOR PREVIEW ===== */
/* No persistent selection ring on listing swatches; detail selection stays unchanged. */
.tomo-card-colors .tomo-color-dot.active::after,
.tomo-card-colors .tomo-color-dot::after{display:none!important;content:none!important}
.tomo-card-colors{margin:8px 0 10px!important;gap:10px!important}
.tomo-card-colors .tomo-color-dot{transition:transform .18s ease,box-shadow .18s ease!important}
.tomo-card-colors .tomo-color-dot:hover,
.tomo-card-colors .tomo-color-dot:focus-visible{transform:scale(1.16);box-shadow:0 0 0 3px rgba(17,17,17,.12);outline:none}
.product-meta>.product-price{margin-top:0!important}
@media(prefers-reduced-motion:reduce){.tomo-card-colors .tomo-color-dot{transition:none!important}}

/* V54: Restore approved SALE badge styling. NEW badge remains unchanged. */
.product-tag.is-sale,
.ref-detail-tag.is-sale {
  background: #fff !important;
  color: #e53935 !important;
}

/* V55: SALE listing price consistent with product detail. */
.product-card .product-price.is-sale{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.product-card .product-price.is-sale .tomo-card-current-price{color:#d32f2f!important}
.product-card .product-price.is-sale .tomo-card-compare-price{color:#999!important;font-weight:400;font-size:13px;text-decoration:line-through;text-decoration-thickness:1px}

/* V58: Keep SALE prices consistent across listing and recommendations. */
.product-card .product-price.is-sale .tomo-card-current-price{color:#d32f2f!important}
.product-card .product-price.is-sale .tomo-card-compare-price{color:#999!important;text-decoration:line-through!important}

/* V59: visible separation between SALE current price and crossed-out original. */
.product-card .product-price.is-sale .tomo-card-compare-price {
  margin-left: 12px !important;
  display: inline-block;
  white-space: nowrap;
}

/* V60: Match the product detail SALE price hierarchy on SHOP cards. */
.product-card .product-price.is-sale {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap;
  column-gap: 8px !important;
  row-gap: 2px;
}
.product-card .product-price.is-sale .tomo-card-current-price {
  color: #d32f2f !important;
  font-size: 20px !important;
  line-height: 1.35;
}
.product-card .product-price.is-sale .tomo-card-compare-price {
  margin-left: 0 !important;
  color: #999 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  text-decoration: line-through !important;
  white-space: nowrap;
}

/* V61: SALE current price matches ordinary SHOP card price. */
.product-card .product-price.is-sale .tomo-card-current-price {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
.product-card .product-price.is-sale .tomo-card-compare-price {
  font-size: 0.85em !important;
  line-height: inherit !important;
}
