/* Pulkstenis Gooix Specs 1.0.1. Only active pilot product blocks. */
#pgg-anchor[hidden] { display: none !important; }
.pgg-quickfacts { margin: 10px 0 8px; }
.pgg-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; padding: 12px; background: #f7f7f7; border-radius: 5px; }
.pgg-fact { min-width: 0; }
.pgg-fact dt { position: relative; padding-left: 24px; margin: 0 0 3px; font-size: 12px; line-height: 1.45; color: #666; font-weight: 400; }
.pgg-fact dt .fa { position: absolute; left: 0; top: 2px; color: var(--pgg-accent, #8a0a0f); font-size: 16px; width: 17px; text-align: center; }
.pgg-fact dd { padding-left: 24px; margin: 0; font-size: 13px; line-height: 1.45; color: #333; overflow-wrap: anywhere; }
.pgg-spec-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; font-size: 12px; line-height: 1.5; color: var(--pgg-accent, #8a0a0f); text-decoration: underline; text-underline-offset: 3px; }
.pgg-spec-link:hover, .pgg-spec-link:focus { color: var(--pgg-accent, #8a0a0f); }
.pgg-services { clear: both; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #e4e4e4; }
.pgg-services h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; font-weight: 500; }
.pgg-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.pgg-service-item { min-width: 0; }
.pgg-service-item dt { position: relative; padding-left: 25px; margin: 0 0 4px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.pgg-service-item dt .fa { position: absolute; left: 0; top: 2px; font-size: 16px; color: var(--pgg-accent, #8a0a0f); }
.pgg-service-item dd { padding-left: 25px; margin: 0; font-size: 13px; color: #666; line-height: 1.6; overflow-wrap: anywhere; }
.pgg-extra-gallery { clear: both; margin: 14px 0 0; border-top: 1px solid #e4e4e4; }
.pgg-extra-gallery > summary { min-height: 46px; padding: 13px 0; color: var(--pgg-accent, #8a0a0f); font-size: 13px; line-height: 1.5; cursor: pointer; }
.pgg-extra-count { margin-left: 5px; color: #666; }
.pgg-extra-note { margin: 0 0 14px; color: #666; font-size: 12px; line-height: 1.5; }
.pgg-extra-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 12px; }
.pgg-extra-image { display: block; min-width: 0; }
.pgg-extra-image img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 4px; }

/* The same native nodes are moved by the script only after all anchors match. */
#product-product #content > .row.pgg-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: min-content 1fr auto; gap: 10px 24px; align-items: start; margin-left: 0; margin-right: 0; }
#product-product #content > .row.pgg-layout::before,
#product-product #content > .row.pgg-layout::after { content: none; display: none; }
#product-product #content > .row.pgg-layout > .pgg-title { grid-column: 2; grid-row: 1; min-width: 0; }
#product-product #content > .row.pgg-layout > .pgg-gallery { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
#product-product #content > .row.pgg-layout > .pgg-purchase { grid-column: 2; grid-row: 2; width: auto; float: none; padding: 0; min-width: 0; }
#product-product #content > .row.pgg-layout > .pgg-details { grid-column: 1 / -1; grid-row: 3; width: auto; float: none; padding: 4px 0 0; min-width: 0; }
#product-product .pgg-brand { display: block; margin: 0 0 4px; color: var(--pgg-accent, #8a0a0f); font-size: 13px; line-height: 1.4; }
#product-product .pgg-title > h1 { margin: 0 0 6px; font-size: 23px; line-height: 1.25; font-weight: 500; }
#product-product .pgg-title > .list-unstyled { margin: 0; font-size: 12px; line-height: 1.55; }
#product-product .pgg-title > .btn-group { margin: 3px 0 0; }
#product-product .pgg-title > .btn-group .btn { padding: 5px 9px; }
#product-product .pgg-purchase > .list-unstyled { margin: 0 0 8px; }
#product-product .pgg-purchase > .list-unstyled h2 { margin: 0 0 5px; color: var(--pgg-accent, #8a0a0f); font-size: 30px; line-height: 1.2; }
#product-product #content .pgg-gallery .thumbnails { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 0; margin: 0; overflow: visible; }
#product-product #content .pgg-gallery .thumbnails > li { float: none; margin: 0; padding: 0; list-style: none; }
#product-product #content .pgg-gallery .thumbnails > li:first-child { flex: 0 0 100%; width: 100%; }
#product-product #content .pgg-gallery .thumbnails > .image-additional { flex: 0 0 54px; width: 54px; max-width: 54px; }
#product-product #content .pgg-gallery .thumbnail { margin: 0; padding: 5px; border-radius: 5px; }
#product-product #content .pgg-gallery .thumbnails > li:first-child > .thumbnail { display: flex; align-items: center; justify-content: center; min-height: 280px; }
#product-product #content .pgg-gallery .thumbnails > li:first-child > .thumbnail > img { width: auto; height: auto; max-width: 100%; max-height: 310px; margin: auto; }
#product-product #content .pgg-gallery .image-additional img { width: auto; max-width: 100%; height: auto; }
#product-product .pgg-details > .nav-tabs { display: flex; flex-wrap: wrap; margin-bottom: 0; }
#product-product .pgg-details > .nav-tabs > li { float: none; }
#product-product .pgg-details > .nav-tabs > li > a { padding: 10px 16px; min-height: 44px; font-size: 14px; line-height: 1.5; }
#product-product .pgg-details > .nav-tabs > li.active > a { border-bottom: 3px solid var(--pgg-accent, #8a0a0f); color: var(--pgg-accent, #8a0a0f); background: #f7f2f2; }
#product-product .pgg-details > .tab-content { padding-top: 12px; }
#product-product .pgg-details #tab-description { font-size: 14px; line-height: 1.7; }
#product-product .pgg-details #tab-description > p { margin-bottom: 10px; }
#product-product .pgg-details #tab-specification .table { table-layout: fixed; width: 100%; }
#product-product .pgg-details #tab-specification .table td { padding: 9px 13px; border-color: #e4e4e4; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#product-product .pgg-details #tab-specification .table tbody td:first-child { width: 40%; color: #666; }
#product-product .pgg-details #tab-specification .table thead td { background: #f7f7f7; }
#product-product .pgg-details #tab-specification .table thead td strong { font-weight: 500; }

/* Keep the native quantity and cart controls together at every screen size. */
#product-product .pgg-cart-wrap #product > .form-group:has(> #input-quantity):has(> #button-cart) { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 4px 8px; margin-bottom: 8px; }
#product-product .pgg-cart-wrap #product > .form-group:has(> #input-quantity):has(> #button-cart) > label { grid-column: 1 / -1; margin: 0; }
#product-product .pgg-cart-wrap #product > .form-group:has(> #input-quantity):has(> #button-cart) > br { display: none; }
#product-product .pgg-cart-wrap #product > .form-group:has(> #input-quantity):has(> #button-cart) > .text-danger { grid-column: 1 / -1; }
#product-product .pgg-cart-wrap #input-quantity { grid-column: 1; grid-row: 2; width: 100%; height: 44px; min-height: 44px; font-size: 16px; text-align: center; }
#product-product .pgg-cart-wrap #button-cart { grid-column: 2; grid-row: 2; width: 100%; min-width: 0; margin: 0; min-height: 44px; font-size: 14px; white-space: normal; }
#product-product .pgg-purchase > .rating { margin-top: 8px; }
#product-product .pgg-purchase > .rating > p { margin-bottom: 6px; }
#product-product .pgg-purchase > .rating > hr { margin-top: 10px; margin-bottom: 6px; }

@media (max-width: 767px) {
  #product-product #content > .row.pgg-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto); gap: 10px; }
  #product-product #content > .row.pgg-layout > .pgg-title { grid-column: 1; grid-row: 1; }
  #product-product #content > .row.pgg-layout > .pgg-gallery { grid-column: 1; grid-row: 2; }
  #product-product #content > .row.pgg-layout > .pgg-purchase { grid-column: 1; grid-row: 3; }
  #product-product #content > .row.pgg-layout > .pgg-details { grid-column: 1; grid-row: 4; padding-top: 4px; }
  #product-product .pgg-brand { font-size: 12px; margin-bottom: 3px; }
  #product-product .pgg-title > h1 { font-size: 20px; }
  #product-product .pgg-title > .list-unstyled { display: flex; flex-wrap: wrap; gap: 2px 12px; }
  #product-product .pgg-title > .list-unstyled > li[hidden] { display: none; }
  #product-product #content .pgg-gallery .thumbnails > li:first-child > .thumbnail { min-height: 0; padding: 4px; }
  #product-product #content .pgg-gallery .thumbnails > li:first-child > .thumbnail > img { max-height: 230px; }
  #product-product #content .pgg-gallery .thumbnails > .image-additional { flex-basis: 48px; width: 48px; max-width: 48px; }
  #product-product #content .pgg-gallery .image-additional > .thumbnail { padding: 3px; min-height: 44px; }
  #product-product .pgg-purchase > .list-unstyled h2 { font-size: 27px; margin-bottom: 3px; }
  .pgg-fact-grid { padding: 10px; gap: 10px 8px; }
  .pgg-spec-link { min-height: 44px; }
  #product-product .pgg-purchase .pgg-quickfacts { margin-top: 8px; margin-bottom: 4px; }
  #product-product .pgg-details > .nav-tabs { flex-wrap: nowrap; }
  #product-product .pgg-details > .nav-tabs > li { flex: 1; min-width: 0; }
  #product-product .pgg-details > .nav-tabs > li > a { margin-right: 0; padding: 12px 9px; text-align: center; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  #product-product .pgg-details #tab-specification .table td { padding: 8px 9px; }
  .pgg-service-grid, .pgg-extra-images { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
