/* Product page: summary column (gallery, title, price, short text, order) beside a description panel. */
.product-page .wrap { max-width: 1400px; padding-inline: 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 0 8px; font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.product { padding-bottom: 70px; }
/* related products: the shop card, four across (two at 1100px, one at 600px, from cards.css) */
.related { padding-bottom: 80px; }
.related-title { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; margin: 0 0 28px; color: var(--ink-alt); }
.cards-related { grid-template-columns: repeat(4, 1fr); }
.cards-related .card-title { font-size: 19px; }
@media (max-width: 1100px) { .cards-related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-related { grid-template-columns: 1fr; } }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-top: 28px; }
.product-side { min-width: 0; }
.gallery { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-item { position: relative; margin: 0; width: 220px; max-width: 100%; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.gallery-item img { display: block; width: 100%; }
.gallery { flex-direction: column; align-items: flex-start; }
.gallery-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 6px; }
.gallery-thumb { flex: none; width: 72px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-thumb img { display: block; width: 100%; height: 72px; object-fit: cover; }
.gallery-item.on-sale::after { top: 0; left: 0; right: auto; border-radius: 0 0 10px 0; }
.product-title { font-size: clamp(32px, 3.4vw, 49px); line-height: 1.14; letter-spacing: -.035em; font-weight: 400; margin: 0 0 .5em; color: var(--ink-alt); overflow-wrap: anywhere; }
.product-short { font-size: 19px; line-height: 1.65; color: var(--muted); }
.product-short p { margin: 0 0 1em; }
.product-side .price { font-size: 26px; line-height: 1.4; margin: 10px 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.product-side .price del { font-size: 20px; margin-right: 4px; }
.product-order { margin: 24px 0 0; }
.product-order .order-button { width: 100%; max-width: 560px; min-height: 54px; font-size: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px clamp(22px, 3vw, 40px) 40px; min-width: 0; }
.product-desc::before { content: "Description"; display: inline-block; font-size: 19px; color: var(--link); border-bottom: 3px solid var(--teal); padding-bottom: 12px; margin-bottom: 26px; }
.prose-body > :first-child { margin-top: 0; }
.panel .prose-body { font-size: 18px; line-height: 1.75; }
.panel .prose-body li { line-height: 1.75; margin-bottom: .4em; }
.panel img { height: auto; }
.pkg-core .product-title, .pkg-essentials .product-title, .pkg-advanced .product-title, .pkg-optimum .product-title { color: var(--pk-text); }
.pkg-core .order-button, .pkg-essentials .order-button, .pkg-advanced .order-button, .pkg-optimum .order-button { background: linear-gradient(135deg, var(--pk), var(--pk) 35%, var(--pk-dark)); }
@media (max-width: 959px) {
  .product-page .wrap { padding-inline: 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-title { font-size: 34px; }
}
/* The archived description carries WooCommerce's own "panel" class; neutralise it so the box is not doubled. */
.product-desc .panel, .product-desc .wc-tab { border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; margin: 0; }
.product-desc .prose-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; font-weight: 600; }
.product-desc .prose-body h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.product-desc .prose-body > :first-child, .product-desc .prose-body .wc-tab > :first-child { margin-top: 0; }
