/* ==========================================================================
   /predesign-templates-product (DesignIdeas/templates-product.html.twig):
   title, filter bar (Product / Theme pickers: dropdown panels on desktop,
   bottom sheets on phones), theme chips, design grid, "Load more".
   One file for every site: Wrist-Band and the other tenants use the default
   tokens, Swagprint switches palette with .pt-swag on .pt-page.
   ========================================================================== */
/* Brand tokens: Wrist-Band (and the other tenants) by default, Swagprint via .pt-swag. */
.pt-page{ --pt-ink:#091D4F; --pt-text:#1A2330; --pt-muted:#5A6575; --pt-line:#E4E9F0; --pt-field:#C9D3E0; --pt-frame:#DDE3EB;
          --pt-tint:#E8F0FE; --pt-side:#F5F7FA; --pt-bg:#F7F8FA; --pt-box:#8FA3BC; --pt-accent:#004CBE; --pt-media:#f4f5f7;
          --pt-cta:#004CBE; --pt-cta-ink:#fff; --pt-price:#009DFE; padding:32px 0 64px; background:var(--pt-bg); }
.pt-page.pt-swag{ --pt-ink:#202C3A; --pt-tint:#eefaff; --pt-accent:#0a8fc4; --pt-cta:#2DC7FF; --pt-cta-ink:#202C3A; --pt-price:#202C3A; }

/* Title */
.pt-head{ margin:0 0 16px; }
.pt-title{ margin:0 0 6px; font-size:32px; font-weight:700; line-height:1.2; color:var(--pt-ink); }
.pt-sub{ margin:0; font-size:16px; color:var(--pt-muted); }

/* Filter bar */
.pt-filters{ position:relative; z-index:5; display:flex; gap:12px; margin:0 0 16px; padding:14px 16px; border:1px solid var(--pt-frame); border-radius:14px; background:#fff; box-shadow:0 2px 10px rgba(0,51,102,.06); }
.pt-fbtn{ display:flex; align-items:center; gap:10px; min-width:0; min-height:56px; margin:0; padding:6px 16px; border:1px solid var(--pt-field); border-radius:10px; background:#fff; text-align:left; color:var(--pt-text); cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.pt-fbtn:hover{ border-color:var(--pt-ink); }
.pt-fbtn.is-open{ border-color:var(--pt-ink); box-shadow:inset 0 0 0 1px var(--pt-ink); }
.pt-fbtn:focus-visible{ outline:2px solid var(--pt-accent); outline-offset:2px; }
.pt-fbtn-prod{ flex:1.4 1 0; gap:12px; padding-left:8px; }
.pt-fbtn-theme{ flex:1 1 0; }
.pt-fbtn-ico{ flex:none; display:flex; align-items:center; justify-content:center; width:40px; height:40px; overflow:hidden; border-radius:8px; background:var(--pt-tint); color:var(--pt-ink); }
.pt-fbtn-ico img{ width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.pt-fbtn-txt{ flex:1; min-width:0; display:flex; flex-direction:column; }
.pt-fbtn-label{ font-size:11px; font-weight:600; line-height:1.5; letter-spacing:.06em; text-transform:uppercase; color:var(--pt-muted); }
.pt-fbtn-val{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:15px; font-weight:600; line-height:1.4; color:var(--pt-text); }
.pt-fbtn-count{ flex:none; display:flex; align-items:center; justify-content:center; min-width:24px; height:24px; padding:0 6px; border-radius:12px; background:var(--pt-ink); font-size:12px; font-weight:700; color:#fff; }
.pt-chev{ flex:none; color:var(--pt-ink); transition:transform .15s; }
.pt-fbtn.is-open .pt-chev{ transform:rotate(180deg); }

/* Picker panels (desktop: dropdowns under the bar) */
.pt-panel{ position:absolute; top:calc(100% + 6px); z-index:10; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--pt-frame); border-radius:14px; background:#fff; box-shadow:0 16px 40px rgba(0,30,60,.18); }
.pt-panel[hidden]{ display:none; }
.pt-panel-prod{ left:0; width:min(820px, 100%); }
.pt-panel-theme{ right:0; width:min(520px, 100%); }
.pt-panel-theme.is-grouped{ width:min(820px, 100%); }   /* types on the left, as the product picker */
.pt-panel .pt-miss{ display:none !important; }   /* search: not a match */
.pt-sheet-head{ display:none; }
.pt-panel-search{ padding:14px 16px; border-bottom:1px solid var(--pt-line); }
.pt-search{ display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:0 14px; border:1px solid var(--pt-field); border-radius:10px; background:var(--pt-bg); color:var(--pt-muted); cursor:text; }
.pt-search:focus-within{ border-color:var(--pt-ink); background:#fff; }
.pt-search input{ flex:1; min-width:0; height:42px; margin:0; padding:0; border:0; border-radius:0; outline:0; background:transparent; box-shadow:none; font-size:15px; color:var(--pt-text); }
.pt-nomatch{ margin:24px 0; text-align:center; font-size:14px; color:var(--pt-muted); }
.pt-link{ display:inline-flex; align-items:center; min-height:44px; margin:0; padding:0 12px; border:0; background:none; font-size:14px; font-weight:600; color:var(--pt-ink); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.pt-link:hover{ color:var(--pt-ink); text-decoration-thickness:2px; }
.pt-panel-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--pt-line); background:#fff; }
.pt-apply{ min-height:44px; margin:0; padding:0 22px; border:0; border-radius:10px; background:var(--pt-ink); font-size:14px; font-weight:600; color:#fff; cursor:pointer; }
.pt-apply:hover{ opacity:.9; }
.pt-close:focus-visible, .pt-link:focus-visible, .pt-apply:focus-visible, .pt-pnav-btn:focus-visible, .pt-prow:focus-visible, .pt-topt:focus-visible, .pt-quick-chip:focus-visible, .pt-chip:focus-visible{ outline:2px solid var(--pt-accent); outline-offset:2px; }

/* Product picker: categories left, the open category's products right */
.pt-pbody{ display:flex; height:360px; }
.pt-pnav{ flex:none; display:flex; flex-direction:column; gap:2px; width:240px; overflow-y:auto; padding:10px; border-right:1px solid var(--pt-line); background:var(--pt-side); }
.pt-pnav-btn{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:40px; margin:0; padding:0 12px; border:0; border-radius:8px; background:transparent; font-size:14px; font-weight:600; color:var(--pt-text); text-align:left; cursor:pointer; }
.pt-pnav-btn span{ color:inherit; }
.pt-pnav-btn:hover{ background:rgba(9,29,79,.06); }
.pt-pnav-btn.active, .pt-pnav-btn.active:hover{ background:var(--pt-ink); color:#fff; }
.is-searching .pt-pnav-btn.active{ background:transparent; color:var(--pt-text); }
.pt-pnav-n{ flex:none; font-size:12px; opacity:.7; }
.pt-pnav-btn .pt-pnav-sel{ flex:none; display:flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:var(--pt-ink); font-size:12px; font-weight:700; color:#fff; }   /* themes ticked in that type */
.pt-pnav-sel[hidden]{ display:none; }
.pt-pnav-btn.active .pt-pnav-sel{ background:#fff; color:var(--pt-ink); }
.pt-pgroups{ flex:1; min-width:0; overflow-y:auto; padding:14px 20px; }
.pt-pg{ display:none; }
.pt-pg.open, .is-searching .pt-pg{ display:block; }
.is-searching .pt-pg ~ .pt-pg{ margin-top:14px; }
.pt-pg-head{ display:flex; align-items:center; justify-content:space-between; width:100%; margin:0 0 10px; padding:0; border:0; background:none; font-size:15px; font-weight:700; color:var(--pt-ink); text-align:left; pointer-events:none; }
.pt-pg-head span{ color:inherit; }
.pt-pg-n{ display:none; }
.pt-plist{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px 12px; margin:0; padding:0; list-style:none; }
.pt-plist li{ margin:0; }
.pt-prow{ display:flex; align-items:center; gap:10px; min-height:58px; padding:6px 10px 6px 6px; border:1px solid transparent; border-radius:10px; color:var(--pt-text); text-decoration:none; }
.pt-prow:hover{ background:var(--pt-side); color:var(--pt-text); text-decoration:none; }
.pt-prow.active{ border-color:var(--pt-ink); background:var(--pt-tint); }
.pt-prow-img{ flex:none; width:44px; height:44px; overflow:hidden; border:1px solid var(--pt-line); border-radius:8px; background:#fff; }
.pt-prow-img img{ display:block; width:100%; height:100%; object-fit:contain; }
.pt-prow-meta{ display:flex; flex-direction:column; min-width:0; }
.pt-prow-name{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:14px; font-weight:600; line-height:1.3; color:var(--pt-text); }
.pt-prow-sku{ font-size:12px; color:var(--pt-muted); }

/* Theme picker: tick several, then "Show designs" */
.pt-panel-theme:not(.is-grouped) .pt-pbody{ height:auto; max-height:360px; }   /* a plain list: only as tall as it needs */
.pt-tlist{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:2px 16px; }
.pt-topt{ display:flex; align-items:center; gap:12px; min-height:42px; padding:0 10px; border-radius:8px; font-size:14px; font-weight:600; color:var(--pt-text); text-decoration:none; cursor:pointer; }
.pt-topt:hover{ background:var(--pt-side); color:var(--pt-text); text-decoration:none; }
.pt-topt-name{ color:inherit; }
/* "Select all in {type}", right of the type's title */
.is-grouped .pt-pg{ position:relative; }
.pt-pg-all{ position:absolute; top:0; right:0; font-size:13px; font-weight:600; line-height:22px; color:var(--pt-ink); text-decoration:underline; text-underline-offset:2px; }
.pt-pg-all:hover{ color:var(--pt-ink); text-decoration-thickness:2px; }
.pt-pg-all:focus-visible{ outline:2px solid var(--pt-accent); outline-offset:2px; }
.pt-box{ flex:none; display:flex; align-items:center; justify-content:center; width:20px; height:20px; border:2px solid var(--pt-box); border-radius:5px; background:#fff; color:#fff; }
.pt-box svg{ visibility:hidden; }
.pt-topt[aria-checked="true"] .pt-box{ border-color:var(--pt-ink); background:var(--pt-ink); }
.pt-topt[aria-checked="true"] .pt-box svg{ visibility:visible; }
.pt-quick{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.pt-quick-chip{ display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid var(--pt-field); border-radius:999px; background:#fff; font-size:13px; font-weight:600; color:var(--pt-ink); text-decoration:none; }
.pt-quick-chip:hover{ color:var(--pt-ink); text-decoration:none; border-color:var(--pt-ink); }
.pt-quick-chip[aria-checked="true"]{ border-color:var(--pt-ink); background:var(--pt-tint); }

/* Selected themes */
.pt-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:44px; margin:0 0 16px; }
.pt-chips-label{ margin-right:4px; font-size:13px; font-weight:600; color:var(--pt-muted); }
.pt-chip{ display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 8px 0 14px; border:1px solid var(--pt-ink); border-radius:999px; background:var(--pt-tint); font-size:13px; font-weight:600; color:var(--pt-ink); text-decoration:none; }
.pt-chip:hover{ background:var(--pt-ink); color:#fff; text-decoration:none; }
.pt-chips .pt-link{ min-height:36px; padding:0 8px; font-size:13px; }

/* Grid: 4 / 3 / 2 across by width */
.pt-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin:0; padding:0; list-style:none; }
@media (min-width:768px){ .pt-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; } }
@media (min-width:1200px){ .pt-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.pt-grid > li{ margin:0; }

/* Card */
.pt-card{ display:flex; flex-direction:column; height:100%; overflow:hidden; border:1px solid var(--pt-line); border-radius:12px; background:#fff; color:inherit; text-decoration:none; transition:border-color .2s, box-shadow .2s; }
.pt-card:hover{ border-color:var(--pt-field); box-shadow:0 8px 24px rgba(0,30,60,.08); color:inherit; text-decoration:none; }
.pt-card:focus-visible{ outline:2px solid var(--pt-accent); outline-offset:3px; }
.pt-media{ position:relative; flex:none; display:block; overflow:hidden; aspect-ratio:1/1; background:var(--pt-media); }
/* The grey sits on the zooming layer too: scaling gives it its own layer, and the
   multiply on white product photos would blend against nothing (white box). */
.pt-media-in{ position:absolute; inset:0; display:block; background:var(--pt-media); transition:transform .35s ease; }
.pt-card:hover .pt-media-in{ transform:scale(1.04); }
.pt-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.pt-design{ position:absolute; display:block; height:auto; }
.pt-badge{ position:absolute; top:10px; left:10px; z-index:1; width:40px; height:40px; }   /* NEW-v1.svg, as img.category-tag on the category listing */
.pt-card .pt-cta{ position:absolute; right:10px; bottom:10px; left:10px; z-index:1; display:flex; align-items:center; justify-content:center; gap:6px; height:40px; border-radius:8px;
    background:var(--pt-cta); color:var(--pt-cta-ink); font-size:14px; font-weight:700; opacity:0; transform:translateY(8px); transition:opacity .2s ease, transform .2s ease; }
.pt-card:hover .pt-cta, .pt-card:focus-visible .pt-cta{ opacity:1; transform:none; }
/* Touch screens and phones: no hover, and a button over the picture hides the product,
   so "Shop now" moves under the price / colours as a full-width button. */
.pt-card .pt-cta-row{ display:none; align-items:center; justify-content:center; height:38px; border-radius:8px; background:var(--pt-cta); font-size:14px; font-weight:700; color:var(--pt-cta-ink); }
.pt-name + .pt-cta-row{ margin-top:auto; }   /* no price row: still at the bottom */
@media (hover:none), (max-width:767px){
    .pt-card .pt-cta{ display:none; }
    .pt-card .pt-cta-row{ display:flex; }
}
/* Name, then price + colours on a footer row pinned to the bottom, so it lines up
   across a row whether the name takes one line or two. */
.pt-info{ flex:1; display:flex; flex-direction:column; gap:12px; padding:14px 14px 16px; text-align:left; }
.pt-card .pt-name{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:15px; font-weight:700; line-height:1.35; color:var(--pt-text); transition:color .2s; }   /* long names: 2 lines max */
.pt-card:hover .pt-name{ color:var(--pt-accent); }
.pt-card .pt-meta{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin-top:auto; }
.pt-card .pt-price{ font-size:13px; color:var(--pt-muted); }
.pt-card .pt-price b{ font-size:17px; font-weight:700; color:var(--pt-price); }
.pt-card .pt-colors{ display:inline-flex; align-items:center; gap:6px; padding:3px 9px 3px 5px; border-radius:999px; background:var(--pt-side); font-size:12px; font-weight:600; color:var(--pt-muted); white-space:nowrap; }
.pt-colors i{ width:14px; height:14px; border-radius:50%; background:conic-gradient(#f43f5e, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #f43f5e); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7); }
.pt-empty{ grid-column:1/-1; padding:44px 16px; border:1px solid var(--pt-line); border-radius:12px; text-align:center; color:var(--pt-muted); background:#fff; }
.pt-empty a{ margin:0 8px; font-weight:600; color:var(--pt-accent); text-decoration:underline; }

/* Load more (JS) - the numbered pagination stays as the no-JS fallback */
.pt-more-wrap{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:48px; }
.pt-more-wrap .pt-progress-text{ font-size:14px; color:var(--pt-muted); }
.pt-progress{ width:240px; height:4px; overflow:hidden; border-radius:2px; background:var(--pt-line); }
.pt-progress span{ display:block; height:100%; background:var(--pt-ink); transition:width .3s ease; }
.pt-more{ min-width:240px; height:48px; margin-top:4px; padding:0 28px; border:1.5px solid var(--pt-ink); border-radius:10px; background:#fff; font-size:15px; font-weight:700; color:var(--pt-ink); cursor:pointer; }
.pt-more:hover{ background:var(--pt-ink); color:#fff; }
.pt-more:disabled{ opacity:.6; cursor:wait; }
.pt-more[hidden]{ display:none; }

.pt-pagination{ display:flex; justify-content:center; margin-top:28px; }
.pt-pagination[hidden]{ display:none; }
.pt-pagination ul{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0; list-style:none; }
.pt-pagination li{ margin:0; }
.pt-pagination li:not(:has(a)){ display:none; }   /* paginatenew() leaves stray whitespace-only <li>s */
.pt-page .pt-pagination .page-item a{ margin:0; }   /* Bootstrap pulls each link 1px left */
.pt-pagination .pagination-arrow{ border-radius:8px !important; }   /* style.css rounds arrows with !important */
.pt-pagination a{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 10px; border:1px solid var(--pt-line); border-radius:8px; background:#fff; font-weight:600; color:var(--pt-ink); text-decoration:none; }
.pt-pagination a:hover{ border-color:var(--pt-ink); }
.pt-pagination a.active{ border-color:var(--pt-ink); background:var(--pt-ink); color:#fff; pointer-events:none; }
.pt-pagination a svg{ width:14px; height:14px; }

/* Phone: the two pickers side by side, each opening a bottom sheet over a scrim */
.pt-scrim{ position:fixed; inset:0; z-index:1049; background:rgba(10,25,45,.45); }
.pt-scrim[hidden]{ display:none; }
html.pt-lock, html.pt-lock body{ overflow:hidden; }
html.pt-lock #kustomer-ui-sdk-iframe{ visibility:hidden; }   /* the chat bubble would sit on the sheet's button */
@media (max-width:767px){
    .pt-page{ padding:20px 0 48px; }
    .pt-page > .container-fluid.px-2{ padding-right:16px !important; padding-left:16px !important; }   /* the utility is !important */
    .pt-head{ margin-bottom:12px; }
    .pt-title{ font-size:24px; }
    .pt-sub{ font-size:14px; }

    .pt-filters{ position:static; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; padding:0; border:0; background:none; box-shadow:none; }
    .pt-fbtn, .pt-fbtn-prod{ gap:6px; min-height:52px; padding:0 12px; }
    .pt-fbtn-ico{ display:none; }
    .pt-fbtn-val{ font-size:13px; }
    .pt-fbtn-count{ min-width:20px; height:20px; font-size:11px; }
    .pt-fbtn .pt-chev{ width:14px; height:14px; }

    .pt-panel, .pt-panel-prod, .pt-panel-theme{ position:fixed; top:auto; right:0; bottom:0; left:0; z-index:1050; width:auto; height:82vh; height:82dvh; max-height:calc(100% - 32px);
        border:0; border-radius:20px 20px 0 0; box-shadow:0 -10px 30px rgba(0,0,0,.15); }
    .pt-sheet-head{ display:flex; flex-direction:column; gap:4px; padding:10px 16px 0; }
    .pt-grab{ align-self:center; width:40px; height:4px; border-radius:2px; background:var(--pt-field); }
    .pt-sheet-bar{ display:flex; align-items:center; justify-content:space-between; }
    .pt-sheet-title{ font-size:18px; font-weight:700; color:var(--pt-ink); }
    .pt-close{ display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin-right:-10px; padding:0; border:0; background:none; color:var(--pt-text); }
    .pt-panel-search{ padding:6px 16px 12px; border-bottom:0; }
    .pt-search{ gap:8px; padding:0 12px; }

    /* products: one accordion per category */
    .pt-pbody{ flex:1; min-height:0; height:auto; }
    .pt-pnav{ display:none; }
    .pt-pgroups{ padding:0 16px 16px; }
    .pt-pg, .is-searching .pt-pg ~ .pt-pg{ display:block; margin:0; border-top:1px solid var(--pt-line); }
    .pt-pg-head{ min-height:44px; margin:0; font-size:15px; font-weight:600; color:var(--pt-text); pointer-events:auto; cursor:pointer; }
    .pt-pg.open .pt-pg-head, .is-searching .pt-pg-head{ min-height:48px; font-weight:700; color:var(--pt-ink); }
    .pt-pg-head .pt-pg-n{ display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:600; color:var(--pt-muted); }
    .pt-pg-n .pt-chev{ width:14px; height:14px; color:var(--pt-muted); }
    .pt-pg.open .pt-pg-n .pt-chev{ transform:rotate(180deg); }
    .pt-plist{ display:none; grid-template-columns:minmax(0, 1fr); gap:6px; padding-bottom:12px; }
    .pt-pg.open .pt-plist, .is-searching .pt-plist{ display:grid; }
    .pt-prow{ border-color:var(--pt-line); }

    /* themes: two columns of tap targets */
    .pt-pg .pt-tlist{ padding-bottom:12px; }
    .is-grouped .pt-pg .pt-tlist{ display:none; }
    .is-grouped .pt-pg.open .pt-tlist, .is-grouped.is-searching .pt-pg .pt-tlist{ display:grid; }
    .pt-pg-all{ position:static; display:none; width:max-content; margin:-4px 0 8px auto; }
    .is-grouped .pt-pg.open .pt-pg-all, .is-grouped.is-searching .pt-pg-all{ display:block; }
    .pt-panel-theme:not(.is-grouped) .pt-tlist{ padding-top:12px; }
    .pt-tlist{ gap:6px; }
    .pt-topt{ gap:8px; min-height:44px; border:1px solid var(--pt-line); font-size:13px; }
    .pt-topt .pt-box{ display:none; }
    .pt-topt[aria-checked="true"]{ border-color:var(--pt-ink); background:var(--pt-tint); color:var(--pt-ink); }
    .pt-topt[aria-checked="true"] .pt-box{ display:flex; width:18px; height:18px; border-radius:4px; }
    .pt-panel-foot{ padding:12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow:0 -4px 12px rgba(0,0,0,.04); }
    .pt-apply{ flex:1; max-width:240px; }

    .pt-info{ gap:8px; padding:10px 10px 12px; }
    .pt-card .pt-name{ font-size:14px; }
    .pt-card .pt-price b{ font-size:15px; }
    .pt-badge{ top:8px; left:8px; width:34px; height:34px; }
    .pt-card .pt-cta-row{ height:34px; font-size:13px; }
}
@media (prefers-reduced-motion:reduce){ .pt-media-in, .pt-card, .pt-card .pt-name, .pt-card .pt-cta, .pt-progress span, .pt-fbtn, .pt-chev{ transition:none; } }
