/* JVM METAL – WordPress lepidlo k CSS návrhu (assets/jvm.css = varianta 05 beze změn).
   Bloky se při vykreslení převádějí na HTML návrhu (inc/jvm-render.php), takže tady
   jsou jen zbytky obalů WordPressu a formulář v dialogu. */

html, body { max-width: 100%; overflow-x: hidden; }
html.lenis, html.lenis body { overflow-x: clip; }

/* Obal core/buttons (návrh má tlačítka přímo v rodiči). */
.wp-block-buttons { display: contents; }
.wp-block-buttons.hero-actions { display: flex; }

/* Odkaz kolem obrázku karty produktu */
.p-media .img-link { display: block; width: 100%; height: 100%; }

/* Reference nejsou tlačítka s dialogem */
.ref-card { cursor: default; }

/* WPForms v dialogu poptávky */
.inquiry-dialog .wpforms-container { margin: 20px 0 0; }
.inquiry-dialog .wpforms-field-label { font-size: 13px; font-weight: 600; }
.inquiry-dialog .wpforms-form input:not([type=checkbox]), .inquiry-dialog .wpforms-form textarea {
	border: 1px solid var(--line, #d8dde0) !important; border-radius: 6px !important; font: inherit !important; max-width: 100% !important;
}
.inquiry-dialog .wpforms-submit {
	background: var(--orange, #f97f1b) !important; color: #171a1e !important; border: 0 !important; border-radius: 6px !important;
	min-height: 52px; padding: 15px 24px !important; font-weight: 650 !important; font-size: 14px !important;
}

/* Admin lišta nad pevnou hlavičkou */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Karty produktů z WooCommerce: v návrhu jsou název a fotka <button>, tady odkazy. */
.p-body h3 a { text-align: left; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.p-card:hover h3 a { background-size: 100% 1px; }

/* Parametry produktu (inc/jvm-options.php) – základní vzhled, doladí se s detailem produktu. */
.jvm-opts { margin: 24px 0; padding: 20px; border: 1px solid var(--line, #e1e4e6); border-radius: 10px; }
.jvm-opts-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.jvm-opt { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line, #e1e4e6); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.jvm-opt legend { float: left; width: 100%; font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.jvm-opt[hidden] { display: none; }
.jvm-choice { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.jvm-choice.has-img { flex-direction: column; align-items: flex-start; }
.jvm-choice img { border-radius: 6px; object-fit: cover; }
.jvm-opt-price { color: var(--muted, #6a6f75); font-size: 13px; }
.jvm-text input { min-height: 40px; padding: 6px 10px; border: 1px solid #cfd4d8; border-radius: 6px; }
.jvm-opts-sum { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e1e4e6); font-size: 14px; }
.jvm-opts-sum strong { font-size: 16px; }

/* Přepínač jazyků (inc/jvm-i18n.php) */
.lang-switch { display: flex; gap: 2px; margin-right: 6px; }
.lang-switch a { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 7px; border-radius: 6px; color: inherit; opacity: .62; transition: opacity .2s, background-color .2s; }
.lang-switch a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.lang-switch a.active { opacity: 1; color: var(--orange, #f97f1b); }
.mobile-foot .lang-switch { margin: 0 0 14px; }
.mobile-foot .lang-switch a { font-size: 14px; padding: 8px 10px; }
@media (max-width: 1023px) { .header-actions > .lang-switch { display: none; } }

/* Poptávkový košík (footer.php #cart-dialog, assets/jvm-inquiry.js) – doplňky k .cart-item z návrhu */
.cart-item h3 a { color: inherit; text-decoration: none; }
.cart-item h3 a:hover { text-decoration: underline; }
.cart-item .cart-item-price { margin-top: 2px; color: var(--ink); font-weight: 540; }
.cart-item-noimg { width: 76px; height: 76px; border-radius: 8px; background: var(--panel); }
dialog .toast { position: fixed; }
