/**
 * Product page redesign (Mehrwegbecher Hyvä Redesign, "Produkt" boards).
 * Loaded on catalog_product_view only; uses the tokens from header-footer.css.
 * Markup: product-detail-page.phtml, product/view/product-info.phtml, srg-pdp-data.phtml,
 * sections/product-sections.phtml, Magento_Swatches renderer.phtml.
 * Placeholders (.srg-ph) mark design content that has no data yet.
 */

.catalog-product-view {
    --pdp-text: #082b59;
    --pdp-copy: #3a4b5e;
    --pdp-muted: var(--srg-muted, #4a5b6e);
    --pdp-navy: var(--srg-navy, #00366f);
    --pdp-navy-dark: #00264f;
    --pdp-line: #d8e0e9;
    --pdp-field: #b9c7d6;
    --pdp-soft: #f3f6f9;
    --pdp-soft-line: #e6ecf2;
    --pdp-pill: #e7eef6;
    --pdp-green: #11703a;
    --pdp-green-soft: #e2f2e8;
    --pdp-head: DDIN, "Helvetica Neue", Arial, sans-serif;
    --pdp-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --pdp-i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='18' r='1.8'/%3E%3Ccircle cx='17' cy='18' r='1.8'/%3E%3C/svg%3E");
    --pdp-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
    --pdp-i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M14 4l6 6-9 9H5v-6z'/%3E%3C/svg%3E");
    --pdp-i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
    --pdp-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
    --pdp-i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E");
    --pdp-i-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
    --pdp-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --pdp-i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
}
.catalog-product-view [x-cloak] { display: none !important; }

/* Mask icon helper */
.catalog-product-view .srg-buybox__fact::before,
.catalog-product-view .srg-buybox__actions .individualize-button::before,
.catalog-product-view .srg-carton-btn::before,
.catalog-product-view .srg-next::before,
.catalog-product-view .srg-best::before,
.catalog-product-view .srg-benefits li::before,
.catalog-product-view .srg-download::before,
.catalog-product-view .srg-sec__summary::after,
.catalog-product-view .srg-tier__carton::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--pdp-i, none) center / contain no-repeat;
    mask: var(--pdp-i, none) center / contain no-repeat;
}

/* Placeholder: design content without data yet */
.catalog-product-view .srg-ph {
    outline: 1.5px dashed #9aabbb;
    outline-offset: 2px;
    color: #6b7c8f !important;
    font-style: italic;
    cursor: help;
}

/* ---------- Page frame ---------- */
body.catalog-product-view { background: #fff; }
.catalog-product-view #maincontent {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--srg-max);
    margin: 0 auto;
    padding: 0 32px 64px;
    font-family: var(--pdp-body);
    color: var(--pdp-text);
}
.catalog-product-view #maincontent > .container,
.catalog-product-view .columns { max-width: none; margin: 0; padding: 0; }
/* The page h1 stays for SEO but is visually hidden; the buybox shows the title (also on mobile) */
.catalog-product-view #maincontent > .container h1.page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.catalog-product-view .breadcrumbs { background: transparent; box-shadow: none; }
.catalog-product-view .breadcrumbs .container { max-width: var(--srg-max); padding: 20px 32px 0; }
.catalog-product-view .breadcrumbs .items { padding: 0; font-size: 14px; color: var(--pdp-muted); }
.catalog-product-view .breadcrumbs a { color: var(--pdp-muted); text-decoration: underline; text-underline-offset: 2px; }
.catalog-product-view .breadcrumbs a[aria-current="page"] { color: var(--pdp-text); font-weight: 600; text-decoration: none; }

/* ---------- Gallery + buybox grid ---------- */
.catalog-product-view .product-info-main > section:first-child { padding: 20px 0 48px; gap: 24px; }
.catalog-product-view .srg-pdp-media { position: relative; min-width: 0; }
@media (min-width: 768px) {
    .catalog-product-view .product-info-main > section:first-child {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
    }
    .catalog-product-view .srg-pdp-media { position: sticky; top: calc(var(--srg-header-h, 0px) + 16px); align-self: start; }
}

