/*
 * JETMOLL Katalog: Kategorie-Liste und Produktseite.
 * Nach mockup/Kategorie.dc.html und mockup/Produkt.dc.html.
 * Wird nur auf WooCommerce-Seiten geladen (functions.php).
 */

/* Gemeinsam ------------------------------------------------------------ */
.jm-text-2{color:var(--text-2)}
.jm-price-na{font-size:.75em;letter-spacing:-.01em}
.disp .woocommerce-Price-amount,.disp bdi{font:inherit}
.disp del{opacity:.55;font-size:.6em;margin-right:.3em}
.disp ins{text-decoration:none}
.disp .woocommerce-price-suffix{font-family:var(--f-body);font-size:var(--t-small);letter-spacing:0;color:var(--muted)}

/* Kategorie: Kopf ------------------------------------------------------ */
.jm-cat-hero{border-bottom:1px solid var(--line)}
.jm-cat-hero>.wrap{padding-top:32px;padding-bottom:48px}
.jm-hero-grid{margin-top:24px;gap:48px}
.jm-cat-hero h1{margin:0}
.jm-lead{margin:18px 0 0;max-width:40em}
.jm-hero-btns{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.jm-size{padding:18px}
.jm-size .disp{font-size:26px}

/* Reiter des Katalogs, wie die Reiter der Startseite */
.jm-ktabs{border-bottom:1px solid var(--line)}
.jm-ktabs>.wrap{display:flex;flex-wrap:wrap;gap:0 4px;padding-top:12px;padding-bottom:12px}
.jm-ktabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font-size:16px;color:var(--muted)}
.jm-ktabs a:hover{color:var(--text)}
.jm-ktabs a[aria-current]{background:var(--paper-2);color:var(--text);font-weight:600}

