/* ============================================================================
   custom-fixes.css — Product card bug fixes + polish
   Drop in: themes/paygasus-shop/assets/css/  — link AFTER theme.css.
   Scope: catalog product cards (.pg-product-card) on category + featured grids.
   Brand blue (#1A6BFF) is applied ONLY to the card here, so the site-wide
   theme accent (--blue:#0d6efd) and overall identity are untouched.
   No !important was needed: this file loads after theme.css, so equal-
   specificity selectors win on cascade order. The "black" hover/rest was the
   theme's own `background: var(--ink)` (#111110) convention — overridden below,
   NOT a PrestaShop core rule.
   ============================================================================ */

:root {
  --pg-brand:        #1A6BFF;   /* brief brand blue — accents only (member text, pills, links, focus) */
  --pg-brand-hover:  #1558E0;   /* (legacy) filled blue hover                                          */
  --pg-brand-tint:   #F0F4FF;   /* (legacy) outlined blue hover background                             */
  --pg-btn:          #111110;   /* buttons are BLACK at rest (was blue)                                */
  --pg-btn-hover:    #33312c;   /* lifted-black button hover                                            */
  --pg-btn-tint:     #F4F4F2;   /* outlined-button hover background (neutral, was blue tint)            */
  --pg-line:         #E7E5E0;   /* warm hairline (card border + dividers) — matches editorial palette */
  --pg-stage:        #F6F5F2;   /* warm off-white image well                                          */
  --pg-ink:          #14130F;   /* warm near-black for titles/price (was cool slate)                  */
  --pg-body:         #57544E;   /* description text (warm grey)                                        */
  --pg-label:        #6E6A62;   /* eyebrow / label (warm muted)                                        */
}

/* === LAYOUT: separated bordered cards (supersedes the hairline-divided grid) === */
.pg-products-grid,
.products {
  background: transparent;
  border: 0;
  gap: 24px;                                                  /* 8px scale */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.pg-products-grid > li,
.products > li { display: flex; }

/* === BUG FIX 3 + POLISH 4: Card height equalisation + refinement === */
.pg-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--pg-line);
  padding: 16px;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
/* Calm, static hover — no lift/motion: just a firmer hairline + a soft neutral shadow */
.pg-product-card:hover {
  border-color: rgba(20, 19, 15, 0.22);
  box-shadow: 0 6px 22px rgba(20, 19, 15, 0.07);
}

/* Image: fixed 180px stage, flush to the card's top/sides, contained photo */
.pg-card__media-link { display: block; margin: -16px -16px 0; }
.pg-card__media {
  height: 184px;
  aspect-ratio: auto;                                         /* override 4/3 */
  width: 100%;
  background: transparent;                                    /* no gray image well — blend with card */
  border: 0;
  border-bottom: 1px solid var(--pg-line);                    /* hairline separates the image well from the details */
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pg-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0;
}

/* === POLISH 5: Badges (ENTERPRISE plain label + MEMBERS ONLY pill) === */
.pg-card__meta {
  margin-top: 16px;
  min-height: 24px;                /* fixed row so the MEMBERS-ONLY pill vs none don't change card height */
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ENTERPRISE (category eyebrow) — plain text, NO border */
.pg-card__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-label);
  border: 0;
}
/* MEMBERS ONLY — clean blue pill */
.pg-card__chip--member {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-brand);
  background: #EEF3FF;
  border: 1px solid #C7D9FF;
  border-radius: 4px;
  padding: 2px 7px;
}

/* === POLISH 7: Typography rhythm === */
.pg-card__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 6px 0 8px;            /* small, even gap to the description (no reserved blank line) */
  color: var(--pg-ink);
  /* clamp to max 2 lines but take natural height, so 1-line titles don't leave a blank 2nd line */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-card__name a { color: var(--pg-ink); transition: color 150ms ease; }
.pg-card__name a:hover { color: var(--pg-brand); }

.pg-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pg-body);
  margin: 0 0 18px;                                           /* breathing room before the divider/price row */
  flex: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;                                      /* up to 3 lines, natural height (no forced blank space) */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === POLISH 6: Pricing + CTA area === */
.pg-card__foot {
  margin-top: auto;                                           /* pin to card bottom (absorbs slack) */
  padding-top: 16px;
  border-top: 1px solid var(--pg-line);                       /* separate from description */
  display: flex;
  flex-direction: column;                                     /* STACK: price on top, buttons below */
  align-items: stretch;
  gap: 12px;
}
/* Price / members block — fixed height so the button row is at the same Y on every
   card, and the text gets the full card width (no wrapping fight with the buttons). */
.pg-card__priceblock {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.pg-card__price { color: var(--pg-ink); }                     /* keep theme's fine-serif size */
/* Member-price preview: "$X with membership" (5% off) shown to signed-out visitors */
.pg-card__member {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--pg-brand);
}
.pg-card__gateprice {                                         /* "Members-only pricing" */
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pg-ink);
}
.pg-card__gatesub {                                           /* "SIGN UP TO UNLOCK" */
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-brand);
  text-decoration: none;
  margin-top: 4px;
}
.pg-card__gatesub:hover { text-decoration: underline; }

