/*
 * MeinErfolgsShop 2026 — product/category/checkout/thank-you page skins.
 * Ported from shop-design/{produkt,kategorie,checkout,danke}.html.
 * Scoped under .mes-pdp / .mes-category / .mes-checkout-skin so nothing
 * outside these restyles. Enqueued conditionally — see inc/mes-pages.php.
 * All interactive behavior (tabs, gallery, add-to-cart, checkout fields)
 * stays native WooCommerce/Astra/FunnelKit — only layout/typography/color.
 */

.mes-pdp,.mes-category,.mes-checkout-skin{font-family:"MES Roboto",Arial,sans-serif;color:var(--mes-ink)}
.mes-pdp *,.mes-category *{box-sizing:border-box}
.mes-pdp .mes-icon{width:19px;height:19px;color:var(--mes-blue);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* ---------- PDP ---------- */
.mes-crumb,.mes-buy-box .woocommerce-breadcrumb{display:block;padding:0 0 22px;font-size:12px;color:var(--mes-muted)}
.mes-crumb a,.mes-buy-box .woocommerce-breadcrumb a{color:var(--mes-muted)}
.mes-crumb a:hover,.mes-buy-box .woocommerce-breadcrumb a:hover{color:var(--mes-blue)}
.mes-product-detail.mes-wrap{display:grid;grid-template-columns:1.03fr 1fr;gap:70px;padding-bottom:50px;align-items:start}
.mes-product-detail.mes-wrap > *{min-width:0}

.mes-cover-stage{background:linear-gradient(145deg,#f1f6fa,#e8f0f6);border-radius:8px;padding:20px;min-height:480px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
/* Astra's own WooCommerce CSS (.ast-woocommerce-container div.product
   div.images{width:50%;float:left}) outranks this on specificity since the
   gallery wrapper also carries an "images" class — needs !important here,
   same root cause as the .mes-buy-box width fix below. */
.mes-cover-stage .woocommerce-product-gallery{width:100%!important;float:none!important}
.mes-cover-stage .woocommerce-product-gallery__wrapper{margin:0}
/* Astra's flexslider normally sets overflow:hidden on .flex-viewport via its
   own init JS; that init appears to depend on the original single-column
   layout's width timing and doesn't reliably fire in this two-column grid,
   leaving every slide stacked left-to-right and visible at once. Enforcing
   it here (plus position/overflow on the parent) is the direct CSS fix. */
.mes-cover-stage .flex-viewport{overflow:hidden!important;max-width:100%}
.mes-cover-stage .woocommerce-product-gallery__wrapper{display:flex;overflow:hidden}
.mes-cover-stage .woocommerce-product-gallery__image{width:100%;flex-shrink:0}
.mes-cover-stage .woocommerce-product-gallery__image img{max-height:440px;width:auto;margin:0 auto;object-fit:contain;display:block}
.mes-cover-stage .flex-control-thumbs{display:flex;gap:10px;justify-content:center;margin-top:18px;list-style:none;padding:0}
.mes-cover-stage .flex-control-thumbs li img{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:4px;border:1px solid var(--mes-line);cursor:pointer}
.mes-cover-stage span.onsale{position:absolute;top:20px;left:20px;background:var(--mes-blue);color:#fff;font-size:11px;font-weight:700;padding:6px 12px;border-radius:3px;text-transform:uppercase}
/* Format/category pill (shop-design/produkt.html's .image-tag) — offset
   below the native sale ribbon above so the two never overlap. */
.mes-image-tag{position:absolute;top:20px;left:20px;font-size:10px;letter-spacing:1px;font-weight:700;text-transform:uppercase;border:1px solid #bacddb;background:#fff;border-radius:3px;padding:6px 9px;color:#527089;z-index:1}
.mes-cover-stage span.onsale ~ .mes-image-tag{top:66px}
.mes-image-caption{text-align:center;font-size:12px;color:var(--mes-muted);margin:16px 0 0}

/* Buy box: native WooCommerce/Astra/Stripe/Germanized hook output arrives as
   a fixed, unstyled sequence of direct children (breadcrumb, eyebrow, title,
   price, legal-price-info, short description, cart form, Stripe express
   button, PayPal messaging, SKU/category meta, Astra's payment-icons
   fieldset) — reordering via flex `order` instead of fighting hook
   priorities keeps all of that native behavior intact while matching
   shop-design/produkt.html's visual sequence. */
/* min-width/min-height:0 works around a Chromium layout bug where a grid
   item that's also a flex container with one very tall child (e.g. a
   product whose "short description" field holds a lot of text) gets its
   intrinsic size computation corrupted, landing the whole box at
   x:16777216px (2^24, a LayoutUnit overflow) with 0 width — effectively
   invisible. Grid items default to min-width:auto, which is what triggers
   the bad intrinsic-size path; forcing it to 0 prevents that computation. */
/* Astra's own WooCommerce CSS targets any .summary inside
   .ast-woocommerce-container div.product with "width:46%;float:right" (its
   normal single-column layout, splitting gallery/summary by float) — our
   .mes-buy-box carries that same .summary class for WooCommerce/plugin
   compatibility, so that rule still applies inside this grid and was
   shrinking the box to 46% of its grid column instead of filling it. */
.mes-buy-box{padding-top:10px;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%!important;float:none!important}
/* Produkt-Paginierung (Shop/Kategorie): gleicher Stil wie im Magazin —
   zentrierte 40px-Buttons unter einer Trennlinie, aktive Seite blau,
   Astras umlaufenden ul-Rahmen/li-Borders neutralisieren. */
.mes-category nav.woocommerce-pagination{margin-top:46px;border-top:1px solid var(--mes-line);padding-top:28px;text-align:center}
.mes-category nav.woocommerce-pagination ul.page-numbers{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;border:0;margin:0;padding:0;list-style:none}
.mes-category nav.woocommerce-pagination ul.page-numbers li{border:0!important;margin:0;padding:0;overflow:visible}
.mes-category nav.woocommerce-pagination ul.page-numbers li .page-numbers{display:grid;place-items:center;min-width:40px;height:40px;padding:0 6px;border:1px solid var(--mes-line);border-radius:7px;background:#fff;color:var(--mes-ink);font-size:14px;font-weight:700;line-height:1;text-decoration:none;transition:background .15s,border-color .15s}
.mes-category nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover{background:var(--mes-pale);border-color:#bfd3e5;color:var(--mes-blue)}
.mes-category nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current{background:var(--mes-blue);border-color:var(--mes-blue);color:#fff}
.mes-category nav.woocommerce-pagination ul.page-numbers li .page-numbers.dots{border:0;background:none;color:var(--mes-muted);min-width:24px;font-weight:400}
.mes-category nav.woocommerce-pagination ul.page-numbers li .page-numbers.prev,
.mes-category nav.woocommerce-pagination ul.page-numbers li .page-numbers.next{color:var(--mes-blue)}

/* "Zusätzliche Informationen": ruhige zweispaltige Tabelle statt Woo-Default
   (kein Kursiv, keine Vertikallinien), Format-Werte als Chips (Zeile wird in
   mes-pages.php aus den Einzel-Attributen zusammengefasst). */
.mes-detail-tabs table.woocommerce-product-attributes{width:100%;border-collapse:collapse;font-size:14px}
.mes-detail-tabs .woocommerce-product-attributes tr{border-bottom:1px solid #edf1f5}
.mes-detail-tabs .woocommerce-product-attributes tr:last-child{border-bottom:0}
.mes-detail-tabs .woocommerce-product-attributes th,
.mes-detail-tabs .woocommerce-product-attributes td{border:0;background:none;padding:12px 0;text-align:left;vertical-align:top}
.mes-detail-tabs .woocommerce-product-attributes th{width:160px;font-weight:400;color:var(--mes-muted);padding-right:18px}
.mes-detail-tabs .woocommerce-product-attributes td{color:var(--mes-ink);font-style:normal}
.mes-detail-tabs .woocommerce-product-attributes td p{margin:0;font-style:normal}
.mes-attr-chips{display:flex;flex-wrap:wrap;gap:7px}
.mes-attr-chip{display:inline-block;padding:5px 11px;border:1px solid #cbd8e3;border-radius:4px;background:#fff;color:var(--mes-blue);font-size:12px;font-weight:700;line-height:1.4}

/* Produktvideo: Teaser im Akkordeon-Tab + Vollbild-Modal (inc/mes-video.php) */
.mes-video-teaser{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px;overflow:hidden;background:linear-gradient(145deg,#16314a,#0e2235);cursor:pointer;padding:0}
.mes-video-teaser img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.85;transition:opacity .2s,transform .3s}
.mes-video-teaser:hover img{opacity:1;transform:scale(1.02)}
.mes-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--mes-blue);box-shadow:0 10px 30px rgba(16,37,57,.45);transition:background .2s}
.mes-video-teaser:hover .mes-video-play{background:var(--mes-blue-dark)}
.mes-video-play svg{width:28px;height:28px;fill:#fff;margin-left:3px}
.mes-video-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.mes-video-modal{width:min(1200px,94vw);max-width:none;border:0;border-radius:10px;padding:0;background:#000;box-shadow:0 30px 120px rgba(0,0,0,.5)}
.mes-video-modal::backdrop{background:rgba(10,22,34,.88)}
.mes-video-frame{aspect-ratio:16/9;max-height:88vh}
.mes-video-frame iframe{width:100%;height:100%;display:block;border:0}
.mes-video-close{position:absolute;right:-4px;top:-46px;width:38px;height:38px;min-width:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.mes-video-close:hover{background:rgba(255,255,255,.3)}
@media(max-width:800px){.mes-video-close{top:8px;right:8px;background:rgba(0,0,0,.5)}}

/* Breadcrumb ans Ende der Buy-Box (unter Kauf-Button/Zahlarten), Astras
   Verfügbarkeitszeile ganz aus (Kundenwunsch 2026-11-10). */
.mes-buy-box .woocommerce-breadcrumb{order:13;padding:20px 0 0}
.mes-buy-box .ast-stock-detail{display:none}
.mes-buy-box .mes-eyebrow{order:2}
.mes-buy-box .product_title{order:3;font-size:40px;letter-spacing:-1.2px;line-height:1.1;font-weight:700;margin:0 0 14px}
.mes-buy-box .woocommerce-product-rating{order:4;display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:13px}
.mes-buy-box .star-rating{font-size:14px}
.mes-buy-box .woocommerce-product-details__short-description{order:5;font-size:17px;line-height:1.7;color:var(--mes-muted);max-width:480px;margin:0 0 22px}
.mes-buy-box .woocommerce-product-details__short-description p{margin:0 0 12px}
.mes-buy-box .price{order:6;font-size:30px;font-weight:700;color:var(--mes-ink);display:block;margin:0 0 4px}
.mes-buy-box .price ins{text-decoration:none}
.mes-buy-box .price del{font-size:17px;font-weight:400;opacity:.55;margin-right:8px}
.mes-buy-box .legal-price-info{order:7;font-size:12px;line-height:1.6;color:var(--mes-muted);margin:0 0 22px}
.mes-buy-box form.cart{order:8;display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin:0 0 22px}
.mes-buy-box form.cart .quantity{display:flex}
.mes-buy-box form.cart .qty{width:75px;height:52px;padding:10px;border:1px solid var(--mes-line);border-radius:5px;font-size:15px}
.mes-buy-box form.cart .single_add_to_cart_button{flex:1;min-width:200px;min-height:52px;padding:0 24px!important;background:var(--mes-blue)!important;border:1px solid var(--mes-blue)!important;color:#fff!important;font-weight:700;font-size:14px;border-radius:5px;transition:background .2s}
.mes-buy-box form.cart .single_add_to_cart_button:hover{background:var(--mes-blue-dark)!important}
.mes-buy-box .mes-micro{order:7;font-size:12px;line-height:1.6;color:var(--mes-muted);margin:0 0 4px}
.mes-buy-box .mes-delivery-list{order:9}
/* SKU/category already appear in the eyebrow above and in the Übersicht
   accordion tab — a third, plain-text repeat here is redundant clutter not
   present in the reference design. */
.mes-buy-box .product_meta{display:none}
.mes-buy-box #wc-stripe-express-checkout-element{order:10;margin-top:22px}
.mes-buy-box .ppcp-messages{order:11;margin-top:14px;font-size:12px}
.mes-buy-box fieldset.ast-single-product-payments{order:12;margin-top:26px;padding:18px;border:1px solid var(--mes-line);border-radius:8px;background:var(--mes-pale)}
.mes-buy-box fieldset.ast-single-product-payments legend{font-size:12px;font-weight:700;color:var(--mes-muted);padding:0 6px}

.mes-delivery-list{border-top:1px solid var(--mes-line);margin-top:0;padding-top:16px}
.mes-delivery-list p{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--mes-muted);margin:10px 0}

/* Native WooCommerce/Astra tabs restyled; Astra's own accordion layout
   (astra_get_option_single-product-tabs-layout filter, see inc/mes-pages.php)
   supplies the +/- open-close behavior — no custom JS needed here. */
.mes-detail-tabs{padding-top:50px;border-top:1px solid var(--mes-line)}
.mes-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.mes-detail-grid > *{min-width:0}
/* Elementor-gepflegte Produktbeschreibung: volle Breite statt halber Spalte,
   Akkordeon ordentlich darunter (mittig, lesbare Maximalbreite). */
.mes-detail-grid--fullwidth{grid-template-columns:1fr;gap:48px}
.mes-detail-grid--fullwidth .mes-detail-left h2{max-width:720px}
.mes-detail-grid--fullwidth .custom-fullwidth-description{color:inherit}
.mes-detail-grid--fullwidth .custom-fullwidth-description .elementor-section.elementor-section-boxed > .elementor-container{max-width:100%}
.mes-detail-grid--fullwidth .mes-detail-right{max-width:860px;margin:0 auto;width:100%;border-top:1px solid var(--mes-line);padding-top:40px}
.mes-detail-left .mes-eyebrow{margin-bottom:12px}
.mes-detail-left h2{font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.6px;margin:0 0 20px}
.mes-detail-left-body{font-size:15px;line-height:1.85;color:var(--mes-muted)}
.mes-detail-left-body p{margin:0 0 16px}
.mes-detail-tabs .ast-tab-header{font-size:18px;font-weight:700;padding:20px 0;border-bottom:1px solid var(--mes-line);cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.mes-detail-tabs .ast-tab-header .ahfb-svg-iconset{width:18px;height:18px;color:var(--mes-blue)}
.mes-detail-tabs .ast-tab-header .ahfb-svg-iconset svg{width:100%;height:100%;fill:currentColor}
/* Astra's plus/minus accordion icons share one generic class with no
   plus/minus modifier (both ahfb-svg-iconset); its own show/hide toggle is
   injected as dynamic inline CSS we can't target directly, so enforce the
   same first-of-type/last-of-type + .active pattern explicitly here. */
.mes-detail-tabs .ast-tab-header .ahfb-svg-iconset:first-of-type{display:inline-flex}
.mes-detail-tabs .ast-tab-header.active .ahfb-svg-iconset:first-of-type{display:none}
.mes-detail-tabs .ast-tab-header .ahfb-svg-iconset:last-of-type{display:none}
.mes-detail-tabs .ast-tab-header.active .ahfb-svg-iconset:last-of-type{display:inline-flex}
.mes-detail-tabs .ast-accordion-content{font-size:15px;line-height:1.85;color:var(--mes-muted);padding:20px 0}
/* Astra's own "show the active accordion panel" rule is scoped under a
   body class (.ast-product-tabs-layout-accordion) that isn't present when
   the accordion layout is forced via the astra_get_option_single-product-
   tabs-layout filter (inc/mes-pages.php) rather than the Customizer — so
   its tab-switch JS only ever toggles the .active class and leaves the
   inline display:none/height:0 it set on every panel at load untouched
   (the height-animation half of that JS is gated behind the same missing
   body class). Without a height override, the panel still shows (display
   fixed below) but stays collapsed to ~2 line-heights with overflow:visible,
   so its real content spills down over the next panels' headers instead of
   pushing them lower. Both overrides need !important — inline styles always
   win over a plain stylesheet rule. */
.mes-detail-tabs .ast-accordion-content.active{display:block!important;height:auto!important}
.mes-detail-tabs .ast-accordion-content p{margin:0 0 16px}
.mes-detail-tabs table.shop_attributes{font-size:13px;border:0;width:100%}
.mes-detail-tabs table.shop_attributes th{width:160px;color:var(--mes-muted);font-weight:400;text-align:left;padding:10px 0;border-bottom:1px solid #edf1f5}
.mes-detail-tabs table.shop_attributes td{padding:10px 0;border-bottom:1px solid #edf1f5}
.mes-overview-dl{font-size:13px;margin:0;max-width:500px}
.mes-overview-dl > div{display:grid;grid-template-columns:160px 1fr;padding:10px 0;border-bottom:1px solid #edf1f5}
.mes-overview-dl dt{color:var(--mes-muted);margin:0}
.mes-overview-dl dd{margin:0}
.mes-detail-tabs .custom-fullwidth-description{font-size:15px;line-height:1.85;color:var(--mes-muted)}

/* "Wird oft zusammen gekauft" (Woo Bought Together Premium, class WPCleverWoobt)
   — real cross-sell data/pricing/cart logic untouched, called directly from
   content-single-product.php right after the buy box (see that file's
   comment) instead of its default "above_summary" hook position further
   down the page. Markup is the plugin's own (.woobt-wrap > .woobt-before-text
   + .woobt-products > .woobt-product×N + .woobt-item-text + .woobt-summary),
   reflowed from its default narrow list rows into a card grid + summary
   panel. */
.mes-bundle-slot{padding-top:40px;border-top:1px solid var(--mes-line)}
/* .woobt-wrap has 3 direct children (before-text, products, summary), not 2
   — without explicit grid-column on each, auto-placement fills row 1's two
   tracks with before-text + products (squeezing products into the narrow
   320px summary column) and wraps summary onto its own row 2. Same bug
   class as the #customer_login clearfix issue: always check actual child
   count against the column count before trusting auto-placement. */
.mes-bundle-slot .woobt-before-text{grid-column:1/-1;font-size:22px;font-weight:700;letter-spacing:-.3px;color:var(--mes-ink);margin:0 0 20px}
.mes-bundle-slot .woobt-wrap{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}
.mes-bundle-slot .woobt-products{grid-column:1;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.mes-bundle-slot .woobt-summary{grid-column:2}
/* .woobt-item-text ("Im Bundle immer günstiger!") sits between the "this
   item" card and the two add-on cards in the plugin's own DOM order;
   grid-column:1/-1 alone would still leave it eating a whole row in natural
   DOM order (card1 stranded alone on row 1, label on row 2, the 2 add-on
   cards on row 3, with big empty gaps next to card1). order:-1 moves it to
   the front of grid auto-placement (not just paint order), so it becomes
   row 1 on its own and all 3 .woobt-product cards sit together on row 2. */
.mes-bundle-slot .woobt-item-text{order:-1;grid-column:1/-1;font-size:13px;font-weight:700;color:var(--mes-muted);margin:0 0 4px}
.mes-bundle-slot .woobt-product{position:relative;background:#fff;border:1px solid var(--mes-line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}
/* Selektoren bewusst lang: das Plugin-Frontend-CSS setzt
   .woobt-products .woobt-product .woobt-thumb{width:50px;flex:0 0 50px}
   (und im Responsive-Block img{width:80px}) mit höherer Spezifität als die
   früheren .mes-bundle-slot-Zweierketten — deshalb blieben die Cover winzig.
   Die volle Kette (0,5,0+) schlägt beide Plugin-Varianten. */
.mes-bundle-slot .woobt-wrap .woobt-products .woobt-product .woobt-thumb{box-sizing:border-box;width:100%;flex:0 0 auto;height:200px;padding:14px;display:flex;align-items:center;justify-content:center;background:var(--mes-pale);border-radius:6px;overflow:hidden}
.mes-bundle-slot .woobt-wrap .woobt-products .woobt-product .woobt-thumb .woobt-img{display:block;width:100%;height:100%}
.mes-bundle-slot .woobt-wrap .woobt-products .woobt-product .woobt-thumb img{width:100%;max-width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;margin:0}
.mes-bundle-slot .woobt-choose{position:absolute;top:10px;right:10px}
.mes-bundle-slot .woobt-title{font-size:13px;line-height:1.4;font-weight:700}
.mes-bundle-slot .woobt-title a{color:var(--mes-ink)}
.mes-bundle-slot .woobt-price{font-size:13px;margin-top:auto}
.mes-bundle-slot .woobt-price-ori{color:var(--mes-muted);text-decoration:line-through;font-size:12px}
.mes-bundle-slot .woobt-price-new{font-weight:700;color:var(--mes-ink)}
.mes-bundle-slot .woobt-summary{background:var(--mes-pale);border:1px solid #d5e4ef;border-radius:8px;padding:22px;position:sticky;top:24px;font-size:13px}
.mes-bundle-slot .woobt-additional{color:var(--mes-muted);padding-bottom:12px;border-bottom:1px solid #d5e4ef;margin-bottom:12px}
.mes-bundle-slot .woobt-total{font-size:19px;font-weight:700;color:var(--mes-ink);margin-bottom:16px}
.mes-bundle-slot .woobt-actions .button{display:flex;width:100%;align-items:center;justify-content:center;padding:14px 18px;border:1px solid var(--mes-blue);border-radius:5px;background:var(--mes-blue);color:#fff;font-size:14px;font-weight:700;text-align:center}
.mes-bundle-slot .woobt-actions .button:hover{background:var(--mes-blue-dark)}

/* Scoped to body.single-product rather than .mes-detail-tabs: Astra Addon's
   "recently viewed products" feature renders its own separate
   section.related.products (same markup/class as the real related-products
   section) as a sibling of .mes-pdp, outside it entirely — so a selector
   scoped to .mes-detail-tabs or .mes-pdp would miss it. Both sections share
   this styling instead. */
body.single-product .related.products,body.single-product .upsells.products{margin-top:60px;padding-top:50px;border-top:1px solid var(--mes-line)}
body.single-product .related.products > h2,body.single-product .upsells.products > h2{font-size:30px;font-weight:700;margin:0 0 28px}
body.single-product .related.products ul.products,body.single-product .upsells.products ul.products{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:22px;list-style:none;padding:0;margin:0}
body.single-product .related.products ul.products li.product,body.single-product .upsells.products ul.products li.product{border:1px solid var(--mes-line);border-radius:10px;overflow:hidden;background:#fff;display:flex!important;flex-direction:column!important}
body.single-product .related.products ul.products li.product .astra-shop-thumbnail-wrap,body.single-product .upsells.products ul.products li.product .astra-shop-thumbnail-wrap{flex:none!important;width:100%!important;margin-bottom:0!important}
body.single-product .related.products ul.products li.product .astra-shop-summary-wrap,body.single-product .upsells.products ul.products li.product .astra-shop-summary-wrap{display:flex!important;flex-direction:column!important;flex:1!important;width:100%!important}
body.single-product .related.products ul.products li.product a img,body.single-product .upsells.products ul.products li.product a img{height:220px;object-fit:contain;padding:22px;background:#f3f6f8;width:100%}
body.single-product .related.products ul.products li.product .mes-card-format,body.single-product .upsells.products ul.products li.product .mes-card-format{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:var(--mes-blue);font-weight:700;margin:16px 16px 0;padding:0}
body.single-product .related.products ul.products li.product a.ast-loop-product__link,body.single-product .upsells.products ul.products li.product a.ast-loop-product__link{font-size:15px;font-weight:700;padding:10px 16px 2px;margin:0;display:block;color:var(--mes-ink)}
body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title{font-size:inherit;font-weight:inherit;padding:0;margin:0;color:inherit}
body.single-product .related.products ul.products li.product .mes-author,body.single-product .upsells.products ul.products li.product .mes-author{font-size:12px;color:var(--mes-muted);margin:0;padding:0 16px 14px}
body.single-product .related.products ul.products li.product .price,body.single-product .upsells.products ul.products li.product .price{display:block;padding:0 16px;font-size:16px;font-weight:700;margin-bottom:8px}
body.single-product .related.products ul.products li.product .wc-gzd-additional-info,body.single-product .upsells.products ul.products li.product .wc-gzd-additional-info{font-size:10px;color:var(--mes-muted);padding:0 16px;margin:0 0 4px;line-height:1.5}
body.single-product .related.products ul.products li.product .review-rating,body.single-product .upsells.products ul.products li.product .review-rating{display:none}
body.single-product .related.products ul.products li.product .mes-card-link,body.single-product .upsells.products ul.products li.product .mes-card-link{display:flex;align-items:center;justify-content:space-between;margin:auto 16px 16px;padding-top:13px;border-top:1px solid var(--mes-line);font-size:13px;font-weight:700;color:var(--mes-blue)}
body.single-product .related.products ul.products li.product .mes-card-link:hover,body.single-product .upsells.products ul.products li.product .mes-card-link:hover{color:var(--mes-blue-dark)}

@media(max-width:1100px){.mes-product-detail.mes-wrap{gap:36px}.mes-buy-box .product_title{font-size:32px}.mes-cover-stage{min-height:420px}.mes-bundle-slot .woobt-wrap{grid-template-columns:1fr}.mes-bundle-slot .woobt-products,.mes-bundle-slot .woobt-summary{grid-column:1}.mes-bundle-slot .woobt-summary{position:static}}
@media(max-width:800px){.mes-product-detail.mes-wrap{grid-template-columns:1fr;gap:15px}.mes-cover-stage{min-height:360px;padding:16px}.mes-detail-grid{grid-template-columns:1fr;gap:34px}body.single-product .related.products ul.products,body.single-product .upsells.products ul.products{grid-template-columns:repeat(2,1fr)!important}.mes-bundle-slot .woobt-products{grid-template-columns:1fr}
/* The plugin's own responsive CSS (assets/css/frontend.css, @media max-width:767px)
   targets .woobt-wrap-responsive .woobt-products .woobt-product (3 classes,
   plus !important on the thumb/price children's width/flex-basis) — more
   specific than a plain .mes-bundle-slot .woobt-product rule, so it kept
   winning and collapsing the thumbnail to ~10px tall. Matching its own
   selector shape (with the already-present .woobt-wrap-responsive class)
   and !important is what actually overrides it here, not a blanket !important. */
.mes-bundle-slot .woobt-wrap-responsive .woobt-products .woobt-product{flex-direction:row!important;align-items:center;text-align:left!important;padding:12px!important}
.mes-bundle-slot .woobt-wrap-responsive .woobt-products .woobt-product>div{width:auto!important;flex-basis:auto!important}
.mes-bundle-slot .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb{height:64px;width:64px;flex-shrink:0;flex-basis:64px!important}
.mes-bundle-slot .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb img{width:100%!important;height:100%!important;margin:0!important}
.mes-bundle-slot .woobt-choose{position:static;margin-right:4px}
}
@media(max-width:560px){.mes-buy-box .product_title{font-size:28px}.mes-buy-box .price{font-size:24px}body.single-product .related.products ul.products,body.single-product .upsells.products ul.products{grid-template-columns:1fr 1fr!important;gap:12px}.mes-bundle-slot .woobt-before-text{font-size:19px}}

/* ---------- Kategorie (shop archive / product category) ---------- */
/* Full-bleed wie .catalog-hero in der Vorlage: Die Section liegt in Astras
   zentriertem Container — ohne den Ausbruch auf 100vw stand die absolut
   positionierte Deko (.mes-category-art, right rechnet mit 100vw) bei sehr
   breiten Fenstern mitten im Text. Negative Margins ziehen das Band über
   die volle Breite, die Paddings geben dem Inhalt seine Lage zurück. */
.mes-category-hero{position:relative;background:var(--mes-pale);padding:48px calc(50vw - 50%);margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);overflow:hidden}
.mes-category-hero h1{font-size:46px;font-weight:700;letter-spacing:-1.2px;margin:0 0 14px}
.mes-category-hero p{color:var(--mes-muted);font-size:16px;margin:0}
.mes-category-art{position:absolute;right:max(6%,calc((100vw - 1240px)/2));top:30px;width:260px;height:230px;border-left:2px solid #86b1d0;padding-left:22px;color:#2d6a9d;transform:rotate(-7deg)}
.mes-category-art span{font-size:72px;color:#b4d0e5;line-height:1}
.mes-category-art b{font-size:25px;line-height:1.1;display:block;margin-top:16px;position:relative;z-index:1}
.mes-category-art i{width:130px;height:130px;border:26px solid #d3e5f1;position:absolute;right:-40px;top:26px;border-radius:50%;z-index:-1;opacity:.65}
@media(max-width:1100px){.mes-category-art{right:4%;width:200px}}
@media(max-width:800px){.mes-category-art{display:none}}
.mes-category-layout{display:grid;grid-template-columns:205px 1fr;gap:45px;padding:45px 0}
.mes-category-filters h2{font-size:16px;font-weight:700;margin:0 0 20px}
.mes-category-filters ul{list-style:none;padding:0;margin:0 0 26px;display:flex;flex-direction:column;gap:13px}
.mes-category-filters a{font-size:13px;color:var(--mes-ink)}
.mes-category-filters a.mes-active{color:var(--mes-blue);font-weight:700}
.mes-category-filters a:hover{color:var(--mes-blue)}
.mes-category-note{border-top:1px solid var(--mes-line);padding-top:26px}
.mes-category-note h3{font-size:16px;margin:12px 0 6px}
.mes-category-note p{font-size:13px;color:var(--mes-muted);line-height:1.7;margin:0 0 10px}
.mes-category-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;font-size:13px}
.mes-category-tools p{margin:0;color:var(--mes-muted)}
/* Astra Addon's shop toolbar also renders a mobile filter-flyout toggle and
   a grid/list view switcher; redundant with our always-visible sidebar
   filters and unstyled against this design, so hidden rather than skinned. */
.mes-category .astra-shop-filter-button,
.mes-category .ast-products-view{display:none!important}
.mes-category .ast-shop-toolbar-container{display:block}
.mes-category .ast-shop-toolbar-aside-wrap:has(.woocommerce-ordering){margin-left:auto}
.mes-category .woocommerce-ordering select{padding:10px;border:1px solid var(--mes-line);border-radius:4px;background:#fff;font-size:12px;font-family:inherit}
.mes-category ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px;list-style:none;padding:0;margin:0!important}
.mes-category ul.products li.product{border:1px solid var(--mes-line);border-radius:10px;overflow:hidden;background:#fff;width:auto!important;margin:0!important;display:flex!important;flex-direction:column!important}
.mes-category ul.products li.product .astra-shop-thumbnail-wrap{flex:none!important;width:100%!important;margin-bottom:0!important}
.mes-category ul.products li.product .astra-shop-summary-wrap{display:flex!important;flex-direction:column!important;flex:1!important;width:100%!important}
.mes-category ul.products li.product a{display:block}
/* WooCommerce core's own woocommerce.css ships .woocommerce ul.products
   li.product a img{width:100%;height:auto} — one more element in the
   selector (the "a") than a .mes-category ul.products li.product img rule,
   so it wins on specificity and the fixed height here was silently never
   applying; images rendered at their natural aspect ratio instead
   (419/414/391/288/393/396px tall for a 288px-wide column). Matching the
   real "a img" path fixes it without !important. */
/* 2-spaltiges Grid: mehr Bildhoehe, damit Cover nicht gedrungen wirken */
.mes-category ul.products li.product a img{height:400px;object-fit:contain;padding:26px;background:#f3f6f8;width:100%}
.mes-category ul.products li.product .mes-card-format{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:var(--mes-blue);font-weight:700;margin:17px 17px 0;padding:0}
.mes-category ul.products li.product a.ast-loop-product__link{font-size:15px;font-weight:700;padding:10px 17px 2px;margin:0;display:block;color:var(--mes-ink)}
.mes-category ul.products li.product .woocommerce-loop-product__title{font-size:inherit;font-weight:inherit;padding:0;margin:0;color:inherit}
.mes-category ul.products li.product .mes-author{font-size:12px;color:var(--mes-muted);margin:0;padding:0 17px 10px}
.mes-category ul.products li.product .price{display:block;padding:0 17px;font-size:16px;font-weight:700;margin-bottom:8px}
.mes-category ul.products li.product .wc-gzd-additional-info{font-size:10px;color:var(--mes-muted);padding:0 17px;margin:0 0 4px;line-height:1.5}
.mes-category ul.products li.product .review-rating{display:none}
.mes-category ul.products li.product .mes-card-link{display:flex;align-items:center;justify-content:space-between;margin:auto 17px 17px;padding-top:13px;border-top:1px solid var(--mes-line);font-size:13px;font-weight:700;color:var(--mes-blue)}
.mes-category ul.products li.product .mes-card-link:hover{color:var(--mes-blue-dark)}
.mes-category .woocommerce-result-count{margin:0;color:var(--mes-muted);font-size:13px}
.mes-category .woocommerce-ordering{margin:0}

/* Classic numbered pagination (forced via astra_get_option_shop-pagination
   filter in inc/mes-pages.php — see comment there for why). */
.mes-category nav.woocommerce-pagination{margin-top:40px;display:flex;justify-content:center}
.mes-category nav.woocommerce-pagination ul{display:flex;gap:8px;list-style:none;padding:0;margin:0;border:0}
.mes-category nav.woocommerce-pagination ul li{border:0}
.mes-category nav.woocommerce-pagination .page-numbers{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;border:1px solid var(--mes-line);border-radius:5px;font-size:13px;font-weight:700;color:var(--mes-ink)}
.mes-category nav.woocommerce-pagination a.page-numbers:hover{border-color:var(--mes-blue);color:var(--mes-blue)}
.mes-category nav.woocommerce-pagination .page-numbers.current{background:var(--mes-blue);border-color:var(--mes-blue);color:#fff}
.mes-category nav.woocommerce-pagination .page-numbers.dots{border:0}

@media(max-width:1100px){.mes-category ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:800px){.mes-category-layout{grid-template-columns:1fr;gap:26px}.mes-category-note{display:none}}
@media(max-width:560px){.mes-category-hero{padding:32px 0}.mes-category-hero h1{font-size:32px}.mes-category ul.products{grid-template-columns:1fr 1fr!important;gap:12px}.mes-category ul.products li.product a img{height:210px;padding:14px}}

/* ---------- Warenkorb (cart page) ---------- */
/* No shop-design mockup exists for this page (the design reference only
   covers produkt/kategorie/checkout/danke/blog/beitrag) — restyled in place
   to match the site's existing type/color system instead of a pixel
   reference. The FunnelKit side-cart (fkcart) now handles the primary
   add-to-cart review flow; this full page stays reachable directly/via the
   header cart link. No template override — only CSS against WooCommerce's
   own default cart markup, so update-cart/coupon/shipping-calculator logic
   stays untouched. */
body.woocommerce-cart .entry-content{font-family:"MES Roboto",Arial,sans-serif;color:var(--mes-ink)}
body.woocommerce-cart h1.entry-title{font-size:36px;font-weight:700;letter-spacing:-.8px;margin:0 0 28px}
body.woocommerce-cart table.shop_table{border:1px solid var(--mes-line);border-radius:8px;border-collapse:separate;border-spacing:0;font-size:14px;overflow:hidden}
body.woocommerce-cart table.shop_table th{font-size:11px!important;line-height:1.3!important;text-transform:uppercase;letter-spacing:.8px;color:var(--mes-muted);font-weight:700;padding:14px 16px!important;border-bottom:1px solid var(--mes-line);text-align:left;background:var(--mes-pale)}
body.woocommerce-cart table.shop_table td{padding:16px;border-bottom:1px solid var(--mes-line);vertical-align:middle}
body.woocommerce-cart table.shop_table tr:last-child td{border-bottom:0}
body.woocommerce-cart .product-thumbnail img{width:70px;height:70px;object-fit:contain;background:#f3f6f8;border-radius:6px;padding:8px}
body.woocommerce-cart .product-name a{color:var(--mes-ink);font-weight:700;text-decoration:none}
body.woocommerce-cart .product-name a:hover{color:var(--mes-blue)}
body.woocommerce-cart .quantity .qty{width:60px;height:40px;border:1px solid var(--mes-line);border-radius:5px;text-align:center;font-size:14px}
body.woocommerce-cart a.remove{color:var(--mes-muted)!important;border-radius:50%!important;width:24px;height:24px;display:flex!important;align-items:center;justify-content:center;font-size:18px;background:transparent!important}
body.woocommerce-cart a.remove:hover{background:#fdecec!important;color:#c0392b!important}
body.woocommerce-cart .cart-collaterals{margin-top:0;display:flex;justify-content:flex-end}
/* No TOP padding: the header bar (h2) sits flush at the top itself; sides and
   bottom keep the 24px inset for the totals content. */
body.woocommerce-cart .cart_totals{border:1px solid var(--mes-line);border-radius:10px;padding:0 24px 24px;background:#fff;width:100%;max-width:380px;float:none;overflow:hidden}
/* Match the "Warenkorb-Summe" header bar to the product table's header: same
   pale-blue background, same compact uppercase label, same height. Full-bleed
   horizontally (negative left/right margins reach the box edges, overflow:hidden
   rounds the corners); NO negative top margin, so nothing is clipped. */
body.woocommerce-cart .cart_totals h2{
	margin:0 -24px 18px!important;
	padding:14px 16px!important;
	background:var(--mes-pale)!important;
	border-bottom:1px solid var(--mes-line);
	font-size:11px!important;
	line-height:1.3!important;
	text-transform:uppercase;
	letter-spacing:.8px;
	font-weight:700;
	color:var(--mes-muted)!important;
}
body.woocommerce-cart .cart_totals table{width:100%;border:0}
body.woocommerce-cart .cart_totals table th,body.woocommerce-cart .cart_totals table td{border:0;border-bottom:1px solid #edf1f5;padding:10px 0;font-size:13px;background:none!important}
/* Kill the light-blue row-label stripes Astra/Elementor paints behind the
   totals <th> cells (ZWISCHENSUMME, VERSAND, …). */
body.woocommerce-cart .cart_totals table tr,
body.woocommerce-cart .cart_totals table tr th,
body.woocommerce-cart .cart_totals table tr td{background:transparent!important}
body.woocommerce-cart .cart_totals .order-total th,body.woocommerce-cart .cart_totals .order-total td{font-weight:700;font-size:16px;border-bottom:0}
body.woocommerce-cart .wc-proceed-to-checkout{padding:0;margin-top:6px}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button{display:block;width:100%;background:var(--mes-blue)!important;border:1px solid var(--mes-blue)!important;color:#fff!important;text-align:center;padding:16px;border-radius:5px;font-weight:700;font-size:15px;transition:background .2s;margin-top:15px!important}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover{background:var(--mes-blue-dark)!important}
body.woocommerce-cart .coupon{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
body.woocommerce-cart .coupon .input-text{border:1px solid var(--mes-line);border-radius:5px;padding:10px 12px;font-size:13px;height:auto}
body.woocommerce-cart .coupon button.button{background:#fff;border:1px solid var(--mes-line);border-radius:5px;padding:10px 16px;font-weight:700;font-size:13px;color:var(--mes-ink)}
body.woocommerce-cart .coupon button.button:hover{border-color:var(--mes-blue);color:var(--mes-blue)}
body.woocommerce-cart button[name="update_cart"]{background:#fff;border:1px solid var(--mes-line);border-radius:5px;padding:10px 18px;font-weight:700;font-size:13px;color:var(--mes-ink)}
body.woocommerce-cart button[name="update_cart"]:hover{border-color:var(--mes-blue);color:var(--mes-blue)}
body.woocommerce-cart .actions{border:0!important;padding-top:20px!important;background:none!important}

/* Only one coupon field on the cart page. WooCommerce prints its own in the
   .actions row under the table AND Astra prints a second one (#ast-coupon-code)
   in the totals box — keep Astra's (nearer the checkout button), hide WC's. */
body.woocommerce-cart .woocommerce-cart-form .actions .coupon{display:none!important}

/* Astra's coupon: its apply control is <a class="button" id="ast-apply-coupon">
   (an anchor, so the .coupon button.button rule above doesn't reach it) and it
   ships a redundant "coupon:" label next to the placeholder. */
body.woocommerce-cart .cart_totals .coupon{margin:0 0 16px}
body.woocommerce-cart .ast-coupon-label{display:none}
body.woocommerce-cart #ast-coupon-code{flex:1;min-width:0;border:1px solid var(--mes-line);border-radius:5px;padding:10px 12px;font-size:13px;height:auto}
body.woocommerce-cart a#ast-apply-coupon{background:#fff;border:1px solid var(--mes-line);border-radius:5px;padding:10px 16px;font-weight:700;font-size:13px;color:var(--mes-ink);cursor:pointer;white-space:nowrap;text-decoration:none}
body.woocommerce-cart a#ast-apply-coupon:hover{border-color:var(--mes-blue);color:var(--mes-blue)}

/* Shipping calculator ("Versand berechnen") — raw WC/Astra markup otherwise. */
body.woocommerce-cart .shipping-calculator-button{color:var(--mes-blue);font-size:13px;font-weight:700;text-decoration:none}
body.woocommerce-cart .shipping-calculator-form{margin-top:12px;display:flex;flex-direction:column;gap:10px}
body.woocommerce-cart .shipping-calculator-form .form-row{margin:0}
body.woocommerce-cart .shipping-calculator-form label{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:var(--mes-ink)}
body.woocommerce-cart .shipping-calculator-form .input-text,
body.woocommerce-cart .shipping-calculator-form select{width:100%;border:1px solid var(--mes-line);border-radius:5px;padding:9px 11px;font-size:13px;line-height:1.3;height:auto;box-sizing:border-box;background:#fff}
body.woocommerce-cart .shipping-calculator-form .button{background:var(--mes-blue);border:1px solid var(--mes-blue);color:#fff;border-radius:5px;padding:10px 16px;font-weight:700;font-size:13px;width:100%}

/* Empty cart state (p.cart-empty.woocommerce-info + p.return-to-shop). */
body.woocommerce-cart .cart-empty.woocommerce-info{background:#f5f7fa;border:1px solid var(--mes-line);border-radius:9px;padding:30px 24px;text-align:center;font-size:16px;color:var(--mes-ink);margin:0}
body.woocommerce-cart .return-to-shop{margin-top:18px;text-align:center}
body.woocommerce-cart .return-to-shop .button{display:inline-flex;align-items:center;gap:8px;background:var(--mes-blue)!important;border:1px solid var(--mes-blue)!important;color:#fff!important;padding:14px 26px;border-radius:5px;font-weight:700;font-size:15px;text-decoration:none}
body.woocommerce-cart .return-to-shop .button:hover{background:var(--mes-blue-dark)!important}

@media(max-width:800px){
	body.woocommerce-cart .cart-collaterals{justify-content:stretch}
	body.woocommerce-cart .cart_totals{max-width:none}
	body.woocommerce-cart .shipping-calculator-form .button{width:100%}
}
