body[data-page=product] main{max-width:1450px;margin:auto;padding-inline:clamp(16px,5vw,74px)}
body[data-page=product] .crumb{color:#aaa;font-size:12px;padding:17px 0}
#routeView #productModal .modal-box{padding:0;background:none;border:0}
#routeView #productModal .detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(24px,3vw,52px)}
.product-stage{position:relative;min-width:0;overflow:hidden;border-radius:13px;background:#1a1a1a}
#productModal .detail>div:first-child{display:grid;min-width:0;grid-template-columns:clamp(62px,6vw,94px) minmax(0,1fr);gap:10px 16px;align-content:start}
#productModal .detail-main{display:block;width:100%;height:auto;max-height:none;aspect-ratio:1;object-fit:contain;background:#1a1a1a}
#detailThumbs{grid-column:1;grid-row:1;display:grid;align-content:start;max-height:clamp(280px,38vw,550px);overflow:auto;scrollbar-width:thin;margin:0;gap:8px}
#detailThumbs button{padding:0;border-radius:9px;overflow:hidden;background:#1c1c1c}
#detailThumbs button[aria-current=true]{border-color:#eee;box-shadow:inset 0 0 0 1px #eee}
#detailThumbs img{display:block;width:100%;height:auto;aspect-ratio:1.04;object-fit:cover}
.product-stage{grid-column:2;grid-row:1}
.gallery-dots{grid-column:2;display:flex;justify-content:center;gap:6px;min-height:8px}
.gallery-dots button{padding:0;border:0;width:8px;height:8px;border-radius:50%;background:#666}
.gallery-dots button[aria-current=true]{background:#eee}
.product-stage button{position:absolute;background:#111b;color:#eee;border:0;border-radius:50%;display:grid;place-items:center}
.product-stage button{width:34px;height:34px;padding:0;font-size:23px}
.gallery-prev,.gallery-next{top:50%;transform:translateY(-50%)}
.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-expand{right:10px;bottom:10px}
.product-brand{color:#aaa;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:700}
#detailName{font-size:clamp(24px,2.4vw,36px);line-height:1.14;margin:8px 0 14px}
#detailPrice{font-size:clamp(22px,2.3vw,32px);line-height:1.2;margin:0 0 23px;font-weight:800}
#productModal label{font-size:13px;color:#ddd;margin:12px 0 8px}
.variant-group{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.variant-group button{min-width:50px;padding:7px 12px;border-radius:8px;background:#191919;border-color:#404040}
.variant-group button[aria-pressed=true]{background:#eee;color:#111;border-color:#eee}
.variant-group button:disabled{opacity:.42;text-decoration:line-through}
.variant-group .swatch-option,.variant-group .swatch-option[aria-pressed=true]{background:var(--swatch);color:transparent;font-size:0;min-width:0;width:38px;height:38px;border:1px solid #676767}
.variant-group .swatch-option[aria-pressed=true]{outline:1px solid #eee;outline-offset:2px}
#stockNote{color:#aaa;font-size:12px;margin:6px 0 12px}
#stockNote:empty{display:none}
body[data-page=product] #productModal [onclick="addToCart()"],#productModal #quickBuy{display:block;position:static;width:100%!important;padding:13px;margin:8px 0;border-radius:9px;font-weight:750}
#productModal [onclick="addToCart()"]{background:#eee;color:#111;border-color:#eee}
#productModal #quickBuy{background:transparent;color:#eee;border-color:#aaa}
#productModal .btn:disabled{opacity:.57;cursor:not-allowed}
#productModal .product-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
#productModal .product-actions button{background:#191919}
.product-lower{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:16px;margin-top:24px}
.product-lower section{background:linear-gradient(130deg,#1d1d1d,#161616);border:1px solid #333;border-radius:12px;margin:0;padding:14px 18px}
.product-lower h2{font-size:15px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #333}
#detailDescription{white-space:pre-line;margin:0;color:#ccc;line-height:1.55}
.product-service a{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:12px;padding:10px 0}
.product-service a+a{border-top:1px solid #333}
.product-service small{display:block;color:#aaa}
.product-related h2{font-size:22px}
@media(max-width:760px){
 body[data-page=product] main{padding-inline:15px}
 body[data-page=product] .crumb{padding:10px 0;font-size:11px}
 #routeView #productModal .detail,.product-lower{grid-template-columns:1fr;gap:12px}
 #productModal .detail>div:first-child{display:block}
 #detailThumbs{display:none}
 #productModal .detail-main{aspect-ratio:1.41}
 .gallery-dots{margin-top:8px}
 #detailName{font-size:21px;margin:5px 0 8px}
 #detailPrice{font-size:23px;margin-bottom:12px}
 .variant-group{margin-bottom:10px}
 body[data-page=product] #productModal [onclick="addToCart()"]{inset:auto}
 body[data-page=product]{padding-bottom:calc(65px + env(safe-area-inset-bottom))}
 #productModal .product-actions button{font-size:13px}
}
#productModal .btn svg{width:18px;height:18px;vertical-align:-4px;margin-right:8px;stroke-width:1.75}

#routeView #productModal .detail {align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#productModal .detail>div:first-child {grid-template-columns:auto minmax(0,1fr);gap:8px;justify-items:start}
#productModal .detail>div:first-child:not(:has(#detailThumbs)) {display:block}
#detailThumbs {width:66px;max-height:min(58vh,510px)}
#productModal .product-stage {width:fit-content;max-width:100%;margin-inline:auto}
#productModal .detail-main {width:auto;height:auto;max-width:100%;max-height:min(58vh,510px);aspect-ratio:auto}
.gallery-dots {justify-self:center}
.gallery-dots:empty {display:none}
#productModal .product-actions button,.wero-contact-buttons a {display:inline-flex;align-items:center;justify-content:center;gap:8px}
#saveProductFavorite[aria-pressed=true] svg {fill:currentColor}
#weroProductContacts {margin:14px 0;padding:12px 0;border-block:1px solid #303030}
.wero-contact-title {font-size:13px;color:#bbb}
.wero-contact-buttons a {padding:6px 12px;background:#202020;border-radius:8px;font-weight:600}
.wero-contact-buttons svg,.product-actions svg {width:17px;height:17px}
.product-lower {display:block;margin:12px 0}
.product-service {margin:12px 0 0;padding:2px 14px;background:linear-gradient(120deg,#202020,#191919);border:1px solid #303030;border-radius:12px}
.product-service a {padding:7px 0}
.product-service small {font-size:12px}
.product-menu {display:none}
@media(max-width:760px){
  #routeView #productModal .detail {grid-template-columns:minmax(0,1fr)}
  #productModal .product-stage {width:100%}
  #productModal .detail-main {width:100%;max-height:none}
  header {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:49px;padding:0 12px;background:#111;box-shadow:0 1px 0 #3336}
  header .logo {font-size:22px;letter-spacing:-.8px;white-space:nowrap}
  header aside {display:flex;justify-self:end;gap:9px}
  header aside a:is([data-nav="2"],[data-nav="3"]) {display:inline-flex}
  header aside svg {width:19px;height:19px}
  header .count {top:-4px;right:-4px;font-size:8px}
  .product-menu {display:block;margin:0}
  .product-menu summary {display:grid;place-items:center;width:34px;height:40px;list-style:none}
  .product-menu summary::-webkit-details-marker {display:none}
  .product-menu div {position:absolute;top:48px;left:8px;min-width:170px;background:#1c1c1c;border:1px solid #333;border-radius:10px;padding:8px;box-shadow:0 10px 24px #0008}
  .product-menu a {display:block;padding:9px}
}

.product-price-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.product-price-bar #detailPrice {margin:0}
#productModal .product-price-bar .product-actions {display:flex;gap:6px;margin:0}
#productModal .product-price-bar .product-actions button {width:38px;height:38px;padding:0;border-radius:9px}
.product-size-heading {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
#productModal .product-size-heading label {margin:0}
#openSizeChart {display:inline-flex;align-items:center;gap:6px;padding:6px 8px;font-size:12px;background:#202020;border-color:#333;border-radius:8px}
#openSizeChart svg {width:15px;height:15px}
#weroProductContacts {padding:10px 12px;margin:10px 0;border:0;border-radius:10px;background:#191919}
.wero-contact-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wero-contact-buttons a {min-height:36px;background:#262626}
.size-chart-dialog {width:min(560px,calc(100% - 30px));max-height:85dvh;padding:15px;background:#191919;color:#eee;border:1px solid #333;border-radius:14px}
.size-chart-dialog::backdrop {background:#000a}
.size-chart-dialog form {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.size-chart-dialog h2 {font-size:19px;margin:0}
.size-chart-dialog form button {width:34px;height:34px;padding:0;font-size:22px}
.size-chart-dialog p {color:#bbb;font-size:14px}
.size-chart-dialog img {display:block;width:100%;max-height:65dvh;object-fit:contain}

/* Purchase panel */
body[data-page=product] #productModal [onclick="addToCart()"] {
  min-height:54px;
  border-radius:10px;
  background:#fff;
  border-color:#fff;
  color:#000;
}
body[data-page=product] #productModal [onclick="addToCart()"]:disabled {
  background:#555;
  border-color:#555;
  color:#ddd;
  opacity:1;
}
.product-price-bar {margin-bottom:22px}
#productModal .product-price-bar .product-actions {gap:8px}
#productModal .product-price-bar .product-actions button {
  width:44px;
  height:44px;
  background:transparent;
  border-color:transparent;
}
#productModal .product-actions svg {width:24px;height:24px}
#productModal .product-price-bar .product-actions button:hover {background:#252525}
.product-size-heading {margin-bottom:8px}
#openSizeChart {
  gap:5px;
  padding:5px 0;
  background:none;
  border:0;
  color:#ccc;
  white-space:nowrap;
}
#openSizeChart:hover {color:#fff;text-decoration:underline;text-underline-offset:3px}
#openSizeChart svg {width:17px;height:17px}
.variant-group[aria-label="Розмір"] {gap:8px;margin-bottom:20px}
.variant-group[aria-label="Розмір"] button {min-width:54px;min-height:42px;padding:8px 11px}
.variant-group[aria-label="Колір"] {margin-bottom:18px}

#weroProductContacts {margin:18px 0 8px;padding:0;background:none}
.wero-contact-title {display:flex;align-items:center;gap:11px}
.wero-contact-title>svg {width:32px;height:32px;flex:none;color:#ddd}
.wero-contact-title strong {display:block;color:#eee;font-size:15px}
.wero-contact-title small {display:block;margin-top:2px;color:#aaa;font-size:13px}
.wero-contact-buttons {gap:11px;margin-top:11px}
.wero-contact-buttons .wero-telegram {--messenger:#229ed9}
.wero-contact-buttons .wero-viber {--messenger:#7360f2}
.wero-contact-buttons a {
  min-height:42px;
  background:#1a1a1a;
  border:1px solid color-mix(in srgb,var(--messenger) 55%,#1a1a1a);
  box-shadow:0 0 10px color-mix(in srgb,var(--messenger) 18%,transparent);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.wero-contact-buttons a svg {width:20px;height:20px;color:var(--messenger)}
@media(hover:hover) and (pointer:fine){
  .wero-contact-buttons a:hover {
    border-color:var(--messenger);
    box-shadow:0 0 15px color-mix(in srgb,var(--messenger) 32%,transparent);
  }
}
.wero-contact-buttons a:focus-visible {outline:2px solid var(--messenger);outline-offset:3px}
.product-service {margin-top:14px;padding:0;background:none;border:0;border-radius:0}
.product-service :is(a,.product-quality) {display:grid;align-items:center;grid-template-columns:32px 1fr auto;gap:10px;padding:8px 0}
.product-service>*+* {border-top:1px solid #292929}
.product-service :is(a,.product-quality)>svg {width:30px;height:30px;stroke-width:1.4}

.product-quality :is(b,svg) {color:#4ade80}
.product-quality>svg {filter:drop-shadow(0 0 4px #4ade8024)}
