.otd-product-detail{width:min(1420px,calc(100% - 64px));margin:0 auto;padding:64px 0 160px;color:#111}
.otd-product-detail *{box-sizing:border-box}
.otd-product-detail__top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 46px;padding-left:24px}
.otd-product-breadcrumb{display:flex;align-items:center;gap:14px;min-width:0;color:#1d1d1f;font-size:15px}
.otd-product-breadcrumb a,.otd-product-breadcrumb span{color:inherit;text-decoration:none;white-space:nowrap}
.otd-product-breadcrumb span[aria-current=page]{max-width:360px;overflow:hidden;text-overflow:ellipsis}
.otd-product-breadcrumb>span:not([aria-current]){font-size:26px;font-weight:300;line-height:1;color:#8b8b8b}
.otd-product-share{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px;border:1px solid #dedede;border-radius:999px;background:#fff;color:#111;font:inherit;font-weight:650;cursor:pointer}
.otd-product-share svg{width:20px;height:20px}
.otd-product-detail__layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(380px,.82fr);gap:32px;align-items:start}
.otd-product-gallery{display:grid;grid-template-columns:92px minmax(0,1fr);gap:20px;min-width:0}
.otd-product-gallery__rail{display:flex;flex-direction:column;gap:12px;max-height:690px;overflow:auto;scrollbar-width:none}
.otd-product-gallery__rail::-webkit-scrollbar{display:none}
.otd-product-gallery__thumb{display:block;width:92px;aspect-ratio:1/1;border:1px solid transparent;border-radius:13px;padding:0;overflow:hidden;background:#f5f4f1;cursor:pointer}
.otd-product-gallery__thumb.is-active{border:2px solid #111}
.otd-product-gallery__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.otd-product-gallery__stage{min-height:630px;border-radius:18px;background:#f7f7f6;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:42px}
.otd-product-gallery__stage>img{width:100%;height:100%;max-height:590px;object-fit:contain;display:block;transition:opacity .16s ease}
.otd-product-gallery__stage>img.is-changing{opacity:.3}
.otd-product-gallery__empty{min-height:480px;display:grid;place-items:center;color:#858585}
.otd-product-summary{padding:10px 0 0 0}
.otd-product-summary__brand{display:block;margin-bottom:10px;font-size:14px;line-height:1;text-transform:uppercase;letter-spacing:.15em;font-weight:750;color:#565656}
.otd-product-summary h1{margin:0;font-size:clamp(44px,4.2vw,68px);line-height:.98;letter-spacing:-.055em;font-weight:800;max-width:650px}
.otd-product-summary__price{margin-top:22px;font-size:25px;line-height:1.1;font-weight:500}
.otd-product-summary__description{margin-top:16px;max-width:680px;color:#696969;font-size:19px;line-height:1.65}
.otd-product-summary__description p{margin:0}
.otd-product-brand-card{display:grid;grid-template-columns:62px minmax(0,1fr) 24px;align-items:center;gap:14px;margin-top:42px;padding:14px 18px;border:1px solid #e1e1e1;border-radius:20px;color:#111;text-decoration:none;background:#fff}
.otd-product-brand-card__logo{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#f4f2ef;border:1px solid #ece9e5;text-align:center;padding:8px}
.otd-product-brand-card__logo img{width:100%;height:100%;object-fit:contain}
.otd-product-brand-card__logo span{font-size:10px;line-height:1.05;font-weight:750;text-transform:uppercase;overflow-wrap:anywhere}
.otd-product-brand-card__copy{display:flex;flex-direction:column;min-width:0;gap:4px}
.otd-product-brand-card__copy strong{font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.otd-product-brand-card__copy small{font-size:14px;color:#8a8a8a}
.otd-product-brand-card__arrow{font-size:31px;font-weight:300;color:#333}
.otd-product-retailer-cta{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:32px;min-height:56px;padding:0 20px;border-radius:999px;background:#101010;color:#fff;text-decoration:none;font-size:18px;font-weight:650}
.otd-product-retailer-cta svg{width:21px;height:21px}
.otd-product-retailer-note{text-align:center;margin:8px 0 0!important;color:#aaa!important;font-size:14px!important}
.otd-product-save{display:block;margin-top:30px}
.otd-product-save button,.otd-product-save--login>span{width:100%;min-height:52px;border:1px solid #d9d9d9;border-radius:999px;background:#fff;color:#111;display:flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-size:16px;font-weight:600;cursor:pointer;text-decoration:none}
.otd-product-save button.is-saved{background:#f5f5f5}
.otd-product-save svg{width:20px;height:20px}
.otd-product-save--login{text-decoration:none;color:#111}
@media(max-width:1050px){.otd-product-detail{width:min(100% - 36px,920px);padding-top:40px}.otd-product-detail__layout{grid-template-columns:1fr;gap:42px}.otd-product-gallery{grid-template-columns:76px minmax(0,1fr)}.otd-product-gallery__thumb{width:76px}.otd-product-gallery__stage{min-height:520px}.otd-product-summary{max-width:720px;margin:0 auto;width:100%}.otd-product-detail__top{padding-left:0}.otd-product-summary h1{font-size:52px}}
@media(max-width:700px){.otd-product-detail{width:100%;padding:22px 16px 132px}.otd-product-detail__top{margin-bottom:24px}.otd-product-breadcrumb{font-size:12px;gap:8px;overflow:hidden}.otd-product-breadcrumb a:nth-of-type(2),.otd-product-breadcrumb a:nth-of-type(2)+span{display:none}.otd-product-breadcrumb span[aria-current=page]{max-width:150px}.otd-product-share{min-width:44px;width:44px;height:44px;padding:0;justify-content:center}.otd-product-share span{display:none}.otd-product-gallery{display:flex;flex-direction:column-reverse;gap:10px}.otd-product-gallery__rail{flex-direction:row;max-height:none;overflow-x:auto}.otd-product-gallery__thumb{width:68px;flex:0 0 68px}.otd-product-gallery__stage{min-height:420px;padding:22px;border-radius:18px}.otd-product-gallery__stage>img{max-height:390px}.otd-product-summary{padding:2px 2px 0}.otd-product-summary h1{font-size:42px}.otd-product-summary__price{font-size:22px;margin-top:18px}.otd-product-summary__description{font-size:16px;line-height:1.55}.otd-product-brand-card{margin-top:30px}.otd-product-retailer-cta{margin-top:24px;min-height:54px;font-size:16px}.otd-product-save{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.otd-product-gallery__stage>img{transition:none}}


/* =====================================================================
 * 1.10.21 — Floating product detail
 * Product links stay on the current OT Diary screen and open this surface.
 * ===================================================================== */
.otd-product-modal[hidden]{display:none!important}
.otd-product-modal{
  position:fixed;
  inset:0;
  z-index:12050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
}
.otd-product-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(17,17,17,.23);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
}
.otd-product-modal__dialog{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100vw - 48px));
  max-height:min(850px,calc(100dvh - 48px));
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(17,17,17,.08);
  border-radius:26px;
  background:#fff;
  box-shadow:0 28px 90px rgba(17,17,17,.20);
  scrollbar-width:thin;
}
.otd-product-modal__close{
  position:sticky;
  z-index:30;
  top:14px;
  float:right;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin:14px 14px -52px 0;
  padding:0;
  border:1px solid #e5e5e5;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#111;
  box-shadow:0 5px 18px rgba(17,17,17,.08);
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
.otd-product-modal__close:hover{background:#f5f5f5}
.otd-product-modal__content{min-height:340px}
.otd-product-modal__loading{
  display:grid;
  place-items:center;
  min-height:430px;
  padding:40px;
  color:#777;
  font-size:14px;
}
.otd-product-modal__loading::before{
  content:"";
  width:28px;
  height:28px;
  margin-bottom:12px;
  border:2px solid #dedede;
  border-top-color:#111;
  border-radius:50%;
  animation:otd-product-modal-spin .7s linear infinite;
}
.otd-product-modal__error{
  display:grid;
  place-items:center;
  min-height:360px;
  padding:40px;
  color:#555;
  text-align:center;
}
@keyframes otd-product-modal-spin{to{transform:rotate(360deg)}}
html.otd-product-modal-open,
body.otd-product-modal-open{overflow:hidden!important}

/* Compact the existing product detail only while it is inside the modal. */
.otd-product-modal .otd-product-detail{
  width:100%;
  max-width:none;
  margin:0;
  padding:26px 30px 34px;
}
.otd-product-modal .otd-product-detail__top{
  margin:0 50px 22px 0;
  padding-left:0;
}
.otd-product-modal .otd-product-breadcrumb{
  font-size:11.5px;
}
.otd-product-modal .otd-product-share{
  min-height:38px;
  padding:0 13px;
  font-size:12px;
}
.otd-product-modal .otd-product-detail__layout{
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);
  gap:28px;
}
.otd-product-modal .otd-product-gallery{
  grid-template-columns:66px minmax(0,1fr);
  gap:12px;
}
.otd-product-modal .otd-product-gallery__rail{
  gap:9px;
  max-height:520px;
}
.otd-product-modal .otd-product-gallery__thumb{
  width:66px;
  border-radius:10px;
}
.otd-product-modal .otd-product-gallery__stage{
  min-height:490px;
  padding:30px;
  border-radius:16px;
}
.otd-product-modal .otd-product-gallery__stage>img{
  max-height:445px;
}
.otd-product-modal .otd-product-summary{
  padding-top:4px;
}
.otd-product-modal .otd-product-summary__brand{
  margin-bottom:8px;
  font-size:11px;
}
.otd-product-modal .otd-product-summary h1{
  max-width:500px;
  font-size:clamp(36px,3.1vw,48px);
  line-height:1;
}
.otd-product-modal .otd-product-summary__price{
  margin-top:16px;
  font-size:20px;
}
.otd-product-modal .otd-product-summary__description{
  margin-top:12px;
  max-width:520px;
  font-size:14px;
  line-height:1.55;
}
.otd-product-modal .otd-product-brand-card{
  margin-top:24px;
  min-height:66px;
}
.otd-product-modal .otd-product-retailer-cta{
  margin-top:20px;
  min-height:50px;
  font-size:14px;
}
.otd-product-modal .otd-product-retailer-note{
  font-size:10.5px;
}
.otd-product-modal .otd-product-save{
  margin-top:16px;
}
.otd-product-modal .otd-product-save button,
.otd-product-modal .otd-product-save--login{
  min-height:46px;
  font-size:13px;
}

@media(max-width:900px){
  .otd-product-modal{padding:14px}
  .otd-product-modal__dialog{
    width:calc(100vw - 28px);
    max-height:calc(100dvh - 28px);
    border-radius:22px;
  }
  .otd-product-modal .otd-product-detail{padding:22px 20px 28px}
  .otd-product-modal .otd-product-detail__layout{
    grid-template-columns:1fr;
    gap:24px;
  }
  .otd-product-modal .otd-product-gallery__stage{min-height:410px}
  .otd-product-modal .otd-product-summary{max-width:none}
}
@media(max-width:640px){
  .otd-product-modal{
    align-items:flex-end;
    padding:0;
  }
  .otd-product-modal__dialog{
    width:100vw;
    max-height:94dvh;
    border-radius:24px 24px 0 0;
    border-bottom:0;
  }
  .otd-product-modal__close{
    top:10px;
    width:36px;
    height:36px;
    margin:10px 10px -46px 0;
  }
  .otd-product-modal .otd-product-detail{
    padding:20px 14px 28px;
  }
  .otd-product-modal .otd-product-detail__top{
    margin:0 46px 18px 0;
  }
  .otd-product-modal .otd-product-gallery{
    display:flex;
    flex-direction:column-reverse;
    gap:9px;
  }
  .otd-product-modal .otd-product-gallery__rail{
    flex-direction:row;
    overflow-x:auto;
  }
  .otd-product-modal .otd-product-gallery__thumb{
    width:58px;
    flex:0 0 58px;
  }
  .otd-product-modal .otd-product-gallery__stage{
    min-height:330px;
    padding:20px;
  }
  .otd-product-modal .otd-product-gallery__stage>img{max-height:305px}
  .otd-product-modal .otd-product-summary h1{font-size:36px}
}
@media(prefers-reduced-motion:reduce){
  .otd-product-modal__loading::before{animation:none}
}


/* =====================================================================
 * 1.10.23 — Floating product image hydration / layout lock
 * The product detail is injected into pages whose own CSS may contain
 * gallery/image rules. Lock the modal gallery to its intended geometry.
 * ===================================================================== */
.otd-product-modal .otd-product-detail__layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr)!important;
  gap:28px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
}
.otd-product-modal .otd-product-gallery{
  display:grid!important;
  grid-template-columns:66px minmax(0,1fr)!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.otd-product-modal .otd-product-gallery__rail{
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  width:66px!important;
  min-width:66px!important;
  max-width:66px!important;
  max-height:520px!important;
  margin:0!important;
  padding:0!important;
  overflow:auto!important;
}
.otd-product-modal .otd-product-gallery__thumb{
  display:block!important;
  flex:0 0 66px!important;
  width:66px!important;
  min-width:66px!important;
  height:66px!important;
  min-height:66px!important;
  aspect-ratio:1/1!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#f5f4f1!important;
}
.otd-product-modal .otd-product-gallery__thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
.otd-product-modal .otd-product-gallery__stage{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:490px!important;
  height:490px!important;
  margin:0!important;
  padding:30px!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#f7f7f6!important;
}
.otd-product-modal .otd-product-gallery__stage>img{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:430px!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none!important;
}
.otd-product-modal .otd-product-gallery__stage.is-image-error::after{
  content:"Image unavailable";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#8b8b8b;
  font-size:12px;
}
@media(max-width:900px){
  .otd-product-modal .otd-product-detail__layout{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:640px){
  .otd-product-modal .otd-product-gallery{
    display:flex!important;
    flex-direction:column-reverse!important;
    gap:9px!important;
  }
  .otd-product-modal .otd-product-gallery__rail{
    flex-direction:row!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    max-height:none!important;
    overflow-x:auto!important;
  }
  .otd-product-modal .otd-product-gallery__stage{
    height:330px!important;
    min-height:330px!important;
    padding:20px!important;
  }
  .otd-product-modal .otd-product-gallery__stage>img{
    max-height:290px!important;
  }
}


/* 1.10.24 — same-origin proxy gallery */
.otd-product-modal .otd-product-gallery__stage img[data-otd-product-image-proxy="1"],
.otd-product-modal .otd-product-gallery__thumb img[data-otd-product-image-proxy="1"]{
  opacity:1!important;
  visibility:visible!important;
}
