.product-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:150;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(7,18,42,.62);
  backdrop-filter:blur(2px);
}
.product-modal-backdrop[hidden]{display:none}
body.product-modal-open{overflow:hidden}
.product-modal-shell{
  display:flex;
  flex-direction:column;
  width:min(1180px,calc(100vw - 40px));
  max-height:calc(100dvh - 40px);
  overflow:hidden;
  border:1px solid #dfe5ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.30);
}
.product-modal-head{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:62px;
  padding:12px 16px 12px 20px;
  border-bottom:1px solid #e5e9f0;
  background:#fff;
}
.product-modal-head-copy{min-width:0}
.product-modal-head-copy span{display:block;margin-bottom:2px;color:#687386;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.product-modal-head-copy strong{display:block;overflow:hidden;color:#162033;font-size:16px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.product-modal-close{
  display:grid;
  flex:0 0 38px;
  width:38px;
  height:38px;
  place-items:center;
  border:0;
  border-radius:10px;
  background:#eef2f8;
  color:#162033;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.product-modal-close:hover{background:#e3e9f3;color:#042093}
.product-modal-body{overflow:auto;overscroll-behavior:contain;padding:22px}
.product-modal-loading{display:grid;min-height:420px;place-items:center;color:#687386;font-weight:700}
.product-modal-error{margin:35px auto;max-width:620px;padding:18px;border:1px solid #f0c6c3;border-radius:12px;background:#fff1f0;color:#8f2018;text-align:center}
.product-modal-hero{display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);gap:34px;align-items:start}
.product-modal-image-wrap{
  position:relative;
  display:grid;
  min-height:430px;
  place-items:center;
  overflow:hidden;
  border:1px solid #edf0f4;
  border-radius:14px;
  background:#fff;
}
.product-modal-image{display:block;width:auto;height:auto;max-width:92%;max-height:410px;object-fit:contain}
.product-modal-stock-group{position:absolute;top:14px;left:14px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.product-modal-stock,.product-modal-low{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:900}
.product-modal-stock{background:#e9f8f0;color:#08773e}
.product-modal-stock.out{background:#f2f3f5;color:#697386}
.product-modal-low{background:#fff1bd;color:#855800}
.product-modal-info{min-width:0;padding-top:4px}
.product-modal-item{margin:0 0 7px;color:#042093;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.product-modal-info h2{margin:0;color:#162033;font-size:30px;line-height:1.15}
.product-modal-upc{margin-top:8px;color:#687386;font-size:12px}
.product-modal-description{margin:16px 0 0;color:#3f4a5d;font-size:14px;line-height:1.55;white-space:pre-line}
.product-modal-price{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:17px 0;border-top:1px solid #e7ebf2;border-bottom:1px solid #e7ebf2}
.product-modal-price strong{color:#042093;font-size:31px;line-height:1}
.product-modal-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin-top:16px}
.product-modal-fact{padding:9px 11px;border-radius:9px;background:#f7f9fc;color:#4d586a;font-size:12px}
.product-modal-fact b{display:block;margin-bottom:3px;color:#162033;font-size:10px;letter-spacing:.05em;text-transform:uppercase}
.product-modal-buy{display:flex;align-items:end;gap:11px;margin-top:19px}
.product-modal-qty{display:flex;flex-direction:column;gap:5px;color:#4e596b;font-size:11px;font-weight:800}
.product-modal-qty input{width:88px;height:44px;padding:0 12px;border:1px solid #cfd6e4;border-radius:10px;color:#162033;font-size:16px;font-weight:800;text-align:center;outline:none}
.product-modal-qty input:focus{border-color:#042093;box-shadow:0 0 0 3px rgba(4,32,147,.09)}
.product-modal-add{min-width:180px;height:44px;padding:0 20px;border:0;border-radius:10px;background:#042093;color:#fff;font-weight:900;cursor:pointer}
.product-modal-add:hover{background:#071866}
.product-modal-add:disabled{opacity:.5;cursor:not-allowed}
.product-modal-favorite{display:inline-flex;align-items:center;gap:7px;margin-top:13px;padding:0;border:0;background:transparent;color:#042093;font-size:12px;font-weight:850;cursor:pointer}
.product-modal-favorite .fav-star{font-size:20px;line-height:1}
.product-modal-favorite.active .fav-star{color:#d48a00}
.product-modal-section{margin-top:30px;padding-top:24px;border-top:1px solid #e4e8ef}
.product-modal-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.product-modal-section-head h3{margin:0;color:#162033;font-size:21px}
.product-modal-section-head span{color:#687386;font-size:11px;font-weight:700}
.product-modal-reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.product-modal-review{padding:12px 14px;border:1px solid #e5e9f0;border-radius:11px;background:#fff}
.product-modal-review-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-modal-review-byline{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0}
.product-modal-review-head strong{font-size:13.5px}
.product-modal-stars{color:#d68b00;letter-spacing:.03em}
.product-modal-review p{margin:8px 0 0;color:#3f4a5d;font-size:14px;line-height:1.5;white-space:pre-line}
.product-modal-review time{color:#7b8595;font-size:11.5px}
.product-modal-empty{padding:18px;border:1px dashed #d6dce6;border-radius:10px;color:#7a8493;text-align:center;font-size:12px}
.product-review-panel{margin-top:14px;padding:15px;border-radius:12px;background:#f7f9fc}
.product-review-panel h4{margin:0 0 10px;font-size:15px}
.product-review-status{display:inline-flex;margin-left:7px;padding:3px 8px;border-radius:999px;background:#fff1bd;color:#845900;font-size:9px;font-weight:900;text-transform:uppercase}
.product-review-grid{display:grid;grid-template-columns:150px 1fr;gap:12px}
.product-review-grid label{display:flex;flex-direction:column;gap:5px;color:#4e596b;font-size:11px;font-weight:800}
.product-review-grid select,.product-review-grid textarea{border:1px solid #ccd4e2;border-radius:9px;background:#fff;color:#162033;outline:none}
.product-review-grid select{height:42px;padding:0 10px}
.product-review-grid textarea{min-height:86px;padding:10px 11px;resize:vertical}
.product-review-grid select:focus,.product-review-grid textarea:focus{border-color:#042093;box-shadow:0 0 0 3px rgba(4,32,147,.08)}
.product-review-submit{margin-top:10px;min-height:39px;padding:0 16px;border:0;border-radius:9px;background:#042093;color:#fff;font-size:12px;font-weight:900;cursor:pointer}
.product-review-help{margin:8px 0 0;color:#6f7989;font-size:10.5px;line-height:1.4}
.product-review-locked{padding:13px 14px;border-radius:10px;background:#f7f9fc;color:#687386;font-size:12px;line-height:1.45}
.product-modal-related-controls{display:flex;gap:7px}
.product-modal-related-controls button{display:grid;width:36px;height:36px;place-items:center;border:1px solid #ccd4e2;border-radius:50%;background:#fff;color:#042093;font-size:17px;cursor:pointer}
.product-modal-related-viewport{overflow:hidden}
.product-modal-related-track{display:flex;gap:14px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none}
.product-modal-related-track::-webkit-scrollbar{display:none}
.product-modal-related-card{display:flex;flex:0 0 calc((100% - 42px)/4);min-width:0;flex-direction:column;scroll-snap-align:start}
.product-modal-related-open{display:grid;height:155px;place-items:center;overflow:hidden;border:0;background:#fff;cursor:pointer}
.product-modal-related-open img{display:block;width:auto;height:auto;max-width:88%;max-height:140px;object-fit:contain}
.product-modal-related-body{display:flex;flex:1;flex-direction:column;padding:8px 2px 2px}
.product-modal-related-price{color:#042093;font-size:16px;font-weight:900}
.product-modal-related-name{display:-webkit-box;min-height:34px;margin-top:5px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#162033;font-size:11px;font-weight:750;line-height:1.35}
.product-modal-related-title{padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.product-modal-related-title:hover .product-modal-related-name{color:#042093}
.product-modal-related-add{width:100%;min-height:37px;margin-top:11px;border:0;border-radius:999px;background:#042093;color:#fff;font-size:11px;font-weight:900;cursor:pointer}
.product-modal-related-add:hover{background:#071866}
.product-modal-related-add:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:900px){
  .product-modal-shell{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
  .product-modal-hero{grid-template-columns:1fr;gap:20px}
  .product-modal-image-wrap{min-height:330px}
  .product-modal-image{max-height:315px}
  .product-modal-related-card{flex-basis:calc((100% - 14px)/2)}
}
@media(max-width:600px){
  .product-modal-backdrop{padding:0;background:#fff}
  .product-modal-shell{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}
  .product-modal-head{min-height:56px;padding:10px 12px 10px 14px}
  .product-modal-body{padding:14px}
  .product-modal-image-wrap{min-height:285px;border-radius:10px}
  .product-modal-image{max-height:270px}
  .product-modal-info h2{font-size:23px}
  .product-modal-price strong{font-size:25px}
  .product-modal-facts{grid-template-columns:1fr 1fr;gap:7px}
  .product-modal-buy{align-items:end}
  .product-modal-add{min-width:0;flex:1}
  .product-modal-reviews{grid-template-columns:1fr}
  .product-review-grid{grid-template-columns:1fr}
  .product-modal-related-card{flex-basis:72%}
}
