/* Quiet refinement: graphite, fine edges, selective glass, and readable surfaces.
   This layer leaves product data, native controls and the fixed logo asset intact. */
body.jj-neutral-ui.jj-refined-ui {
  --jj-ink: #171918;
  --jj-ink-soft: #222523;
  --jj-muted: #626661;
  --jj-line: #dedfdb;
  --jj-canvas: #f3f4f1;
  --jj-surface: #f8f9f6;
  --jj-card-radius: 16px;
  --jj-control-radius: 10px;
  --button-border-radius: 10px;
  --input-border-radius: 10px;
  --modal-border-radius: 20px;
  --jj-shadow: 0 1px 2px rgb(22 28 23 / 3%), 0 8px 28px rgb(22 28 23 / 5%);
}

/* Glass is on a decorative header layer, so fixed drawers keep their viewport. */
body.jj-neutral-ui.jj-refined-ui .header__container,
body.jj-neutral-ui.jj-refined-ui .theme-sticky-header--sticky .header__container,
body.jj-neutral-ui.jj-refined-ui .theme-sticky-header--sticky .transparent .header__container {
  background: transparent;
  border-bottom: 1px solid rgb(32 39 34 / 12%);
  box-shadow: 0 4px 24px rgb(20 26 22 / 3%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.jj-neutral-ui.jj-refined-ui .header__container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgb(255 255 255 / 89%);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}
body.jj-neutral-ui.jj-refined-ui .header__logo-image { border-radius: 6px; }
body.jj-neutral-ui.jj-refined-ui .slideshow__group :is(.block-heading,.block-text) { text-shadow: none; }
body.jj-neutral-ui.jj-refined-ui .jj-navigation__root-link {
  font-weight: 500;
  letter-spacing: .015em;
}
body.jj-neutral-ui.jj-refined-ui .header__container .jj-navigation--desktop .jj-navigation__panel {
  background: rgb(250 251 249 / 93%);
  backdrop-filter: blur(22px) saturate(110%);
  -webkit-backdrop-filter: blur(22px) saturate(110%);
  border: 1px solid rgb(42 49 44 / 16%);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 #fff, 0 18px 44px rgb(18 25 20 / 12%);
}
body.jj-neutral-ui.jj-refined-ui :is(.jj-navigation__product,.jj-navigation__material) {
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(48 57 51 / 13%);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(24 32 26 / 2%);
}
body.jj-neutral-ui.jj-refined-ui .jj-navigation__series-title { font-size: 22px; letter-spacing: -.025em; }
body.jj-neutral-ui.jj-refined-ui :is(.jj-navigation__panel-heading,.jj-navigation__size-heading) {
  color: #626661;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
}
body.jj-neutral-ui.jj-refined-ui .jj-navigation__size-group { border-inline-start-color: #c8cdc6; }
body.jj-neutral-ui.jj-refined-ui .jj-navigation__sizes a {
  background: #f0f2ee;
  border: 1px solid #e1e4dd;
  border-radius: 9px;
}
body.jj-neutral-ui.jj-refined-ui .jj-navigation__sizes small { color: #626661; }

/* Product photos remain on white; the information and CTA have their own space. */
body.jj-neutral-ui.jj-refined-ui .block-product-card.product-card-style--card {
  border-color: #dde1da;
  border-radius: 16px;
  box-shadow: var(--jj-shadow);
  background: linear-gradient(180deg,#fff 60%,#fbfcf9);
}
body.jj-neutral-ui.jj-refined-ui .block-product-card :is(.block-product-card__image-wrapper,.block-product-image__image-wrapper) {
  border-radius: 15px 15px 0 0;
}
body.jj-neutral-ui.jj-refined-ui .block-product-card .block-product-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.012em;
}
body.jj-neutral-ui.jj-refined-ui .block-product-card .block-product-price {
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
body.jj-neutral-ui.jj-refined-ui .block-product-card :is(.block-product-card-info__content,.block-product-card-info:not(.block-product-card-info--layer)) { padding: 18px; }
body.jj-neutral-ui.jj-refined-ui .block-product-card :is(.block-product-title,.block-product-price) { padding-inline: 0; }
body.jj-neutral-ui.jj-refined-ui .block-product-card-info--layer > .block-product-buy-button-wrapper {
  margin: 0 14px 14px;
  width: auto;
  align-self: stretch;
}
body.jj-neutral-ui.jj-refined-ui .block-product-card__sold-out.block-product-card__sold-out {
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .075em;
}

/* Keep native loading text, icons and disabled behavior. No blanket opacity. */
body.jj-neutral-ui.jj-refined-ui .button:not(.button--icon):not(.button--link):not(.button--text),
body.jj-neutral-ui.jj-refined-ui .shopline-element-buy-now,
body.jj-neutral-ui.jj-refined-ui .sgc-product-comparison .sgc-button {
  border-radius: 10px;
  min-height: 44px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .025em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 2px 3px rgb(0 0 0 / 5%);
}
body.jj-neutral-ui.jj-refined-ui .button:not(.button--icon):not(.button--link):not(.button--text)::after { border-radius: 10px; }
body.jj-neutral-ui.jj-refined-ui .field,
body.jj-neutral-ui.jj-refined-ui .field::after { border-radius: 10px; }
body.jj-neutral-ui.jj-refined-ui .field:not(.field--error):not(.field--disabled)::after { border-color: #d5d9d2; }
body.jj-neutral-ui.jj-refined-ui .field:not(.field--error):not(.field--disabled):focus-within::after { border-color: #6c776c; box-shadow: 0 0 0 1px #6c776c; }
body.jj-neutral-ui.jj-refined-ui .product-detail__variant-picker.product-detail__variant-picker .variant-picker__option { --variant-selector-border-radius: 9px; }
body.jj-neutral-ui.jj-refined-ui .modal__content { border-radius: 20px; }

/* Inset editorial surfaces separate the copy from the approved fixed motif. */
body.jj-neutral-ui.jj-refined-ui .before-after {
  max-width: min(1280px,calc(100% - 2 * var(--page-padding,30px)));
  margin: 48px auto;
  padding: clamp(28px,4vw,56px);
  background: linear-gradient(145deg,rgb(255 255 255 / 98%),rgb(248 249 246 / 96%));
  border: 1px solid #dde1da;
  border-radius: 24px;
  box-shadow: var(--jj-shadow);
}
body.jj-neutral-ui.jj-refined-ui .before-after > .block-heading { letter-spacing: -.035em; }
body.jj-neutral-ui.jj-refined-ui .before-after > .block-text { color: #5d645b; line-height: 1.65; }
body.jj-neutral-ui.jj-refined-ui .featured-recommend-products:not(.color-scheme-3) .featured-recommend-products__group > .block-group {
  padding: clamp(22px,3vw,38px);
  background: rgb(255 255 255 / 96%);
  border: 1px solid #dde1da;
  border-radius: 20px;
  box-shadow: var(--jj-shadow);
}
body.jj-neutral-ui.jj-refined-ui .featured-recommend-products .block-description { line-height: 1.75; }
body.jj-neutral-ui.jj-refined-ui .featured-recommend-products.color-scheme-3 {
  background: linear-gradient(130deg,#111613,#222824);
  border-block: 1px solid rgb(255 255 255 / 12%);
}
body.jj-neutral-ui.jj-refined-ui .sgc-product-comparison {
  --comparison-card-border-radius: 16px;
  --comparison-card-border-color: 215,221,212;
}
body.jj-neutral-ui.jj-refined-ui .sgc-product-comparison .sgc-product-card__price { font-weight: 650; font-variant-numeric: tabular-nums; }
body.jj-neutral-ui.jj-refined-ui .sign-up-and-save__content {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  margin-block: 24px 48px;
  padding: 48px 28px;
  background: linear-gradient(140deg,rgb(255 255 255 / 98%),rgb(241 244 237 / 96%));
  border: 1px solid #dde1da;
  border-radius: 24px;
  box-shadow: var(--jj-shadow);
}
body.jj-neutral-ui.jj-refined-ui .footer {
  background: rgb(246 248 243 / 95%);
  border-top: 1px solid #d7ddd2;
}

@media (min-width:960px) {
  body.jj-neutral-ui.jj-refined-ui .header__logo-image { width: 76px; }
  body.jj-neutral-ui.jj-refined-ui .main-collection.facets-layout-vertical .facets-filtering {
    background: rgb(249 250 247 / 97%);
    border-color: #d8ded3;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgb(23 33 24 / 3%);
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow { padding-block: 24px 12px; }
  body.jj-neutral-ui.jj-refined-ui .slideshow .carousel__track {
    border: 1px solid #dde1da;
    border-radius: 22px;
    box-shadow: var(--jj-shadow);
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__item {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    grid-template-rows: minmax(0,1fr);
    align-items: stretch;
    height: clamp(460px,calc(100svh - 160px),660px);
    min-height: clamp(460px,calc(100svh - 160px),660px);
    background: #fff;
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image--desktop { height: 100%; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image--desktop img { object-fit: contain; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image-container {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    transform: none;
    color: #171918;
    background: linear-gradient(125deg,#f4f6f0,#fff 90%);
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__group {
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: clamp(30px,4vw,56px);
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__group :is(.block-heading,.block-text) {
    height: auto;
    max-width: 100%;
    text-align: left;
    color: #171918;
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__group .block-heading {
    font-size: clamp(30px,3.2vw,46px);
    line-height: 1.12;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  body.jj-neutral-ui.jj-refined-ui .slideshow__group .block-text { color: #5d645b; font-size: 15px; line-height: 1.6; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__group .block-button-group { justify-content: flex-start; }
  body.jj-neutral-ui.jj-refined-ui :is(.slideshow__image-text-mask,.slideshow__image-mask) { display: none; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__pager--progress { width: 52px; height: 3px; background: #d7ded2; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__pager--progress.is-active :is(.slideshow__pager--progress-inner,.slideshow__pager--progress-inner-static) { background: #252e25; }
}

@media (max-width:959px) {
  body.jj-neutral-ui.jj-refined-ui .facets-mobile-inner { background: rgb(250 251 249 / 97%); }
  body.jj-neutral-ui.jj-refined-ui .jj-navigation__series-title { font-size: 18px; }
  body.jj-neutral-ui.jj-refined-ui .jj-navigation--mobile :is(.jj-navigation__product,.jj-navigation__material) { border-radius: 12px; }
  body.jj-neutral-ui.jj-refined-ui .header-nav-drawer__content { background: #f8faf5; }
  body.jj-neutral-ui.jj-refined-ui .block-product-card :is(.block-product-card-info__content,.block-product-card-info:not(.block-product-card-info--layer)) { padding: 12px; }
  body.jj-neutral-ui.jj-refined-ui .block-product-card .block-product-title { font-size: 14px; line-height: 1.5; }
  body.jj-neutral-ui.jj-refined-ui .block-product-card-info--layer > .block-product-buy-button-wrapper { margin: 0 10px 10px; }
  body.jj-neutral-ui.jj-refined-ui .block-product-card .button:not(.button--icon):not(.button--link):not(.button--text) { padding-inline: 10px; }
  body.jj-neutral-ui.jj-refined-ui .before-after { margin-block: 28px; padding: 28px 16px; border-radius: 18px; }
  body.jj-neutral-ui.jj-refined-ui .before-after > .block-heading { font-size: 24px; }
  body.jj-neutral-ui.jj-refined-ui .sign-up-and-save__content { margin-block: 20px 32px; padding: 32px 20px; border-radius: 18px; }
  body.jj-neutral-ui.jj-refined-ui .slideshow--text-below .slideshow__image-container {
    background: linear-gradient(145deg,#fafbf8,#f1f4ed);
    border-bottom: 1px solid #dce2d5;
  }
}

@media (hover:hover) and (pointer:fine) {
  body.jj-neutral-ui.jj-refined-ui :is(.block-product-card.product-card-style--card,.jj-navigation__product,.jj-navigation__material) {
    transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
  }
  body.jj-neutral-ui.jj-refined-ui .block-product-card.product-card-style--card:hover {
    border-color: #b8c3b1;
    box-shadow: 0 2px 4px rgb(22 28 23 / 4%),0 14px 34px rgb(22 28 23 / 9%);
  }
  body.jj-neutral-ui.jj-refined-ui :is(.jj-navigation__product,.jj-navigation__material):hover { border-color: #aab7a2; background-color: #fff; }
  body.jj-neutral-ui.jj-refined-ui .button:not(.button--icon):not(.button--link):not(.button--text):not([disabled]):not(.disabled):not([aria-disabled="true"]):not(.loading):hover {
    opacity: 1;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%),0 5px 12px rgb(22 28 23 / 13%);
  }
}
@media (prefers-reduced-motion:reduce) {
  body.jj-neutral-ui.jj-refined-ui :is(.block-product-card.product-card-style--card,.jj-navigation__product,.jj-navigation__material) { transition: none; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body.jj-neutral-ui.jj-refined-ui .header__container::before,
  body.jj-neutral-ui.jj-refined-ui .header__container .jj-navigation--desktop .jj-navigation__panel { background: #fafbf8; }
}

/* Light frosted editorial surfaces. Alpha belongs to the background only.
   Cards can own fixed quick-view dialogs: never filter or isolate their ancestor. */
body.jj-neutral-ui.jj-refined-ui {
  --jj-editorial-glass: rgb(255 255 255 / 92%);
  --jj-product-glass: rgb(255 255 255 / 96%);
  --jj-editorial-blur: 16px;
}
body.jj-neutral-ui.jj-refined-ui :is(
  .before-after,
  .sign-up-and-save__content,
  .section-blog-container .block-article-card,
  .featured-recommend-products:not(.color-scheme-3) .featured-recommend-products__group > .block-group
) {
  background: var(--jj-editorial-glass);
}
body.jj-neutral-ui.jj-refined-ui :is(
  .before-after,
  .sign-up-and-save__content,
  .section-blog-container .block-article-card,
  .featured-recommend-products:not(.color-scheme-3) .featured-recommend-products__group > .block-group
):not(:has(theme-quick-add-modal, .quick-add-modal__modal, .modal__content)) {
  backdrop-filter: blur(var(--jj-editorial-blur));
  -webkit-backdrop-filter: blur(var(--jj-editorial-blur));
}
body.jj-neutral-ui.jj-refined-ui .section-blog-container .block-articles {
  background: transparent;
}
body.jj-neutral-ui.jj-refined-ui .section-blog-container .block-article-card__info {
  background: transparent;
}
body.jj-neutral-ui.jj-refined-ui .block-product-card.product-card-style--card,
body.jj-neutral-ui.jj-refined-ui .sgc-product-comparison .sgc-product-comparison__table :is(th,td) {
  background: var(--jj-product-glass);
}

@media (min-width:960px) {
  body.jj-neutral-ui.jj-refined-ui .slideshow__item { background: transparent; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image { background: #fff; }
  body.jj-neutral-ui.jj-refined-ui .slideshow__image-container {
    background: var(--jj-editorial-glass);
    backdrop-filter: blur(var(--jj-editorial-blur));
    -webkit-backdrop-filter: blur(var(--jj-editorial-blur));
  }
}
@media (max-width:959px) {
  body.jj-neutral-ui.jj-refined-ui { --jj-editorial-blur: 12px; }
  body.jj-neutral-ui.jj-refined-ui .slideshow--text-below .slideshow__image-container {
    background: var(--jj-editorial-glass);
    backdrop-filter: blur(var(--jj-editorial-blur));
    -webkit-backdrop-filter: blur(var(--jj-editorial-blur));
  }
}

/* Readable solid fallback for browsers or visitors that do not use glass. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body.jj-neutral-ui.jj-refined-ui { --jj-editorial-glass: #fff; --jj-product-glass: #fff; }
}
@media (prefers-reduced-transparency:reduce) {
  body.jj-neutral-ui.jj-refined-ui { --jj-editorial-glass: #fff; --jj-product-glass: #fff; --jj-editorial-blur: 0px; }
}
