/* Claude's approved refinement, using the existing palette and native controls. */
body :is(a, button, summary):focus-visible {
  outline-color: var(--vr-ink);
}
body .footer :is(a, button, summary, input):focus-visible,
body .vr-hero .tv-hero-cta:focus-visible {
  outline: 2px solid var(--vr-paper);
  outline-offset: 4px;
}
body .button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
body .button--fill::before,
body .button--fill::after { box-shadow: none !important; }
body :is(.cart-empty__button, .section-main-not-found__button, .main-search__shop-all)::before,
body :is(.cart-empty__button, .section-main-not-found__button, .main-search__shop-all)::after {
  box-shadow: none !important;
}
body .button:focus-visible {
  outline: 2px solid var(--vr-ink);
  outline-offset: 2px;
}
body :is(.button, .tv-hero-cta, .block-product-buy-button, .variant-picker__button) {
  border-radius: 6px;
}
/* Stick the section wrapper: the inner header cannot outlive its own parent. */
html:has(body > .section > .vr-header--sticky) { scroll-padding-top: 87px; }
body > .section:has(> .vr-header--sticky) {
  position: sticky;
  top: 0;
  z-index: 30;
}
body > .section > .vr-header--sticky { position: relative; }
body .vr-header__bag-wrap { display: block; }
body .vr-header__bag > svg { width: 19px; height: 19px; }
body .vr-header__bag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vr-ink);
  font: 600 12px/1.5 "TorvelanSans", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
