.product-page{padding:32px 0 72px}
.crumb{color:var(--muted);font-size:14px;margin-bottom:20px}

.product{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start;margin-bottom:56px}

.gallery{display:grid;grid-template-columns:88px 1fr;gap:16px}
.gallery__thumbs{display:flex;flex-direction:column;gap:10px;max-height:560px;overflow-y:auto}
.gallery__thumbs button{padding:0;width:80px;height:80px;border-radius:12px;overflow:hidden;background:var(--card);border:2px solid transparent;flex:none}
.gallery__thumbs button.is-active{border-color:var(--text)}
.gallery__thumbs img{width:100%;height:100%;object-fit:contain;background:#fff}

.gallery__main{position:relative;background:var(--card);border-radius:var(--r);display:flex;align-items:center;justify-content:center;min-height:420px;padding:24px}
.gallery__main img{max-width:100%;max-height:520px;object-fit:contain}

.product__title{font-size:clamp(28px,4vw,40px);font-weight:600;letter-spacing:-.03em;line-height:1.15;margin-bottom:24px}
.product__side{padding-top:4px}
.product__short{font-size:16px;line-height:1.55;margin-bottom:16px}
.product__keys{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:24px;color:var(--muted);font-size:14px;line-height:1.45}
.product__keys li{display:flex;gap:10px}
.product__keys li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--text);margin-top:8px}
.product__hint{color:var(--muted);font-size:13px;margin-top:14px}
.product__acts{display:flex;gap:10px;flex-wrap:wrap}
.product__acts{align-items:center}
.product__acts .btn{background:var(--brand);border-color:var(--brand);font-size:14px;display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 22px}
.product__acts .qty--lg{height:38px}
.product__acts .qty--lg .qty__btn{width:36px;font-size:17px}
.product__acts .qty--lg .qty__val{min-width:38px;font-size:15px}

.tabs{background:var(--card);border-radius:var(--r);overflow:hidden}
.tabs__bar{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--line)}
.tabs__bar::-webkit-scrollbar{display:none}
.tabs__tab{flex:none;padding:18px 28px;font-size:16px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap;transition:color .15s,background .15s}
.tabs__tab:hover{color:var(--text)}
.tabs__tab.is-active{color:var(--text);background:var(--bg);border-bottom-color:var(--text)}
.tabs__panel{padding:28px 32px 36px}
.tabs__panel[hidden]{display:none}
.tabs__panel p{font-size:16px;line-height:1.7;margin-bottom:14px;max-width:80ch}
.tabs__panel h3{font-size:19px;font-weight:600;letter-spacing:-.01em;margin:26px 0 10px}
.tabs__panel h3:first-child{margin-top:0}
.bullets{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px 32px}
.bullets li{display:flex;gap:10px;font-size:15px;line-height:1.5}
.bullets li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--text);margin-top:9px}

.spec-table{width:100%;border-collapse:collapse;font-size:15px}
.spec-table th,.spec-table td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid var(--line);line-height:1.45}
.spec-table tr:not(.spec-table__group) th{width:34%;font-weight:500;color:var(--muted)}
.spec-table td{font-weight:500}
.spec-table__group th{padding-top:26px;font-size:17px;font-weight:600;color:var(--text);border-bottom:2px solid var(--text)}
.spec-table tr:first-child.spec-table__group th{padding-top:6px}

@media(max-width:900px){
  .product{grid-template-columns:1fr}
  .gallery{grid-template-columns:64px 1fr}
  .gallery__thumbs button{width:56px;height:56px}
  .bullets{grid-template-columns:1fr}
  .tabs__panel{padding:22px 18px 28px}
  .tabs__tab{padding:15px 18px;font-size:15px}
  .spec-table tr:not(.spec-table__group) th{width:42%}
}

/* phone: big image on top, thumbnails in a scrollable row below, nothing cropped */
@media(max-width:640px){
  .product-page{padding:20px 0 48px}
  .product{gap:20px;margin-bottom:32px}
  .product__title{font-size:26px;margin-bottom:16px}
  .gallery{grid-template-columns:minmax(0,1fr);gap:10px}
  .gallery__main{order:1;min-height:0;aspect-ratio:1/1;padding:14px;background:#fff}
  .gallery__main img{max-height:100%;width:100%;height:100%}
  .gallery__thumbs{order:2;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;gap:8px;scrollbar-width:none}
  .gallery__thumbs::-webkit-scrollbar{display:none}
  .gallery__thumbs button{width:64px;height:64px;border-radius:10px}
  .gallery__thumbs img{padding:3px}
  .tabs__panel{padding:18px 14px 24px}
  .spec-table{font-size:14px}
  .spec-table th,.spec-table td{padding:9px 6px}
  .spec-table tr:not(.spec-table__group) th{width:40%}
}
.product__acts .btn.is-added{background:#fff;color:var(--blue)}
.product__acts .btn:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.gallery__ph{width:110px;height:110px;fill:none;stroke:#c7c7cc;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.addons{margin-top:26px}
.addons h3{font-size:17px;font-weight:600;margin-bottom:10px}
.addons ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.addons li{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);padding:10px 14px;border-radius:12px}
.addons li>a{font-size:14px;font-weight:500;color:inherit;min-width:0;overflow-wrap:anywhere}
.addons li>a:hover{text-decoration:underline}
.addons__ctl{display:flex;align-items:center;gap:8px;flex:none}
@media(max-width:600px){.addons li{flex-wrap:wrap}.addons__ctl{width:100%;justify-content:flex-end}}
.product__media{min-width:0}
.product__media .addons{margin-top:24px}
@media(max-width:900px){
  .product__media{display:contents}
  .product__media .gallery{order:1}
  .product__side{order:2}
  .product__media .addons{order:3;margin-top:4px}
}
@media(max-width:640px){.addons .qty{height:34px}.addons .qty__btn{width:36px}.addons .add{height:34px}}
.gallery__thumbs[hidden]{display:none}
.gallery.gallery--single{grid-template-columns:minmax(0,1fr)}
.crumb a{color:inherit}
.crumb a:hover{color:var(--text);text-decoration:underline}