/* Schnellauswahl */
.jm-pills{background:var(--surface);border-bottom:1px solid var(--line)}
.jm-pills>.wrap{display:flex;gap:8px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:3px;font-weight:500;font-size:.9375rem;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow 140ms}
.pill:hover{box-shadow:inset 0 0 0 1px #A9A59C}
.pill[aria-current="page"]{background:var(--ink);color:var(--on-ink);box-shadow:none}

/* Liste mit Filter */
.jm-list{padding-top:36px;padding-bottom:40px}
.jm-aside-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.jm-aside-head h2{margin:0}
.jm-reset{color:var(--muted);text-decoration:underline;min-height:44px;display:inline-flex;align-items:center;font-size:.9375rem}
.jm-reset:hover{color:var(--text)}
.jm-fpanel{margin-top:14px}
.fs{border:0;margin:0;padding:20px 0;border-top:1px solid var(--line);min-width:0}
.fs legend{font-size:.875rem;font-weight:600;padding:0;margin-bottom:8px;float:left;width:100%}
.fs legend+*{clear:left}
.check{min-height:44px}
.cnt{margin-left:auto;font-size:.8125rem;color:var(--muted)}
.jm-range{gap:8px}
.jm-range .inp{min-height:44px}
.jm-apply{padding-top:16px;border-top:1px solid var(--line)}

.jm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.jm-toolbar-l{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.jm-total{margin:0}
.jm-total .disp{font-size:24px}
.jm-chip{position:relative}
.jm-chip:hover{background:var(--paper-2);color:var(--text)}
.jm-chip::after{content:'';position:absolute;inset:-9px -2px}
.jm-sort{display:flex;gap:10px;align-items:center}
.jm-sort .inp{min-height:44px;width:auto}

/* Raster und Kachel */
.pg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.jm-pc{display:flex;margin:0}
.jm-card{display:flex;flex-direction:column;width:100%}
.pimg{height:200px;margin:8px;background:var(--paper);border-radius:2px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.pimg svg{transition:transform 400ms var(--ease-out);max-width:70%}
.jm-card-img{width:100%;height:100%;object-fit:cover;transition:transform 400ms var(--ease-out)}
a.card:hover .pimg svg,a.card:hover .jm-card-img{transform:scale(1.03)}
.jm-badge{position:absolute;top:12px;left:12px;z-index:1}
.jm-card-body{padding:8px 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.jm-card-t{margin:0;font-family:var(--f-body);font-size:1rem;line-height:1.38;font-weight:600;letter-spacing:0;hyphens:auto}
.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.875rem;margin:0}
.facts dt{color:var(--muted)}
.facts dd{margin:0;text-align:right;font-weight:500;min-width:0;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.jm-card-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line-soft);display:flex;align-items:end;justify-content:space-between;gap:10px}
.jm-card-price{font-size:24px}

.jm-empty{padding:32px}
.jm-empty p{margin:0}
.jm-empty p+p{margin-top:14px}

/* Seiten */
.pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:36px}
.pager a,.pager span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:3px;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow 140ms}
.pager a:hover{box-shadow:inset 0 0 0 1px #A9A59C}
.pager .current{background:var(--ink);color:var(--on-ink);box-shadow:none}
.pager .dots{box-shadow:none}

/* Kaufberatung unter der Liste */
.jm-ratgeber{padding-bottom:var(--s-section)}
.jm-ratgeber .split{align-items:start}
.jm-ratgeber h2{margin:12px 0 0}
.jm-ratgeber .lead{margin:18px 0 0}
.jm-ratgeber .jm-text-2{margin:12px 0 0}
.jm-ratgeber .link{display:inline-block;margin-top:18px}
.jm-faq .faq:last-child{border-bottom:1px solid var(--line)}

@media (max-width:1180px){.pg{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){
	.pg,.sizes{grid-template-columns:minmax(0,1fr)}
	.jm-fpanel.is-closed{display:none}
	.jm-cat-hero>.wrap{padding-bottom:36px}
	.jm-hero-btns .btn{width:100%;white-space:normal;text-align:center}
}

/* Produktseite --------------------------------------------------------- */
.jm-pdp-bc{padding-top:24px}
.pdp{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:56px;align-items:start;padding-top:24px}
.buy{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 156px)}
.stage{position:relative;aspect-ratio:1/.72;display:flex;align-items:center;justify-content:center;background:var(--paper-2);border-radius:3px;overflow:hidden}
.stage:has(> .jm-stage-img){aspect-ratio:3/2}
.jm-stage-img{width:100%;height:100%;object-fit:contain}
.jm-stage-badge{position:absolute;top:16px;left:16px;z-index:1}
.jm-stage-label{position:absolute;top:18px;right:18px;z-index:1;background:var(--paper-2);padding:0 6px;border-radius:2px}
.jm-thumbs{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.thumb{width:84px;height:66px;padding:0;border:0;border-radius:2px;cursor:pointer;background:var(--surface);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow 140ms}
.thumb img{width:100%;height:100%;object-fit:cover;opacity:.92}
.thumb[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--ink)}
.thumb[aria-pressed="true"] img{opacity:1}
.jm-gallery-note{margin:10px 0 0}

.jm-pdp-title{font-size:clamp(2rem,3.2vw,2.9rem);margin:10px 0 0;overflow-wrap:break-word}
.kf{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:1px;background:var(--line);border-radius:3px;overflow:hidden;margin:22px 0 0}
.kf>div{background:var(--surface);padding:14px 16px;min-width:0}
.kf dt{margin:0}
.kf dd{margin:0;font-weight:600;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}

.jm-buycard{padding:26px;margin-top:22px}
.jm-buy-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.jm-seg button{position:relative}
.jm-seg button::after{content:'';position:absolute;inset:-3px 0}
.jm-seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(17,21,24,.12)}
.jm-stock{display:inline-flex;align-items:center;gap:8px;color:var(--ok)}
.jm-buy-price{margin-top:16px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.jm-price-big{font-size:48px}
.jm-price-big .jm-price-na{font-size:32px}

.jm-plz{margin-top:20px;padding:16px;background:var(--paper);border-radius:3px}
.jm-plz .lbl{margin-bottom:6px}
.jm-plz-row{display:flex;gap:8px}
.jm-plz-row .inp,.jm-plz-row .btn{min-height:46px}
.jm-plz p{margin:10px 0 0}
.jm-buy-main{margin-top:18px}
.jm-buy-2{margin-top:10px}
.jm-altoel{margin:18px 0 0;padding:12px 14px;background:var(--paper);border-radius:3px;color:var(--text-2)}
.jm-usp{list-style:none;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--line-soft);display:grid;gap:10px}
.jm-usp li{display:flex;gap:12px;align-items:center}
.jm-usp svg{flex:none}

