/* Единый вид страницы товара со всплывающей карточкой каталога. */
header .head{display:flex!important;align-items:center!important;justify-content:space-between;gap:24px}
header .logo{display:flex;align-items:center;align-self:center;line-height:0}
header .logo img{display:block;width:min(220px,100%);height:auto}
header .phone{display:flex;flex-direction:column;justify-content:center;align-self:center!important;text-align:right;line-height:1.25;margin:0}
@media(max-width:720px){
  header .head{align-items:center!important;gap:10px}
  header .logo img{width:min(145px,100%)}
}
.wrap{max-width:1120px;padding:24px 0 70px;min-width:0;box-sizing:border-box}
.back{display:inline-block;margin:0 18px 14px}
.product{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:0;margin-top:0;background:#fff;border-radius:18px;overflow:hidden;min-width:0;width:100%;min-height:600px;box-shadow:0 24px 80px rgba(30,20,16,.12)}
.gallery{width:100%;padding:18px;background:#f8f3ea;border:0;border-radius:18px 0 0 18px;min-width:0}
.gallery-main{position:relative;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:14px;overflow:hidden;background:transparent}
.gallery-main>img,#galleryMain{display:block;width:100%;max-width:100%;height:100%;aspect-ratio:1/1;object-fit:contain;border-radius:14px}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;border:1px solid var(--line);background:rgba(255,255,255,.94);border-radius:50%;font-size:28px;line-height:1;color:var(--ink);box-shadow:0 4px 14px rgba(30,20,16,.12);cursor:pointer}
.gallery-arrow:hover{color:var(--brand);border-color:#dfb3c1}
.gallery-arrow.prev{left:12px}.gallery-arrow.next{right:12px}
.gallery-arrow[hidden]{display:none}
.thumbs{display:flex;gap:10px;margin-top:14px;overflow-x:auto;padding:2px}
.thumbs button{width:70px;height:70px;flex:0 0 70px;padding:0;border:2px solid transparent;border-radius:9px;background:#fff;overflow:hidden;cursor:pointer}
.thumbs button.on{border-color:var(--brand)}
.thumbs img{width:100%;height:100%;object-fit:cover;border:0;border-radius:0;flex:none}
.product>div:nth-child(2){min-width:0;padding:38px 42px;overflow-y:auto;max-height:min(760px,calc(100vh - 42px))}
.title{font:400 clamp(25px,3vw,36px)/1.25 Georgia,serif;text-align:center;margin:0 0 8px}
.art{font-size:13px;color:#5a351d;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.prices{gap:12px;margin-bottom:10px}
.now{font-size:28px}
.old{font-size:21px}
.note{font-size:11.5px}
.desc{font-size:14px;margin:20px 0;padding:0 0 20px;border-top:1px solid var(--line);padding-top:20px}
.option{margin:0 0 13px}
.option label{font-size:13px;margin-bottom:5px}
.option select{padding:12px 14px;border:1.5px solid var(--line);border-radius:9px;font-size:14px}
.quantity-row{margin-top:20px}
.quantity{border-radius:10px}
.quantity button,.quantity span{width:42px;height:46px;font-size:18px}
.quantity span{background:var(--bg)}
.total{font-size:14px}.total strong{font-size:21px;margin-left:5px}
.buy{margin-top:14px;padding:14px;font-size:16px;border-radius:9px}
.market{margin-top:22px;padding-top:17px;border-top:1px solid var(--line);text-align:center;font-size:16px}
.market-links{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;margin-top:12px}
.market a{flex:1 1 0;width:auto;max-width:112px;min-width:0;height:auto;aspect-ratio:1;margin:0;padding:0;border:0;background:transparent;border-radius:0;color:inherit;overflow:visible}
.market a img{display:block;width:100%;height:auto;aspect-ratio:1;max-width:none;max-height:none;object-fit:contain;border-radius:26px}
.market a:nth-child(4) img{border:2px solid #01a8fe}
@media(max-width:760px){
  html,body{overflow-x:hidden}
  .wrap{padding:14px 9px 40px}
  .back{margin:0 9px 12px}
  .product{grid-template-columns:1fr;min-height:0}
  .gallery{padding:14px;border-radius:18px 18px 0 0}
  .gallery-main,#galleryMain,.gallery-main>img{aspect-ratio:4/3}
  .product>div:nth-child(2){padding:24px 18px;max-height:none;overflow:visible}
  .market-links{width:100%;gap:6px;overflow:hidden}
  .market a{max-width:none}
  .market a img{border-radius:20px}
}
@media(max-width:360px){
  .market-links{gap:4px}
  .market a{max-width:none}
}