/* Badges on the main image */
.catalog-product-view .srg-pdp-badges {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
}
.catalog-product-view .srg-badge {
    padding: 5px 10px;
    border-radius: 6px;
    background: #fff;
    color: var(--pdp-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(0, 30, 60, .28);
}
.catalog-product-view .srg-badge--featured { color: var(--pdp-navy); }
.catalog-product-view .srg-badge--sale { background: #ffc20e; color: #0b1b2b; }
.catalog-product-view .srg-badge--new { background: var(--pdp-green); color: #fff; }
.catalog-product-view .srg-badge--origin { box-shadow: none; border: 1px solid var(--pdp-line); }

/* Gallery: large rounded image, thumbnails in a row below */
.catalog-product-view #gallery { display: flex; flex-direction: column; gap: 12px; }
.catalog-product-view #gallery-main {
    scrollbar-width: none;
    border: 1px solid var(--pdp-line);
    border-radius: 16px;
    background: #0b2440;
}
.catalog-product-view #gallery-main img { width: 100%; object-fit: cover; }
.catalog-product-view #gallery .snap-pager.lg\:order-first { order: 0; padding: 0; }
@media (min-width: 1024px) {
    .catalog-product-view #gallery .snap-pager,
    .catalog-product-view #gallery [data-pager] { flex-direction: row; justify-content: flex-start; gap: 12px; }
    .catalog-product-view #gallery [data-pager] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
    .catalog-product-view #gallery .snap-marker {
        width: auto;
        height: 96px;
        padding: 0;
        border-radius: 10px;
        border: 1.5px solid var(--pdp-line);
        box-shadow: none;
    }
    .catalog-product-view #gallery .snap-marker[aria-current="true"] { border: 2px solid var(--pdp-navy); }
    .catalog-product-view #gallery .snap-marker img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
}

/* ---------- Buybox ---------- */
.catalog-product-view .srg-buybox {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: 0;
}
.catalog-product-view .srg-buybox > * { margin-top: 0; margin-bottom: 0; }
.catalog-product-view .srg-buybox > .my-2:not(:has(*)) { display: none; }
.catalog-product-view .srg-buybox > #product_addtocart_form { display: contents; }
.catalog-product-view .srg-buybox .hidden.md\:block { display: block; }
.catalog-product-view .srg-buybox .page-title {
    margin: 0;
    font: 700 38px/1.1 var(--pdp-head);
    letter-spacing: -.01em;
    color: var(--pdp-text);
}

/* Meta line: size · colour, SKU, stock */
.catalog-product-view .srg-buybox__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: -14px;
    font-size: 15px;
    color: var(--pdp-muted);
}
.catalog-product-view .srg-buybox__meta > div:has(.stock) { display: contents; }
.catalog-product-view .srg-buybox__meta .stock { gap: 6px; font-weight: 600; color: var(--pdp-green); }
.catalog-product-view .srg-buybox__meta .stock.available::before { width: 8px; height: 8px; background: var(--pdp-green); }
.catalog-product-view .srg-buybox__meta .stock.unavailable { color: #b42318; }

.catalog-product-view .srg-buybox .product-description { margin: 0; font-size: 16px; line-height: 1.55; color: var(--pdp-copy); }
.catalog-product-view .srg-buybox .product-description p { margin: 0 0 8px; }
.catalog-product-view .srg-buybox .product-description > :last-child { margin-bottom: 0; }

/* Options: Füllmenge buttons, colour swatches */
.catalog-product-view .srg-buybox fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.catalog-product-view .srg-buybox [x-data="initConfigurableSwatchProductOptions"] { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.catalog-product-view .srg-buybox fieldset legend { margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--pdp-text); }
.catalog-product-view .srg-buybox fieldset legend span { font-weight: 500; color: var(--pdp-muted); }
.catalog-product-view .srg-buybox fieldset > div { gap: 8px 10px; }
.catalog-product-view .srg-buybox .swatch-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}
.catalog-product-view .srg-buybox .swatch-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="text"] {
    min-width: 72px;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1.5px solid var(--pdp-field);
    border-radius: 8px;
    background: #fff;
    font: 600 15px var(--pdp-body);
    color: var(--pdp-text);
}
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="text"]:hover { border-color: var(--pdp-navy); }
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="text"]:has(input:checked) {
    border-color: var(--pdp-navy);
    background: var(--pdp-navy);
    color: #fff;
}
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="visual"] {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #9aabbb;
    background-color: #eef3f8;
    background-image: repeating-linear-gradient(135deg, rgba(0, 54, 111, .08) 0 4px, transparent 4px 8px);
    overflow: visible;
}
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="visual"] > span.block { width: 100% !important; height: 100% !important; border-radius: 50%; }
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="visual"] > span.block[style*="background-color:;"],
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="visual"] > span.block[style$="background-color:"] { background: transparent !important; }
.catalog-product-view .srg-buybox .swatch-option[data-swatch-type="visual"]:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pdp-navy); }
.catalog-product-view .srg-buybox .swatch-option:has(input:disabled) { opacity: .35; cursor: not-allowed; }
.catalog-product-view .srg-buybox .swatch-option:has(input:disabled) input { cursor: not-allowed; }

