/* Product details page — compact, reuses site palette/fonts. */
/* Product quick-view modal (same page, no navigation) — modern, clean, responsive */
.pd-modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(13,18,54,.10); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.pd-modal-backdrop.is-open { opacity: 1; visibility: visible; }
.pd-modal { position: relative; width: min(1020px,100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 0; border: 1px solid #e6ebf2; box-shadow: none; transform: translateY(16px) scale(.985); transition: transform .28s ease; }
.pd-modal-backdrop.is-open .pd-modal { transform: translateY(0) scale(1); }
.pd-modal-body { padding: 28px 28px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Close (x) icon: top-right, subtle, compact 34px tap target */
.pd-modal-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 34px; height: 34px; min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dfe5ee; border-radius: 4px; background: #f1f4f8; color: #475569; font-size: .8rem; line-height: 1; cursor: pointer; box-shadow: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.pd-modal-x:hover { background: #e2e8f0; color: #0f1341; }
.pd-modal-x:active { transform: scale(.94); }
.pd-modal-x:focus-visible { outline: 2px solid #46c3e8; outline-offset: 2px; }
body.pd-modal-open { overflow: hidden; }
/* Quick-view content: each datum appears exactly once */
.qv-eyebrow { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #03818a; }
.qv-title { margin: 0 0 14px; color: #0f1341; font-weight: 700; font-size: 1.55rem; line-height: 1.25; letter-spacing: .1px; }
.qv-hero { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e6ebf2; border-radius: 13px; background: linear-gradient(135deg,#f4f9fd 0%,#eef7fc 100%); }
.qv-stat { display: flex; flex-direction: column; gap: 3px; min-width: 140px; flex: 1 1 160px; }
.qv-stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #667085; }
.qv-stat-value { font-size: 1.12rem; font-weight: 800; color: #0f1341; }
.qv-stat-pack { font-size: .98rem; font-weight: 700; }
.qv-stat-muted { font-size: .9rem; font-weight: 600; color: #667085; }
.qv-grid { display: grid; grid-template-columns: minmax(0,4.6fr) minmax(0,7fr) minmax(0,4.4fr); gap: 20px; align-items: start; }
.qv-grid > * { min-width: 0; max-width: 100%; }
.qv-media { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 15px; padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 330px; }
.qv-media img { width: 100%; max-width: 400px; max-height: 380px; object-fit: contain; }
/* Separate live zoom preview beside the main image (mirrors the lens). */
.qv-zoom-preview { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 15px; padding: 16px; min-height: 490px; display: flex; flex-direction: column; gap: 10px; }
.qv-zoom-preview-label { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #03818a; }
.qv-zoom-preview-box { position: relative; flex: 1 1 auto; min-height: 415px; border-radius: 11px; border: 1px solid #e6ebf2; background-color: #fff; background-repeat: no-repeat; background-size: contain; overflow: hidden; }
.qv-zoom-preview-box.is-live { box-shadow: inset 0 0 0 1px rgba(3,129,138,.25); }
.qv-zoom-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: .82rem; font-weight: 600; color: #667085; background: rgba(248,250,252,.9); transition: opacity .2s ease; }
.qv-zoom-preview-box.is-live .qv-zoom-preview-empty { opacity: 0; visibility: hidden; }
.qv-media-single { margin-top: 16px; min-height: 190px; }
.qv-details { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.qv-details dd, .qv-details .qv-note { overflow-wrap: anywhere; word-break: break-word; }
.qv-section-title { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #0f1341; }
.qv-specs { margin: 0 0 13px; display: flex; flex-direction: column; border: 1px solid #e6ebf2; border-radius: 13px; overflow: hidden; }
.qv-spec { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 10px; align-items: start; margin: 0; padding: 10px 14px; background: #fff; }
.qv-spec + .qv-spec { border-top: 1px solid #eef2f7; }
.qv-spec:nth-child(even) { background: #f8fafc; }
.qv-spec dt { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #667085; }
.qv-spec dd { margin: 0; min-width: 0; font-size: .92rem; font-weight: 600; color: #1a2a6c; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.qv-note { margin: 0; max-width: 100%; padding: 11px 13px; font-size: .83rem; line-height: 1.55; color: #475467; background: rgba(70,195,232,.09); border-left: 4px solid #46c3e8; border-radius: 9px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; font-size: .92rem; font-weight: 600; border-radius: 10px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.qv-btn-primary { background: #03818a; color: #fff; }
.qv-btn-primary:hover { background: #0f1341; color: #fff; }
.qv-btn-ghost { background: #fff; color: #0f1341; border-color: #d6dce5; }
.qv-btn-ghost:hover { background: #f1f5f9; }
/* Tablet */
@media (max-width: 992px) {
  .pd-modal-backdrop { padding: 18px; }
  .pd-modal { width: min(920px,100%); max-height: 88vh; }
  .pd-modal-body { padding: 24px 22px 20px; }
  .qv-title { font-size: 1.4rem; margin-bottom: 12px; }
  .qv-hero { margin-bottom: 16px; }
  .qv-grid { gap: 18px; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
  .qv-media { min-height: 300px; padding: 20px; }
  .qv-media img { max-width: 360px; max-height: 330px; }
  .qv-details { max-width: 100%; }
  .qv-spec { grid-template-columns: 105px minmax(0,1fr); }
  .qv-zoom-preview { min-height: 460px; grid-column: 1 / -1; }
  .qv-zoom-preview-box { min-height: 380px; }
  .qv-magnifier { width: 130px; height: 130px; }
}
/* Mobile phones: perfectly centered vertically + horizontally.
   Desktop above is untouched; everything below is mobile-only.
   Hardened for 320–768px: no viewport overflow, no horizontal scroll,
   fluid image sizing, touch-friendly zoom. */
@media (max-width: 768px) {
  .pd-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pd-modal { width: 100%; max-width: calc(100vw - 24px); max-height: 86vh; max-height: 86dvh; margin: auto; border-radius: 18px; transform: translateY(12px) scale(.985); overflow-x: hidden; }
  .pd-modal-x { top: 10px; right: 10px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: .95rem; }
  .pd-modal-body { max-height: inherit; padding: 58px 15px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .qv-eyebrow { font-size: 9.5px; letter-spacing: 1.3px; margin-bottom: 4px; }
  .qv-title { font-size: clamp(1.05rem, 4.6vw, 1.15rem); margin-bottom: 10px; line-height: 1.3; word-break: break-word; }
  .qv-hero { padding: 10px 11px; margin-bottom: 12px; gap: 8px; }
  .qv-stat { flex: 1 1 46%; min-width: 0; }
  .qv-stat-value { font-size: .95rem; word-break: break-word; }
  .qv-stat-pack { font-size: .87rem; }
  .qv-grid { grid-template-columns: 1fr; gap: 14px; }
  .qv-grid > * { min-width: 0; max-width: 100%; }
  .qv-media { min-height: 0; max-height: none; padding: 16px; }
  .qv-media img { width: 100%; height: auto; max-width: min(230px, 72%); max-height: min(200px, 48vw); object-fit: contain; }
  .qv-media-single { min-height: 0; margin-top: 12px; }
  .qv-zoom-preview { min-height: 0; padding: 12px; max-width: 100%; }
  .qv-zoom-preview-box { min-height: min(260px, 66vw); }
  .qv-section-title { font-size: 10.5px; margin-bottom: 7px; }
  .qv-specs { border-radius: 11px; }
  .qv-spec { grid-template-columns: 1fr; gap: 1px; padding: 8px 11px; }
  .qv-spec dd { font-size: .87rem; word-break: break-word; }
  .qv-note { font-size: .78rem; line-height: 1.5; padding: 9px 11px; }
}
/* Normal phones (<=480px): tighter spacing, viewport-capped preview */
@media (max-width: 480px) {
  .pd-modal-backdrop { padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .pd-modal { border-radius: 16px; max-height: 88vh; max-height: 88dvh; margin: auto; }
  .pd-modal-body { padding: 56px 13px 16px; }
  .qv-title { font-size: clamp(1rem, 5vw, 1.1rem); }
  .qv-stat { flex-basis: 100%; }
  .qv-media { min-height: 0; padding: 14px; }
  .qv-media img { max-width: min(210px, 68%); max-height: min(180px, 46vw); }
  .qv-zoom-preview-box { min-height: min(240px, 62vw); }
}
/* Small phones (<=360px: 320/360/375 widths): minimal chrome, vw-capped media */
@media (max-width: 360px) {
  .pd-modal-backdrop { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .pd-modal { max-width: calc(100vw - 16px); }
  .pd-modal-x { top: 8px; right: 8px; }
  .pd-modal-body { padding: 54px 10px 14px; }
  .qv-hero { padding: 9px 10px; gap: 6px; }
  .qv-media { padding: 12px; min-height: 0; }
  .qv-media img { max-width: min(190px, 64%); max-height: 44vw; }
  .qv-zoom-preview { padding: 10px; }
  .qv-zoom-preview-box { min-height: min(220px, 60vw); }
  .qv-magnifier { width: min(96px, 30vw); height: min(96px, 30vw); }
}
.pd-wrap { background: linear-gradient(180deg,#f4f6f9 0%,#fff 100%); padding: 42px 0 64px; }
.pd-back-top { text-decoration: none; color: #03818a; font-weight: 600; }
.pd-back-top:hover { color: #0f1341; }
.pd-crumb { font-size: 13px; color: #718096; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pd-crumb a { color: #03818a; text-decoration: none; }
.pd-crumb-current { color: #0f1341; font-weight: 600; }
.pd-hero { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 28px; box-shadow: 0 18px 50px rgba(15,19,65,.06); }
.pd-gallery { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 14px; padding: 24px; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; min-height: 320px; }
.pd-gallery img { max-width: 100%; max-height: 380px; object-fit: contain; }
.pd-division-badge { position: absolute; top: 14px; left: 14px; background: #0f1341; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pd-info { padding: 6px 4px; }
.pd-therapy-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; background: rgba(70,195,232,.12); color: #0f1341; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.pd-title { color: #0f1341; font-weight: 700; margin: 14px 0 6px; font-size: clamp(1.5rem,2.6vw,2.1rem); line-height: 1.2; }
.pd-brandline { color: #667085; margin-bottom: 14px; }
.pd-mrp { font-size: 1.6rem; font-weight: 800; color: #0f1341; display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.pd-mrp small { font-size: 12px; font-weight: 500; color: #718096; }
.pd-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.pd-meta { background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 12px; padding: 13px 15px; }
.pd-meta span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #667085; margin-bottom: 4px; }
.pd-meta strong { color: #0f1341; font-size: .95rem; }
.pd-facts { border: 1px solid #e6ebf2; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pd-fact { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 12px 16px; background: #fff; }
.pd-fact:nth-child(even) { background: #f8fafc; }
.pd-fact span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #667085; }
.pd-fact strong { color: #1a2a6c; font-weight: 600; font-size: .93rem; }
.pd-note { border-left: 4px solid #46c3e8; background: rgba(70,195,232,.08); color: #475467; border-radius: 8px; padding: 13px 15px; font-size: .9rem; }
.pd-notfound { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 60px 24px; box-shadow: 0 18px 50px rgba(15,19,65,.06); }
.pd-notfound-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: rgba(70,195,232,.12); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #0f1341; }
.pd-related { margin-top: 30px; }
.pd-related-title { color: #0f1341; font-weight: 700; margin-bottom: 16px; }
.pd-rel-card { display: block; background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 18px; text-decoration: none; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.pd-rel-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,19,65,.08); }
.pd-rel-card img { width: 100%; height: 170px; object-fit: contain; background: #f8fafc; border-radius: 10px; margin-bottom: 12px; }
.pd-rel-card h6 { color: #0f1341; font-weight: 700; margin-bottom: 4px; }
.pd-rel-card span { font-size: 13px; color: #718096; }
.btn-teal { background: #03818a; color: #fff; border-radius: 8px; font-weight: 600; }
.btn-teal:hover { background: #0f1341; color: #fff; }
.product-card-link { border-radius: 8px; cursor: pointer; }
.product-card-link:focus-visible { outline: 2px solid #46c3e8; outline-offset: 3px; }
.product-card-link .product-card-ui { cursor: pointer; }
/* ---- Quick-view image magnifier glass (circular lens, follows cursor) ---- */
.qv-media { position: relative; overflow: hidden; touch-action: pan-y; overscroll-behavior: contain; }
.qv-media img { position: relative; z-index: 1; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.qv-media.qv-zoom-active { cursor: none; }
.qv-media.qv-zoom-active img { cursor: none; }
.qv-magnifier { position: absolute; top: 0; left: 0; z-index: 4; width: 150px; height: 150px; border-radius: 50%; border: 3px solid #fff; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 10px 28px rgba(13,18,54,.35), inset 0 0 0 1px rgba(13,18,54,.08); pointer-events: none; display: none; will-change: transform, background-position; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translate3d(0,0,0); }
.qv-magnifier.is-visible { display: block; }
.qv-magnifier::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(3,129,138,.35); pointer-events: none; }
.qv-zoom-hint { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(15,19,65,.78); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .2px; pointer-events: none; transition: opacity .2s ease; }
.qv-media.qv-zoom-active .qv-zoom-hint { opacity: 0; }
@media (max-width: 992px) {
  .qv-magnifier { width: 130px; height: 130px; }
}
@media (max-width: 768px) {
  .qv-magnifier { width: 110px; height: 110px; }
  .qv-zoom-hint { font-size: 10px; padding: 4px 9px; right: 8px; bottom: 8px; }
}
/* Touch devices: mobile-friendly hint instead of desktop hover wording. */
@media (hover: none) and (pointer: coarse) {
  .qv-zoom-hint-text::before { content: "Touch & drag to zoom"; }
  .qv-zoom-hint-text { font-size: 0; }
  .qv-zoom-hint-text::before { font-size: 10px; }
  .qv-zoom-preview-empty { font-size: .78rem; }
}
@media (max-width: 768px) {
  .pd-hero { padding: 18px; }
  .pd-meta-grid { grid-template-columns: 1fr; }
  .pd-fact { grid-template-columns: 1fr; gap: 4px; }
  .pd-gallery { min-height: 240px; }
}