/* === BUG FIX 1: Button alignment === */
.pg-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Full-width button row: equal halves, always at the card bottom, aligned across all cards */
.pg-card__actions > * { flex: 1 1 0; }
.pg-card__details,
.pg-card__add,
.pg-card__add--unlock {
  height: 44px;
  line-height: 1;
  letter-spacing: 0.01em;
  box-sizing: border-box;                                     /* border doesn't shift height */
  margin: 0;                                                  /* spacing via wrapper only */
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;                                           /* keep sharp theme corners */
  cursor: pointer;
  /* === BUG FIX 2: smooth, never-black transitions === */
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

/* Outlined "Details" — 1px border, soft blue tint on hover (never dark) */
.pg-card__details {
  background: #fff;
  border: 1px solid var(--pg-line);
  color: var(--pg-ink);
  text-decoration: none;
}
.pg-card__details:hover {
  background: var(--pg-btn-tint);
  border-color: var(--pg-btn);
  color: var(--pg-btn);
}

/* Filled "Add" / "Unlock" — BLACK at rest, lifted-black on hover */
.pg-card__add,
.pg-card__add--unlock {
  background: var(--pg-btn);
  border: 1px solid var(--pg-btn);
  color: #fff;
  text-decoration: none;
}
.pg-card__add:hover,
.pg-card__add--unlock:hover {
  background: var(--pg-btn-hover);
  border-color: var(--pg-btn-hover);
  color: #fff;
}
/* Preserve the JS "added" confirmation state (custom.js toggles .is-added) */
.pg-card__add.is-added {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* === BUG FIX 8: Focus states (accessibility) === */
.pg-card__details:focus-visible,
.pg-card__add:focus-visible,
.pg-card__add--unlock:focus-visible {
  outline: 2px solid var(--pg-brand);
  outline-offset: 3px;
}

/* ============================================================================
   REGISTRATION / LOGIN FORM
   The auth pages use PrestaShop's classic markup (.form-group.row, .col-md-3
   labels, .form-control, .custom-checkbox, .btn-primary.float-xs-right) which
   the editorial theme never styled — inputs were bare, the 3/6/3 column layout
   was cramped, the GDPR checkboxes overlapped, and float-xs-right (a Bootstrap-4
   class) doesn't right-align under the theme's Bootstrap 5. Below: a clean,
   centred, single-column editorial form. Scoped to .register-form/.login-form
   so no other page is affected.
   ============================================================================ */

/* Centre the form as a calm card */
.register-form,
.login-form {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--pg-line);
  padding: clamp(24px, 4vw, 40px);
}

/* Stack every field: label over full-width input over helper (kill the col grid) */
.register-form .form-group.row,
.login-form .form-group.row {
  display: block;
  margin: 0 0 16px;
}
.register-form [class*="col-md"],
.register-form [class*="col-xs"],
.login-form [class*="col-md"],
.login-form [class*="col-xs"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Labels */
.register-form .form-control-label,
.login-form .form-control-label {
  display: block;
  text-align: left;
  padding: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-ink);
}

/* Inputs + selects */
.register-form .form-control,
.login-form .form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--pg-line);
  border-radius: 0;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--pg-ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.register-form textarea.form-control,
.login-form textarea.form-control { height: auto; padding: 12px 14px; }
.register-form .form-control:focus,
.login-form .form-control:focus {
  outline: none;
  border-color: var(--pg-brand);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.12);
}

/* Password "Show" button sits flush with the input */
.register-form .input-group,
.login-form .input-group { display: flex; align-items: stretch; }
.register-form .input-group .form-control { flex: 1 1 auto; }
.register-form .input-group .btn,
.register-form .input-group-append .btn,
.login-form .input-group .btn {
  height: 44px;
  border: 1px solid var(--pg-line);
  border-left: 0;
  border-radius: 0;
  background: var(--pg-stage);
  color: var(--pg-label);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 0 14px;
}

/* Helper / comment text */
.register-form .form-control-comment,
.login-form .form-control-comment {
  padding: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--pg-label);
}

/* Social-title radios (Mr/Mrs) inline */
.register-form .radio-inline { margin-right: 16px; font-family: var(--font-sans); font-size: 14px; color: var(--pg-ink); }

/* GDPR / consent checkboxes — readable, no overlap */
.register-form .custom-checkbox,
.login-form .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}
.register-form .custom-checkbox input[type="checkbox"],
.login-form .custom-checkbox input[type="checkbox"] {
  position: static;
  opacity: 1;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 16px;
  accent-color: var(--pg-brand);
}
/* hide the classic material-icons faux-checkbox span; use the real input above */
.register-form .custom-checkbox input[type="checkbox"] + span,
.login-form .custom-checkbox input[type="checkbox"] + span { display: none; }
.register-form .custom-checkbox label,
.login-form .custom-checkbox label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pg-body);
}

