/* JVM METAL – e-shop: detail produktu (woocommerce/single-product.php) a parametry.
   Katalog používá styly návrhu 05 beze změn (assets/jvm.css). Detail je vlastní stránka složená
   z prvků vysouvacího detailu návrhu (.detail-image, .detail-price, .variant-fields, .detail-add,
   .detail-trust) + galerie, popis, technické údaje a související produkty. */

.pd { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 48px)); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; margin: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 112px); }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.pd .detail-image { margin: 0; aspect-ratio: 4 / 3; position: relative; }
.pd .detail-image img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.pd .detail-image .p-tag { position: absolute; left: 16px; top: 16px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumbs button { aspect-ratio: 1; border-radius: 8px; background: var(--panel); overflow: hidden; border: 1px solid transparent; transition: border-color .3s; }
.pd-thumbs button[aria-current="true"], .pd-thumbs button:hover { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.pd-buy h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -.045em; line-height: 1; margin-top: 4px; }
.pd-buy .eyebrow { margin-bottom: 16px; }
.pd-short { margin-top: 16px; color: var(--muted); }
.pd-short p + p { margin-top: 8px; }
.pd-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.pd-form form { display: grid; gap: 16px; }
.pd-form .variant-fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pd-form select {
	appearance: none; padding-right: 36px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1d21' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.pd-form .reset_variations { justify-self: start; font-size: 13px; color: var(--muted); }
.pd-form .single_variation { font-size: 15px; color: var(--muted); }
.pd-form .single_variation .price { display: block; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.pd-form .single_variation .price del { font-size: .8em; color: var(--muted); font-weight: 400; margin-right: 6px; }
.pd-form .single_variation .price ins { text-decoration: none; }
.pd-form .detail-add { margin-top: 4px; }
.pd-form .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { opacity: .5; cursor: not-allowed; }
.pd-form .quantity-label input { text-align: center; }
.pd-buy .detail-trust { margin-top: 28px; }
/* Poptávka místo košíku: požadavky + počet + „Přidat do poptávky“ (woocommerce/single-product/add-to-cart/inquiry-fields.php) */
.pd-form .variations_button { display: grid; gap: 16px; margin-top: 8px; }
.pd-form .field-label textarea { min-height: 72px; resize: vertical; }
.pd-form .detail-note { margin-top: -6px; }
.woocommerce-notices-wrapper:not(:empty) { margin: 0 0 16px; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { margin: 0 0 16px; padding: 14px 16px; border-radius: 8px; background: var(--panel); list-style: none; font-size: 15px; }
.woocommerce-error { background: #fdecea; }
.woocommerce-message .button { float: right; min-height: 0; padding: 6px 14px; }

/* Parametry v detailu – vzhled formuláře návrhu (inc/jvm-options.php) */
.pd .jvm-opts { margin: 4px 0 0; padding: 0; border: 0; }
.pd .jvm-opts-title { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.pd .jvm-opt { padding: 14px 0; gap: 8px; }
.pd .jvm-opt legend { font-size: 14px; font-weight: 540; }
.pd .jvm-choice { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 450; transition: border-color .25s, background-color .25s; }
.pd .jvm-choice:hover { border-color: var(--ink); }
.pd .jvm-choice:has(input:checked) { border-color: var(--ink); background: var(--panel); }
.pd .jvm-choice.has-img { flex-direction: column; align-items: flex-start; border-radius: 10px; padding: 8px; }
.pd .jvm-choice input { width: auto; min-height: 0; margin: 0; accent-color: var(--orange); }
.pd .jvm-choice span { color: inherit; }
.pd .jvm-opt-price { color: var(--muted); font-size: 13px; }
.pd .jvm-text { display: block; }
.pd .jvm-opts-sum { margin-top: 6px; padding: 14px 16px; border: 0; border-radius: 10px; background: var(--panel); justify-content: space-between; }

/* Popis + technické údaje */
.pd-info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.pd-desc { max-width: 760px; color: var(--ink-2); }
.pd-desc h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; margin: 48px 0 16px; }
.pd-desc .eyebrow + h2 { margin-top: 8px; }
.pd-desc h3, .pd-desc h4 { font-size: 1.15rem; letter-spacing: -.02em; margin: 28px 0 8px; }
.pd-desc p { margin: 0 0 14px; color: var(--muted); }
.pd-desc ul, .pd-desc ol { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.pd-desc ul { list-style: disc; }
.pd-desc ol { list-style: decimal; }
.pd-desc li { margin: 4px 0; }
.pd-desc img { border-radius: var(--radius); margin: 12px 0 20px; background: var(--panel); height: auto; }
.pd-desc table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pd-desc td, .pd-desc th { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.pd-desc tr:first-child td { font-weight: 600; color: var(--ink); }
.pd-desc iframe, .pd-desc .wp-block-embed { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.pd-specs { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius); background: var(--panel); }
.pd-specs h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 12px; }
.pd-specs dl > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { font-weight: 540; }

/* Související produkty */
.pd-related { padding-bottom: clamp(72px, 9vw, 128px); }
.pd-related h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; line-height: 1; margin-bottom: clamp(28px, 4vw, 48px); }
.pd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }

/* Drobečky: na mobilu zalomit mezi položkami, ne uvnitř („E-/shop“) */
.breadcrumbs { flex-wrap: wrap; row-gap: 4px; }
.breadcrumbs > * { white-space: nowrap; }
.breadcrumbs > [aria-current] { white-space: normal; }

/* Dlaždice kategorie je v katalogu odkaz (v návrhu tlačítko) */
.cat-tile { text-align: left; }

@media (max-width: 899px) {
	.pd-grid, .pd-info { grid-template-columns: 1fr; }
	.pd-gallery, .pd-specs { position: static; }
	.pd-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.pd-form .variant-fields { grid-template-columns: 1fr; }
	.pd-related-grid { grid-template-columns: 1fr; }
	.pd .jvm-opts-sum { flex-direction: column; gap: 4px; }
}
