/* Commerce-owned access states, compiled into the canonical Template kernel.
   The structural selector intentionally outranks package card defaults while
   keeping every value Theme-token driven without cascade overrides. */
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"][data-access-state="premium"][data-state="premium"]{
  border-color:color-mix(in srgb,var(--rn-theme-accent) 62%,var(--rn-theme-line));
  background:linear-gradient(145deg,color-mix(in srgb,var(--rn-theme-accent) 9%,var(--rn-theme-surface)),var(--rn-theme-surface));
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"][data-access-state="unavailable"][data-state="unavailable"]{
  border-color:color-mix(in srgb,var(--rn-theme-muted) 55%,var(--rn-theme-line));
  background:color-mix(in srgb,var(--rn-theme-muted) 6%,var(--rn-theme-surface));
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"][data-access-state="unavailable"][data-state="unavailable"] :is(.ec-card__media,.ec-detail__media,.product-v74-gallery,.ec-product-dialog__media){
  filter:grayscale(.72);
  opacity:.72;
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-badge[data-access-state="premium"]{
  border-color:var(--rn-theme-accent);
  color:var(--rn-theme-accent);
  background:color-mix(in srgb,var(--rn-theme-accent) 12%,var(--rn-theme-surface));
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-badge[data-access-state="unavailable"]{
  border-color:var(--rn-theme-muted);
  color:var(--rn-theme-muted);
  background:color-mix(in srgb,var(--rn-theme-muted) 8%,var(--rn-theme-surface));
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-message,
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-permission-state{
  width:100%;
  box-sizing:border-box;
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-message{
  margin-block:.65rem;
  color:var(--rn-theme-text-soft,var(--rn-theme-text));
  line-height:1.6;
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-permission-state{
  display:grid;
  gap:.75rem;
  margin-block-start:1rem;
  padding:1rem;
  border:1px solid var(--rn-theme-line);
  border-radius:var(--rn-theme-radius-card,.9rem);
  background:var(--rn-theme-surface-2);
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-permission-state[data-access-state="premium"]{
  border-inline-start:.25rem solid var(--rn-theme-accent);
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-permission-state[data-access-state="unavailable"]{
  border-inline-start:.25rem solid var(--rn-theme-muted);
}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-upgrade{
  cursor:pointer;
  transition:transform var(--rn-motion-duration-fast,.2s) var(--rn-motion-easing-standard,ease),box-shadow var(--rn-motion-duration-fast,.2s) var(--rn-motion-easing-standard,ease);
}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"] .ec-card__media{position:relative;overflow:hidden}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"][data-access-state="premium"] .ec-card__media img{transition:filter var(--rn-motion-duration-standard,.3s) var(--rn-motion-easing-standard,ease),transform var(--rn-motion-duration-standard,.3s) var(--rn-motion-easing-standard,ease)}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"] .ec-premium-overlay{position:absolute;inset:0;display:grid;place-content:center;gap:.35rem;padding:1rem;text-align:center;background:color-mix(in srgb,var(--rn-theme-overlay) 82%,transparent);color:var(--rn-theme-text);opacity:0;transition:opacity var(--rn-motion-duration-fast,.2s) var(--rn-motion-easing-standard,ease)}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"] .ec-premium-overlay small{color:var(--rn-theme-text-soft,var(--rn-theme-text));line-height:1.5}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"][data-access-state="premium"]:is(:hover,:focus-within) .ec-card__media img{filter:blur(.3rem);transform:scale(1.025)}
:root .ec-card[data-ec-module-ui="commerce:interactive-shell"][data-access-state="premium"]:is(:hover,:focus-within) .ec-premium-overlay{opacity:1}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-upgrade:hover{transform:translateY(-1px)}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-upgrade:active{transform:translateY(0) scale(.98)}
:root :is(.ec-card.ec-card,.ec-detail.ec-detail,.product-v74-layout.product-v74-layout,.ec-product-dialog.ec-product-dialog)[data-ec-module-ui="commerce:interactive-shell"] .ec-access-upgrade:focus-visible{
  outline:2px solid var(--rn-theme-accent);
  outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
  [data-ec-module-ui="commerce:interactive-shell"]{scroll-behavior:auto}
  [data-ec-module-ui="commerce:interactive-shell"] :is(.ec-access-upgrade,.ec-card__media img,.ec-premium-overlay){transition-duration:0ms}
  [data-ec-module-ui="commerce:interactive-shell"] .ec-access-upgrade:is(:hover,:active){transform:none}
}

/* Bundled preorder sheets intentionally show complete front/back product crops.
   Limit the fit correction to this immutable catalog so legacy editorial crops
   keep their authored cover treatment across Public, Member and WebApp. */
:root:root :is(
  .mw-product-card.mw-product-card,
  .mw-home-product.mw-home-product,
  .mw-commerce-product.mw-commerce-product,
  .ec-card.ec-card[data-ec-module-ui="commerce:interactive-shell"],
  .ec-detail.ec-detail[data-ec-module-ui="commerce:interactive-shell"],
  .product-v74-layout.product-v74-layout[data-ec-module-ui="commerce:interactive-shell"],
  .ec-product-dialog.ec-product-dialog[data-ec-module-ui="commerce:interactive-shell"]
) img[src*="assets/commerce/catalogs/roohnikan-preorder-2026-08/"]{
  object-fit:contain;
  object-position:center;
}