/* Submit — solid brand button, right-aligned (fixes BS4 float-xs-right under BS5) */
.register-form .form-footer,
.login-form .form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding: 0;
}
.register-form .form-footer .btn-primary,
.login-form .form-footer .btn-primary {
  float: none;
  height: 44px;
  padding: 0 28px;
  background: var(--pg-btn);
  border: 1px solid var(--pg-btn);
  border-radius: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.register-form .form-footer .btn-primary:hover,
.login-form .form-footer .btn-primary:hover {
  background: var(--pg-btn-hover);
  border-color: var(--pg-btn-hover);
}
.register-form .form-footer .btn-primary:focus-visible,
.login-form .form-footer .btn-primary:focus-visible {
  outline: 2px solid var(--pg-brand);
  outline-offset: 3px;
}

/* "Already have an account? Log in" / footer link */
.register-form .form-fields ~ p a,
.register-form a,
.login-form a { color: var(--pg-brand); }

/* --- Auth page layout: kill the classic full-width flex card, centre the form --- */
/* (the classic #content.card is display:flex with a rgba(0,0,0,.176) border, which
   shrank the login form to ~344px inside a big empty box). Scoped to .page-authentication
   — restored once layout-both-columns.tpl emits body_classes via |classnames. */
.page-authentication #content.page-content.card,
.page-authentication #content.page-content.card-block {
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
/* Slimmer card for the short login form */
.login-form { max-width: 460px; }

/* Forgot-password + create-account links */
.login-form .forgot-password { margin: 10px 0 0; }
.login-form .forgot-password a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--pg-brand);
  text-decoration: none;
}
.login-form .forgot-password a:hover { text-decoration: underline; }

.no-account {
  max-width: 460px;
  margin: 16px auto 40px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--pg-body);
}
.no-account a { color: var(--pg-brand); text-decoration: none; font-weight: 600; }
.no-account a:hover { text-decoration: underline; }

/* ============================================================================
   AUTH MODAL (#authModal)
   The Sign in / Sign up nav links open the real PrestaShop login/registration
   form in this modal (loaded via AJAX) instead of navigating to /login or
   /registration. The injected forms keep their .login-form/.register-form
   classes, so the form styling above applies — here we just drop the
   standalone-page "card" chrome (max-width/margin/border/padding) so the form
   fills the modal body cleanly.
   ============================================================================ */
#authModal .register-form,
#authModal .login-form {
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0;
}
#authModal .no-account {
  max-width: none;
  margin: 18px 0 0;
  text-align: left;
}
#authModal .register-form > p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--pg-body);
  margin: 0 0 16px;
}
#authModal .pg-auth-loading {
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--pg-label);
}

/* ── "Create your account" modal design (from the store prototype) ──
   Eyebrow + serif heading + member-benefit callout above the real form.
   The default Bootstrap modal-header is hidden; the intro carries the close. */
#authModal .modal-header { display: none; }
#authModal .modal-content { background: #fff; }
#authModal .modal-body { padding: clamp(26px, 4vw, 36px); background: #fff; }
.pg-auth-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pg-auth-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--pg-label);
}
.pg-auth-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--pg-brand); }
.pg-auth-close {
  flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--pg-line); background: #fff; color: var(--pg-ink);
  font-size: 1rem; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s;
}
.pg-auth-close:hover { background: var(--pg-ink); border-color: var(--pg-ink); color: #fff; }
.pg-auth-title {
  margin: 1rem 0 0; font-family: var(--font-fine), Georgia, serif;
  font-size: 1.9rem; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; color: var(--pg-ink);
}
.pg-auth-lede { margin: .5rem 0 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; color: var(--pg-body); }
.pg-auth-perk {
  margin-top: 1rem; display: flex; align-items: flex-start; gap: .65rem;
  border: 1px solid rgba(26, 107, 255, .3); background: rgba(26, 107, 255, .06); padding: .75rem 1rem;
}
.pg-auth-perk__check {
  flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px;
  margin-top: .1rem; border-radius: 50%; background: var(--pg-brand); color: #fff; font-size: .7rem;
}
.pg-auth-perk__txt { font-family: var(--font-sans); font-size: .95rem; line-height: 1.4; color: var(--pg-ink); }
.pg-auth-perk__txt strong { color: var(--pg-brand); font-weight: 600; }
#authModal .register-form,
#authModal .login-form { margin-top: 1.25rem; }
/* password reveal — eye icon shown INLINE inside the field (right edge) */
.register-form .input-group,
.login-form .input-group { position: relative; display: block; padding: 0; margin: 0; }
.register-form .input-group > .form-control,
.login-form .input-group > .form-control { width: 100%; padding-right: 46px; }
/* let the wrapping span collapse so the button positions against the field */
.register-form .input-group .input-group-append,
.register-form .input-group .input-group-btn,
.login-form .input-group .input-group-append,
.login-form .input-group .input-group-btn { display: contents; }
.register-form .input-group .btn.js-pg-pwd,
.login-form .input-group .btn.js-pg-pwd {
  position: absolute;
  top: 0;
  right: 0;
  height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pg-label);
  cursor: pointer;
}
.register-form .input-group .btn.js-pg-pwd:hover,
.login-form .input-group .btn.js-pg-pwd:hover { color: var(--pg-ink); }
.js-pg-pwd svg { display: block; }

