.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.gallery-thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid var(--line)}.product-videos{padding:10px 5vw 100px}.product-videos .section-heading{margin-bottom:24px}.product-videos .section-heading h2{margin:6px 0}.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.video-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.38)}.video-frame{position:relative;aspect-ratio:16/9;background:#1f2c28}.video-frame iframe,.video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}.video-placeholder{height:100%;display:grid;place-items:center;color:#f7f1e7}.video-copy{padding:20px}.video-copy h3{font:27px Georgia,serif;margin:5px 0 8px}.video-copy p:last-child{color:var(--muted)}@media(max-width:800px){.video-grid{grid-template-columns:1fr}.gallery-thumbs{grid-template-columns:repeat(3,1fr)}}

.product-gallery:has(.gallery-thumbs) .main-product-image {
  object-fit: contain;
  background: var(--paper2);
}

.gallery-thumb {
  display: block;
  border-radius: 10px;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--green);
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.shop-add-to-cart { margin-bottom: 10px; }
.cart-feedback { margin: 0; }
.cart-feedback:not(:empty) {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-inline-start: 3px solid currentColor;
  border-radius: 6px;
  background: #e6efe9;
  color: #1f4035;
  font-weight: 700;
}
.shop-cart { margin: 0 auto; padding-top: 50px; }
.cart-items { padding: 0; list-style: none; }
.cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cart-item-price { color: var(--muted); }
.cart-items li[hidden], .cart-actions [hidden] { display: none; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.product-page, .product-videos {
  width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
  margin-inline: auto;
  padding-inline: 0;
}
.product-page {
  grid-template-columns: minmax(0, min(51%, 480px)) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 14px clamp(24px, 4vw, 52px);
  padding-block: 24px var(--section-space);
}
.back-to-shop { grid-column: 1 / -1; justify-self: start; font-size: .9rem; }
.product-heading { grid-area: 2 / 2; min-width: 0; }
.product-heading h1 { font-size: clamp(32px, 3.8vw, 38px); line-height: 1.07; margin-bottom: 10px; }
.product-heading-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-details { grid-area: 3 / 2; min-width: 0; }
.product-summary { font-size: 1rem; margin-bottom: 12px; }
.buy-large { margin: 0 0 8px; }
.buy-large:disabled { opacity: .65; cursor: default; }
.download-notice { font-size: 1rem; color: var(--ink); margin: 0 0 14px; }
.purchase-specs {
  margin-block: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper2);
  font-size: 1rem;
}
.purchase-attributes { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; padding: 0; margin: 0; list-style: none; }
.purchase-attributes li + li::before { content: "·"; margin-inline-end: 8px; color: var(--muted); }
.purchase-size { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; }
.spec-list { margin-block: 12px; }
.spec-list div { grid-template-columns: minmax(92px, 30%) minmax(0, 1fr); gap: 12px; padding-block: 10px; }
.product-description { grid-column: 1 / -1; width: 100%; max-width: 800px; margin-inline: auto; overflow-wrap: anywhere; }
.product-copy { padding-top: 20px; }
.product-copy h2 { font-size: clamp(26px, 3vw, 34px); }
.gw-product-copy { overflow-wrap: anywhere; }
:is(.product-copy, .gw-product-copy) table {
  width: 100%;
  margin-block: 12px;
  border-collapse: collapse;
  text-align: left;
}
:is(.product-copy, .gw-product-copy) :is(th, td) {
  padding: 8px clamp(6px, 1.2vw, 14px);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
:is(.product-copy, .gw-product-copy) thead th { background: var(--paper2); }
:is(.product-copy, .gw-product-copy) tbody th[scope="row"] { font-weight: inherit; }
:is(.product-copy, .gw-product-copy) :is(table:not([data-gukworks-hardware-table] table), [data-gukworks-hardware-table]) + :is(h2, h3, h4, p) {
  margin-block-start: 24px;
}
.product-videos { padding-block: 0 var(--section-space); }

.product-gallery { position: relative; top: auto; grid-area: 2 / 1 / span 2; min-width: 0; }
.gallery-enlarge { display: block; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.product-gallery .main-product-image { height: auto; aspect-ratio: auto; object-fit: contain; }
.product-gallery .placeholder { aspect-ratio: 1; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  margin-top: 7px;
  scrollbar-width: thin;
}
.gallery-thumb { flex: 0 0 80px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; font-size: .875rem; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.gallery-dialog {
  padding: 0;
  border: 0;
  border-radius: 12px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  background: var(--paper);
}
.gallery-dialog::backdrop { background: rgba(0,0,0,.8); }
.gallery-dialog img { width: auto; height: auto; max-height: calc(100dvh - 60px); object-fit: contain; }
.gallery-original { display: block; padding: 9px 14px; text-align: center; font-size: .875rem; }
.gallery-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 760px) {
  :is(td, th):has(> .hardware-part-rest) { overflow-wrap: normal; word-break: normal; }
  .hardware-part-rest { display: block; }
  .purchase-attributes { flex-direction: column; }
  .purchase-attributes li + li::before { content: none; }
  .product-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 12px; }
  .product-gallery, .product-heading, .product-details { grid-area: auto; }
  .product-heading h1 { font-size: 27px; }
  .product-price { font-size: 21px; }
  .gallery-thumb { flex-basis: 60px; }
  .gallery-controls button { width: 42px; height: 42px; }
}

.cart-subtotal { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cart-subtotal[hidden] { display: none; }
.cart-feedback.already-in-cart { color: #8b302f; background: #f7e7e4; border-color: #8b302f; }
.cutting-option { display: grid; gap: .35rem; margin-bottom: .8rem; }
.cutting-option select { width: 100%; min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); color: var(--ink); font: inherit; }