/* Warenkorb-Formular von WooCommerce in der Kaufbox */
.jm-cartform{margin-top:20px}
.jm-cartform form.cart{margin:0}
.jm-cartform table.variations{width:100%;border:0;margin:0 0 12px;border-collapse:collapse}
.jm-cartform table.variations th,.jm-cartform table.variations td{display:block;padding:0;border:0;background:none;text-align:left}
.jm-cartform table.variations th label{display:block;font-size:.875rem;font-weight:500;margin-bottom:8px}
.jm-cartform table.variations select{width:100%;min-height:52px;padding:0 40px 0 14px;background-color:var(--surface);border:0;border-radius:var(--r);box-shadow:inset 0 0 0 1px #C9C5BC;font-size:1rem;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111518' stroke-width='1.6'/%3E%3C/svg%3E");background-position:calc(100% - 16px) 50%;background-size:12px 8px;background-repeat:no-repeat}
.jm-cartform table.variations select:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ink)}
.jm-cartform .reset_variations{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;color:var(--muted);text-decoration:underline}
.jm-cartform .single_variation{margin:0 0 12px}
.jm-cartform .woocommerce-variation-price .price{font-family:var(--f-display);font-weight:600;font-size:1.5rem}
.jm-cartform .woocommerce-variation-add-to-cart,.jm-cartform form.cart:not(.variations_form){display:flex;gap:10px;align-items:stretch}
.jm-cartform .quantity{margin:0!important}
.jm-cartform .quantity .qty{width:84px;min-height:56px;height:56px;border:0;border-radius:var(--r);box-shadow:inset 0 0 0 1px #C9C5BC;text-align:center;font-size:1rem;background:var(--surface)}
.jm-cartform .quantity .qty:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ink)}
.woocommerce .jm-cartform .single_add_to_cart_button.button,.jm-cartform .single_add_to_cart_button{flex:1;min-height:56px;padding:0 24px;border:0;border-radius:var(--r);background:var(--accent);color:var(--accent-ink);font-family:var(--f-body);font-weight:500;font-size:1rem;line-height:1.2;box-shadow:none;transition:background-color var(--d-fast)}
.woocommerce .jm-cartform .single_add_to_cart_button.button:hover,.jm-cartform .single_add_to_cart_button:hover{background:var(--accent-hover);color:var(--accent-ink)}
.woocommerce .jm-cartform .single_add_to_cart_button.button.disabled,.jm-cartform .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed}
.jm-cartform .stock{font-size:.875rem;margin:0 0 8px;color:var(--ok)}
.jm-cartform .stock.out-of-stock{color:var(--err)}

/* Reiter */
.jm-tabs{padding-top:88px}
.jm-tablist{display:flex;gap:36px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.jm-tablist[hidden]{display:none}
.tab{min-height:56px;border:0;background:none;cursor:pointer;font-weight:500;font-size:1rem;color:var(--muted);position:relative;padding:0 2px;transition:color 140ms}
.tab::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);transform:scaleX(0);transition:transform 220ms var(--ease-out)}
.tab:hover,.tab.on{color:var(--text)}
.tab.on::after{transform:scaleX(1)}
.jm-panel{padding-top:36px}
.jm-panel-h{margin:0 0 18px}
.jm-tabs:not(.is-tabbed) .jm-panel+.jm-panel{margin-top:24px;border-top:1px solid var(--line)}
.is-tabbed .jm-panel-h{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jm-specs{gap:64px}
.jm-one{max-width:720px}
.spec caption{text-align:left;padding-bottom:12px}
.cond{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0;border-top:1px solid var(--line)}
.cond>*{margin:0;padding:14px 0;border-bottom:1px solid var(--line)}
.jm-cond-wrap{gap:64px;align-items:start}
.jm-cond-wrap .lead{margin:0}
.jm-cond-wrap .jm-text-2{margin:14px 0 0}
.jm-prose{max-width:70ch}
.jm-prose .lead{margin:0}
.jm-prose .lead + p{margin-top:14px}
.jm-prose h3 + *{margin-top:8px}
.jm-prose .jm-text-2{margin:14px 0 0}
.jm-downloads{list-style:none;margin:0;padding:0;max-width:520px}
.jm-dl{display:flex;gap:14px;align-items:center;padding:16px 18px}
.jm-dl>span{display:flex;flex-direction:column}
.jm-dl-t{font-weight:600}

/* Weitere Produkte */
.jm-related{padding-bottom:var(--s-section)}
.jm-related-head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.jm-related-head h2{margin:0}
.jm-related-list{list-style:none;margin:0;padding:0}
.jm-mini{display:flex;gap:18px;padding:16px;align-items:center;height:100%}
.jm-mini-img{width:110px;height:80px;background:var(--paper);border-radius:2px;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.jm-mini-img img{width:100%;height:100%;object-fit:cover}
.jm-mini-body{flex:1;display:flex;flex-direction:column;min-width:0}
.jm-mini-t{font-weight:600;line-height:1.35}
.jm-mini-price{font-size:20px;margin-top:6px}
.jm-mini-price .jm-price-na{font-size:16px}

/* Mobile Leiste mit Preis */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--surface);border-top:1px solid var(--line);padding:12px 16px;display:flex;align-items:center;gap:12px}
.jm-mbar-price{flex:1;min-width:0}
.jm-mbar-price .disp{font-size:22px}
.jm-mbar-price .jm-price-na{font-size:18px}

