/* Applied only to the professionally retouched X'CASE product photography. */
.hero__stage > img,
.proof__visual img,
.product-card--obsidian .product-card__visual img,
.product-card--ivory .product-card__visual img,
.cart-item img {
  mix-blend-mode: normal;
}

.hero__stage > img {
  object-position: center;
  right: 0;
  width: 100%;
}

.product-card--obsidian .product-card__visual img,
.product-card--ivory .product-card__visual img {
  height: 100%;
  object-position: center;
  width: 100%;
}

.product-card--ivory .product-card__visual {
  background: #d6c8b1;
}

.proof__visual img { object-position: center; }

.product-explorer__canvas { perspective: 850px; }
.product-explorer__canvas img { mix-blend-mode: normal; }

@media (max-width: 850px) {
  .hero__stage > img { right: 0; width: 100%; }
}

/* The former CSS-only rotation was not a real 360 view. It is intentionally
   disabled until a complete, verified image sequence exists for each SKU. */
.hero__spin > span,
.rotation-control,
.rotate-badge,
.product-explorer > small { display: none; }

.product-explorer__canvas { cursor: grab; touch-action: none; }
.product-explorer__canvas:active { cursor: grabbing; }
.product-explorer__canvas img { transition: transform .22s ease-out; }
.product-explorer::after {
  bottom: 22px;
  color: #a9a296;
  content: "MUEVE PARA EXPLORAR EL DETALLE";
  font: 500 8px/1.5 var(--mono);
  left: 26px;
  letter-spacing: .07em;
  position: absolute;
}
.modal--product:not([open]) .product-explorer::after { content: none; }

/* Product-detail modal: fit the photo, keep exit obvious, and offer controlled zoom. */
.modal:not([open]) { display: none; }
.modal--product[open] { display: grid; }
.modal--product { border-radius: 18px; max-height: min(760px, calc(100vh - 32px)); overflow: hidden; width: min(980px, calc(100% - 32px)); }
.modal--product .close--product { align-items: center; background: rgba(245,241,232,.96); box-shadow: 0 5px 18px rgba(0,0,0,.22); display: inline-flex; justify-content: center; right: 16px; top: 16px; z-index: 20; }
.product-explorer { min-height: 0; }
.product-explorer__canvas { height: min(52vh, 500px); }
.product-explorer__canvas img { height: 100%; left: 0; object-fit: contain; top: 0; width: 100%; }
.zoom-tools { align-items: center; background: rgba(17,17,15,.78); border: 1px solid rgba(245,241,232,.24); border-radius: 999px; bottom: 47px; color: var(--ivory); display: flex; gap: 9px; padding: 5px; position: absolute; right: 24px; z-index: 5; }
.zoom-tools button { background: transparent; border: 0; border-radius: 50%; color: var(--ivory); font-size: 20px; height: 29px; line-height: 1; width: 29px; }
.zoom-tools button:hover { background: rgba(245,241,232,.15); }
.zoom-tools span { font: 500 9px var(--mono); min-width: 31px; text-align: center; }
.product-detail__requirement { color: #786d60; font-size: 11px; line-height: 1.55; margin: -12px 0 18px; }
[data-product-compatibility].is-confirmed { border-color: var(--gold); background: rgba(181, 138, 43, .08); }
.cart-item + .cart-item { border-top: 1px solid rgba(64,54,46,.14); margin-top: 16px; padding-top: 16px; }
.cart-item__copy { flex: 1; min-width: 0; }
.cart-item__remove { align-self: center; background: transparent; border: 0; color: #786d60; font: 500 8px var(--mono); letter-spacing: .06em; padding: 8px; text-transform: uppercase; }
.cart-item__remove:hover { color: var(--ink); }
.toast { background: var(--ink); border: 1px solid rgba(225,197,125,.45); bottom: 28px; color: var(--ivory); font: 500 10px/1.5 var(--mono); left: 50%; max-width: min(430px, calc(100% - 40px)); opacity: 0; padding: 13px 18px; pointer-events: none; position: fixed; text-align: center; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; z-index: 80; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
:where(button, a, summary, input):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 850px) { .modal--product { border-radius: 14px; max-height: calc(100vh - 20px); width: calc(100% - 20px); } .modal--product[open] { display: block; } .product-explorer__canvas { height: 330px; } .zoom-tools { bottom: 38px; right: 18px; } .modal--product .close--product { right: 12px; top: 12px; } .toast { bottom: 78px; } }