/* ============================================================================
   SIMPLE SINGLE-ROW NAVBAR (per provided design) — scoped under .pg-chrome.
   Keeps: logo · cart · language switcher · Sign in / Sign up · Contact sales.
   ============================================================================ */
.pg-chrome, .pg-chrome *, .pg-chrome *::before, .pg-chrome *::after { box-sizing: border-box; }
.pg-chrome {
  --pg-ink: #111110; --pg-muted: #5a5852; --pg-rule: rgba(17,17,16,.12);
  --pg-bg: #FAFAF7; --pg-brand: #0d6efd; --pg-branddeep: #0a58ca;
  --pg-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pg-max: 1240px; --pg-gut: clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--pg-sans); color: var(--pg-ink); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.pg-chrome a { color: inherit; text-decoration: none; }
.pg-chrome img { display: block; max-width: 100%; }
.pg-chrome .pg-container { max-width: var(--pg-max); margin: 0 auto; padding-left: var(--pg-gut); padding-right: var(--pg-gut); }
.pg-chrome-header { position: sticky; top: 0; z-index: 1000; background: rgba(250,250,247,.92); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--pg-rule); }
.pg-chrome .pg-bar .pg-container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.pg-chrome .pg-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pg-chrome .pg-logo { width: auto; height: 38px; display: block; }
.pg-chrome .pg-logo--mark { display: none; }
.pg-chrome .pg-actions { display: flex; align-items: center; gap: 1.5rem; }
/* Auth links — clear 3-tier hierarchy: ghost (Sign in) < outline (Sign up) < filled (Contact sales) */
.pg-chrome .pg-signlink { display: inline-flex; align-items: center; font-size: .875rem; font-weight: 500; color: var(--pg-ink); transition: color .2s, background .2s, border-color .2s; white-space: nowrap; }
/* Ghost: subordinate text action */
.pg-chrome .pg-signlink--ghost { padding: .55rem .35rem; }
.pg-chrome .pg-signlink--ghost:hover { color: var(--pg-brand); }
/* Outline button: secondary CTA, same box metrics as .pg-cta so they sit level */
.pg-chrome .pg-signlink--btn { padding: .45rem .9rem; font-weight: 600; color: #111110; background: transparent; border: 1px solid #111110; }
.pg-chrome .pg-signlink--btn:hover { color: #fff; background: #111110; }
/* Visible keyboard focus for both */
.pg-chrome .pg-signlink:focus-visible { outline: 2px solid var(--pg-brand); outline-offset: 2px; }
.pg-chrome .pg-cta { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; background: #111110; color: #fff; font-weight: 600; font-size: .875rem; border: 1px solid #111110; transition: background .2s, border-color .2s; white-space: nowrap; }
.pg-chrome .pg-cta:hover { background: #3a3a37; border-color: #3a3a37; }
/* cart icon button */
.pg-chrome .pg-actions .pg-icon-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--pg-ink); padding: .2rem; cursor: pointer; line-height: 1; position: relative; }
.pg-chrome .pg-actions .pg-icon-btn:hover { color: var(--pg-brand); }
.pg-chrome .pg-cart-badge { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pg-brand); color: #fff; font-size: .62rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
/* language button — globe only, no border */
.pg-chrome .pg-actions .btn-language { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: transparent; border: none; border-radius: 6px; color: var(--pg-ink); padding: 0; cursor: pointer; line-height: 1; flex-shrink: 0; }
.pg-chrome .pg-actions .btn-language:hover { background: rgba(13,110,253,.06); color: #0d6efd; }
.pg-chrome .pg-actions .btn-language::after { display: none; }
.pg-chrome .language-dropdown { position: relative; }
.pg-chrome .language-dropdown-menu { min-width: 140px; padding: .3rem 0; box-shadow: 0 8px 24px rgba(17,17,16,.12); border: 1px solid var(--pg-rule, #e8e6e0); border-radius: 4px; }
.pg-chrome .language-dropdown-menu .dropdown-item { font-size: .9rem; padding: .55rem 1rem; color: var(--pg-ink); }
.pg-chrome .language-dropdown-menu .dropdown-item.active { font-weight: 600; color: #0d6efd; background: transparent; }
.pg-chrome .language-dropdown-menu .dropdown-item:hover { background: rgba(13,110,253,.06); color: #0d6efd; }
.pg-chrome .pg-member-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--pg-brand); white-space: nowrap; }
/* account dropdown (email → My account / Sign out) */
.pg-chrome .pg-account { position: relative; display: inline-flex; align-items: center; padding-block: 0; }
.pg-chrome .pg-account__btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 500; color: var(--pg-ink); max-width: 220px; }
.pg-chrome .pg-account__btn:hover { color: var(--pg-brand); }
.pg-chrome .pg-account__email { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-chrome .pg-account__caret { flex-shrink: 0; transition: transform .2s; }
.pg-chrome .pg-account__btn[aria-expanded="true"] .pg-account__caret { transform: rotate(180deg); }
.pg-chrome .pg-account__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; background: #fff; border: 1px solid var(--pg-rule); box-shadow: 0 10px 30px rgba(17,17,16,.12); padding: .35rem; z-index: 1001; }
.pg-chrome .pg-account__menu[hidden] { display: none; }
.pg-chrome .pg-account__item { display: block; padding: .6rem .8rem; font-size: .9rem; color: var(--pg-ink); white-space: nowrap; }
.pg-chrome .pg-account__item:hover { background: var(--pg-bg); color: var(--pg-brand); }
@media (max-width: 680px) { .pg-chrome .pg-account__email { max-width: 110px; } }
@media (max-width: 680px) {
  .pg-chrome .pg-actions { gap: .85rem; }
  .pg-chrome .pg-signlink { font-size: .85rem; }
  .pg-chrome .pg-signlink--btn { padding: .55rem .9rem; }
  .pg-chrome .pg-cta { padding: .55rem .9rem; font-size: .82rem; }
  .pg-chrome .pg-member-chip { display: none; }
}
/* keep everything on one row on phones (no drawer) */
@media (max-width: 480px) {
  .pg-chrome .pg-container { padding-left: 1rem; padding-right: 1rem; }
  .pg-chrome .pg-bar .pg-container { gap: .6rem; height: 4rem; }
  .pg-chrome .pg-logo--full { display: none; }
  .pg-chrome .pg-logo--mark { display: block; height: 38px; }
  .pg-chrome .pg-actions { gap: .55rem; }
  .pg-chrome .pg-signlink { font-size: .78rem; }
  .pg-chrome .pg-signlink--btn { padding: .4rem .65rem; }
  .pg-chrome .pg-cta { padding: .4rem .65rem; font-size: .76rem; }
  .pg-chrome .pg-actions .pg-icon-btn svg,
  .pg-chrome .pg-actions .btn-language svg { width: 18px; height: 18px; }
}

/* status banner (e.g. "email already exists") shown above the form */
.pg-auth-msg {
  margin-top: 1rem;
  border: 1px solid #E3B8B5;
  background: #FCF2F1;
  color: #9A2D27;
  padding: .7rem .9rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.4;
}

/* Remove the "Social title (Mr/Mrs)" field from registration — modal + the
   standalone /registration page (JS also removes it in the modal as a fallback
   for browsers without :has). id_gender is optional, so hiding it is safe. */
.register-form .form-group:has(input[name="id_gender"]) {
  display: none;
}

/* Required consents (psgdpr "agree to terms" + customer_privacy) — mark them so
   they're obviously required. Both inputs carry `required`, and since the auth
   modal now submits natively the browser blocks submit + prompts inline if one
   is missed (no more silent server rejection). NOT pre-ticked on purpose: a
   pre-checked consent box is invalid consent under GDPR. */
.register-form .custom-checkbox:has(input[required]) label::after {
  content: " *";
  color: #c0392b;
  font-weight: 700;
}

/* ============================================================================
   BUTTONS: BLACK → GRAY (2026-06-05)
   One override layer for ALL button surfaces. Loads after theme.css /
   site-nav.css, and uses !important so it also beats the inline <style> button
   rules inside product/cart/checkout .tpl (those win by document order
   otherwise). Tweak the shade in one place via --pg-gray / --pg-gray-hover.
   Accents (links, "$X with membership" note, MEMBERS-ONLY pill, focus rings)
   stay blue — not touched here.
   ============================================================================ */
:root {
  --pg-gray:       #111110;   /* filled button at rest (BLACK)            */
  --pg-gray-hover: #3a3a37;   /* filled button hover (lifted, lighter)    */
  --pg-gray-tint:  #f1f1f0;   /* outlined button hover background          */
}

/* Filled buttons — gray at rest */
.btn-pg-primary,
.pg-card__add,
.pg-card__add--unlock,
.pg-btn-view-details,
.pg-card-btn--solid,
.pg-drawer__btn--solid,
.pg-buy-btn--solid,
.pg-checkout-btn,
.pg-btn-primary,
.pg-co__submit,
.btn-signup,
.btn-contact-sales,
.btn-mobile-start,
.register-form .form-footer .btn-primary,
.login-form .form-footer .btn-primary {
  background: var(--pg-gray) !important;
  border-color: var(--pg-gray) !important;
  color: #fff !important;
}
/* Filled buttons — darker gray on hover */
.btn-pg-primary:hover,
.pg-card__add:hover,
.pg-card__add--unlock:hover,
.pg-btn-view-details:hover,
.pg-card-btn--solid:hover,
.pg-drawer__btn--solid:hover,
.pg-buy-btn--solid:hover,
.pg-checkout-btn:hover,
.pg-btn-primary:hover,
.pg-co__submit:hover,
.btn-signup:hover,
.btn-contact-sales:hover,
.btn-mobile-start:hover,
.register-form .form-footer .btn-primary:hover,
.login-form .form-footer .btn-primary:hover {
  background: var(--pg-gray-hover) !important;
  border-color: var(--pg-gray-hover) !important;
  color: #fff !important;
}

/* Bootstrap .btn-primary (classic-fallback pages) via its CSS vars */
.btn-primary {
  --bs-btn-bg: var(--pg-gray);
  --bs-btn-border-color: var(--pg-gray);
  --bs-btn-hover-bg: var(--pg-gray-hover);
  --bs-btn-hover-border-color: var(--pg-gray-hover);
  --bs-btn-active-bg: var(--pg-gray-hover);
  --bs-btn-active-border-color: var(--pg-gray-hover);
}

/* Preserve the JS "added" confirmation (green) — beats the gray above */
.pg-card__add.is-added,
.pg-card-btn.is-added {
  background: var(--green, #1F7A4D) !important;
  border-color: var(--green, #1F7A4D) !important;
}

/* Outlined buttons — gray fill / border / text on hover (were black) */
.pg-card__details:hover {
  background: var(--pg-gray-tint) !important;
  border-color: var(--pg-gray) !important;
  color: var(--pg-gray) !important;
}
.btn-signin:hover,
.btn-mobile-contact:hover {
  border-color: var(--pg-gray) !important;
  color: var(--pg-gray) !important;
}
.btn-pg-secondary:hover,
.btn-pg-ghost:hover,
.pg-card-btn--ghost:hover,
.pg-buy-btn--ghost:hover,
.pg-drawer__btn--ghost:hover,
.pg-view-btn:hover,
.pg-view-btn.active,
.pg-btn-filter-toggle:hover {
  background: var(--pg-gray) !important;
  border-color: var(--pg-gray) !important;
  color: #fff !important;
}

/* ============================================================================
   LOADER SPINNER (2026-06-06)
   Reusable themed spinner that replaces plain "Loading…" text everywhere
   (auth modal, cart drawer, and any future async UI). Editorial look: a thin
   hairline ring with a single blue-accent arc (the accent we kept), sharp and
   minimal to match the theme. Use:
     <div class="pg-loader"><span class="pg-spinner" role="status" aria-label="Loading"></span></div>
   Optionally add <span class="pg-loader__label">…</span> after the spinner.
   ============================================================================ */
.pg-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
}
.pg-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid var(--hair, rgba(17, 17, 16, 0.12));
  border-top-color: var(--blue, #0d6efd);   /* keep the theme's blue accent */
  border-radius: 50%;
  animation: pg-spin 0.7s linear infinite;
  box-sizing: border-box;
}
.pg-spinner--sm { width: 18px; height: 18px; border-width: 2px; }
.pg-spinner--lg { width: 44px; height: 44px; border-width: 3px; }
.pg-loader__label {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted2, #8A8880);
}
@keyframes pg-spin { to { transform: rotate(360deg); } }
/* Respect reduced-motion: gentle fade instead of a fast spin */
@media (prefers-reduced-motion: reduce) {
  .pg-spinner { animation: pg-pulse 1.4s ease-in-out infinite; }
  @keyframes pg-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
}

/* ============================================================================
   CUSTOMER ACCOUNT PAGES — my-account, identity, addresses, order history,
   vouchers, credit slips, order detail. These render from the classic fallback
   templates, so they need editorial styling + the BS4→BS5 utility fix.
   Everything below is scoped to body.page-customer-account.
   ============================================================================ */

/* --- Bootstrap-4 responsive visibility classes the classic templates still emit
   but Bootstrap 5 dropped. Without these, desktop tables AND their mobile-card
   duplicates both render at once. --- */
@media (max-width: 575.98px) { .hidden-xs-down { display: none !important; } }
@media (max-width: 767.98px) { .hidden-sm-down { display: none !important; } }
@media (max-width: 991.98px) { .hidden-md-down { display: none !important; } }
@media (min-width: 576px)    { .hidden-xs-up, .hidden-sm-up { display: none !important; } }
@media (min-width: 768px)    { .hidden-md-up   { display: none !important; } }
@media (min-width: 992px)    { .hidden-lg-up   { display: none !important; } }

/* --- content rhythm + headings --- */
.page-customer-account #content.page-content,
.page-customer-account .page-content { margin-top: 1.25rem; }
.page-customer-account h1 { font-family: var(--font-fine); }
.page-customer-account .notifications-container { margin-bottom: 1rem; }

/* --- tables (order history, vouchers, credit slips) → editorial --- */
.page-customer-account table.table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--hair); margin: 1.25rem 0; font-family: var(--font-text);
}
.page-customer-account table.table th {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); font-weight: 500; text-align: left;
  padding: .85rem 1rem; background: var(--paper); border: 0; border-bottom: 1px solid var(--hair);
}
.page-customer-account table.table td {
  font-size: .95rem; color: var(--ink); padding: .85rem 1rem;
  border: 0; border-top: 1px solid var(--hair2); vertical-align: middle;
}
.page-customer-account table.table tbody tr:first-child td { border-top: 0; }
.page-customer-account table.table td a { color: var(--ink); }
.page-customer-account table.table td a:hover { color: var(--blue); }

/* --- order-status pill (.label keeps its inline bg color; BS5 has no .label style
   so it renders as a raw highlight without this). Global, not page-scoped: the
   .label/.label-pill markup is emitted only by classic order templates
   (order-detail, order-history, credit-slip), each on a different body class. --- */
.label,
.label-pill {
  display: inline-block; padding: .34em .8em; border-radius: 999px;
  color: #fff !important; font-family: var(--font-sans); font-size: .7rem;
  font-weight: 600; line-height: 1.5; white-space: nowrap;
}

/* --- forms (identity, address, password) → clean single column --- */
.page-customer-account .form-fields .form-group.row,
.page-customer-account form .form-group.row { display: block; margin: 0 0 1.1rem; }
.page-customer-account form [class*="col-md"],
.page-customer-account form [class*="col-sm"] {
  width: 100%; max-width: 100%; flex: 0 0 100%; padding-left: 0; padding-right: 0;
}
.page-customer-account .form-control-label,
.page-customer-account label.col-md-3 {
  display: block; text-align: left; padding: 0 0 .4rem;
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 500;
}
.page-customer-account .form-control,
.page-customer-account select.form-control {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--hair);
  border-radius: 0; background: #fff; font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
}
.page-customer-account textarea.form-control { height: auto; padding: 12px 14px; }
.page-customer-account .form-control:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,16,.08);
}
.page-customer-account .form-control-comment {
  font-family: var(--font-sans); font-size: .8rem; color: var(--muted2); padding-top: .35rem;
}
.page-customer-account .input-group { display: flex; align-items: stretch; }
.page-customer-account .input-group .form-control { flex: 1 1 auto; }
.page-customer-account .input-group .btn,
.page-customer-account .input-group-append .btn,
.page-customer-account .input-group-btn .btn {
  height: 46px; border: 1px solid var(--hair); border-left: 0; border-radius: 0;
  background: var(--paper); color: var(--muted); font-family: var(--font-sans);
  font-size: .8rem; padding: 0 14px; cursor: pointer;
}
.page-customer-account .custom-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 .85rem; }
.page-customer-account .custom-checkbox input[type="checkbox"],
.page-customer-account .custom-radio input[type="radio"] {
  position: static; opacity: 1; width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 16px; accent-color: var(--ink);
}
.page-customer-account .custom-checkbox input[type="checkbox"] + span,
.page-customer-account .custom-radio input + span { display: none; }
.page-customer-account .custom-checkbox label {
  margin: 0; font-family: var(--font-sans); font-size: .85rem; font-weight: 400;
  line-height: 1.5; color: var(--body); text-transform: none; letter-spacing: 0;
}
.page-customer-account .radio-inline {
  margin-right: 1.1rem; font-family: var(--font-sans); font-size: .92rem;
  color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400;
}
.page-customer-account .form-footer { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; padding: 0; }
.page-customer-account .form-footer .btn-primary { float: none; }