@media (max-width:1000px){
	.pdp{grid-template-columns:minmax(0,1fr);gap:32px}
	.buy{position:static}
	.jm-tabs{padding-top:56px}
}
@media (max-width:720px){
	.single-product #page{padding-bottom:76px}
	.jm-tablist{gap:20px}
	.jm-specs,.jm-cond-wrap{gap:32px}
	.jm-buycard{padding:20px}
	.jm-price-big{font-size:40px}
	.jm-buy-main{white-space:normal;text-align:center}
}
@media (max-width:600px){.kf{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* [hidden] gegen .btn{display:inline-flex} durchsetzen */
[data-jm-apply][hidden],.jm-tablist[hidden]{display:none!important}

/* Astra gibt Tabellen Rahmen und Hintergrund; Makett: nur Linien unten */
.spec{border:0;margin:0}
.spec th,.spec td{border:0;border-bottom:1px solid var(--line);background:transparent}

/* Astra färbt button:hover/:focus in der Themenfarbe; hier gilt das Makett */
.tab,.tab:hover,.tab:focus,.tab:active{background:none;border:0;border-radius:0;box-shadow:none;color:var(--muted)}
.tab:hover,.tab.on,.tab.on:hover,.tab.on:focus{color:var(--text)}
.thumb:hover,.thumb:focus,.thumb:active{background:var(--surface);color:inherit}
.jm-seg button:hover,.jm-seg button:focus{background:transparent;color:var(--text)}
.jm-seg button[aria-pressed="true"]:hover,.jm-seg button[aria-pressed="true"]:focus{background:var(--surface)}

/* WooCommerce-Hinweise (z. B. „… wurde Ihrem Warenkorb hinzugefügt“) in den Farben des Maketts */
.jm-full .woocommerce-message,.jm-full .woocommerce-info,.jm-full .woocommerce-error{margin:0 0 16px;padding:14px 16px 14px 48px;background:var(--surface);color:var(--text);border:0;border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--line);font-size:.9375rem;display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}
.jm-full .woocommerce-message::before{color:var(--ok);top:50%;transform:translateY(-50%);left:18px}
.jm-full .woocommerce-info::before{color:var(--muted);top:50%;transform:translateY(-50%);left:18px}
.jm-full .woocommerce-error{box-shadow:inset 0 0 0 1px var(--err)}
.jm-full .woocommerce-error::before{color:var(--err);top:50%;transform:translateY(-50%);left:18px}
body.jm-full .woocommerce-message a.button,body.jm-full .woocommerce-info a.button{order:2;float:none;display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:var(--r);background:var(--ink);color:var(--on-ink);font-weight:500;font-size:.9375rem;box-shadow:none}
body.jm-full .woocommerce-message a.button:hover,body.jm-full .woocommerce-info a.button:hover{background:#2A3136;color:var(--on-ink)}

/* Trefferflächen mindestens 44 px */
.jm-aside-head .btn-sm,.jm-sort .btn-sm{min-height:44px}
.jm-ratgeber .link,.jm-related-head .link{display:inline-flex;align-items:center;min-height:44px}

/* Germanized: Grundpreis, Inhalt, Lieferzeit (Etappe 6) */
.jm-gzd{margin:10px 0 0}
.jm-gzd p{margin:2px 0 0;font-size:inherit;color:inherit}
.jm-gzd .price-unit{font-family:var(--f-body);font-weight:500;color:var(--text-2)}
.jm-gzd .wc-gzd-additional-info-placeholder,.jm-cartform .wc-gzd-additional-info-placeholder{display:none}
.jm-unit,.jm-card .jm-unit{margin-top:2px}
