/* Public catalogue. All theming goes through the --pc-* custom properties set per distributor. */
:root {
    --pc-primary: #1f6feb; --pc-bg: #fff; --pc-text: #1f2328; --pc-card: #fff;
    --pc-font: system-ui, sans-serif; --pc-radius: 8px; --pc-cols: 4;
    --pc-border: color-mix(in srgb, var(--pc-text) 14%, transparent);
    --pc-muted: color-mix(in srgb, var(--pc-text) 60%, transparent);
    --pc-soft: color-mix(in srgb, var(--pc-text) 5%, var(--pc-bg));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--pc-bg); color: var(--pc-text); font-family: var(--pc-font); font-size: 15px; line-height: 1.45; }
a { color: var(--pc-primary); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.pc-root { max-width: 1400px; margin: 0 auto; padding: 16px; }
.pc-muted { color: var(--pc-muted); }
.pc-small { font-size: .85em; }
.pc-error { color: #c62828; }
.pc-pre { white-space: pre-line; }

.pc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pc-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.pc-title { margin: 0; font-size: 1.6rem; }

.pc-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.pc-search { display: flex; flex: 1 1 320px; gap: 8px; }
.pc-search input, .pc-input, .pc-qty, select {
    font: inherit; color: var(--pc-text); background: var(--pc-card); border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius); padding: 8px 12px; min-width: 0;
}
.pc-search input { flex: 1; }
input:focus, select:focus, textarea:focus, .pc-btn:focus-visible { outline: 2px solid var(--pc-primary); outline-offset: 1px; }

.pc-btn {
    font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
    padding: 8px 16px; border-radius: var(--pc-radius); border: 1px solid var(--pc-primary); background: var(--pc-primary); color: #fff; white-space: nowrap;
}
.pc-btn:hover { filter: brightness(1.08); }
.pc-btn:disabled { opacity: .5; cursor: default; }
.pc-btn-ghost { background: transparent; color: var(--pc-primary); }
.pc-btn-primary { font-weight: 600; }
.pc-cart-btn .pc-badge { background: #fff; color: var(--pc-primary); border-radius: 999px; padding: 0 7px; font-size: .8em; font-weight: 700; }

/* list */
.pc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.pc-cats-title { font-weight: 600; margin-bottom: 8px; }
.pc-cat-list { list-style: none; margin: 0; padding: 0; }
.pc-cat-list a { display: block; padding: 4px 8px; border-radius: var(--pc-radius); color: var(--pc-text); text-decoration: none; }
.pc-cat-list a:hover { background: var(--pc-soft); }
.pc-cat-list a.active { background: var(--pc-primary); color: #fff; }
.pc-cat-list a.active .pc-muted { color: inherit; opacity: .8; }
.pc-cat-select { display: none; width: 100%; }
.pc-listbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pc-grid { display: grid; grid-template-columns: repeat(var(--pc-cols), minmax(0, 1fr)); gap: 16px; }
.pc-card {
    display: flex; flex-direction: column; background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
    overflow: hidden; color: var(--pc-text); text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.pc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.pc-card-img { position: relative; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pc-card-img img { width: 100%; height: 100%; object-fit: contain; }
.pc-card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-card-name { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-card-price { margin-top: auto; font-weight: 600; }
.pc-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.pc-empty { padding: 40px 0; text-align: center; }
.pc-img-missing { visibility: hidden; }
div.pc-img-missing { visibility: visible; width: 100%; height: 100%; background: var(--pc-soft); }

/* product */
.pc-back { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.pc-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.pc-main-img-wrap { position: relative; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-main-img { width: 100%; height: 100%; object-fit: contain; }
.pc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pc-thumb { width: 64px; height: 64px; padding: 4px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); cursor: pointer; }
.pc-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* zoom: magnifier on the product image, full-screen viewer */
.pc-zoomable { cursor: zoom-in; }
.pc-main-img-wrap:has(.pc-img-missing) { cursor: default; }
.pc-zoom-open { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; padding: 8px; display: flex; align-items: center; justify-content: center;
    color: #222; background: rgba(255, 255, 255, .92); border: 1px solid var(--pc-border); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.pc-zoom-open:hover, .pc-zoom-open:focus-visible { color: var(--pc-primary); border-color: var(--pc-primary); }
.pc-zoom-open svg { width: 100%; height: 100%; }
.pc-main-img.pc-img-missing ~ .pc-zoom-open { display: none; }
.pc-zoom { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: rgba(15, 15, 15, .92); touch-action: none; user-select: none; cursor: zoom-in; outline: none; }
.pc-zoom.pc-zoomed { cursor: grab; }
.pc-zoom.pc-zoomed:active { cursor: grabbing; }
.pc-zoom-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; will-change: transform; }
.pc-zoom-img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.pc-zoom-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.pc-zoom-btn { width: 40px; height: 40px; font: inherit; font-size: 1.25rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; }
.pc-zoom-btn:hover, .pc-zoom-btn:focus-visible { background: rgba(0, 0, 0, .8); border-color: #fff; }
.pc-zoom-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 32px); text-align: center;
    color: rgba(255, 255, 255, .8); font-size: .85rem; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
@media (max-width: 600px) { .pc-zoom-hint { display: none; } }
.pc-product-name { margin: 0 0 16px; font-size: 1.5rem; }
.pc-label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9em; margin-bottom: 6px; }
.pc-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pc-variant { font: inherit; font-size: .9em; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer; background: var(--pc-card); color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); }
.pc-variant.active { border-color: var(--pc-primary); box-shadow: 0 0 0 1px var(--pc-primary); }
.pc-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--pc-border); }
.pc-buy { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pc-qty { width: 120px; }
.pc-price { font-size: 1.4rem; }
.pc-add { margin: 12px 0; width: 100%; max-width: 360px; padding: 12px; }
.pc-added { color: #2e7d32; margin-bottom: 12px; }
.pc-tiers { border-collapse: collapse; margin: 8px 0; min-width: 240px; }
.pc-tiers caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.pc-tiers th, .pc-tiers td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--pc-border); }
.pc-desc { margin-top: 24px; max-width: 900px; }
.pc-specs h3 { margin-bottom: 8px; }
.pc-specs dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.pc-specs dt { color: var(--pc-muted); }
.pc-specs dd { margin: 0; }

/* cart */
.pc-cart { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pc-cart-row { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; padding: 12px; background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); }
.pc-cart-img { width: 80px; height: 80px; background: #fff; border-radius: var(--pc-radius); display: block; }
.pc-cart-img img { width: 100%; height: 100%; object-fit: contain; }
.pc-cart-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-cart-name { font-weight: 600; color: var(--pc-text); text-decoration: none; }
.pc-cart-qty { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pc-cart-price { font-size: .85em; color: var(--pc-muted); }
.pc-remove { padding: 6px 10px; }
.pc-offer-form { max-width: 720px; background: var(--pc-soft); padding: 20px; border-radius: var(--pc-radius); }
.pc-offer-form h3 { margin-top: 0; }
.pc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: .9em; }
.pc-field .pc-input { font-size: 1rem; }
.pc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.pc-form-status { margin-top: 10px; }
.pc-done { text-align: center; padding: 48px 16px; }

/* filters */
.pc-cats { display: flex; flex-direction: column; gap: 18px; }
.pc-filters { display: flex; flex-direction: column; }
.pc-filters > summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--pc-border); }
.pc-filters > summary::-webkit-details-marker { display: none; }
.pc-filters > summary::after { content: "▾"; margin-left: auto; color: var(--pc-muted); }
.pc-filters:not([open]) > summary::after { content: "▸"; }
.pc-filter-group { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pc-filter-group select { width: 100%; }
.pc-cats > .pc-filter-group:first-child { margin-top: 0; }
.pc-price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.pc-price-range .pc-input { width: 100%; padding: 6px 8px; }
.pc-price-range .pc-btn { grid-column: 1 / -1; padding: 5px 10px; }
.pc-colour-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-colour {
    font: inherit; font-size: .85em; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; cursor: pointer;
    background: var(--pc-card); color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: 999px;
}
.pc-colour.active { border-color: var(--pc-primary); box-shadow: 0 0 0 1px var(--pc-primary); font-weight: 600; }
.pc-badge-inline { background: var(--pc-primary); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75em; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pc-chip {
    font: inherit; font-size: .85em; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 3px 10px;
    border-radius: 999px; border: 1px solid var(--pc-primary); background: color-mix(in srgb, var(--pc-primary) 8%, var(--pc-card)); color: var(--pc-text);
}
.pc-chip-clear { border-color: var(--pc-border); background: transparent; color: var(--pc-muted); }
.pc-chip .pc-swatch, .pc-colour .pc-swatch { width: 14px; height: 14px; }
.pc-card-colours { display: flex; gap: 3px; }
.pc-card-colours { flex-wrap: wrap; margin: 2px -2px; }
.pc-card-colours .pc-swatch { width: 14px; height: 14px; margin: 2px; box-sizing: border-box; transition: transform .12s, box-shadow .12s; }
.pc-card-colours .pc-swatch-link { cursor: pointer; }
.pc-card-colours .pc-swatch-link:hover, .pc-card-colours .pc-swatch.active { transform: scale(1.2); box-shadow: 0 0 0 2px var(--pc-card, #fff), 0 0 0 3px var(--pc-text, #1f2328); }

/* decoration */
.pc-decoration { background: var(--pc-soft); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 12px; margin-bottom: 16px; }
.pc-decoration-title { font-weight: 600; margin-bottom: 8px; }
.pc-decoration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-decoration select { width: 100%; font-weight: normal; }
.pc-imprint-img:not(:empty) { margin-top: 8px; width: 120px; height: 120px; background: #fff; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); padding: 4px; }
.pc-imprint-img img { width: 100%; height: 100%; object-fit: contain; }
.pc-est { margin: 6px 0 2px; min-width: 240px; }
.pc-est-row { display: flex; justify-content: space-between; gap: 16px; color: var(--pc-muted); }
.pc-cart-imprint { color: var(--pc-muted); }
.pc-cart-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: -16px 0 24px; padding: 12px; }
.pc-cart-total > div:first-child { display: flex; gap: 16px; font-size: 1.1em; }
.pc-cart-price { text-align: right; }

/* share cart */
.pc-share { max-width: 720px; margin: -8px 0 24px; }
.pc-share-panel { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pc-share-panel p { margin: 0; }
.pc-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-share-row .pc-input { flex: 1 1 260px; min-width: 0; font-size: .9em; }
.pc-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* search suggestions */
.pc-search { position: relative; }
.pc-suggest {
    position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 70vh; overflow: auto;
    background: var(--pc-card); color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 6px;
}
.pc-suggest-head { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: var(--pc-muted); padding: 8px 8px 2px; }
.pc-suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: calc(var(--pc-radius) * .6); color: var(--pc-text); text-decoration: none; }
.pc-suggest a:hover, .pc-suggest a.active { background: var(--pc-soft); }
.pc-suggest-img { width: 40px; height: 40px; flex: none; background: #fff; border-radius: 4px; }
.pc-suggest-img img, .pc-suggest-img div { width: 100%; height: 100%; object-fit: contain; }
.pc-suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-suggest-all { border-top: 1px solid var(--pc-border); margin-top: 4px; color: var(--pc-primary) !important; font-weight: 600; }

/* search helper wizard: one question per screen, a numbered progress bar and a button row (back · results · next) */
.pc-helper { max-width: 860px; margin: 0 auto; }
.pc-helper > h2 { margin: 6px 0 4px; font-size: 1.5rem; text-align: center; }
.pc-helper > p { margin: 0 0 22px; text-align: center; }
.pc-wizard-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pc-wizard-bar button {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 2px 10px; cursor: pointer;
    border: 0; border-bottom: 4px solid var(--pc-border); background: none; color: var(--pc-muted); font: inherit; font-size: .84rem;
}
.pc-wizard-bar b { display: grid; place-items: center; position: relative; width: 32px; height: 32px; border: 2px solid var(--pc-border); border-radius: 50%; font-size: .86rem; }
.pc-wizard-bar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-wizard-bar .current button { border-bottom-color: var(--pc-primary); color: var(--pc-text); font-weight: 700; }
.pc-wizard-bar .current b { border-color: var(--pc-primary); background: var(--pc-primary); color: #fff; }
.pc-wizard-bar .done button { border-bottom-color: var(--pc-primary); }
.pc-wizard-bar .done b { border-color: var(--pc-primary); color: transparent; }
.pc-wizard-bar .done b::after { content: "✓"; position: absolute; color: var(--pc-primary); font-size: 1rem; }

.pc-helper-step { min-height: 270px; padding: 24px; background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); animation: pc-step-in .22s ease-out; }
@keyframes pc-step-in { from { opacity: 0; transform: translateX(14px); } }
.pc-helper-step h3 { margin: 0 0 18px; font-size: 1.2rem; outline: 0; }
.pc-helper-step > .pc-input { width: 100%; margin-top: 18px; }
.pc-helper .pc-input { padding: 12px 14px; font-size: 1rem; }

.pc-helper-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pc-option {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 12px; cursor: pointer;
    font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3; text-align: center;
    background: var(--pc-card); color: var(--pc-text); border: 2px solid var(--pc-border); border-radius: var(--pc-radius); transition: border-color .12s, transform .12s;
}
.pc-option:hover { border-color: var(--pc-primary); transform: translateY(-2px); }
.pc-option.active { background: var(--pc-primary); border-color: var(--pc-primary); color: #fff; font-weight: 700; }
.pc-option.active::after { content: "✓"; position: absolute; top: 6px; right: 9px; font-size: .9rem; font-weight: 800; }
.pc-helper-icons .pc-option { flex-direction: column; min-height: 104px; font-size: .86rem; }
.pc-option-icon { font-size: 1.9rem; line-height: 1; }
.pc-helper-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.pc-helper-row > .pc-helper-options { width: 100%; }
.pc-helper-row .pc-input:not(.pc-qty) { width: 120px; }
.pc-helper .pc-qty { width: 180px; }

/* eco as a switch, colours as tiles */
.pc-check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 10px; }
.pc-check input { width: 18px; height: 18px; accent-color: var(--pc-primary); }
.pc-helper .pc-check { flex-direction: row-reverse; justify-content: space-between; margin: 0 0 20px; padding: 14px 16px; border: 2px solid var(--pc-border); border-radius: var(--pc-radius); font-weight: 600; }
.pc-helper .pc-check input { appearance: none; flex: none; position: relative; width: 44px; height: 25px; margin: 0; border-radius: 999px; background: var(--pc-border); cursor: pointer; }
.pc-helper .pc-check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: translate .15s; }
.pc-helper .pc-check input:checked { background: var(--pc-primary); }
.pc-helper .pc-check input:checked::after { translate: 19px 0; }
.pc-helper .pc-colour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pc-helper .pc-colour { justify-content: flex-start; gap: 10px; padding: 9px 12px; border: 2px solid var(--pc-border); border-radius: var(--pc-radius); font-size: .88rem; }
.pc-helper .pc-colour .pc-swatch { width: 20px; height: 20px; }
.pc-helper .pc-colour.active { border-color: var(--pc-primary); box-shadow: none; font-weight: 700; }

/* button row: back on the left, results and next on the right; on the last step results is the main action */
.pc-helper-footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; margin-top: 14px; }
.pc-wizard-prev { grid-column: 1; }
.pc-wizard-prev:disabled { visibility: hidden; }
.pc-helper-go { grid-column: 3; grid-row: 1; padding: 12px 20px; background: transparent; color: var(--pc-primary); border-width: 2px; }
.pc-wizard-next { grid-column: 4; grid-row: 1; padding: 12px 20px; }
.pc-helper-last .pc-helper-go { grid-column: 3 / 5; background: var(--pc-primary); color: #fff; font-size: 1.05rem; }
.pc-helper-reset { grid-column: 1 / -1; grid-row: 2; justify-self: center; color: var(--pc-muted); font-size: .84rem; }

@media (max-width: 600px) {
    .pc-helper-step { min-height: 0; padding: 16px; }
    .pc-helper-options, .pc-helper .pc-colour-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-wizard-bar span { font-size: .72rem; }
    .pc-helper-footer { grid-template-columns: 1fr 1fr; }
    .pc-helper-go, .pc-helper-last .pc-helper-go { grid-column: 1 / -1; grid-row: 1; }
    .pc-wizard-prev { grid-column: 1; grid-row: 2; }
    .pc-wizard-next { grid-column: 2; grid-row: 2; }
    .pc-helper-last .pc-wizard-prev { grid-column: 1 / -1; }
    .pc-helper-reset { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .pc-helper * { animation: none !important; transition: none !important; } }

/* package creator */
.pc-package-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -8px 0 18px; padding: 10px 14px;
    background: color-mix(in srgb, var(--pc-primary) 8%, var(--pc-card)); border: 1px solid color-mix(in srgb, var(--pc-primary) 35%, transparent);
    border-radius: var(--pc-radius); position: sticky; top: 0; z-index: 10;
}
.pc-pkg-main { flex: 1 1 320px; }
.pc-pkg-actions { display: flex; gap: 6px; }
.pc-pkg-actions .pc-btn { padding: 5px 12px; }
.pc-pkg-progress { flex: 1 1 100%; order: 2; height: 6px; border-radius: 999px; background: var(--pc-border); overflow: hidden; }
.pc-pkg-progress > span { display: block; height: 100%; background: var(--pc-primary); transition: width .3s; }
.pc-pkg-progress.pc-pkg-over > span { background: #c62828; }
.pc-fits { color: #2e7d32; }
.pc-pkg-start { max-width: 560px; margin: 0 auto; }
.pc-pkg-form { background: var(--pc-soft); padding: 16px; border-radius: var(--pc-radius); margin-top: 8px; }
.pc-pkg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pc-pkg-summary { background: var(--pc-card); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 70px; }
.pc-pkg-summary .pc-pkg-progress { flex: none; order: 0; }
.pc-pkg-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2em; }
.pc-pkg-buttons { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.pc-pkg-buttons .pc-btn { width: 100%; justify-content: center; white-space: normal; }
.pc-pkg-main-action { padding: 14px 18px; font-size: 1.02rem; font-weight: 700; }
.pc-pkg-main-action::after { content: " →"; }
.pc-pkg-stop {
    display: inline-flex; align-items: center; gap: 7px; align-self: center; padding: 6px 8px; cursor: pointer;
    border: 0; background: none; color: var(--pc-muted); font: inherit; font-size: .82rem; text-decoration: underline;
}
.pc-pkg-stop::before {
    content: ""; width: 14px; height: 14px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pc-pkg-stop:hover { color: #c62828; }
.pc-pkg-edit { padding-top: 10px; border-top: 1px solid var(--pc-border); }
.pc-pkg-edit summary { cursor: pointer; color: var(--pc-text); font-size: .86rem; }
.pc-pkg-edit .pc-pkg-form .pc-form-grid { grid-template-columns: 1fr; }
.pc-card { position: relative; }
.pc-quick-add { margin-top: 6px; padding: 5px 10px; font-size: .85em; align-self: flex-start; }
.pc-card.pc-over { opacity: .55; }
/* the distributor's recommended products */
.pc-rec-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--pc-primary); color: #fff; font-size: .75em; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pc-rec-inline { position: static; display: inline-block; margin-bottom: 6px; }
.pc-over-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: #c62828; color: #fff; font-size: .75em; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pc-chip-package { border-color: var(--pc-primary); font-weight: 600; }
.pc-add-package { margin-top: 0; }

/* ---------- layout style ----------
   Shapes, spacing and alignment only; every colour still comes from the distributor's --pc-* settings.
   All roundings follow --pc-radius, so a distributor who sets it to 0 still gets square corners. */
:root {
    --pc-r-pill: calc(var(--pc-radius) * 100);
    --pc-r-block: calc(var(--pc-radius) * 2.5);
    --pc-r-field: calc(var(--pc-radius) * 1.5);
    --pc-r-item: calc(var(--pc-radius) * 1.25);
}
html, body { line-height: 1.5; }

/* search bar and buttons */
.pc-toolbar { gap: 8px; margin-bottom: 22px; }
.pc-search input { padding: 12px 20px; border-color: transparent; border-radius: var(--pc-r-pill); background: var(--pc-soft); }
.pc-search input:focus { background: var(--pc-card); }
.pc-btn { padding: 10px 18px; border-radius: var(--pc-r-pill); font-weight: 600; font-size: .9rem; transition: transform .15s, filter .15s; }
.pc-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pc-suggest { border-radius: var(--pc-r-block); }
select, .pc-input, .pc-qty { border-radius: var(--pc-r-field); padding: 9px 12px; }

/* sidebar: categories and filters each in their own block, counts aligned right */
.pc-layout { grid-template-columns: 250px 1fr; gap: 20px; }
.pc-cats { gap: 14px; }
.pc-cats > .pc-filter-group:first-child, .pc-filters { padding: 16px; border: 1px solid var(--pc-border); border-radius: var(--pc-r-block); }
.pc-cats-title, .pc-filters > summary { margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.pc-cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px; border-radius: var(--pc-r-item); font-size: .92rem; line-height: 1.35; transition: background .12s; }
.pc-cat-list a .pc-muted { flex: none; font-size: .8rem; font-variant-numeric: tabular-nums; }
.pc-cat-list a.active { font-weight: 600; }

.pc-filters > summary { padding: 0; border: 0; }
.pc-filters > summary::after { content: "−"; font-size: 1.2rem; }
.pc-filters:not([open]) > summary::after { content: "+"; }
.pc-filters .pc-filter-group { gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pc-border); }
.pc-filter-group select { background: var(--pc-soft); border-color: transparent; font-size: .9rem; cursor: pointer; }
.pc-price-range .pc-input { padding: 9px 12px; background: var(--pc-soft); border-color: transparent; font-size: .9rem; }
.pc-price-range .pc-btn { padding: 8px; }

/* colours as round swatches; the name shows on hover and stays readable for screen readers */
.pc-filters .pc-colour-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pc-filters .pc-colour { position: relative; justify-content: center; width: 30px; height: 30px; padding: 0; border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.pc-filters .pc-colour:hover { transform: scale(1.12); }
.pc-filters .pc-colour .pc-swatch { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pc-filters .pc-colour > span:not(.pc-swatch) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pc-filters .pc-colour.active { border-color: var(--pc-primary); box-shadow: 0 0 0 2px var(--pc-primary); }

/* sustainable: a switch on one line */
.pc-filters .pc-filter-group.pc-check { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0; font-size: .92rem; font-weight: 500; }
.pc-filters .pc-check input { appearance: none; flex: none; position: relative; width: 40px; height: 23px; margin: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--pc-text) 22%, var(--pc-bg)); cursor: pointer; transition: background .15s; }
.pc-filters .pc-check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: translate .15s; }
.pc-filters .pc-check input:checked { background: var(--pc-primary); }
.pc-filters .pc-check input:checked::after { translate: 17px 0; }

/* product cards */
.pc-listbar select { border-radius: var(--pc-r-pill); padding: 9px 16px; }
.pc-card { border-radius: var(--pc-r-block); transition: box-shadow .2s, transform .2s, border-color .2s; }
.pc-card:hover { border-color: var(--pc-primary); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .4); transform: translateY(-4px); }
.pc-card-img { padding: 20px; }
.pc-card-img img { transition: transform .3s; }
.pc-card:hover .pc-card-img img { transform: scale(1.05); }
.pc-card-body { gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--pc-soft); }
.pc-card-name { font-size: .92rem; font-weight: 500; line-height: 1.4; }
.pc-card-price { color: var(--pc-primary); font-size: 1.05rem; font-weight: 700; }
.pc-card-price .pc-muted { font-size: .8rem; font-weight: 400; }
.pc-pager { margin-top: 34px; }

/* product page */
.pc-back { padding: 8px 16px; border-radius: var(--pc-r-pill); background: var(--pc-soft); color: var(--pc-text); font-size: .86rem; font-weight: 600; }
.pc-product { gap: 40px; }
.pc-main-img-wrap { border-radius: calc(var(--pc-radius) * 3); }
.pc-thumb { width: 72px; height: 72px; border-radius: var(--pc-r-field); }
.pc-thumb:hover { border-color: var(--pc-primary); }
.pc-product-name { font-size: 1.85rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.pc-variant { border-radius: var(--pc-r-pill); padding: 7px 14px; }
.pc-decoration { padding: 18px; border: 0; border-radius: var(--pc-r-block); }
.pc-price { color: var(--pc-primary); font-size: 1.75rem; }
.pc-add { max-width: none; padding: 14px; font-size: 1rem; }
.pc-tiers { width: 100%; }
.pc-tiers th, .pc-tiers td { padding: 9px 12px 9px 0; }

/* helper, package and quote basket */
.pc-helper-step, .pc-pkg-summary, .pc-pkg-form { border-radius: var(--pc-r-block); }
.pc-cart-row { border-radius: calc(var(--pc-radius) * 2.25); }
.pc-offer-form { padding: 28px; border-radius: calc(var(--pc-radius) * 2.75); }

@media (max-width: 1000px) { .pc-layout { grid-template-columns: 220px 1fr; } }
@media (max-width: 760px) {
    .pc-search { flex-basis: 100%; min-width: 0; }
    .pc-cats > .pc-filter-group:first-child { padding: 0; border: 0; }
    .pc-filters { padding: 12px 16px; }
    .pc-card-img { padding: 12px; }
    .pc-card-body { padding: 10px 12px 14px; }
    .pc-card-name { font-size: .88rem; }
    .pc-product-name { font-size: 1.4rem; }
}

@media (max-width: 1000px) { .pc-grid { grid-template-columns: repeat(min(var(--pc-cols), 3), minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .pc-layout { grid-template-columns: 1fr; }
    .pc-cat-list, .pc-cats > .pc-filter-group:first-child .pc-cats-title { display: none; }
    .pc-cat-select { display: block; }
    .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pc-product { grid-template-columns: 1fr; gap: 16px; }
    .pc-form-grid, .pc-decoration-grid { grid-template-columns: 1fr; }
    .pc-pkg-layout { grid-template-columns: 1fr; }
    .pc-pkg-summary { position: static; }
    .pc-package-bar { margin-top: 0; }
    .pc-cats { gap: 8px; }
    .pc-cart-row { grid-template-columns: 64px 1fr auto; }
    .pc-cart-img { width: 64px; height: 64px; }
    .pc-cart-qty { grid-column: 2; align-items: flex-start; }
}

/* logo preview: the print area on the main image, with the customer's logo in it */
.pc-logo-area { position: absolute; box-sizing: border-box; border: 2px dashed var(--pc-primary); background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pc-logo-area.pc-logo-filled { border-color: transparent; background: none; }
.pc-logo-area.pc-logo-ellipse { border-radius: 50%; }
.pc-logo-area.pc-logo-ellipse .pc-logo-img { max-width: 72%; max-height: 72%; }
.pc-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-logo-engrave .pc-logo-img { filter: grayscale(1) contrast(.7) brightness(.85); opacity: .6; }
.pc-logo-row { margin-top: 10px; }
.pc-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* logo preview on the overview: toolbar button, invitation strip */
.pc-logo-tool { display: inline-flex; gap: 4px; align-items: center; }
.pc-logo-tool-btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-logo-tool-img { height: 22px; max-width: 60px; object-fit: contain; background: #fff; border-radius: 4px; }
.pc-logo-tool-x { padding-left: 10px; padding-right: 10px; }
.pc-logo-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--pc-soft); border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius); padding: 10px 14px; margin-bottom: 14px; }
.pc-logo-strip > span { flex: 1 1 240px; }
.pc-logo-strip .pc-logo-tool-img { height: 32px; max-width: 90px; }
.pc-logo-strip-x { border: 0; background: none; cursor: pointer; font-size: 1rem; color: inherit; opacity: .6; padding: 4px 6px; }
.pc-logo-strip-x:hover { opacity: 1; }

/* Logo editor */
.pc-le { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 15, 15, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-le-box { background: var(--pc-bg); color: var(--pc-text); border-radius: var(--pc-radius); width: min(860px, 100%); max-height: 100%; overflow: auto;
    display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-family: var(--pc-font); }
.pc-le-head, .pc-le-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.pc-le-head { justify-content: space-between; border-bottom: 1px solid var(--pc-border); }
.pc-le-foot { border-top: 1px solid var(--pc-border); flex-wrap: wrap; }
.pc-le-spacer { flex: 1; }
.pc-le-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; padding: 16px; }
@media (max-width: 680px) { .pc-le-body { grid-template-columns: 1fr; } }
.pc-le-stage { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pc-le-view { height: min(52vh, 420px); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); display: flex; align-items: center; justify-content: center;
    padding: 12px; box-sizing: border-box; cursor: crosshair; }
.pc-le-canvas { max-width: 100%; max-height: 100%; display: block; }
.pc-le-bg-checker { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.pc-le-bg-light { background: #fff; }
.pc-le-bg-dark { background: #222; }
.pc-le-bgs { display: flex; gap: 6px; justify-content: center; }
.pc-le-bg { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pc-border); cursor: pointer; padding: 0; }
.pc-le-tools { display: flex; flex-direction: column; gap: 10px; }
.pc-le-row { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-le-icon { width: 42px; height: 38px; padding: 0; font-size: 1.2rem; border: 1px solid var(--pc-border); }
.pc-le-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pc-le-sub { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.pc-le-range { display: flex; align-items: center; gap: 8px; }
.pc-le-range > span { min-width: 80px; font-size: .9em; }
.pc-le-range input[type=range], .pc-le-range select { flex: 1; min-width: 0; }
.pc-le-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-le-pick { width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--pc-border); padding: 0; cursor: pointer; font-size: .9rem; line-height: 1;
    color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