/* --- address book cards --- */
.page-customer-account .address {
  background: #fff; border: 1px solid var(--hair); padding: 1.5rem; height: 100%;
}
.page-customer-account .address h4,
.page-customer-account .address .h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; margin: 0 0 .5rem; }
.page-customer-account .address .address-body { font-family: var(--font-text); font-size: .95rem; line-height: 1.65; color: var(--ink); }
.page-customer-account .address address { font-style: normal; margin: 0; }
.page-customer-account .address .address-footer {
  display: flex; gap: 1.25rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hair2);
}
.page-customer-account .address .address-footer a {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem;
}
.page-customer-account .address .address-footer a:hover { color: var(--blue); }
.page-customer-account .addresses-footer { margin-top: 1.5rem; }

/* --- order-detail page boxes --- */
.page-customer-account .box,
.page-customer-account #order-infos,
.page-customer-account .order-info,
.page-customer-account .order-detail-content,
.page-customer-account #order-history-content {
  background: #fff; border: 1px solid var(--hair); padding: 1.5rem; margin-bottom: 1.25rem;
}

/* --- footer / breadcrumb links ("Back to your account", "Home") --- */
.page-customer-account .account-link,
.page-customer-account .page-footer a {
  font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink); display: inline-flex; align-items: center;
  gap: .4rem; margin-right: 1.5rem;
}
.page-customer-account .page-footer a:hover { color: var(--blue); }