body .vr-header__bag .cart-bubble__count {
  position: absolute;
  top: 0;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 3px;
  border-radius: 10px;
  background: var(--vr-ink);
  color: var(--vr-paper);
  font-size: 12px;
  line-height: 1;
}
body .vr-header__bag .cart-bubble__count:empty { display: none; }
body .vr-help__item { color: var(--vr-ink); text-decoration: none; }
body .vr-help__item h3 { color: var(--vr-ink); font-weight: 600; }
body .vr-help__item p { font-size: 13px; line-height: 1.55; }
body .vr-help__item:focus-visible { outline-offset: 4px; }
body .announcement-bar__group-item-content .rte { font-size: 12px !important; }
body .vr-eyebrow, body .vr-intro__meta { font-size: 12px !important; }
body .product-detail .product-description { font-size: 15px; line-height: 1.55; }
body .product-detail .torvelan-size-group .variant-picker__button {
  min-height: 44px;
  border-radius: 6px;
}
body .product-detail .tv-buy-box__color:not(.torvelan-single-color) .tv-buy-box__swatch {
  width: 56px;
  height: 56px;
}
body .product-detail.tv-buy-box .torvelan-size-group .variant-picker__input:checked:not(:disabled) + .variant-picker__button {
  background: var(--vr-ink);
  color: var(--vr-paper);
  border-color: var(--vr-ink);
}
body .product-detail .torvelan-shipping-note,
body .product-detail .sell-info__text { font-size: 13px; line-height: 1.55; }
body .product-detail .sell-info__text a { color: inherit; text-underline-offset: 3px; }
body .product-detail .torvelan-size-guide-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
body .product-detail .variant-picker__group[aria-invalid="true"] > .product-detail__row {
  outline: 2px solid var(--vr-ink);
  outline-offset: 4px;
  border-radius: 6px;
}
body .product-detail .codex-option-error { flex-basis: 100%; margin-block: 8px 0; font-size: 13px; }
body :is(.cart-item__title, .cart-item__product a) {
  color: var(--vr-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
body .torvelan-checkout-reassurance {
  margin: -8px 0 0;
  color: var(--vr-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
body .torvelan-express-checkout__label,
body .torvelan-express-checkout__status { color: var(--vr-muted); font-size: 13px; }
body[data-page-type="index"] .vr-intro { display: none; }
body .main-search__count > h4 {
  color: var(--vr-ink);
  font: 600 20px/1.35 "TorvelanSans", Arial, sans-serif;
  font-weight: 600 !important;
  font-style: normal !important;
}
body .torvelan-color-value { text-transform: capitalize; }
body .torvelan-shipping-progress { color: var(--vr-ink); font-size: 13px; line-height: 1.55; }
body .torvelan-shipping-progress p { margin: 0 0 8px; }
body .torvelan-shipping-progress__track { height: 4px; overflow: hidden; background: var(--vr-line); border-radius: 2px; }
body .torvelan-shipping-progress__track span { display: block; height: 100%; background: var(--vr-ink); }
body .cart-checkout > form > .button { min-height: 52px; }
body .cart-drawer__body { animation-duration: 160ms !important; }
body .cart-item__picture { width: 88px; height: 110px; flex: 0 0 88px; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
body .cart-item__picture > a { display: block; width: 100%; height: 100%; }
body .cart-item__picture img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
body .block-product-card { position: relative; }
body .block-product-card .block-product-card-info:not(.block-product-card-info--layer),
body .block-product-card .block-product-title { position: static; }
body .block-product-card .block-product-title {
  color: var(--vr-ink);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
body .block-product-card .block-product-title > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 0;
  overflow: hidden;
}
body .block-product-card .product-price__sale { font-size: 15px; }
body .block-product-card .product-price__origin { font-size: 13px; font-weight: 400 !important; color: var(--vr-muted); }
body .block-product-card .block-product-title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
}
body .block-product-card .block-product-title:focus-visible::after { outline: 2px solid var(--vr-ink); outline-offset: 4px; }
body .block-product-card .block-product-image__layer-image-wrapper,
body .block-product-card .block-product-image__image-wrapper { border-radius: 8px; overflow: hidden; }
body .block-product-card .block-product-card__discount-tag { display: none; }
body .torvelan-card-saving {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 7px;
  border-radius: 4px;
  background: var(--vr-paper);
  color: var(--vr-ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  pointer-events: none;
}
body .torvelan-lifestyle-cta {
  position: absolute;
  bottom: 24px;
  left: clamp(20px, 4.25vw, 72px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 6px;
  background: var(--vr-paper);
  color: var(--vr-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
body .torvelan-pairing { padding-block: 40px 56px; }
body .torvelan-pairing h2 { margin: 0 0 8px; color: var(--vr-ink); font: 700 40px/1 "TorvelanDisplay", sans-serif; }
body .torvelan-pairing__description { margin: 0 0 24px; color: var(--vr-muted); font-size: 15px; line-height: 1.55; }
body .torvelan-pairing__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; padding: 4px; margin: -4px; list-style: none; }
body .product-expander__trigger { min-height: 44px; font-size: 13px; color: var(--vr-ink); }
@media (max-width: 959px) {
  html:has(body > .section > .vr-header--sticky) { scroll-padding-top: 73px; }
  body .vr-header__inner { gap: 12px; min-height: 64px; }
  body .vr-header__actions { margin-left: auto; gap: 4px; }
  body .vr-wordmark__image { width: clamp(92px, 28vw, 124px); max-width: none; }
  body .vr-header__search { display: inline-flex; }
  body .vr-header__bag-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body .vr-mobile-menu summary { min-height: 44px; padding-inline: 8px; font-size: 12px; }
  body:has(.vr-mobile-menu[open]) .product-detail .is-sticky { visibility: hidden; pointer-events: none; }
  body .is-sticky .torvelan-purchase-summary__price { font-size: 18px; }
  body .product-detail .product-detail__title { font-size: 20px; line-height: 1.35; }
  body .product-detail .product-detail__info { padding-block-start: 16px; }
  body .torvelan-pairing { padding-block: 28px 40px; }
  body .torvelan-pairing h2 { font-size: 32px; }
  body .torvelan-pairing__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
  body .torvelan-pairing__list > li { flex: 0 0 46%; min-width: 0; scroll-snap-align: start; }
}
@media (max-width: 749px) {
  body .block-product-card .block-product-title > span { min-height: 2.7em; }
  body .vr-hero .tv-hero-cta { min-height: 48px; }
}
@media (max-width: 479px) {
  body .block-product-card .product-price { flex-direction: column; align-items: flex-start; gap: 2px; }
}
/* Keep the lifestyle subjects unobscured and leave room for the CTA focus ring. */
body[data-page-type="index"] .slideshow {
  --tv-life-h: calc(100vw * 815 / 1930);
  background: var(--vr-paper);
}
body[data-page-type="index"] .slideshow .slideshow__item {
  padding-bottom: 72px;
}
body[data-page-type="index"] .slideshow :is(.slideshow__image--mobile, .slideshow__image--desktop) {
  height: var(--tv-life-h);
}
body[data-page-type="index"] .slideshow .torvelan-lifestyle-cta {
  top: var(--tv-life-h);
  bottom: auto;
  margin-top: 12px;
  left: 20px;
  background: var(--vr-ink);
  color: var(--vr-paper);
}
@media (max-width: 599px) {
  body[data-page-type="index"] .slideshow { --tv-life-h: calc(100vw * 4 / 3); }
  body[data-page-type="index"] .slideshow .slideshow__image--mobile img {
    object-fit: cover;
    object-position: 50% 100%;
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  body[data-page-type="index"] .slideshow .slideshow__image--mobile { display: none; }
  body[data-page-type="index"] .slideshow .slideshow__image--desktop { display: block; }
  body .vr-help__items { width: 100%; max-width: none; }
}
/* Preserve the full-height subject; fade the photograph into the copy area. */
@media (min-width: 960px) {
  body .vr-hero { background: var(--vr-ink); }
  body .vr-hero .vr-eyebrow--hero { color: var(--vr-paper); }
  body .vr-hero__media--responsive .vr-hero__image {
    display: block;
    margin-left: auto;
    width: auto;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%);
    mask-image: linear-gradient(90deg, transparent, #000 14%);
  }
}
@media (min-width: 960px) and (max-height: 899px) {
  body .vr-hero,
  body .vr-hero .vr-hero__content {
    min-height: clamp(500px, calc(100svh - 112px), var(--vr-hero-height)) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .cart-drawer__body { animation-duration: 1ms !important; }
  body :is(.vr-header, .vr-mobile-menu, .button, .variant-picker__button, .vr-hero__copy) { transition: none; animation: none; }
}

/* Recommendation cards share one frame and text rhythm for every product. */
body .torvelan-pairing .block-product-image__image-wrapper {
  aspect-ratio: 1 / 1;
  background: #efeff1;
  outline: 1px solid rgba(20, 38, 61, .08);
  outline-offset: -1px;
}
body .torvelan-pairing .block-product-image__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}
body .torvelan-pairing .block-product-title > span { min-height: 2.7em; }
body .torvelan-pairing .product-price { min-height: 1.6em; }
body .torvelan-pairing__list { scroll-padding-inline: 4px; }