/* Colours without a swatch colour in the admin come as text swatches: drawn as circles too,
   filled with the design colour for the name (striped when unknown). The name shows in the legend. */
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"] {
    width: 44px;
    min-width: 0;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border-color: #9aabbb;
    background-color: #eef3f8;
    background-image: repeating-linear-gradient(135deg, rgba(0, 54, 111, .08) 0 4px, transparent 4px 8px);
    font-size: 0;
}
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input:checked) {
    border-color: #9aabbb;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pdp-navy);
}
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="transparent"]) { background: #dceaf5; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="glasklar"]) { background: #e8f1f8; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="gefrostet"]) { background: #eef2f5; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="gelb"]) { background: #f2c230; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="rot"]) { background: #d23b2f; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="grün"]) { background: #2e9e4f; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="orange"]) { background: #ee7a1f; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="blau"]) { background: #2667c9; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="schwarz"]) { background: #1d2329; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="weiss"]) { background: #ffffff; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="grau"]) { background: #9aa5b1; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="silber"]) { background: #c3cad1; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="gold"]) { background: #c9a23a; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="rosa"]) { background: #f2a7c0; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="violett"]) { background: #7b4fa0; }
.catalog-product-view .srg-buybox fieldset:has(.swatch-option[data-swatch-type="visual"]) .swatch-option[data-swatch-type="text"]:has(input[data-option-label="braun"]) { background: #7a4b2a; }

/* Price */
.catalog-product-view .srg-buybox__price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--pdp-soft-line);
}
.catalog-product-view .srg-buybox__price .price-box { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.catalog-product-view .srg-price-label { flex-basis: 100%; font-size: 14px; color: var(--pdp-muted); }
.catalog-product-view .srg-buybox__price .final-price .price { font: 700 40px/1.1 var(--pdp-head); color: var(--pdp-navy); }
.catalog-product-view .srg-buybox__price .old-price .price { font-size: 18px; color: var(--pdp-muted); text-decoration: line-through; }
.catalog-product-view .srg-price-vat { font-size: 14px; color: var(--pdp-muted); }

/* Tier prices */
.catalog-product-view .srg-tiers__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.catalog-product-view .srg-tiers__title { margin: 0; font-size: 15px; font-weight: 700; }
.catalog-product-view .srg-tiers__hint { margin: 0; font-size: 13px; color: var(--pdp-muted); }
.catalog-product-view .srg-tiers__list { display: flex; flex-direction: column; gap: 6px; }
.catalog-product-view .srg-tier {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--pdp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pdp-text);
    font: 15px var(--pdp-body);
    text-align: left;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.catalog-product-view .srg-tier:hover { border-color: var(--pdp-navy); }
.catalog-product-view .srg-tier.is-active { border-color: var(--pdp-navy); background: var(--pdp-navy); color: #fff; }
.catalog-product-view .srg-tier__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; }
.catalog-product-view .srg-tier__carton {
    --pdp-i: var(--pdp-i-box);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--pdp-pill);
    color: var(--pdp-navy);
    font-size: 12px;
    font-weight: 700;
}
.catalog-product-view .srg-tier__carton::before { width: 14px; height: 14px; }
.catalog-product-view .srg-tier.is-active .srg-tier__carton { background: #fff; }
.catalog-product-view .srg-tier__price { font-size: 16px; font-weight: 700; }
.catalog-product-view .srg-tier__save { justify-self: end; }
.catalog-product-view .srg-tier__save .benefit {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--pdp-green-soft);
    color: var(--pdp-green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.catalog-product-view .srg-tier.is-active .benefit { background: #fff; color: var(--pdp-navy); }
.catalog-product-view .srg-tiers__choose { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--pdp-soft); font-size: 15px; color: var(--pdp-copy); }

/* Order panel */
.catalog-product-view .srg-buybox__panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 14px;
    background: var(--pdp-soft);
}
.catalog-product-view .srg-buybox__qtyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.catalog-product-view .srg-stepper {
    display: flex;
    align-items: center;
    height: 52px;
    box-sizing: border-box;
    border: 1.5px solid var(--pdp-field);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.catalog-product-view .srg-stepper__btn {
    width: 48px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--pdp-navy);
    font-size: 22px;
    cursor: pointer;
}
.catalog-product-view .srg-stepper__btn:hover { background: var(--pdp-pill); }
.catalog-product-view .srg-stepper input[name="qty"] {
    width: 84px;
    height: 48px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    font: 700 18px var(--pdp-body);
    color: var(--pdp-text);
    text-align: center;
    -moz-appearance: textfield;
}
.catalog-product-view .srg-stepper input[name="qty"]::-webkit-outer-spin-button,
.catalog-product-view .srg-stepper input[name="qty"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.catalog-product-view .srg-stepper input[name="qty"]:focus { outline: 2px solid var(--pdp-navy); outline-offset: -2px; }
.catalog-product-view .srg-carton-btn {
    --pdp-i: var(--pdp-i-box);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border: 1.5px solid var(--pdp-navy);
    border-radius: 8px;
    background: #fff;
    color: var(--pdp-navy);
    font: 600 15px var(--pdp-body);
    cursor: pointer;
}
.catalog-product-view .srg-carton-btn:hover { background: var(--pdp-pill); }
.catalog-product-view .srg-carton-info { font-size: 14px; color: var(--pdp-muted); }
.catalog-product-view .srg-next {
    --pdp-i: var(--pdp-i-up);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px dashed var(--pdp-green);
    border-radius: 10px;
    background: #fff;
    color: var(--pdp-text);
    font: 15px var(--pdp-body);
    text-align: left;
    cursor: pointer;
}
.catalog-product-view .srg-next::before { color: var(--pdp-green); }
.catalog-product-view .srg-next__take { color: var(--pdp-navy); font-weight: 600; text-decoration: underline; }
.catalog-product-view .srg-best {
    --pdp-i: var(--pdp-i-check);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    color: var(--pdp-green);
}
.catalog-product-view .srg-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; }
.catalog-product-view .srg-total__sum { font-size: 15px; color: var(--pdp-copy); }
.catalog-product-view .srg-total__sum strong { padding: 0 4px 0 6px; font: 700 24px var(--pdp-head); color: var(--pdp-text); }
.catalog-product-view .srg-total__vat { font-size: 13px; }
.catalog-product-view .srg-total__save { font-size: 14px; font-weight: 700; color: var(--pdp-green); }

.catalog-product-view .srg-buybox__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.catalog-product-view .srg-buybox__actions > :empty,
.catalog-product-view .srg-buybox__actions > script { display: none; }
.catalog-product-view .srg-buybox__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    margin: 0;
    padding: 0 22px;
    border-radius: 8px;
    font: 600 17px/1.1 var(--pdp-body);
    box-shadow: none;
}
.catalog-product-view .srg-buybox__actions .btn svg { width: 20px; height: 20px; }
.catalog-product-view .srg-buybox__actions #product-addtocart-button { background: var(--pdp-navy); border: 1.5px solid var(--pdp-navy); color: #fff; }
.catalog-product-view .srg-buybox__actions #product-addtocart-button:hover { background: var(--pdp-navy-dark); }
.catalog-product-view .srg-buybox__actions #product-addtocart-button span { display: block; }
.catalog-product-view .srg-buybox__actions .individualize-button { --pdp-i: var(--pdp-i-pen); background: #fff; border: 1.5px solid var(--pdp-navy); color: var(--pdp-navy); }
.catalog-product-view .srg-buybox__actions .individualize-button:hover { background: var(--pdp-pill); }

/* Delivery facts */
.catalog-product-view .srg-buybox__facts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.catalog-product-view .srg-buybox__fact { --pdp-i: var(--pdp-i-truck); display: flex; align-items: center; gap: 10px; }
.catalog-product-view .srg-buybox__fact::before { color: var(--pdp-navy); }
.catalog-product-view .srg-buybox__fact--shield { --pdp-i: var(--pdp-i-shield); }

/* Fact tiles */
.catalog-product-view .srg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.catalog-product-view .srg-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    border: 1px solid var(--pdp-line);
    border-radius: 10px;
    text-align: center;
}
.catalog-product-view .srg-tile__value { font: 700 16px var(--pdp-head); color: var(--pdp-navy); }
.catalog-product-view .srg-tile__key { font-size: 12px; color: var(--pdp-muted); }