/* --- dashboard extra links added by modules (My alerts, GDPR) — tidy them into
   a small inline row under the tiles instead of stray stacked text --- */
.page-customer-account .links .list-group,
.page-customer-account .links .add { margin-top: 1.25rem; }
.page-customer-account .links a.list-group-item,
.page-customer-account #identity .list-group-item {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem;
  margin: 0 .75rem .5rem 0; border: 1px solid var(--hair); background: #fff;
  font-family: var(--font-sans); font-size: .9rem; color: var(--ink);
}
.page-customer-account .links a.list-group-item:hover { border-color: var(--ink); color: var(--blue); }

/* ===========================================================================
   MY ACCOUNT DASHBOARD — make module-added links (My alerts, GDPR, etc.)
   render as the same editorial cards as the 5 built-in links.
   The built-in links carry inline styles; module-hook links arrive with raw
   bootstrap col-* classes and no styling. Scope to every direct <a> child of
   the grid so they all match.
   =========================================================================== */
.page-my-account .pg-account-grid > a {
  background: #fff;
  border: 1px solid var(--hair, #e7e6e1);
  border-radius: 0;                 /* sharp corners — editorial */
  padding: 1.75rem 1.25rem;
  box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; min-height: 132px;
  text-align: center; text-decoration: none;
  color: var(--ink, #111110);
  font-family: var(--font-sans);
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, transform .2s;
  /* neutralise bootstrap col-* width/float/padding on module links */
  max-width: none; width: auto; flex: initial; float: none;
}
.page-my-account .pg-account-grid > a:hover {
  border-color: var(--ink, #111110);
  transform: translateY(-2px);
  box-shadow: none;
}
/* built-in links use inline rounded+shadow style; override to match the flat editorial card */
.page-my-account .pg-account-grid > a[style] {
  border: 1px solid var(--hair, #e7e6e1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 132px;
}
.page-my-account .pg-account-grid > a[style]:hover {
  box-shadow: none !important;
  border-color: var(--ink, #111110) !important;
}
/* module links nest content in span.link-item — make it stack & centre like the built-ins */
.page-my-account .pg-account-grid > a .link-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; width: 100%;
}
/* module-link icons (material-icons / <i>) → accent colour + card-icon size */
.page-my-account .pg-account-grid > a i,
.page-my-account .pg-account-grid > a .material-icons {
  color: var(--blue, #2f6bff);
  font-size: 30px; line-height: 1;
}

/* ============================================================================
   AUTH MODAL — overflow safety on short viewports (mobile landscape, tablets)
   ============================================================================ */
#authModal .modal-dialog {
  max-height: calc(100vh - 2rem);
}
#authModal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#authModal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-height: 600px) {
  #authModal .modal-body { padding: 1rem 1.25rem; }
  #authModal .pg-auth-title { font-size: 1.4rem; }
  #authModal .pg-auth-perk { display: none; }
}

/* #35 — language button: show current ISO code next to globe icon */
.pg-lang-current {
  font-family: var(--font-mono, monospace);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: inherit;
  line-height: 1;
}

/* #18 — account grid: cap at 3 columns to avoid blank cells */
@media (min-width: 640px) {
  .pg-account-grid { grid-template-columns: repeat(3, 1fr); }
}

/* #19 — account module icons: match SVG ink colour (was blue) */
.page-my-account .pg-account-grid > a i,
.page-my-account .pg-account-grid > a .material-icons {
  color: var(--ink, #111110);
  font-size: 26px;
}

/* #31 — auth error message: editorial dark-red style, no pink background */
.pg-auth-msg {
  border: 1px solid var(--hair, rgba(17,17,16,.12));
  border-left: 3px solid #b42318;
  background: #fff;
  color: #b42318;
}

/* === I140: Catalog browse nav (By Product Type / By Solution) === */
.pg-catalog-bar { border-top: 1px solid var(--pg-rule, rgba(17,17,16,.1)); }
.pg-catalog-bar .pg-container { display: flex; align-items: stretch; gap: 0; height: 2.75rem; }
.pg-catalog-nav { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.pg-catalog-nav__all { display: inline-flex; align-items: center; padding: 0 1.25rem 0 0; font-size: .8125rem; font-weight: 600; letter-spacing: .03em; color: var(--pg-ink, #111110); text-decoration: none; border-right: 1px solid var(--pg-rule, rgba(17,17,16,.1)); margin-right: .75rem; white-space: nowrap; }
.pg-catalog-nav__all:hover { color: var(--pg-brand, #0d6efd); }
.pg-catalog-nav__item { position: relative; display: flex; align-items: stretch; }
.pg-catalog-nav__toggle { display: inline-flex; align-items: center; gap: .35rem; padding: 0 1rem; font-size: .8125rem; font-weight: 500; color: var(--pg-ink, #111110); background: transparent; border: none; cursor: pointer; white-space: nowrap; border-radius: 0; transition: color .15s; }
.pg-catalog-nav__toggle:hover, .pg-catalog-nav__item.is-open .pg-catalog-nav__toggle { color: var(--pg-brand, #0d6efd); }
.pg-catalog-nav__caret { transition: transform .2s; flex-shrink: 0; }
.pg-catalog-nav__item.is-open .pg-catalog-nav__caret { transform: rotate(180deg); }
.pg-catalog-nav__panel { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--pg-rule, rgba(17,17,16,.1)); border-radius: 4px; box-shadow: 0 8px 24px rgba(17,17,16,.1); padding: .4rem 0; z-index: 999; }
.pg-catalog-nav__panel a { display: block; padding: .5rem 1.1rem; font-size: .875rem; color: var(--pg-ink, #111110); text-decoration: none; white-space: nowrap; transition: background .12s, color .12s; }
.pg-catalog-nav__panel a:hover { background: var(--bs-body-bg, #fafaf7); color: var(--pg-brand, #0d6efd); }
@media (max-width: 767px) { .pg-catalog-bar { display: none; } }

/* ── Sticky-offset fix: the sticky header now includes the catalog bar
   (By Product Type / By Solution), total ~118px tall. Sticky sidebars and
   the product gallery previously pinned at 92/100px and slid underneath it.
   134px = header stack + breathing room. ── */
@media (min-width: 900px) { .pg-shop-side { top: 134px; } }
.pg-sidebar { top: 134px; }
/* (.pg-pd__gallery fixed at its source — product.tpl inline styles.) */
