/* Only the two approved pages. Native forms, gallery and catalogue remain intact. */
html :is(body#category.category-id-158,body#product.product-id-4406) { --jp-compact-ink:#172039; background:#fff; }
html :is(body#category.category-id-158,body#product.product-id-4406) #header { position:relative!important; top:auto!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) #japean-reassure { padding:5px 12px; min-height:26px; font-size:11px; background:#14234e; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__topbar { background:#fff!important; border-bottom:1px solid #e5e4e0; padding:10px 0!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__topbar-inner { min-height:46px!important; height:auto!important; gap:20px!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__logo { width:146px!important; max-width:146px!important; padding:5px 9px!important; background:#14234e; border-radius:2px; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__logo img { width:128px!important; height:32px!important; max-height:32px!important; object-fit:contain; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__menu-trigger,
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__icon-link,
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header-search__submit { color:#14234e!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) #japean-category-shortcuts { background:#fff!important; border-bottom:1px solid #e5e4e0; padding:6px 18px!important; gap:24px!important; min-height:36px!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) #japean-category-shortcuts a { background:transparent!important; border:0!important; box-shadow:none!important; padding:4px 8px!important; min-height:28px!important; color:#172039!important; font-size:13px!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) #wrapper { padding-top:0!important; background:#fff!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc__wrapper { margin:0!important; padding:10px 0!important; background:#fff!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc { margin:0!important; font-size:11px!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) a:focus-visible,
html :is(body#category.category-id-158,body#product.product-id-4406) button:focus-visible { outline:3px solid #4478bb; outline-offset:3px; }

/* Category 158: products before decorative space, three columns / two on mobile. */
html body#category.category-id-158 .wrapper__left-column { display:none!important; }
html body#category.category-id-158 .wrapper__content { width:100%!important; max-width:100%!important; flex:0 0 100%!important; }
html body#category.category-id-158 #content-wrapper { width:100%!important; max-width:1240px!important; margin-inline:auto!important; }
html body#category.category-id-158 .japean-compact-category-intro { padding:12px 0 20px; border-bottom:1px solid #e5e4e0; margin:0; }
html body#category.category-id-158 .japean-compact-eyebrow { text-transform:uppercase; letter-spacing:.18em; font-size:10px; color:#647080; margin:0 0 6px; }
html body#category.category-id-158 .japean-compact-category-intro h1 { font-size:38px; line-height:1.15; letter-spacing:-.04em; margin:0 0 12px; color:#172039; text-transform:none; }
html body#category.category-id-158 .japean-compact-category-intro p:last-child { font-size:14px; line-height:1.5; color:#526070; margin:0; }
html body#category.category-id-158 #products { margin-top:0!important; }
html body#category.category-id-158 #js-product-list-top { padding:12px 0!important; margin:0!important; }
html body#category.category-id-158 .products__selection { margin:0!important; padding:8px 0!important; }
html body#category.category-id-158 .japean-catalog-filters { margin:0!important; padding:0!important; }
html body#category.category-id-158 #search-filters .left-block__title { display:none!important; }
html body#category.category-id-158 #search-filters .accordion { display:flex!important; gap:8px; align-items:flex-start; flex-wrap:wrap; }
html body#category.category-id-158 #search-filters .accordion-item { flex:0 1 auto; border:1px solid #e5e4e0!important; border-radius:5px; position:relative; margin:0!important; }
html body#category.category-id-158 #search-filters .accordion-button { min-height:44px!important; padding:10px 15px!important; background:#fff!important; color:#172039!important; font-size:13px!important; }
html body#category.category-id-158 #search-filters .accordion-collapse { max-width:100%; }
html body#category.category-id-158 #search-filters .accordion-body { padding:10px!important; margin:0!important; }
html body#category.category-id-158 #js-product-list > .products { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:26px 24px!important; margin:0!important; }
html body#category.category-id-158 .japean-catalog-card { width:auto!important; max-width:none!important; margin:0!important; padding:0!important; min-width:0; border:0!important; background:transparent!important; box-shadow:none!important; }
html body#category.category-id-158 .japean-catalog-card__media,
html body#category.category-id-158 .japean-catalog-card__image-link { height:330px!important; min-height:0!important; aspect-ratio:auto!important; background:#f8f7f5!important; }
html body#category.category-id-158 .japean-catalog-card__image { width:100%!important; height:330px!important; object-fit:contain!important; }
html body#category.category-id-158 .japean-catalog-card__title { font-size:15px!important; line-height:1.35!important; margin:12px 0 5px!important; padding:0!important; }
html body#category.category-id-158 .japean-catalog-card__stock { font-size:12px!important; }
html body#category.category-id-158 .japean-catalog-card__price { font-size:15px!important; margin-top:5px!important; }

/* Product 4406: keep the native AJAX fragments and form in their original tree. */
html body#product.product-id-4406 .japean-product-page { max-width:1240px!important; margin:auto!important; padding:0 24px!important; }
html body#product.product-id-4406 .japean-product-hero { display:grid!important; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important; gap:56px!important; margin:0!important; padding:10px 0 0!important; align-items:start!important; }
html body#product.product-id-4406 .japean-product-gallery,
html body#product.product-id-4406 .japean-product-panel { width:auto!important; min-width:0; margin:0!important; padding:0!important; }
html body#product.product-id-4406 .japean-product-panel,
html body#product.product-id-4406 .japean-product-panel__inner { background:transparent!important; border:0!important; border-radius:0!important; box-shadow:none!important; padding:0!important; }
html body#product.product-id-4406 .japean-product-title { font-size:34px!important; line-height:1.15!important; letter-spacing:-.035em; margin:0 0 14px!important; }
html body#product.product-id-4406 .japean-product-price-wrap { margin:0 0 14px!important; }
html body#product.product-id-4406 .product__prices { margin:0!important; }
html body#product.product-id-4406 .japean-product-gallery .product__carousel { height:500px!important; min-height:0!important; background:#f7f6f3; border-radius:0!important; }
html body#product.product-id-4406 .japean-product-gallery .carousel-inner,
html body#product.product-id-4406 .japean-product-gallery .carousel-item,
html body#product.product-id-4406 .japean-product-gallery .carousel-item picture { height:500px!important; min-height:0!important; }
html body#product.product-id-4406 .japean-product-gallery .carousel-item img { height:500px!important; width:100%!important; object-fit:contain!important; }
html body#product.product-id-4406 .product__thumbnails { margin-top:12px!important; }
html body#product.product-id-4406 .product__thumbnail-image { max-height:70px!important; object-fit:contain; }
html body#product.product-id-4406 .product__variants { margin-bottom:12px!important; gap:10px!important; }
html body#product.product-id-4406 .japean-product-actions { margin:0!important; }
html body#product.product-id-4406 .product__add-to-cart-container { margin-bottom:12px!important; }
html body#product.product-id-4406 .product__add-to-cart-button { min-height:50px!important; border-radius:5px!important; background:#14234e!important; }
html body#product.product-id-4406 .japean-product-panel__description { margin:12px 0!important; padding:0!important; }
html body#product.product-id-4406 .japean-product-panel__description-title { display:none; }
html body#product.product-id-4406 .japean-product-intro { font-size:14px!important; line-height:1.5!important; }
html body#product.product-id-4406 .japean-product-story { margin-top:32px!important; }
html body#product.product-id-4406 .japean-product-story__main { padding:24px!important; }
html body#product.product-id-4406 #japean-size-guide { margin-top:24px!important; }

@media(max-width:767.98px) {
  html :is(body#category.category-id-158,body#product.product-id-4406) #japean-reassure { min-height:24px!important; padding:4px 10px!important; font-size:10px!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__topbar { padding:6px 0!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__topbar-inner { min-height:42px!important; gap:10px!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__logo { width:118px!important; max-width:118px!important; padding:4px 6px!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-header__logo img { width:106px!important; height:26px!important; max-height:26px!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) #japean-category-shortcuts { display:none!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc__wrapper { padding:9px 0!important; }
  html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc { font-size:10px!important; white-space:nowrap; overflow:hidden; }
  html body#category.category-id-158 #content-wrapper { padding:0 18px!important; }
  html body#category.category-id-158 .japean-compact-category-intro { padding:6px 0 12px; }
  html body#category.category-id-158 .japean-compact-category-intro h1 { font-size:28px; margin-bottom:7px; }
  html body#category.category-id-158 .japean-compact-category-intro p:last-child { font-size:12px; }
  html body#category.category-id-158 #search-filters .accordion-button { padding:10px 12px!important; font-size:12px!important; }
  html body#category.category-id-158 #search-filters .accordion-item[data-name="Taille"] { max-width:100%; }
  html body#category.category-id-158 #js-product-list > .products { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:22px 12px!important; }
  html body#category.category-id-158 .japean-catalog-card__media,
  html body#category.category-id-158 .japean-catalog-card__image-link,
  html body#category.category-id-158 .japean-catalog-card__image { height:204px!important; }
  html body#category.category-id-158 .japean-catalog-card__title { font-size:12px!important; margin-top:8px!important; }
  html body#category.category-id-158 .japean-catalog-card__stock { font-size:10px!important; }
  html body#category.category-id-158 .japean-catalog-card__price { font-size:14px!important; }
  html body#product.product-id-4406 .japean-product-page { padding:0 18px!important; }
  html body#product.product-id-4406 .japean-product-hero { grid-template-columns:minmax(0,1fr)!important; gap:0!important; padding:0!important; }
  html body#product.product-id-4406 .japean-product-panel,
  html body#product.product-id-4406 .japean-product-panel__inner { display:contents!important; }
  html body#product.product-id-4406 .japean-product-title { grid-row:1; font-size:25px!important; margin:4px 0 8px!important; }
  html body#product.product-id-4406 .japean-product-price-wrap { grid-row:2; margin:0 0 8px!important; }
  html body#product.product-id-4406 .japean-product-panel__description { grid-row:3; font-size:12px!important; margin:0 0 10px!important; }
  html body#product.product-id-4406 .japean-product-intro { font-size:12px!important; }
  html body#product.product-id-4406 .japean-product-intro p { margin:0!important; }
  html body#product.product-id-4406 .japean-product-gallery { grid-row:4; margin:0 0 12px!important; }
  html body#product.product-id-4406 .japean-product-gallery .product__carousel,
  html body#product.product-id-4406 .japean-product-gallery .carousel-inner,
  html body#product.product-id-4406 .japean-product-gallery .carousel-item,
  html body#product.product-id-4406 .japean-product-gallery .carousel-item picture,
  html body#product.product-id-4406 .japean-product-gallery .carousel-item img { height:244px!important; min-height:0!important; max-height:244px!important; aspect-ratio:auto!important; }
  html body#product.product-id-4406 .japean-product-gallery .product__images { margin:0!important; }
  html body#product.product-id-4406 .japean-product-actions { grid-row:5; }
  html body#product.product-id-4406 .product__additional-info { grid-row:6; }
  html body#product.product-id-4406 .product__thumbnails { display:none!important; }
  html body#product.product-id-4406 .product__availability,
  html body#product.product-id-4406 .product__variants { margin-bottom:8px!important; }
  html body#product.product-id-4406 .product__actions-qty-add { gap:8px!important; }
  html body#product.product-id-4406 .product__quantity { width:auto!important; }
  html body#product.product-id-4406 .product__add-to-cart-button { min-height:48px!important; }
  html body#product.product-id-4406 .japean-product-story { margin-top:22px!important; }
  html body#product.product-id-4406 .japean-product-story__main { padding:18px!important; }
}

/* Override the historical high-specificity spacing on these pages only. */
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__topbar,
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__topbar .container-md,
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__topbar-inner,
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__left,
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__right,
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__logo-wrap { background:#fff!important; background-color:#fff!important; }
html :is(body#category.category-id-158,body#product.product-id-4406) #header .japean-header__logo { background:#14234e!important; }
html body#product.product-id-4406 #add-to-cart-or-refresh { margin:0!important; padding:0!important; border:0!important; }
html body#product.product-id-4406 .japean-product-price-wrap { padding:0!important; border:0!important; }
html body#product.product-id-4406 .japean-product-page .product__variants,
html body#product.product-id-4406 .japean-product-page .product-variant--size { margin-top:0!important; padding:0!important; border:0!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__label--split { display:flex!important; flex-wrap:nowrap!important; align-items:center!important; justify-content:space-between!important; gap:8px!important; margin:0 0 10px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__legend { font-size:13px!important; color:#526070!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__size-guide-link { font-size:12px!important; width:auto!important; padding:8px 0!important; text-underline-offset:3px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radios--size { gap:8px!important; margin:0 0 10px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radio { min-width:53px!important; width:53px!important; padding:0!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radio label { min-width:53px!important; width:53px!important; height:44px!important; min-height:44px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radios--size .form-check-label { min-width:53px!important; width:53px!important; min-height:44px!important; height:44px!important; font-size:15px!important; border-radius:4px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__help { font-size:11px!important; line-height:1.4!important; margin:0 0 8px!important; }
html body#product.product-id-4406 .japean-product-page .product__actions-qty-add { margin:0!important; padding:0!important; gap:8px!important; }
html body#product.product-id-4406 .japean-product-page .product__quantity,
html body#product.product-id-4406 .japean-product-page .quantity-button__group,
html body#product.product-id-4406 .japean-product-page .quantity-button__group input,
html body#product.product-id-4406 .japean-product-page .quantity-button__group button { height:44px!important; min-height:44px!important; margin:0!important; }
html body#product.product-id-4406 .japean-product-page .product__quantity { width:130px!important; max-width:130px!important; flex:0 0 130px!important; }
@media(max-width:767.98px) {
 html :is(body#category.category-id-158,body#product.product-id-4406) #header #japean-category-shortcuts { display:none!important; }
 html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc { display:flex!important; flex-wrap:nowrap!important; gap:6px!important; overflow:hidden!important; }
 html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc li { flex-shrink:0; font-size:10px!important; }
 html :is(body#category.category-id-158,body#product.product-id-4406) .japean-bc li:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex-shrink:1; }
 html body#product.product-id-4406 .japean-product-page .product__actions-qty-add { display:grid!important; grid-template-columns:130px minmax(0,1fr)!important; align-items:center!important; }
 html body#product.product-id-4406 .japean-product-page .product__add-to-cart { margin:0!important; }
 html body#product.product-id-4406 .japean-product-page .product__add-to-cart-button { padding:10px!important; font-size:13px!important; }
}

html body#product.product-id-4406 .japean-product-page .product__add-to-cart-button,
html body#product.product-id-4406 .japean-product-page .product__add-to-cart-button * { color:#fff!important; }
html body#category.category-id-158 #center-column { max-width:1240px!important; margin-inline:auto!important; padding:0 24px!important; }
html body#category.category-id-158 #js-product-list-header.japean-compact-category-intro h1 { font-size:38px!important; line-height:1.15!important; margin:0 0 12px!important; letter-spacing:-.04em!important; text-transform:none!important; }
html body#category.category-id-158 #products #search-filters .accordion { display:flex!important; flex-direction:row!important; flex-wrap:wrap!important; gap:8px!important; }
html body#category.category-id-158 #products #search-filters .accordion-item { width:auto!important; margin:0!important; }
html body#category.category-id-158 #products .products__filter-button { display:none!important; }
html body#category.category-id-158 #products .products__count { font-size:12px!important; }
html body#category.category-id-158 #products .products__selection { display:flex!important; justify-content:space-between!important; gap:12px; }
html body#category.category-id-158 #products .products__sort { min-width:0!important; width:auto!important; }
@media(max-width:767.98px) {
 html body#category.category-id-158 #center-column { padding:0 18px!important; }
 html body#category.category-id-158 #js-product-list-header.japean-compact-category-intro h1 { font-size:28px!important; margin-bottom:7px!important; }
}

html body#product.product-id-4406 #header .japean-header__topbar { background:#fff!important; }
html body#category.category-id-158 #header .japean-header__topbar { background:#fff!important; }
html body#category.category-id-158 #products .japean-catalog-card__stock { margin:4px 0 0!important; padding:0!important; line-height:1.3!important; }
html body#category.category-id-158 #products .japean-catalog-card__price { margin:5px 0 0!important; padding:0!important; line-height:1.4!important; }
html body#category.category-id-158 #products .japean-catalog-card__title { min-height:0!important; padding:0!important; }

html body#category.category-id-158 #products #search-filters .jp-size-open .accordion-button { pointer-events:auto!important; }
html body#category.category-id-158 #products #search-filters .jp-size-open .accordion-button::after { display:block!important; }

/* The native stock helper adds a second line inside each size label. */
html body#product.product-id-4406 .japean-product-page .product-variant__radio label { height:auto!important; min-height:60px!important; display:flex!important; flex-direction:column!important; align-items:center!important; gap:4px!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radio .japean-size-status { display:block!important; position:static!important; font-size:10px!important; line-height:12px!important; min-height:12px!important; margin:0!important; }
html body#product.product-id-4406 .japean-product-page .product-variant__radios--size { align-items:flex-start!important; }