/* ---------- Sections (open on desktop, accordions on mobile) ---------- */
.catalog-product-view .srg-pdp-sections { display: flex; flex-direction: column; gap: 56px; padding-top: 16px; }
.catalog-product-view .srg-sec { min-width: 0; }
.catalog-product-view .srg-sec__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.catalog-product-view .srg-sec__summary::-webkit-details-marker { display: none; }
.catalog-product-view .srg-sec__title,
.catalog-product-view .srg-sec--plain > h2 {
    margin: 0 0 16px;
    font: 700 28px/1.15 var(--pdp-head);
    letter-spacing: -.01em;
    text-align: left;
    color: var(--pdp-text);
}
.catalog-product-view .srg-sec--plain .card { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
.catalog-product-view .srg-sub { margin: 0 0 14px; font: 700 20px/1.2 var(--pdp-head); color: var(--pdp-text); }
@media (min-width: 768px) {
    .catalog-product-view .srg-sec__summary { pointer-events: none; }
    .catalog-product-view .srg-sec__summary::after { display: none; }
}

/* Beschreibung */
.catalog-product-view .srg-desc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.catalog-product-view .srg-desc__text { max-width: none; font-size: 17px; line-height: 1.6; color: var(--pdp-copy); }
.catalog-product-view .srg-desc__text p { margin: 0 0 12px; }
.catalog-product-view .srg-desc__side { display: flex; flex-direction: column; gap: 14px; }
.catalog-product-view .srg-desc__label { font: 700 18px var(--pdp-head); }
.catalog-product-view .srg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-product-view .srg-chip { padding: 8px 14px; border-radius: 20px; background: var(--pdp-soft); font-size: 15px; font-weight: 500; }
.catalog-product-view .srg-chip--line { border-radius: 8px; background: #fff; border: 1px solid var(--pdp-line); font-weight: 600; }
.catalog-product-view .srg-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 8px 0 0; list-style: none; }
.catalog-product-view .srg-benefits li { --pdp-i: var(--pdp-i-check); display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.catalog-product-view .srg-benefits li::before { color: var(--pdp-green); }

/* Technische Daten */
.catalog-product-view .srg-spec-variant { margin: -8px 0 18px; font-size: 14px; color: var(--pdp-muted); }
.catalog-product-view .srg-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.catalog-product-view .srg-spec-card { padding: 18px 20px 8px; border: 1px solid var(--pdp-line); border-radius: 12px; }
.catalog-product-view .srg-spec-card h3 { margin: 0 0 4px; font: 700 17px var(--pdp-head); }
.catalog-product-view .srg-spec-card dl { margin: 0; }
.catalog-product-view .srg-spec-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pdp-soft-line);
    font-size: 15px;
}
.catalog-product-view .srg-spec-card dl > div:last-child { border-bottom: 0; }
.catalog-product-view .srg-spec-card dt { color: var(--pdp-muted); }
.catalog-product-view .srg-spec-card dd { margin: 0; font-weight: 600; text-align: right; }

