body.nba-editorial-product main.shop-main { padding-top:12px; }
body.nba-editorial-product .nba-breadcrumb-wrap { margin:0 0 16px; font-size:14px; line-height:1.5; }
body.nba-editorial-product .nba-breadcrumb-wrap .separator { padding:0 5px; }
body.nba-editorial-product .shop-main > div.product { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:28px; align-items:start; }
body.nba-editorial-product .shop-main > div.product > :not(.nba-product-media):not(.summary):not(.images) { grid-column:1/-1; }
body.nba-editorial-product .shop-main > div.product > div.images { width:100%; float:none; }
.nba-product-media { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; position:relative; }
body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery { width:100%; float:none; margin:0; padding:0; min-width:0; }
/* WooCommerce measures the actual image; no fixed aspect ratio or forced height. */
body.nba-editorial-product .nba-product-media .flex-viewport { aspect-ratio:auto; }
body.nba-editorial-product .nba-product-media .woocommerce-product-gallery__image > a > img { display:block; width:100%; height:auto; aspect-ratio:auto; max-height:none; object-fit:contain; background:var(--soft); }
.nba-second-photo { display:block; min-width:0; aspect-ratio:3/4; background:var(--soft); overflow:hidden; border-radius:2px; }
.nba-second-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.nba-product-media.is-single { grid-template-columns:minmax(0,1fr); }
.nba-product-media [hidden] { display:none!important; }
body.nba-editorial-product .nba-product-media .flex-control-thumbs { display:none!important; }
.nba-editorial-thumbs { grid-column:1/-1; display:flex; gap:8px; overflow-x:auto; padding:2px 0; max-width:100%; }
body.nba-editorial-product .nba-editorial-thumbs button { padding:2px; border:0; background:transparent; flex:0 0 72px; border-radius:2px; cursor:pointer; }
.nba-editorial-thumbs img { width:68px; height:90px; display:block; object-fit:contain; background:var(--soft); }
.nba-editorial-thumbs button.is-active { background:var(--brown,#714b32); }
.nba-editorial-thumbs button:focus-visible,.nba-swipe-progress button:focus-visible { outline:2px solid var(--brown); outline-offset:2px; }
.nba-swipe-progress { display:none; }
body.nba-editorial-product .shop-main > div.product > div.summary { width:auto; float:none; margin:0; padding:0; min-width:0; position:static; top:auto; max-height:none; height:auto; overflow:visible; align-self:start; }
body.nba-editorial-product .summary::-webkit-scrollbar { display:none; width:0; height:0; }
body.nba-editorial-product .summary .product_title { font-size:clamp(18px,1.5vw,22px); line-height:1.25; margin:0 0 10px; font-weight:500; }
body.nba-editorial-product .summary > .price { font-size:22px; line-height:1.4; margin:0 0 16px; }
body.nba-editorial-product .summary > .price del { font-size:14px; }
/* Production timing remains in Состав и уход, instead of interrupting choices. */
body.nba-editorial-product .summary > .nba-production { display:none; }
body.nba-editorial-product .summary .nba-editorial-excerpt { margin:0 0 18px; font:inherit; font-size:14px; line-height:1.6; }
.nba-editorial-excerpt p { margin:0; }
body.nba-editorial-product .summary form.cart { margin:0 0 18px; }
body.nba-editorial-product .summary form.nba-tiles-ready .variations { margin:0; }
body.nba-editorial-product .summary form.nba-tiles-ready .variations th { font-family:inherit; font-size:14px; font-weight:400; padding-bottom:8px; }
body.nba-editorial-product .summary .variations th label,
body.nba-editorial-product .summary .nba-choice-current { font-family:inherit; font-size:14px; font-weight:400; }
body.nba-editorial-product .summary form.nba-tiles-ready .variations td { padding-bottom:18px; }
body.nba-editorial-product .summary .nba-size-guide { margin:0 0 18px; }
body.nba-editorial-product .summary .nba-size-guide > summary { font-family:inherit; font-weight:400; padding:0; min-height:24px; }
body.nba-editorial-product .summary .reset_variations { display:block; font-size:12px; margin:0 0 12px; }
body.nba-editorial-product .nba-choice-10 { display:flex; flex-wrap:wrap; gap:7px; }
body.nba-editorial-product form.nba-tiles-ready .nba-choice-10 button.nba-choice { width:42px; height:42px; min-height:42px; padding:5px; aspect-ratio:1; background:var(--soft); }
body.nba-editorial-product form.nba-tiles-ready .nba-choice-10 button.nba-choice.is-selected { background:var(--soft); }
.nba-shirt-swatch { display:block; width:30px; height:30px; border-radius:50%; background:var(--nba-swatch,#ccc); box-shadow:inset 0 0 0 1px rgba(39,34,31,.1); }
.nba-choice-10 .is-selected .nba-shirt-swatch { outline:1px solid var(--brown,#714b32); outline-offset:3px; }
body.nba-editorial-product .nba-choice-20 { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.nba-editorial-product .nba-choice-30 { display:flex; flex-wrap:wrap; gap:8px; }
body.nba-editorial-product .summary .woocommerce-variation-add-to-cart,
body.nba-editorial-product .summary form.cart:not(.variations_form):not(.grouped_form) { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
body.nba-editorial-product .summary form.cart div.quantity { margin:0; float:none; flex:0 0 76px; }
body.nba-editorial-product .summary .quantity .qty { width:76px; min-height:46px; }
body.nba-editorial-product .summary .single_add_to_cart_button { width:auto; flex:1 1 150px; float:none; margin:0; min-height:46px; font-size:14px; }
.nba-product-accordions { font-size:14px; line-height:1.6; }
.nba-product-panel { border-top:1px solid var(--line); padding:0; }
.nba-product-panel:last-child { border-bottom:1px solid var(--line); }
.nba-product-panel > summary { display:flex; align-items:center; justify-content:space-between; padding:16px 0; cursor:pointer; font-weight:500; list-style:none; }
.nba-product-panel > summary::-webkit-details-marker { display:none; }
.nba-product-panel > summary::after { content:'⌄'; font-size:16px; }
.nba-product-panel[open] > summary::after { content:'⌃'; }
.nba-panel-content { padding-bottom:16px; overflow-wrap:anywhere; }
.nba-panel-content > h2:first-child,.nba-panel-content > .nba-care > h2:first-child { display:none; }
.nba-panel-content h2,.nba-panel-content h3 { font-size:16px; line-height:1.4; }
.nba-panel-content p { margin:0 0 12px; }
.nba-panel-content p:last-child { margin-bottom:0; }
.nba-panel-content .product_meta { font-size:12px; }
@media(max-width:800px) {
  body.nba-editorial-product main.shop-main { padding-top:8px; }
  body.nba-editorial-product .nba-breadcrumb-wrap { font-size:13px; margin-bottom:10px; }
  body.nba-editorial-product .shop-main > div.product { display:block; }
  .nba-product-media { grid-template-columns:94% 94%; gap:6px; overflow:hidden; margin-bottom:18px; }
  .nba-product-media.is-single { grid-template-columns:100%; }
  /* The peek must not impose its own portrait height on the main photograph. */
  .nba-product-media .nba-second-photo { position:absolute; top:0; bottom:0; left:calc(94% + 6px); width:94%; height:auto; aspect-ratio:auto; }
  body.nba-editorial-product .nba-editorial-thumbs { display:none; }
  .nba-swipe-progress { position:absolute; left:6%; right:10%; bottom:12px; display:flex; gap:4px; z-index:2; }
  body.nba-editorial-product .nba-swipe-progress button { flex:1 1 0; min-width:0; min-height:20px; padding:0; border:0; background:transparent; cursor:pointer; }
  .nba-swipe-progress button::after { content:''; display:block; height:3px; border-radius:1px; background:rgba(113,75,50,.35); }
  .nba-swipe-progress button.is-active::after { background:#714b32; }
  body.nba-editorial-product .shop-main > div.product > div.summary { position:static; max-height:none; overflow:visible; margin:0 0 28px; }
  body.nba-editorial-product .summary .product_title { font-size:18px; }
  body.nba-editorial-product .summary > .price { font-size:20px; margin-bottom:18px; }
}

/* Override legacy fixed-height anchors as well as the image itself. */
body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a { display:block!important; height:auto!important; min-height:0; width:100%; }
body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img { width:100%!important; max-width:100%!important; height:auto!important; max-height:none!important; margin:0; aspect-ratio:auto; object-fit:contain; }
body.nba-editorial-product .summary form.cart .variations th,
body.nba-editorial-product .summary form.cart .variations label,
body.nba-editorial-product .summary .nba-choice-current { font:400 14px/1.5 Arial,Helvetica,sans-serif!important; }
body.nba-editorial-product .summary form.nba-tiles-ready .nba-choice-10 button.nba-choice,
body.nba-editorial-product .summary form.nba-tiles-ready .nba-choice-10 button.nba-choice:hover,
body.nba-editorial-product .summary form.nba-tiles-ready .nba-choice-10 button.nba-choice.is-selected { background:transparent!important; box-shadow:none; }
body.nba-editorial-product .summary form.nba-tiles-ready .nba-choice-30 button.nba-choice { flex:0 0 64px; width:64px; min-height:44px; }
body.nba-editorial-product .summary form.cart .nba-size-guide { margin:0 0 10px!important; }
body.nba-editorial-product .summary .reset_variations { margin-bottom:10px; }
body.nba-editorial-product .summary .reset_variations[hidden] { display:none!important; }
body.nba-editorial-product .summary .single_variation:empty { display:none; }
body.nba-editorial-product .summary form.cart div.quantity { position:relative; }
body.nba-editorial-product .summary .quantity .qty { padding:8px 26px 8px 6px; appearance:textfield; -moz-appearance:textfield; }
body.nba-editorial-product .summary .quantity .qty::-webkit-inner-spin-button,
body.nba-editorial-product .summary .quantity .qty::-webkit-outer-spin-button { appearance:none; margin:0; }
body.nba-editorial-product .summary .nba-qty-arrows { position:absolute; top:1px; bottom:1px; right:1px; width:24px; display:grid; grid-template-rows:1fr 1fr; }
body.nba-editorial-product .summary .nba-qty-arrows button { width:24px; min-height:0; height:auto; margin:0; padding:0; border:0; background:transparent; color:var(--brown,#714b32); font:400 12px/1 Arial,sans-serif; cursor:pointer; }
body.nba-editorial-product .summary .nba-qty-arrows button:focus-visible { outline:1px solid var(--brown); }
body.nba-editorial-product .shop-main > div.product > .related,
body.nba-editorial-product .shop-main > div.product > .upsells { position:static; clear:both; grid-column:1/-1; width:100%; min-width:0; margin-top:24px; }
@media(max-width:800px) {
 body.nba-editorial-product .summary .nba-editorial-excerpt { display:none; }
 body.nba-editorial-product .summary form.nba-tiles-ready .nba-choice-30 button.nba-choice { flex-basis:44px; width:44px; }
}

/* 2.0.86: desktop thumbnail rail, compact single-frame mobile gallery. */
@media(min-width:801px) {
 body.nba-editorial-product .shop-main > div.product { column-gap:38px; }
 body.nba-editorial-product .nba-product-media { grid-template-columns:72px minmax(0,1fr); column-gap:12px; }
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery { grid-column:2; grid-row:1; }
 body.nba-editorial-product .nba-editorial-thumbs { grid-column:1; grid-row:1; flex-direction:column; align-self:start; max-height:640px; overflow:auto; }
 body.nba-editorial-product .nba-editorial-thumbs button { flex:0 0 auto; width:72px; }
 body.nba-editorial-product .summary > .price { font-size:24px; margin-bottom:14px; }
}
body.nba-editorial-product .nba-shirt-swatch.is-light { box-shadow:inset 0 0 0 2px #8b796a; }
body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > picture { display:block; width:100%; }
body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > picture > img { display:block; width:100%!important; height:auto!important; max-height:none!important; margin:0; }
@media(max-width:800px) {
 body.nba-editorial-product .nba-product-media { display:block; overflow:hidden; }
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a { height:430px!important; max-height:65svh; display:flex!important; align-items:center; justify-content:center; }
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > picture > img { width:100%!important; height:100%!important; max-height:430px!important; object-fit:contain; }
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > picture { height:100%; }
 body.nba-editorial-product .nba-swipe-progress { position:static; padding:10px 4px 0; display:flex; gap:4px; }
 body.nba-editorial-product .nba-swipe-progress span { display:block; flex:1 1 0; height:3px; border-radius:1px; background:rgba(113,75,50,.3); }
 body.nba-editorial-product .nba-swipe-progress span.is-active { background:#714b32; }
 body.nba-editorial-product .summary > .price { font-size:22px; margin-bottom:16px; }
}

/* 2.0.87: filled mobile frame and thumbnail crops; compact related section. */
body.nba-editorial-product .nba-editorial-thumbs img { width:68px; height:90px; object-fit:cover; object-position:center; }
body.nba-editorial-product .shop-main > div.product { row-gap:20px; }
body.nba-editorial-product .shop-main > div.product > .related,
body.nba-editorial-product .shop-main > div.product > .upsells { margin-top:0; padding-top:0; }
body.nba-editorial-product .shop-main > div.product > .related > h2,
body.nba-editorial-product .shop-main > div.product > .upsells > h2 { margin:0 0 16px; }
@media(min-width:801px) {
 body.nba-editorial-product .shop-main > div.product { column-gap:50px; }
 body.nba-editorial-product .summary > .price { font-size:28px; margin-bottom:12px; }
}
@media(max-width:800px) {
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a { height:min(110vw,430px,65svh)!important; overflow:hidden; }
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
 body.nba-editorial-product .nba-product-media div.images.woocommerce-product-gallery .woocommerce-product-gallery__image > a > picture > img { width:100%!important; height:100%!important; max-height:none!important; object-fit:cover; object-position:center; }
 body.nba-editorial-product .summary > .price { font-size:26px; margin-bottom:14px; }
 body.nba-editorial-product .shop-main > div.product > div.summary { margin-bottom:12px; }
 body.nba-editorial-product .shop-main > div.product > .related,
 body.nba-editorial-product .shop-main > div.product > .upsells { margin-top:12px; }
}

/* Related-product actions must have a visible hover, keyboard and press state. */
body.nba-editorial-product .related ul.products li.product a.button { padding:10px 14px; border-radius:2px; transition:background-color .15s,color .15s; }
body.nba-editorial-product .related ul.products li.product a.button:hover,
body.nba-editorial-product .related ul.products li.product a.button:focus-visible,
body.nba-editorial-product .related ul.products li.product a.button:active { background:var(--brown,#714b32)!important; color:#fff!important; border-color:var(--brown,#714b32); }
body.nba-editorial-product .related ul.products li.product a.button:focus-visible { outline:2px solid var(--brown,#714b32); outline-offset:3px; }

/* Hide only the thumbnail scrollbar; keep scrolling and keyboard navigation. */
body.nba-editorial-product .nba-editorial-thumbs { scrollbar-width:none; -ms-overflow-style:none; }
body.nba-editorial-product .nba-editorial-thumbs::-webkit-scrollbar { display:none; width:0; height:0; }

body.nba-editorial-product .woocommerce-product-gallery__trigger,
body.nba-editorial-product .woocommerce-product-gallery .zoomImg { display:none!important; }
body.nba-editorial-product .woocommerce-product-gallery__image > a { pointer-events:none; cursor:default; }