/* Aufdruck band */
.catalog-product-view .srg-sec--print > .srg-sec__summary { display: none; }
.catalog-product-view .srg-print {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-radius: 16px;
    overflow: hidden;
    background: var(--pdp-navy);
    color: #fff;
}
.catalog-product-view .srg-print__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px; }
.catalog-product-view .srg-print__title { margin: 0; font: 700 30px/1.15 var(--pdp-head); color: #fff; }
.catalog-product-view .srg-print__text p { margin: 0; font-size: 17px; color: #dce7f3; }
.catalog-product-view .srg-print__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.catalog-product-view .srg-print__btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid #fff;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.catalog-product-view .srg-print__btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.catalog-product-view .srg-print__btn--light { background: #fff; color: var(--pdp-navy); }
.catalog-product-view .srg-print__btn--light:hover { background: var(--pdp-pill); color: var(--pdp-navy); }
.catalog-product-view .srg-print__art { display: flex; align-items: center; justify-content: center; min-height: 240px; background: #0a4a8f; }

/* Sicherheit & Downloads */
.catalog-product-view .srg-safety { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.catalog-product-view .srg-safety__col { display: flex; flex-direction: column; gap: 10px; }
.catalog-product-view .srg-safety__col .srg-sub { margin-bottom: 4px; }
.catalog-product-view .srg-safety__text { margin: 4px 0 0; color: var(--pdp-copy); }
.catalog-product-view .srg-safety__text strong { color: var(--pdp-text); }
.catalog-product-view .srg-safety__contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.catalog-product-view .srg-download {
    --pdp-i: var(--pdp-i-download);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid var(--pdp-line);
    border-radius: 10px;
    color: var(--pdp-text);
    font-weight: 600;
    text-decoration: none;
}
.catalog-product-view .srg-download::before { color: var(--pdp-navy); }
.catalog-product-view .srg-download::after { content: "PDF"; margin-left: auto; font-size: 13px; font-weight: 500; font-style: normal; color: var(--pdp-muted); }
.catalog-product-view a.srg-download:hover { border-color: var(--pdp-navy); }

/* Zubehör + ähnliche Becher */
.catalog-product-view .srg-rail + .srg-rail { margin-top: 32px; }
.catalog-product-view .srg-rail__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.catalog-product-view .srg-rail__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--pdp-line);
    border-radius: 12px;
    color: var(--pdp-text);
    text-decoration: none;
}
.catalog-product-view .srg-rail__item:hover { border-color: var(--pdp-navy); }
.catalog-product-view .srg-rail__img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #0b2440; }
.catalog-product-view .srg-rail__img img { width: 100%; height: 100%; object-fit: cover; }
.catalog-product-view .srg-rail__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.catalog-product-view .srg-rail__name { font-weight: 600; line-height: 1.3; }
.catalog-product-view .srg-rail__price { font: 700 17px var(--pdp-head); color: var(--pdp-navy); }

/* Recently viewed (Hyvä widget): headings and cards like the rest of the page */
.catalog-product-view [id^="recently_viewed_products"] { margin-top: 56px; }
.catalog-product-view [id^="recently_viewed_products"] h2,
.catalog-product-view [id^="recently_viewed_products"] h3 { font: 700 26px/1.15 var(--pdp-head); text-align: left; color: var(--pdp-text); }
.catalog-product-view [id^="recently_viewed_products"] .product-item { border: 1px solid var(--pdp-line); border-radius: 12px; box-shadow: none; }
.catalog-product-view [id^="recently_viewed_products"] .product-info p { justify-content: flex-start; text-align: left; font-size: 16px; line-height: 1.3; }
.catalog-product-view [id^="recently_viewed_products"] .product-item-link { color: var(--pdp-text); }
.catalog-product-view [id^="recently_viewed_products"] .price { font: 700 20px var(--pdp-head); color: var(--pdp-navy); }
.catalog-product-view [id^="recently_viewed_products"] .btn-primary {
    width: 100%;
    justify-content: center;
    border: 1.5px solid var(--pdp-navy);
    border-radius: 8px;
    background: #fff;
    color: var(--pdp-navy);
    box-shadow: none;
}
.catalog-product-view [id^="recently_viewed_products"] .btn-primary:hover { background: var(--pdp-pill); }

/* ---------- Mobile order bar ---------- */
.catalog-product-view .srg-mbar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .catalog-product-view #maincontent { padding: 0 16px 112px; }
    .catalog-product-view .breadcrumbs .container { padding: 12px 16px 0; }
    .catalog-product-view .product-info-main > section:first-child { padding: 12px 0 32px; gap: 20px; }
    .catalog-product-view .srg-buybox { gap: 18px; }
    .catalog-product-view .srg-buybox .page-title { font-size: 28px; }
    .catalog-product-view .srg-buybox__meta { margin-top: -6px; font-size: 14px; }
    .catalog-product-view .srg-buybox__price .final-price .price { font-size: 34px; }
    .catalog-product-view .srg-buybox fieldset > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; margin: -6px -2px; }
    .catalog-product-view .srg-buybox fieldset[class*="srg-option"] > div,
    .catalog-product-view .srg-buybox fieldset > div:has(.swatch-option[data-swatch-type="visual"]) { flex-wrap: wrap; overflow: visible; }
    .catalog-product-view .srg-tiers__hint { display: none; }
    .catalog-product-view .srg-tier { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 60px; padding: 0 12px; font-size: 14px; }
    .catalog-product-view .srg-buybox__panel { padding: 16px; }
    .catalog-product-view .srg-buybox__actions { grid-template-columns: 1fr; }
    .catalog-product-view .srg-buybox__actions #product-addtocart-button { display: none; }
    .catalog-product-view .srg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .catalog-product-view .srg-pdp-sections { gap: 0; padding-top: 0; border-top: 1px solid var(--pdp-line); }
    .catalog-product-view .srg-sec { border-bottom: 1px solid var(--pdp-line); }
    .catalog-product-view .srg-sec__summary { --pdp-i: var(--pdp-i-chev); min-height: 56px; cursor: pointer; }
    .catalog-product-view .srg-sec__summary::after { transition: transform .15s; }
    .catalog-product-view .srg-sec[open] > .srg-sec__summary::after { transform: rotate(180deg); }
    .catalog-product-view .srg-sec__title { margin: 0; font-size: 18px; }
    .catalog-product-view .srg-sec__body { padding-bottom: 20px; }
    .catalog-product-view .srg-sec--print { border-bottom: 0; padding: 20px 0; }
    .catalog-product-view .srg-sec--print > .srg-sec__summary { display: none; }
    .catalog-product-view .srg-sec--print .srg-sec__body { padding: 0; }
    .catalog-product-view .srg-sec--plain { padding: 20px 0; }
    .catalog-product-view .srg-desc { grid-template-columns: 1fr; gap: 20px; }
    .catalog-product-view .srg-desc__text { font-size: 16px; }
    .catalog-product-view .srg-benefits { grid-template-columns: 1fr; }
    .catalog-product-view .srg-specs { grid-template-columns: 1fr; gap: 12px; }
    .catalog-product-view .srg-print__text { padding: 24px 20px; }
    .catalog-product-view .srg-print__title { font-size: 24px; }
    .catalog-product-view .srg-print__art { min-height: 160px; }
    .catalog-product-view .srg-safety { grid-template-columns: 1fr; gap: 24px; }
    .catalog-product-view .srg-rail__grid { grid-template-columns: 1fr; gap: 10px; }

    .catalog-product-view .srg-mbar {
        position: fixed;
        z-index: 40;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--pdp-line);
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 30, 60, .12);
    }
    /* Cookiebot's floating button would cover the order bar */
    .catalog-product-view #CookiebotWidget:not(.CookiebotWidget-open) { bottom: 88px !important; }
    .catalog-product-view .srg-mbar__sum { display: flex; flex-direction: column; min-width: 0; }
    .catalog-product-view .srg-mbar__sum strong { font: 700 22px/1.1 var(--pdp-head); color: var(--pdp-text); }
    .catalog-product-view .srg-mbar__sum span { font-size: 12px; line-height: 1.3; color: var(--pdp-muted); white-space: normal; }
    .catalog-product-view .srg-mbar__btn {
        --pdp-i: var(--pdp-i-cart);
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 52px;
        padding: 0 20px;
        border: 0;
        border-radius: 8px;
        background: var(--pdp-navy);
        color: #fff;
        font: 600 16px var(--pdp-body);
        cursor: pointer;
    }
    .catalog-product-view .srg-mbar__btn::before {
        content: "";
        width: 20px;
        height: 20px;
        background: currentColor;
        -webkit-mask: var(--pdp-i-cart) center / contain no-repeat;
        mask: var(--pdp-i-cart) center / contain no-repeat;
    }
}
