/**
 * PH Design System — Bootstrap 5 theme
 * https://www.figma.com/design/w8CHiMKzlHEqZNTB2woXuo/PH-Design-System
 *
 * Foundation: Foundations hub (5:5969), Spacer (5:6008), Typography (5:6177).
 * Components canvas (5:6631) — variable defs sampled per frame:
 * Buttons (5:6675), Badges (5:7060), Form Inputs (5:7130), Alert (5:7310),
 * Radius (5:7631). Navs, Pagination, List group, Button group use the same tokens.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  /* —— PH palette (Foundations + Components variables) —— */
  --ph-primary: #cc0100;
  --ph-primary-hover: #8f0100;
  --ph-primary-light: #e8b8b8;
  --ph-secondary: #212529;
  --ph-secondary-light: #b3b7ba;
  --ph-secondary-med: #4b4f52;
  --ph-gray-100: #e6e8ea;
  --ph-gray-200: #d0d3d6;
  --ph-gray-300: #b3b7ba;
  --ph-gray-400: #8e9397;
  --ph-gray-500: #6b7074;
  --ph-gray-600: #4b4f52;
  --ph-gray-800: #2a2e31;
  --ph-gray-900: #212529;
  --ph-body-text: #68717a;
  --ph-white: #ffffff;
  --ph-light: #f8f9fa;
  --ph-stroke-light: #dee2e6;

  --ph-success: #1e7f5c;
  --ph-success-hover: #1a6f50;
  --ph-success-soft: #e3f3ec;
  --ph-success-text: #0f4330;

  --ph-warning: #f2a900;
  --ph-warning-hover: #b37a00;
  --ph-warning-soft: #fff4d6;
  --ph-warning-text: #8f6100;

  --ph-info: #1f5fa8;
  --ph-info-hover: #1b5596;
  --ph-info-soft: #e6effa;
  --ph-info-text: #143e75;

  --ph-danger: #b00020;
  --ph-danger-hover: #9a001c;
  --ph-danger-soft: #f9dadd;
  --ph-danger-text: #a30100;

  /* —— Spacing scale (Figma Spacer / 5:6008): 4, 8, 12, 16, 20, 24, 28, 32 px —— */
  --ph-space-4: 0.25rem;
  --ph-space-8: 0.5rem;
  --ph-space-12: 0.75rem;
  --ph-space-16: 1rem;
  --ph-space-20: 1.25rem;
  --ph-space-24: 1.5rem;
  --ph-space-28: 1.75rem;
  --ph-space-32: 2rem;

  /* —— Typography sizes (Figma Typography / 5:6177) —— */
  --ph-font-size-h1: 2.5rem;
  --ph-font-size-h2: 2rem;
  --ph-font-size-h3: 1.75rem;
  --ph-font-size-h4: 1.5rem;
  --ph-font-size-h5: 1.25rem;
  --ph-font-size-h6: 1rem;
  --ph-line-height-heading: 1;
  --ph-letter-spacing-h1: -0.05em;
  --ph-letter-spacing-display-2: -0.03125em;

  --ph-display-1-size: 4.5rem;
  --ph-display-2-size: 4rem;
  --ph-display-3-size: 3.625rem;
  --ph-display-4-size: 3.25rem;

  --ph-font-size-lead: 1.3125rem;
  --ph-line-height-lead: calc(36 / 21);
  --ph-font-size-small: 0.75rem;
  --ph-line-height-small: 1;
  --ph-font-size-strong: 1.0625rem;
  --ph-line-height-strong: calc(28 / 17);

  /* —— Bootstrap global —— */
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.75;
  --bs-body-color: var(--ph-body-text);
  --bs-body-bg: var(--ph-white);
  --bs-secondary-color: var(--ph-gray-600);
  --bs-tertiary-color: var(--ph-secondary-light);
  --bs-emphasis-color: var(--ph-gray-900);
  --bs-secondary-bg: var(--ph-gray-100);
  --bs-tertiary-bg: var(--ph-light);

  /* Theme colors — Figma Status Color / Components (5:6675, 5:7310, 5:7060) */
  --bs-primary: var(--ph-primary);
  --bs-primary-rgb: 204, 1, 0;
  --bs-secondary: var(--ph-secondary);
  --bs-secondary-rgb: 33, 37, 41;
  --bs-success: var(--ph-success);
  --bs-success-rgb: 30, 127, 92;
  --bs-info: var(--ph-info);
  --bs-info-rgb: 31, 95, 168;
  --bs-warning: var(--ph-warning);
  --bs-warning-rgb: 242, 169, 0;
  --bs-danger: var(--ph-danger);
  --bs-danger-rgb: 176, 0, 32;
  --bs-light: var(--ph-light);
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: var(--ph-gray-900);
  --bs-dark-rgb: 33, 37, 41;

  /* Alerts, list-group, badges — subtle / emphasis / borders (BS 5.3 + Figma Alert 5:7310) */
  --bs-primary-bg-subtle: var(--ph-primary-light);
  --bs-primary-border-subtle: #d48a8a;
  --bs-primary-text-emphasis: var(--ph-primary-hover);

  --bs-secondary-bg-subtle: var(--ph-gray-100);
  --bs-secondary-border-subtle: var(--ph-gray-300);
  --bs-secondary-text-emphasis: var(--ph-secondary-med);

  --bs-success-bg-subtle: var(--ph-success-soft);
  --bs-success-border-subtle: #9dcbb4;
  --bs-success-text-emphasis: var(--ph-success-text);

  --bs-info-bg-subtle: var(--ph-info-soft);
  --bs-info-border-subtle: #a3c0e4;
  --bs-info-text-emphasis: var(--ph-info-text);

  --bs-warning-bg-subtle: var(--ph-warning-soft);
  --bs-warning-border-subtle: #f5d47a;
  --bs-warning-text-emphasis: var(--ph-warning-text);

  --bs-danger-bg-subtle: var(--ph-danger-soft);
  --bs-danger-border-subtle: #e8a5ad;
  --bs-danger-text-emphasis: var(--ph-danger-text);

  --bs-light-bg-subtle: #fcfcfd;
  --bs-light-border-subtle: var(--ph-gray-200);
  --bs-light-text-emphasis: var(--ph-gray-600);

  --bs-dark-bg-subtle: var(--ph-gray-200);
  --bs-dark-border-subtle: var(--ph-gray-500);
  --bs-dark-text-emphasis: var(--ph-gray-900);

  /* Radius — Figma Components “Radius” (5:7631): sm 4, default 6, lg 8, xl 16, xxl 32 px */
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius: 0.375rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;

  --bs-border-color: var(--ph-stroke-light);
  --bs-border-color-translucent: rgba(33, 37, 41, 0.175);
  --bs-table-border-color: var(--bs-border-color);
  --bs-table-striped-bg: rgba(var(--bs-secondary-rgb), 0.04);
  --bs-table-hover-bg: rgba(var(--bs-secondary-rgb), 0.075);

  /* Forms — validation (BS 5.3 + Figma Form Inputs 5:7130) */
  --bs-form-valid-color: var(--ph-success-text);
  --bs-form-valid-border-color: var(--ph-success);
  --bs-form-invalid-color: var(--ph-danger);
  --bs-form-invalid-border-color: var(--ph-danger);

  /* Pagination, nav pills/tabs — inherit active color from primary */
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  --bs-pagination-color: var(--ph-primary);
  --bs-pagination-hover-color: var(--ph-primary-hover);

  --bs-nav-link-color: var(--ph-primary);
  --bs-nav-link-hover-color: var(--ph-primary-hover);

  /* List group active item */
  --bs-list-group-active-bg: var(--bs-primary);
  --bs-list-group-active-border-color: var(--bs-primary);

  /* Progress bar */
  --bs-progress-bar-bg: var(--bs-primary);

  --bs-link-color: var(--ph-primary);
  --bs-link-hover-color: var(--ph-primary-hover);

  --bs-focus-ring-color: rgba(var(--bs-primary-rgb), 0.35);
  --bs-focus-ring-width: 0.25rem;
}

/* —— Headings: default = Bold row (700). Same pixel sizes as Semi-Bold / Extra-Bold rows —— */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: 700;
  line-height: var(--ph-line-height-heading);
  color: var(--ph-gray-800);
}

h1, .h1 { font-size: var(--ph-font-size-h1); letter-spacing: var(--ph-letter-spacing-h1); }
h2, .h2 { font-size: var(--ph-font-size-h2); }
h3, .h3 { font-size: var(--ph-font-size-h3); }
h4, .h4 { font-size: var(--ph-font-size-h4); }
h5, .h5 { font-size: var(--ph-font-size-h5); }
h6, .h6 { font-size: var(--ph-font-size-h6); }

.ph-heading-semibold :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6).ph-heading-semibold {
  font-weight: 600;
}

.ph-heading-semibold :is(h1, .h1),
:is(h1, .h1).ph-heading-semibold {
  letter-spacing: 0;
}

.ph-heading-extrabold :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6).ph-heading-extrabold {
  font-weight: 800;
}

.ph-heading-extrabold :is(h1, .h1),
:is(h1, .h1).ph-heading-extrabold {
  letter-spacing: 0;
}

/* Display (Large heading — Figma 72 / 64 / 58 / 52 px, bold) */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--ph-gray-800);
}

.display-1,
.display-2,
.display-3,
.display-4 {
  font-weight: 700;
  line-height: var(--ph-line-height-heading);
}

.display-1 { font-size: var(--ph-display-1-size); }
.display-2 { font-size: var(--ph-display-2-size); letter-spacing: var(--ph-letter-spacing-display-2); }
.display-3 { font-size: var(--ph-display-3-size); }
.display-4 { font-size: var(--ph-display-4-size); }

.lead {
  font-size: var(--ph-font-size-lead);
  font-weight: 400;
  line-height: var(--ph-line-height-lead);
}

/* Figma Body/Small — use for captions; keep Bootstrap .small for components */
.ph-text-small {
  font-size: var(--ph-font-size-small);
  line-height: var(--ph-line-height-small);
}

/* Figma Body/Strong — block/callout emphasis; do not style all `strong` globally */
.ph-text-strong {
  font-size: var(--ph-font-size-strong);
  font-weight: 700;
  line-height: var(--ph-line-height-strong);
}

/* Buttons — Components / Buttons (5:6675): M ≈40px, S ≈32px, radius 6, gap 8px */
.btn {
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--bs-border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.125;
  text-align: center;
  gap: var(--ph-space-8);
}

.btn-sm {
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-font-size: 0.875rem;
}

.btn-lg {
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-font-size: 1.125rem;
}

.btn-primary {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-primary);
  --bs-btn-border-color: var(--ph-primary);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-primary-hover);
  --bs-btn-hover-border-color: var(--ph-primary-hover);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-primary-hover);
  --bs-btn-active-border-color: var(--ph-primary-hover);
  --bs-btn-disabled-color: var(--ph-white);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

/* Figma "Secondary" fill = dark charcoal, white label */
.btn-secondary {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-secondary);
  --bs-btn-border-color: var(--ph-secondary);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: #1a1d21;
  --bs-btn-hover-border-color: #1a1d21;
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: #141619;
  --bs-btn-active-border-color: #141619;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.65);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-outline-primary {
  --bs-btn-color: var(--ph-primary);
  --bs-btn-border-color: var(--ph-primary);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-primary);
  --bs-btn-hover-border-color: var(--ph-primary);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-primary-hover);
  --bs-btn-active-border-color: var(--ph-primary-hover);
  --bs-btn-disabled-color: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-outline-secondary {
  --bs-btn-color: var(--ph-secondary);
  --bs-btn-border-color: var(--ph-secondary);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-secondary);
  --bs-btn-hover-border-color: var(--ph-secondary);
}

/* Solid semantic buttons — explicit vars so hover matches Figma (BS dist uses default green/blue hex) */
.btn-success {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-success);
  --bs-btn-border-color: var(--ph-success);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-success-hover);
  --bs-btn-hover-border-color: var(--ph-success-hover);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-success-hover);
  --bs-btn-active-border-color: var(--ph-success-hover);
  --bs-btn-disabled-color: var(--ph-white);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-danger {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-danger);
  --bs-btn-border-color: var(--ph-danger);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-danger-hover);
  --bs-btn-hover-border-color: var(--ph-danger-hover);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-danger-hover);
  --bs-btn-active-border-color: var(--ph-danger-hover);
  --bs-btn-disabled-color: var(--ph-white);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-info {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-info);
  --bs-btn-border-color: var(--ph-info);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-info-hover);
  --bs-btn-hover-border-color: var(--ph-info-hover);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-info-hover);
  --bs-btn-active-border-color: var(--ph-info-hover);
  --bs-btn-disabled-color: var(--ph-white);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-warning {
  --bs-btn-color: var(--ph-gray-900);
  --bs-btn-bg: var(--ph-warning);
  --bs-btn-border-color: var(--ph-warning);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: var(--ph-warning-hover);
  --bs-btn-hover-border-color: var(--ph-warning-hover);
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: var(--ph-warning-text);
  --bs-btn-active-border-color: var(--ph-warning-text);
  --bs-btn-disabled-color: var(--ph-gray-500);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

.btn-light {
  --bs-btn-color: var(--ph-gray-900);
  --bs-btn-bg: var(--ph-white);
  --bs-btn-border-color: var(--ph-stroke-light);
  --bs-btn-hover-color: var(--ph-gray-900);
  --bs-btn-hover-bg: var(--ph-gray-100);
  --bs-btn-hover-border-color: var(--ph-gray-300);
  --bs-btn-active-color: var(--ph-gray-900);
  --bs-btn-active-bg: var(--ph-gray-200);
  --bs-btn-active-border-color: var(--ph-gray-300);
  --bs-btn-disabled-color: var(--ph-gray-500);
  --bs-btn-disabled-bg: var(--ph-gray-100);
  --bs-btn-disabled-border-color: var(--ph-stroke-light);
}

.btn-dark {
  --bs-btn-color: var(--ph-white);
  --bs-btn-bg: var(--ph-gray-900);
  --bs-btn-border-color: var(--ph-gray-900);
  --bs-btn-hover-color: var(--ph-white);
  --bs-btn-hover-bg: #1a1d20;
  --bs-btn-hover-border-color: #1a1d20;
  --bs-btn-active-color: var(--ph-white);
  --bs-btn-active-bg: #141619;
  --bs-btn-active-border-color: #141619;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.65);
  --bs-btn-disabled-bg: var(--ph-secondary-light);
  --bs-btn-disabled-border-color: var(--ph-secondary-light);
}

/* Outline + ghost — theme colors already map to PH via --bs-* */
.btn-outline-success,
.btn-outline-danger,
.btn-outline-info {
  --bs-btn-hover-color: #fff;
}

.btn-outline-warning {
  --bs-btn-color: var(--ph-warning-text);
  --bs-btn-border-color: var(--ph-warning);
  --bs-btn-hover-color: var(--ph-gray-900);
  --bs-btn-hover-bg: var(--ph-warning);
  --bs-btn-hover-border-color: var(--ph-warning);
}

/* "Invisible" / text-style actions (Figma ghost variants) */
.btn-link[class*="ph-btn-ghost-"] {
  text-decoration: none;
  font-weight: 600;
}

.btn-link.ph-btn-ghost-primary { --bs-btn-color: var(--ph-primary); --bs-btn-hover-color: var(--ph-primary-hover); }
.btn-link.ph-btn-ghost-secondary { --bs-btn-color: var(--ph-secondary); --bs-btn-hover-color: #000; }
.btn-link.ph-btn-ghost-success { --bs-btn-color: var(--ph-success); --bs-btn-hover-color: var(--ph-success-hover); }
.btn-link.ph-btn-ghost-danger { --bs-btn-color: var(--ph-danger); --bs-btn-hover-color: var(--ph-danger-hover); }
.btn-link.ph-btn-ghost-warning { --bs-btn-color: var(--ph-warning-text); --bs-btn-hover-color: var(--ph-warning-hover); }
.btn-link.ph-btn-ghost-info { --bs-btn-color: var(--ph-info); --bs-btn-hover-color: var(--ph-info-hover); }

/* Forms — Components “Form Inputs” (5:7130); radius matches Radius / default */
.form-control,
.form-select,
.input-group-text {
  border-radius: var(--bs-border-radius);
  border-color: var(--bs-border-color);
  color: var(--ph-gray-900);
}

.form-control::placeholder {
  color: var(--ph-gray-500);
}

.form-control:disabled,
.form-select:disabled {
  background-color: var(--ph-gray-100);
  color: var(--ph-gray-500);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.form-label,
.col-form-label {
  color: var(--ph-gray-900);
  font-weight: 700;
}

.valid-feedback {
  color: var(--ph-success-text);
}

.invalid-feedback {
  color: var(--ph-danger);
}

/* Cards, dropdowns — use design-system radius scale */
.card {
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
}

.dropdown-menu {
  border-radius: var(--bs-border-radius-lg);
  border-color: var(--bs-border-color);
}

.modal-content {
  border-radius: var(--bs-border-radius-xl);
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--ph-secondary-light);
}

/* Accordion (UI Kit) — match stroke + radius */
.accordion-item {
  border-color: var(--bs-border-color);
}

.accordion-button:not(.collapsed) {
  color: var(--ph-gray-900);
  background-color: var(--ph-gray-100);
  box-shadow: inset 0 calc(-1 * var(--bs-border-width)) 0 var(--bs-border-color);
}

.accordion-button:focus {
  box-shadow: inset 0 calc(-1 * var(--bs-border-width)) 0 var(--bs-border-color),
    0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.toast {
  border-radius: var(--bs-border-radius-lg);
  border-color: var(--bs-border-color);
}

.nav-tabs .nav-link {
  border-top-left-radius: var(--bs-border-radius);
  border-top-right-radius: var(--bs-border-radius);
}

.nav-pills .nav-link {
  border-radius: var(--bs-border-radius-lg);
}

/* Design-system layout helpers */
.ph-ds-swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
}

.ph-ds-nav {
  position: sticky;
  top: 1rem;
}

.ph-page-header {
  background: linear-gradient(
    180deg,
    var(--ph-gray-100) 0%,
    var(--ph-white) 100%
  );
  border-bottom: 1px solid var(--bs-border-color);
}

/* —— Site header — P-H Website / Navigation (Figma 667:18379) —— */
.ph-site-header {
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.2) 53.714%
    ),
    var(--ph-secondary-med);
  color: var(--ph-white);
}

.ph-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ph-space-16);
  padding-right: var(--ph-space-16);
}

/* Figma: category row outer px-16 + inner Main Nav px-24 */
.ph-nav-inner--categories {
  padding-left: calc(var(--ph-space-16) + var(--ph-space-24));
  padding-right: calc(var(--ph-space-16) + var(--ph-space-24));
}

.ph-nav-tier--utility {
  min-height: 24px;
}

.ph-nav-tier--utility .ph-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ph-space-8);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.875rem;
}

.ph-nav-util-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.95;
}

.ph-nav-util-links {
  gap: var(--ph-space-16);
}

.ph-nav-util-link {
  color: var(--ph-white);
  text-decoration: none;
  padding: 0.375rem var(--ph-space-16);
  white-space: nowrap;
}

.ph-nav-util-link:hover,
.ph-nav-util-link:focus {
  color: var(--ph-white);
  text-decoration: underline;
}

.ph-nav-mobile-toggle {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  flex: 0 0 2rem;
  padding: 0;
  color: var(--ph-white);
  background: transparent;
  border: 1px solid var(--ph-white);
  border-radius: 0.25rem;
}

.ph-nav-mobile-toggle .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.ph-nav-mobile-toggle:hover,
.ph-nav-mobile-toggle:focus {
  color: var(--ph-white);
  opacity: 0.85;
  background: transparent;
}

.ph-nav-mobile-menu {
  --bs-offcanvas-width: min(22rem, 92vw);
  background: #161a1d;
  color: var(--ph-white);
}

/* ── Header ── */
.ph-nav-mobile-menu-header {
  padding: 1.125rem 1.25rem 1.125rem 1.5rem;
  background: linear-gradient(135deg, #1c2026 0%, #1a1d21 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  align-items: center;
}

.ph-nav-mobile-menu-brand {
  display: block;
  line-height: 0;
}

.ph-nav-mobile-menu-logo {
  height: 1.625rem;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Body ── */
.ph-nav-mobile-menu-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── Sections ── */
.ph-nav-mobile-section {
  padding: 0.5rem 0;
}

.ph-nav-mobile-section + .ph-nav-mobile-section,
.ph-nav-mobile-section--account {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Nav items ── */
.ph-nav-mobile-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8125rem 1.25rem 0.8125rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border-left: 3px solid transparent;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.ph-nav-mobile-item:hover,
.ph-nav-mobile-item:focus {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  border-left-color: var(--ph-primary);
  text-decoration: none;
}

.ph-nav-mobile-item:hover .ph-nav-mobile-item-icon,
.ph-nav-mobile-item:focus .ph-nav-mobile-item-icon {
  background: rgba(204, 1, 0, 0.18);
  color: #f08080;
}

.ph-nav-mobile-item-icon {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.14s ease, color 0.14s ease;
}

.ph-nav-mobile-item-label {
  flex: 1;
  min-width: 0;
}

.ph-nav-mobile-item-chevron {
  font-size: 0.6875rem;
  opacity: 0.35;
  flex-shrink: 0;
}

/* ── Login item ── */
.ph-nav-mobile-item--login {
  color: rgba(255, 255, 255, 0.88);
}

.ph-nav-mobile-item--login .ph-nav-mobile-item-icon {
  background: rgba(13, 110, 253, 0.18);
  color: #8ab4f8;
}

.ph-nav-mobile-item--login:hover .ph-nav-mobile-item-icon,
.ph-nav-mobile-item--login:focus .ph-nav-mobile-item-icon {
  background: rgba(13, 110, 253, 0.3);
  color: #8ab4f8;
}

/* ── Log Out item ── */
.ph-nav-mobile-item--logout {
  color: rgba(255, 180, 180, 0.9);
}

.ph-nav-mobile-item--logout .ph-nav-mobile-item-icon {
  background: rgba(204, 1, 0, 0.18);
  color: #f08080;
}

.ph-nav-mobile-item--logout:hover,
.ph-nav-mobile-item--logout:focus {
  color: #ffb3b3;
  border-left-color: var(--ph-primary);
}

.ph-nav-mobile-item--logout:hover .ph-nav-mobile-item-icon,
.ph-nav-mobile-item--logout:focus .ph-nav-mobile-item-icon {
  background: rgba(204, 1, 0, 0.3);
  color: #f08080;
}

/* ── Phone CTA ── */
.ph-nav-mobile-cta {
  padding: 1rem 1.25rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ph-nav-mobile-cta-phone {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(204, 1, 0, 0.1);
  border: 1px solid rgba(204, 1, 0, 0.25);
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ph-nav-mobile-cta-phone:hover,
.ph-nav-mobile-cta-phone:focus {
  background: rgba(204, 1, 0, 0.2);
  border-color: rgba(204, 1, 0, 0.45);
  color: #fff;
  text-decoration: none;
}

.ph-nav-mobile-cta-phone-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ph-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(204, 1, 0, 0.45);
}

.ph-nav-mobile-cta-phone-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.ph-nav-mobile-cta-phone-number {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Figma: Font Awesome chevron-down (16px), not Bootstrap triangle caret */
.ph-site-header .dropdown-toggle::after {
  display: none !important;
  margin-left: 0 !important;
  border: 0 !important;
  content: none !important;
}

/* Figma NavItems: flex gap-[4px] between label block and 16px chevron */
.ph-site-header .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: var(--ph-space-4);
  row-gap: 0;
}

.ph-site-header .ph-dropdown-label {
  line-height: normal;
  white-space: nowrap;
}

.ph-site-header .ph-dropdown-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
  line-height: 1;
  color: inherit;
  margin: 0;
}

.ph-site-header .btn-link.dropdown-toggle,
.ph-site-header .btn-link.ph-cat-link {
  color: var(--ph-white);
  text-decoration: none;
  /* Figma utility + product NavItems: px-16 py-6 */
  padding: 6px var(--ph-space-16);
  font-size: 0.875rem;
}

.ph-site-header .btn-link.dropdown-toggle:hover,
.ph-site-header .btn-link.dropdown-toggle:focus,
.ph-site-header .btn-link.ph-cat-link:hover,
.ph-site-header .btn-link.ph-cat-link:focus {
  color: var(--ph-white);
}

.ph-site-header .dropdown-menu {
  font-size: 0.875rem;
}

.ph-nav-tier--main .ph-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ph-space-24);
  padding-top: var(--ph-space-8);
  padding-bottom: var(--ph-space-8);
}

.ph-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.ph-logo__svg {
  display: block;
  width: 300px;
  max-width: min(300px, 72vw);
  height: auto;
}

.ph-nav-search-wrap {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
}

.ph-nav-search-icon-wrap {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1;
}

.ph-logo--mini svg {
  display: block;
  width: 2.8125rem;
  height: 2.25rem;
}

.ph-nav-search {
  background: #e9ecef !important;
  border: 1px solid transparent;
  color: #212529;
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 2.25rem 0.5rem var(--ph-space-16);
}

.ph-nav-search::placeholder {
  color: #6c757d;
}

.ph-nav-search:focus {
  background: #fff !important;
  border-color: rgba(255, 255, 255, 0.6);
  color: #212529;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.ph-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--ph-space-8);
  flex-shrink: 0;
}

.ph-nav-icon-group {
  padding-left: var(--ph-space-8);
  padding-right: var(--ph-space-8);
}

.ph-nav-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-white) !important;
  border-radius: 0;
  background: transparent;
  border: none;
}

.ph-nav-icon-btn:hover,
.ph-nav-icon-btn:focus {
  background: transparent;
  color: var(--ph-white) !important;
  opacity: 0.85;
}

.ph-nav-icon-btn .bi {
  font-size: 1.5rem;
}

/* ── Auth user nav bar ──────────────────────────────────────────────────────── */
.ph-user-nav-bar {
  background: transparent;
}
.ph-user-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: .3rem 1rem .75rem;
}
.ph-user-nav-btn-group {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  width: 100%;
  background: rgba(0, 0, 0, .2);
  border-radius: .4rem;
  padding: .2rem;
}
.ph-user-nav-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.ph-user-nav-btn i { font-size: 1rem; }
.ph-user-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-radius: .25rem;
}
.ph-user-nav-btn.is-active { color: #fff; }

@media (max-width: 991px) {
  .ph-user-nav-bar-inner {
    padding: .3rem .5rem .6rem;
  }
  .ph-user-nav-btn-group {
    justify-content: space-around;
  }
  .ph-user-nav-btn {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    padding: .4rem .25rem;
    white-space: normal;
    text-align: center;
  }
  .ph-user-nav-btn i { font-size: 1.2rem; }
  .ph-user-nav-label { font-size: .65rem; line-height: 1.2; }
}

.ph-nav-tier--categories {
  background-color: var(--ph-gray-900);
  border-bottom: 1px solid var(--ph-gray-600);
  position: relative;
  overflow: visible;
}

@media (max-width: 767px) {
  .ph-nav-tier--categories { margin-top: 0.5rem; }
}

/* Category mega panel */

.ph-product-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ph-product-nav::-webkit-scrollbar {
  display: none;
}

.ph-cat-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  position: relative;
}
.ph-cat-btn:hover,
.ph-cat-btn.is-active {
  color: #fff;
  border-bottom-color: var(--ph-primary);
  background: rgba(255, 255, 255, 0.07);
}
.ph-cat-btn .ph-cat-icon {
  font-size: 1.375rem;
  line-height: 1;
  display: block;
  transition: transform 0.15s;
}
.ph-cat-btn.is-active .ph-cat-icon {
  transform: scale(1.1);
  color: var(--ph-primary);
}
.ph-cat-btn .ph-cat-label {
  display: block;
  font-size: 0.8rem;
  line-height: 1;
  margin-top: 0.125rem;
}

.ph-mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 2px solid var(--ph-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  z-index: 1200;
  display: none;
}
.ph-mega-panel.is-open {
  display: block;
}

.ph-mega-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.ph-mega-grid-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  align-content: start;
}

.ph-mega-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  color: #212529;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.25;
  transition: background 0.12s, color 0.12s;
}
.ph-mega-link:hover {
  background: #e6e8ea;
  color: var(--ph-primary);
}

.ph-mega-link-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #e6e8ea;
  color: #4b4f52;
  font-size: 1rem;
  overflow: hidden;
  transition: background 0.12s, color 0.12s;
}
.ph-mega-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-mega-link:hover .ph-mega-link-icon {
  background: #e8b8b8;
  color: var(--ph-primary);
}

.ph-mega-cta-col {
  flex: 0 0 11rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 1px solid #d0d3d6;
  text-align: center;
}
.ph-mega-cta-img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.ph-mega-section {
  display: none;
}
.ph-mega-section.is-active {
  display: contents;
}

@media (max-width: 991px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ph-site-header {
    overflow-x: clip;
  }

  .ph-nav-inner {
    padding-left: var(--ph-space-8);
    padding-right: var(--ph-space-8);
  }

  .ph-nav-tier--utility .ph-nav-inner {
    flex-wrap: wrap;
  }

  .ph-nav-util-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .ph-nav-tier--main .ph-nav-inner {
    flex-wrap: nowrap;
    gap: var(--ph-space-4);
    padding-top: var(--ph-space-8);
    padding-bottom: var(--ph-space-8);
  }

  .ph-nav-tier--main .ph-nav-inner > * {
    min-width: 0;
  }

  .ph-nav-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ph-nav-actions {
    margin-left: 0 !important;
    gap: var(--ph-space-4);
  }

  .ph-nav-icon-group {
    padding-left: 0;
    padding-right: 0;
    gap: var(--ph-space-8) !important;
  }

  .ph-nav-icon-btn {
    width: 2rem;
    height: 2rem;
  }

  .ph-nav-icon-btn .bi {
    font-size: 1.375rem;
  }

  .ph-nav-icon-btn.position-relative {
    margin-right: 0.875rem;
  }

  .ph-nav-search {
    min-height: 2.25rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .ph-nav-inner--categories {
    padding-left: 0;
    padding-right: 0;
  }

  .ph-product-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0.375rem 0.5rem;
  }

  .ph-cat-btn {
    white-space: normal;
    padding: 0.5rem 0.25rem;
    border-bottom-width: 2px;
    gap: 0.2rem;
  }
  .ph-cat-btn .ph-cat-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: rgba(179, 183, 186, 0.2);
    font-size: 1.25rem;
  }
  .ph-cat-btn.is-active .ph-cat-icon {
    background: rgba(204, 1, 0, 0.15);
    color: var(--ph-primary);
  }
  .ph-cat-btn .ph-cat-label {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .ph-mega-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
  }
  .ph-mega-inner {
    flex-direction: column;
    padding: 0 1rem;
  }
  .ph-mega-grid-col {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0;
  }
  .ph-mega-cta-col {
    border-left: none;
    border-top: 1px solid #d0d3d6;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.875rem 0;
    flex: none;
  }
  .ph-mega-cta-img {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
  }
}

@media (max-width: 575px) {
  .ph-mega-grid-col {
    grid-template-columns: 1fr 1fr;
  }
  .ph-mega-link {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  .ph-mega-link-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
}

/* —— Overlay Homeowner Banner — P-H Website (Figma 667:18380) —— */

.ph-homeowner-banner__inner {
  min-height: 3rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  /* d-flex + alignment + gap + horizontal padding handled in HTML */
}

.ph-homeowner-banner__text,
.ph-homeowner-banner__link {
  letter-spacing: -0.0195em;
  white-space: nowrap;
}

.ph-homeowner-banner__link:hover,
.ph-homeowner-banner__link:focus {
  text-decoration: underline;
}

.ph-homeowner-banner__close {
  min-width: 1.5rem;
  min-height: 1.5rem;
}

.ph-homeowner-banner__close:hover,
.ph-homeowner-banner__close:focus {
  opacity: 0.85;
}

@media (max-width: 1199px) {
  .ph-homeowner-banner__inner {
    padding: 0.5rem 0;
  }

  .ph-homeowner-banner__text,
  .ph-homeowner-banner__link {
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .ph-homeowner-banner__text,
  .ph-homeowner-banner__link {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* —— Hero — P-H Website / Hero (Figma 667:18386) —— */
.ph-hero {
  position: relative;
  min-height: 29.625rem;
  padding: 4.875rem 3rem;
  overflow: hidden;
}

.ph-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(242.93deg, rgba(0, 0, 0, 0) 27.9%, rgba(0, 0, 0, 0.5) 95.29%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.ph-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ph-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ph-white);
}

.ph-hero__title {
  margin: 0;
  color: var(--ph-white);
  font-size: 3rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.019em;
}

.ph-hero__subtitle {
  margin: 0;
  color: var(--ph-white);
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.019em;
}

.ph-hero__search {
  width: 100%;
  max-width: 30.4375rem;
  display: flex;
  align-items: center;
}

.ph-hero__search-input {
  height: 3rem;
  border: 1px solid var(--ph-secondary);
  border-right: 0;
  border-radius: 0.375rem 0 0 0.375rem;
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.25rem;
  padding: 0.875rem 1rem;
}

.ph-hero__search-input::placeholder {
  color: var(--ph-secondary-light);
  opacity: 1;
}

.ph-hero__search-input:focus {
  border-color: var(--ph-secondary);
  box-shadow: none;
}

.ph-hero__search-btn {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  flex: 0 0 3rem;
  border-radius: 0 0.375rem 0.375rem 0;
  border: 1px solid var(--ph-secondary);
  border-left: 0;
  background: var(--ph-white);
  color: var(--ph-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
  transform: none;
}

.ph-hero__search-btn:hover,
.ph-hero__search-btn:focus,
.ph-hero__search-btn:active {
  background: var(--ph-white);
  color: var(--ph-secondary);
  border-color: var(--ph-secondary);
  border-left: 0;
  box-shadow: none;
  transform: none;
}

.ph-hero__btn {
  min-height: 3rem;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-hero__btn--primary {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
}

@media (max-width: 991px) {
  .ph-hero {
    padding: 3rem 1rem;
    min-height: 24rem;
  }

  .ph-hero__title {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .ph-hero__subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* —— Shop by Category — P-H Website / ProductCategories (Figma 667:18395) —— */
.ph-shop-categories {
  background-color: var(--ph-white);
  padding: 3rem var(--ph-space-16);
}

.ph-shop-categories__inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3rem;
}

.ph-shop-categories__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ph-space-8);
  text-align: center;
}

.ph-shop-categories__title {
  margin: 0;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: var(--ph-gray-900);
  letter-spacing: 0.023em;
}

.ph-shop-categories__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: var(--ph-gray-900);
  letter-spacing: -0.0195em;
}

.ph-shop-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ph-space-24);
}

@media (min-width: 768px) {
  .ph-shop-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .ph-shop-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ph-shop-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 221.5px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  color: var(--ph-white);
}

.ph-shop-cat-card:focus-within {
  outline: 2px solid var(--ph-primary);
  outline-offset: 3px;
}

.ph-shop-cat-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-shop-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-shop-cat-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.ph-shop-cat-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 87.82%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 0;
  flex: 1 1 auto;
  min-height: 221.5px;
  text-align: center;
}

.ph-shop-cat-card__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ph-white);
}

/* Wrap submit control; matches design-system.html “Outline light” on dark */
.ph-shop-cat-card__form {
  margin: 0;
  display: inline-block;
}

/* Industry Events (667:18438): shell + tokens Bootstrap does not ship */
.ph-industry-events {
  background-color: #3a3e41;
  padding: 3rem var(--ph-space-16);
}

.ph-industry-events-muted {
  color: #d1d5dc;
  letter-spacing: -0.01953125em;
}

.ph-event-card {
  --bs-card-bg: var(--ph-secondary-med);
  --bs-card-color: var(--ph-white);
  background-color: var(--ph-secondary-med);
}

.ph-event-featured-badge {
  top: 1.3125rem;
  border-radius: 0.25rem 0 0 0.25rem !important;
}

.ph-industry-events header > h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.0103em;
}

/* 20px / 28px event titles — global heading line-height is 1 */
.ph-industry-events .card h3.fs-5 {
  line-height: 1.75rem;
  letter-spacing: -0.0281em;
}

/* Meta rows: Figma gap-[12px] */
.ph-industry-events .card-body ul.list-unstyled.vstack {
  gap: 0.75rem;
}

/* Gray/100 body lines on cards */
.ph-industry-events .card .card-body ul span.fs-6,
.ph-industry-events .card .card-body p.fs-6 {
  color: var(--ph-gray-100);
  letter-spacing: -0.01953125em;
}

/* Learn More h-[50px]; View All h-[48px] (Figma) */
.ph-industry-events .btn-outline-light {
  min-height: 50px;
  box-sizing: border-box;
  line-height: 1.125rem;
}

.ph-industry-events .btn-primary {
  min-height: 48px;
  box-sizing: border-box;
  line-height: 1.125rem;
}

@media (max-width: 991px) {
  .ph-industry-events {
    padding: 3rem var(--ph-space-16);
  }

  .ph-industry-events .container {
    padding-left: 0;
    padding-right: 0;
  }

  .ph-industry-events header.mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .ph-industry-events footer.mt-5 {
    margin-top: 1.5rem !important;
  }
}

/* Featured Products (667:18539) */
.ph-featured-products {
  background: #f9fafb;
  border-color: var(--ph-gray-100) !important;
}

.ph-featured-products__title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.0103em;
}

.ph-featured-products__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
}

.ph-featured-products__view-all {
  color: var(--ph-primary);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01953125em;
}

.ph-featured-products__view-all:hover,
.ph-featured-products__view-all:focus {
  color: var(--ph-primary-hover);
}

.ph-featured-product-card {
  border-radius: 1rem;
}

.ph-featured-product-card__media {
  height: 13.5rem;
  background: var(--ph-info);
}

.ph-featured-product-card__badge,
.ph-recently-purchased__badge {
  position: absolute;
  top: 1rem;
  right: 0;
  border-radius: 0.25rem 0 0 0.25rem;
  min-width: 5.125rem;
  min-height: 1.75rem;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: -0.0107em;
}

.ph-featured-product-card__category,
.ph-featured-product-card__desc {
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.0107em;
}

.ph-featured-product-card__category { color: var(--ph-gray-500); }
.ph-featured-product-card__desc { color: var(--ph-gray-600); }

.ph-featured-product-card__name,
.ph-recently-purchased__name {
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.6875rem;
  letter-spacing: -0.0275em;
}

.ph-featured-product-card__price {
  color: var(--ph-primary);
  font-size: 2.25rem;
  line-height: 2rem;
  letter-spacing: 0.0703px;
  font-weight: 700;
}

.ph-featured-products .btn-secondary.btn-sm {
  --bs-btn-bg: var(--ph-secondary);
  --bs-btn-border-color: var(--ph-secondary);
  --bs-btn-hover-bg: #141619;
  --bs-btn-hover-border-color: #141619;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-padding-x: 0.75rem;
  min-height: 2rem;
  line-height: 1rem;
}

/* What Contractors Say (667:18636) */
.ph-testimonials {
  background: var(--ph-gray-100);
  border-color: var(--ph-gray-100) !important;
}

.ph-testimonials__title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.0103em;
}

.ph-testimonials__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
}

.ph-testimonials__panel {
  min-height: 26.625rem;
}

.ph-testimonials__stars {
  gap: 0.125rem;
  font-size: 1.5rem;
  line-height: 1;
}

.ph-testimonials__quote {
  color: var(--ph-secondary);
  font-size: 2.25rem;
  line-height: 2.4375rem;
  letter-spacing: 0.0703px;
}

.ph-testimonials__meta {
  color: var(--ph-gray-600);
}

.ph-testimonials__control {
  width: 5rem;
  height: 5rem;
  opacity: 1;
}

.ph-testimonials__control-icon {
  color: var(--ph-secondary-light);
  font-size: 5rem;
  line-height: 1;
}

.ph-testimonials__cta {
  min-height: 3.125rem;
}

@media (max-width: 991px) {
  .ph-testimonials__title {
    font-size: 1.875rem;
    line-height: 2.125rem;
  }

  .ph-testimonials__subtitle {
    font-size: 0.9375rem;
    line-height: 1.375rem;
  }

  .ph-testimonials .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ph-testimonials .d-flex.align-items-center.justify-content-center.gap-3 {
    position: relative;
    gap: 0 !important;
  }

  .ph-testimonials #phTestimonialsCarousel {
    width: 100%;
    flex: 0 1 100%;
  }

  .ph-testimonials__panel {
    padding: 1.5rem 1rem !important;
    min-height: 0;
  }

  .ph-testimonials__control {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2rem;
    height: 2rem;
    opacity: 0.9;
  }

  .ph-testimonials .carousel-control-prev.ph-testimonials__control {
    left: 0.125rem;
  }

  .ph-testimonials .carousel-control-next.ph-testimonials__control {
    right: 0.125rem;
  }

  .ph-testimonials__control-icon {
    font-size: 1.625rem;
  }

  .ph-testimonials__quote {
    font-size: 1.125rem;
    line-height: 1.55rem;
    margin-bottom: 1rem !important;
  }
}

/* Trusted Brands (667:18675) */
.ph-trusted-brands {
  background: var(--ph-secondary);
  overflow: hidden;
}

.ph-trusted-brands__title {
  color: var(--ph-white);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: 0.3955px;
}

.ph-trusted-brands__subtitle {
  color: var(--ph-secondary-light);
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
}

.ph-trusted-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 0;
}

.ph-trusted-brands__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 0.625rem;
  padding: 0.75rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ph-trusted-brands__logo-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.ph-trusted-brands__logo-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-trusted-brands__logo {
  height: 2rem;
  max-width: 7.5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.ph-trusted-brands__logo-wrap:hover .ph-trusted-brands__logo {
  filter: grayscale(1);
  opacity: 1;
}


/* Our Locations (667:18698) */
.ph-locations {
  background: #f9fafb;
}

.ph-locations__title {
  color: var(--ph-secondary);
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.0103em;
}

.ph-locations__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
}

.ph-locations__map-wrap {
  background: rgba(255, 255, 255, 0);
  border-color: var(--ph-secondary) !important;
}

.ph-locations__map {
  height: 31.375rem;
  border-radius: 0.75rem;
}

.ph-locations__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #2d2d2d;
  color: var(--ph-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 0;
  padding: 0;
}

.ph-locations__marker .bi {
  font-size: 1.5rem;
  line-height: 1;
}

.ph-locations__marker:hover,
.ph-locations__marker:focus {
  background: #1f2326;
  color: var(--ph-white);
}

.ph-locations__card {
  border-color: #e5e7eb !important;
}

.ph-locations__icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--ph-secondary);
}

.ph-locations__icon-circle .bi {
  font-size: 1.5rem;
  line-height: 1;
}

.ph-locations__card-title {
  color: var(--ph-secondary);
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.0281em;
  font-weight: 700;
}

.ph-locations__badge {
  border-radius: 0.25rem;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.ph-locations__badge--hq {
  background: var(--ph-info);
  color: var(--ph-white);
}

.ph-locations__badge--showroom {
  background: var(--ph-secondary);
  color: var(--ph-white);
}

.ph-locations__badge--distribution {
  background: var(--ph-gray-400);
  color: var(--ph-white);
}

.ph-locations__badge--preferred {
  background: var(--ph-gray-100);
  color: var(--ph-gray-600);
}

.ph-locations__line {
  color: var(--ph-gray-600);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.0107em;
}

.ph-locations__directions {
  color: var(--ph-primary);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.ph-locations__directions:hover,
.ph-locations__directions:focus {
  color: var(--ph-primary-hover);
  text-decoration: underline;
}

/* About Hero (667:18710) */
.ph-about-hero {
  position: relative;
  min-height: 19.875rem;
  padding: 2.25rem 3rem;
  overflow: hidden;
}

.ph-about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ph-about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-about-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(225.28deg, rgba(0, 0, 0, 0) 27.9%, rgba(0, 0, 0, 0.5) 95.29%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.ph-about-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ph-about-hero__content {
  color: var(--ph-white);
}

.ph-about-hero__title {
  margin: 0;
  color: var(--ph-white);
  font-size: 3rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.019em;
}

.ph-about-hero__subtitle {
  margin: 0;
  max-width: 46.25rem;
  color: var(--ph-white);
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.019em;
}

@media (max-width: 991px) {
  .ph-about-hero {
    padding: 2rem 1rem;
    min-height: 16rem;
  }

  .ph-about-hero__title {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .ph-about-hero__subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* History (667:18718) */
.ph-history {
  background: #6e0000;
  padding: 3rem 0;
}

.ph-history__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ph-history__intro {
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.ph-history__title {
  color: var(--ph-white);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.ph-history__subtitle {
  color: var(--ph-primary-light);
  font-size: 1rem;
  line-height: 1.5;
}

.ph-history__body {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  padding-right: 3rem;
}

.ph-history__media {
  width: 31.3125rem;
  min-width: 31.3125rem;
  height: 31.625rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.ph-history__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-history__copy {
  color: var(--ph-white);
  width: 100%;
  max-width: 37.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
  padding: 3rem;
}

.ph-history__copy-title {
  margin: 0 0 0.25rem;
  color: var(--ph-white);
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.ph-history__copy p {
  margin: 0 0 1rem;
}

/* Careers (667:18729) */
.ph-careers {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 0;
}

.ph-careers__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ph-careers__body {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
}

.ph-careers__content {
  flex: 1 1 auto;
  max-width: 41.5625rem;
}

.ph-careers__media {
  width: 24.4375rem;
  min-width: 24.4375rem;
  height: 31.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.ph-careers__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-careers__intro {
  max-width: 39.4375rem;
  margin-bottom: 1rem;
}

.ph-careers__title {
  color: var(--ph-secondary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.ph-careers__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1;
}

.ph-careers__copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1;
}

.ph-careers__actions {
  margin-top: 3rem;
  padding-left: 3rem;
}

.ph-careers__cta {
  min-height: 3rem;
}

@media (max-width: 991px) {
  .ph-history__copy {
    padding: 1rem var(--ph-space-16) 0;
  }

  .ph-history__intro {
    padding: 0 var(--ph-space-16);
  }

  .ph-history__body {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 var(--ph-space-16);
  }

  .ph-history__media {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 501 / 506;
  }

  .ph-careers__body {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 var(--ph-space-16) 2rem;
  }

  .ph-careers__content {
    max-width: none;
  }

  .ph-careers__media {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 391 / 508;
  }

  .ph-careers__intro {
    max-width: none;
    margin-bottom: 1rem;
  }

  .ph-careers__subtitle,
  .ph-careers__copy {
    line-height: 1.5;
  }

  .ph-careers__copy {
    grid-template-columns: 1fr;
  }

  .ph-careers__actions {
    margin-top: 1.5rem;
    padding-left: 0;
  }
}

/* Insights + FAQs (667:18885) */
.ph-insights {
  background: var(--ph-white);
}

.ph-insights__inner,
.ph-faq__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ph-insights__intro {
  padding: 3rem var(--ph-space-16) 0;
}

.ph-insights__title,
.ph-faq__title {
  color: var(--ph-secondary);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.ph-insights__subtitle,
.ph-faq__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-insights__body {
  padding: 3rem var(--ph-space-16);
}

.ph-blog-card {
  border: 1px solid #e6e8ea;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.ph-blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ph-blog-card__img-wrap {
  display: block;
  overflow: hidden;
}

.ph-blog-card__img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.ph-blog-card:hover .ph-blog-card__img {
  transform: scale(1.03);
}

.ph-blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ph-secondary);
}

.ph-blog-card__title a {
  color: inherit;
}

.ph-blog-card__title a:hover {
  color: var(--ph-primary);
}

.ph-blog-card__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ph-gray-600);
}

.ph-insights__more {
  min-height: 3rem;
}

.ph-faq {
  background: var(--ph-gray-100);
}

.ph-faq__intro {
  padding: 3rem var(--ph-space-16) 0;
}

.ph-faq__accordion {
  padding: 3rem var(--ph-space-16);
}

.ph-faq__item {
  border: 0;
  border-radius: 0.75rem !important;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.ph-faq__item--expanded {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ph-faq__button {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ph-secondary);
  background: var(--ph-white);
  padding: 1rem;
}

.ph-faq__button:not(.collapsed) {
  color: var(--ph-secondary);
  background: var(--ph-white);
  box-shadow: none;
}

.ph-faq__button:focus {
  box-shadow: none;
}

.ph-faq__answer {
  padding: 0.5rem 1rem 1rem 2.5rem;
}

.ph-faq__answer p {
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-faq__updated {
  color: var(--ph-gray-600) !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
}


/* Article Detail (695:37294) */
.ph-article-detail {
  background: var(--ph-gray-100);
}

.ph-article-detail__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--ph-space-16);
}

.ph-article-detail__header {
  padding: 0 var(--ph-space-16);
}

.ph-article-detail__breadcrumb {
  --bs-breadcrumb-divider-color: var(--ph-gray-400);
  --bs-breadcrumb-item-active-color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.4;
  flex-wrap: wrap;
}

.ph-article-detail__breadcrumb .breadcrumb-item a {
  color: var(--ph-gray-600);
  text-decoration: none;
}

.ph-article-detail__breadcrumb .breadcrumb-item a:hover,
.ph-article-detail__breadcrumb .breadcrumb-item a:focus {
  color: var(--ph-secondary);
  text-decoration: underline;
}

@media (max-width: 575px) {
  .ph-article-detail__breadcrumb {
    font-size: 0.8125rem;
  }
  .ph-article-detail__breadcrumb .breadcrumb-item {
    max-width: 55vw;
  }
  .ph-article-detail__breadcrumb .breadcrumb-item a,
  .ph-article-detail__breadcrumb .breadcrumb-item.active {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

.ph-article-detail__title {
  color: var(--ph-secondary);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}

.ph-article-detail__rule {
  height: 1px;
  width: 100%;
}

.ph-article-detail__author {
  color: var(--ph-gray-600);
  font-size: 0.875rem;
  line-height: 1rem;
  margin-top: 0.75rem;
}

.ph-article-detail__hero {
  margin-top: 1rem;
  padding: 0 var(--ph-space-16);
}

.ph-article-detail__hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ph-article-detail__body {
  width: 100%;
  max-width: 700px;
  margin: 3rem auto 0;
  color: var(--ph-secondary);
}

.ph-article-detail__body h3 {
  font-size: 1.25rem;
  line-height: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.ph-article-detail__body p {
  font-size: 1rem;
  line-height: 1.25rem;
  margin: 0 0 1rem;
}

@media (max-width: 991px) {
  .ph-article-detail__header,
  .ph-article-detail__hero {
    padding-left: 0;
    padding-right: 0;
  }

  .ph-article-detail__title {
    font-size: 1.75rem;
  }

  .ph-article-detail__body {
    margin-top: 2rem;
  }
}

/* Recently Purchased Items (667:81332) */
.ph-recently-purchased {
  background: var(--ph-white);
  padding: 3rem 0;
}

.ph-recently-purchased__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ph-recently-purchased__title {
  color: var(--ph-secondary);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: 0.3955px;
}

.ph-recently-purchased__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.01953125em;
}

.ph-recently-purchased__card {
  border-radius: 1rem;
  min-height: 18.25rem;
}

.ph-recently-purchased__media {
  height: 7.3125rem;
  background: var(--ph-info);
}

.ph-recently-purchased__arrow {
  min-width: 1rem;
  min-height: 1rem;
}

.ph-recently-purchased__arrow i {
  font-size: 1rem;
  line-height: 1;
}

/* Footer (667:18700) */
.ph-site-footer {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 38.587%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(90deg, #212529 0%, #212529 100%);
  padding: 1rem;
}

.ph-site-footer__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.ph-site-footer__logo {
  width: 20.5625rem;
  height: 3.25rem;
}

.ph-site-footer__partner-logos {
  width: 27.375rem;
  min-height: 2.53125rem;
  flex-shrink: 0;
}

.ph-site-footer__partner-logo {
  width: 8.375rem;
  height: 2.53125rem;
  object-fit: contain;
  display: block;
}

.ph-site-footer__partner-logo--small {
  width: 3.75rem;
  height: 2.53125rem;
}

.ph-site-footer__link,
.ph-site-footer__text {
  color: var(--ph-white);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.75rem;
  padding: 0.375rem 1rem;
}

.ph-site-footer__link:hover,
.ph-site-footer__link:focus {
  color: var(--ph-white);
  text-decoration: underline;
}

.ph-site-footer__text--muted {
  color: rgba(255, 255, 255, 0.35);
}

.ph-site-footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
}

.ph-site-footer__social-link:hover,
.ph-site-footer__social-link:focus {
  color: var(--ph-white);
  opacity: 0.85;
}

/* Login Modal */
.ph-login-modal .modal-dialog {
  max-width: 800px;
}

.ph-login-modal .modal-content {
  border: none;
  border-radius: 0.875rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ph-login-modal .modal-body {
  display: flex;
  flex-direction: row;
  padding: 0;
  min-height: 460px;
}

.ph-login-modal__brand {
  flex: 0 0 42%;
  position: relative;
}

.ph-login-modal__brand-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.72);
}

.ph-login-modal__panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
}

.ph-login-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ph-gray-500);
  z-index: 1;
  line-height: 1;
  transition: color 0.15s;
}

.ph-login-modal__close:hover {
  color: var(--ph-secondary);
}

.ph-login-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-secondary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.ph-login-modal__input {
  height: 46px;
  border-color: var(--ph-gray-200);
  padding: 0.75rem 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ph-login-modal__input:focus {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 0.2rem rgba(204, 1, 0, 0.12);
}

.ph-login-modal__input::placeholder {
  color: var(--ph-gray-400);
}

.ph-login-modal__submit {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.ph-login-modal__links .btn-link {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

/* Contact Modal (667:19520) */
.ph-contact-modal .modal-dialog {
  max-width: 736px;
}

.ph-contact-modal .modal-content {
  border: 1px solid var(--ph-gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-contact-modal .modal-body {
  padding: 1.5rem;
}

.ph-contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bs-black);
  z-index: 2;
}

.ph-contact-modal__intro {
  margin-top: 0.625rem;
  margin-bottom: 1.5rem;
}

.ph-contact-modal__title {
  color: var(--ph-secondary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.ph-contact-modal__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-contact-modal__form {
  width: 100%;
  max-width: 490px;
}

.ph-contact-modal__label {
  color: var(--ph-secondary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.ph-contact-modal__input {
  height: 2.5rem;
  border-color: var(--ph-secondary);
  color: var(--ph-secondary);
  padding: 0.5625rem 1rem;
  font-size: 1rem;
  line-height: 1.25rem;
}

.ph-contact-modal__input::placeholder {
  color: var(--ph-secondary-light);
  opacity: 1;
}

.ph-contact-modal__submit {
  min-width: 6.625rem;
  min-height: 3rem;
  border-radius: 0.375rem;
  border: 0;
  background: var(--ph-secondary-light);
  color: var(--ph-secondary-med);
  opacity: 0.55;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}

@media (max-width: 575px) {
  .ph-contact-modal__subtitle {
    font-size: 0.9375rem;
  }

  .ph-homeowner-banner__icon {
    display: none;
  }
}

/* Get Notified Modal (695:39098) */
.ph-notify-modal .modal-dialog {
  max-width: 640px;
}

.ph-notify-modal .modal-content {
  border: 1px solid var(--ph-gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-notify-modal .modal-body {
  padding: 1.5rem;
}

.ph-notify-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bs-black);
  z-index: 2;
}

.ph-notify-modal__intro {
  margin-top: 0.625rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ph-notify-modal__title {
  color: var(--ph-secondary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ph-notify-modal__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  max-width: 35.125rem;
  margin-left: auto;
  margin-right: auto;
}

.ph-notify-modal__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ph-notify-modal__field {
  width: 100%;
  max-width: 15rem;
}

.ph-notify-modal__label {
  color: var(--ph-secondary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.ph-notify-modal__input {
  height: 2.5rem;
  border-color: var(--ph-secondary);
  color: var(--ph-secondary);
  padding: 0.5625rem 1rem;
  font-size: 1rem;
  line-height: 1.25rem;
}

.ph-notify-modal__input::placeholder {
  color: var(--ph-secondary-light);
  opacity: 1;
}

.ph-notify-modal__submit {
  min-width: 15rem;
  min-height: 3rem;
  border-radius: 0.375rem;
  border: 0;
  background: var(--ph-primary);
  color: #fff;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.ph-notify-modal__submit:hover,
.ph-notify-modal__submit:focus-visible {
  background: var(--ph-primary-hover);
  color: #fff;
}

@media (max-width: 575px) {
  .ph-notify-modal__subtitle {
    font-size: 0.9375rem;
  }
}

/* New Kit Modal (736:32326) */
.ph-new-kit-modal .modal-dialog {
  max-width: 640px;
}

.ph-new-kit-modal .modal-content {
  border: 1px solid var(--ph-gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-new-kit-modal .modal-body {
  padding: 1.5rem;
}

.ph-new-kit-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bs-black);
  z-index: 2;
}

.ph-new-kit-modal__intro {
  margin-top: 0.625rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ph-new-kit-modal__title {
  color: var(--ph-secondary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ph-new-kit-modal__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
  max-width: 35.125rem;
  margin-left: auto;
  margin-right: auto;
}

.ph-new-kit-modal__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ph-new-kit-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 24.875rem;
}

.ph-new-kit-modal__field {
  width: 100%;
}

.ph-new-kit-modal__label {
  color: var(--ph-secondary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.ph-new-kit-modal__input {
  height: 2.5rem;
  border-color: var(--ph-secondary);
  color: var(--ph-secondary);
  padding: 0.5625rem 1rem;
  font-size: 1rem;
  line-height: 1.25rem;
}

.ph-new-kit-modal__input::placeholder {
  color: var(--ph-secondary-light);
  opacity: 1;
}

.ph-new-kit-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.ph-new-kit-modal__action-btn {
  min-height: 3rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

@media (max-width: 575px) {
  .ph-new-kit-modal__subtitle {
    font-size: 0.9375rem;
  }

  .ph-new-kit-modal__actions {
    flex-direction: column;
    width: 100%;
  }

  .ph-new-kit-modal__action-btn {
    width: 100%;
  }
}

/* Location Modal (667:64297) */
.ph-location-modal .modal-dialog {
  max-width: 736px;
}

.ph-location-modal .modal-content {
  border: 1px solid var(--ph-gray-100);
  border-radius: 0.75rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-location-modal .modal-body {
  padding: 1.5rem;
}

.ph-location-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bs-black);
  z-index: 2;
}

.ph-location-modal__intro {
  margin-top: 0.625rem;
  margin-bottom: 1.5rem;
}

.ph-location-modal__title {
  color: var(--ph-secondary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.ph-location-modal__subtitle {
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-location-modal__actions {
  margin-bottom: 1.5rem;
}

.ph-location-modal__action-link {
  color: var(--ph-primary);
  font-size: 1rem;
  line-height: 1.75rem;
  text-decoration: none;
}

.ph-location-modal__action-link:hover,
.ph-location-modal__action-link:focus {
  color: var(--ph-primary-hover);
  text-decoration: underline;
}

.ph-location-modal__cards {
  width: 100%;
  max-width: 406px;
  margin-left: auto;
  margin-right: auto;
}

.ph-location-modal__card {
  background: #f3f3f5;
  border-radius: 0.75rem;
  padding: 1rem;
}

.ph-location-modal__card--active {
  border: 3px solid var(--ph-secondary);
}

.ph-location-modal__star {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ph-secondary);
}

.ph-location-modal__card-title {
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.ph-location-modal__line {
  color: var(--ph-secondary);
  font-size: 1rem;
  line-height: 1.75rem;
}

@media (max-width: 575px) {
  .ph-location-modal__subtitle {
    font-size: 0.9375rem;
  }

  .ph-location-modal__actions {
    justify-content: center !important;
  }
}

@media (max-width: 1199px) {
  .ph-site-footer__logo {
    width: min(100%, 20.5625rem);
  }

  .ph-site-footer__partner-logos {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* Product category page (Figma 667:19436) */
.ph-max-1200 {
  max-width: 1200px;
}

/* ── Category page search input ──────────────────────────────────────── */
.ph-cat-search-wrap {
  position: relative;
}

.ph-cat-typeahead {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1060;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.ph-cat-typeahead .ph-typeahead-prods-panel {
  flex: 1;
}

.ph-cat-typeahead-empty {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.ph-cat-search-input {
  padding-right: 2.75rem;
}

.ph-cat-search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--bs-secondary-color);
  font-size: 1rem;
  line-height: 1;
}

.ph-cat-page {
  background-color: #e6e8ea !important;
}

.ph-cat-page #ph-product-category-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.0675rem;
}

.ph-cat-page p,
.ph-cat-page .form-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-cat-page .form-control,
.ph-cat-page .form-select,
.ph-cat-page .btn {
  font-size: 1rem;
}

.ph-cat-page .card h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.028rem;
}

.ph-cat-page .card .list-group-item p {
  color: #4b4f52 !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-cat-page .card .list-group-item > span:first-child {
  color: #4b4f52 !important;
  font-size: 1rem;
  line-height: 1.2;
}

.ph-cat-page .card .list-group-item .badge {
  min-height: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6.25rem !important;
  background-color: #e6e8ea !important;
  color: #4b4f52 !important;
  font-size: 0.625rem;
  font-weight: 600;
}

.ph-cat-page .card .d-flex.justify-content-between.mb-2 .badge {
  background-color: #b3b7ba !important;
  color: #212529 !important;
}

.ph-cat-page .card .link-danger {
  color: #cc0100 !important;
  font-size: 1rem;
  font-weight: 700;
}

.ph-cat-card--548 {
  min-height: 34.25rem;
}

.ph-cat-card--360 {
  min-height: 22.5rem;
}

.ph-cat-card--388 {
  min-height: 24.25rem;
}

/* Product subcategory page (Figma 667:19490) */
.ph-subcat-count {
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.ph-subcat-control-wrap {
  width: 100%;
}

.ph-subcat-card {
  min-height: 25rem;
}

@media (min-width: 576px) {
  .ph-subcat-control-wrap {
    width: 11.6875rem;
  }
}

/* Sub-category navigation strip (product list pages with child categories) */
.ph-cat-nav-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ph-cat-nav-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.12) !important;
  transform: translateY(-1px);
  color: var(--bs-danger) !important;
}
.ph-cat-nav-card:hover .fw-semibold {
  color: var(--bs-danger) !important;
}

/* Product list page (Figma 667:19464) */
.ph-list-title {
  font-size: 2.25rem !important;
  line-height: 2.5rem !important;
  letter-spacing: 0.0231rem;
}

.ph-list-count {
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.ph-list-card {
  min-height: 30.5rem;
}

.ph-list-product-image {
  width: 6.25rem;
  height: 6.25rem;
  object-fit: cover;
}

.ph-list-top {
  min-height: 6.25rem;
  align-items: flex-start;
}

.ph-list-head .ph-list-badge {
  background: #212529 !important;
  color: #fff !important;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.ph-list-card-title {
  font-size: 1rem !important;
  line-height: 1.25rem !important;
  letter-spacing: 0 !important;
  line-clamp: 4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ph-list-rating {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-list-stars i {
  font-size: 0.875rem;
  margin-right: 0.125rem;
}

.ph-list-price {
  font-size: 1.5rem !important;
  line-height: 1.5rem !important;
}

.ph-list-price-label {
  font-size: 1rem !important;
  line-height: 1.25rem !important;
}

.ph-list-meta {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  color: #212529 !important;
}

.ph-list-description {
  min-height: 2.5rem;
}

.ph-list-stock {
  font-size: 0.875rem !important;
}

.ph-list-stock--in {
  color: #1f5fa8 !important;
}

.ph-list-stock--out {
  color: #b00020 !important;
}

.ph-list-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--bs-secondary-color);
}

.ph-list-cta,
.ph-list-actions {
  margin-top: auto;
}

.ph-list-cta--cart {
  min-height: 2rem;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
}

.ph-list-qty .btn {
  min-width: 1.8rem;
  min-height: 2rem;
  font-size: 0.875rem;
  line-height: 1rem;
  padding: 0.5rem 0.45rem;
}

.ph-list-qty-btn {
  border: 1px solid #b3b7ba !important;
  color: #212529 !important;
  background: #ffffff !important;
}

.ph-list-qty-btn-active {
  background: #b3b7ba !important;
  font-weight: 600;
}

/* Product details heading component (Figma 667:19063) */
.ph-product-detail-header {
  min-width: 0;
}

.ph-product-detail-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 2.25rem !important;
  line-height: 2.5rem !important;
  letter-spacing: 0.0231rem;
}

.ph-product-detail-badge {
  flex: 0 0 auto;
  background: #212529 !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding: 0.25rem 0.5rem !important;
}

@media (max-width: 991px) {
  .ph-product-detail-title {
    font-size: 2rem !important;
    line-height: 2.25rem !important;
  }
}

@media (max-width: 575px) {
  .ph-product-detail-header {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

.ph-product-detail-hero {
  margin-top: 0.25rem;
}

.ph-product-detail-image-wrap {
  width: 25.5rem;
  max-width: 100%;
}

.ph-product-detail-image {
  width: 25.5rem;
  height: 25.5rem;
  object-fit: cover;
}

.ph-product-img-main {
  transition: opacity 0.15s ease;
}

.ph-product-img-fade {
  opacity: 0;
}

.ph-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ph-product-thumb {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
  flex-shrink: 0;
}

.ph-product-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ph-product-thumb:hover {
  border-color: #adb5bd;
}

.ph-product-thumb--active {
  border-color: #cc0100 !important;
}

.ph-product-img-btn {
  position: relative;
  display: block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: zoom-in;
  line-height: 0;
}

.ph-product-img-zoom-hint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.ph-product-img-btn:hover .ph-product-img-zoom-hint {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.ph-img-modal .modal-dialog {
  max-width: min(90vw, 1100px);
}

.ph-img-modal-content {
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ph-img-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.ph-img-tool-btn {
  background: none;
  border: none;
  color: #495057;
  font-size: 1rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.ph-img-tool-btn:hover {
  color: #212529;
  background: rgba(0,0,0,0.07);
}

.ph-img-tool-close {
  margin-left: auto;
}

.ph-img-zoom-label {
  font-size: 0.75rem;
  color: #6c757d;
  min-width: 2.8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ph-img-toolbar-sep {
  width: 1px;
  height: 1.25rem;
  background: #dee2e6;
  margin: 0 0.25rem;
}

.ph-img-modal-wrap {
  position: relative;
  overflow: hidden;
  height: min(75vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.ph-img-panzoom {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.ph-img-panzoom:active {
  cursor: grabbing;
}

.ph-img-full {
  max-width: min(85vw, 1000px);
  max-height: min(72vh, 660px);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ph-img-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.25rem;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  pointer-events: none;
  white-space: nowrap;
}

.ph-img-hint-item {
  font-size: 0.78rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
}

.ph-product-price-line {
  font-size: 1.5rem;
  line-height: 1.25rem;
  color: #212529 !important;
}

.ph-product-login-price {
  color: #cc0100 !important;
  font-size: 1.5rem;
  line-height: 1rem;
  margin-top: 1rem;
}

.ph-product-meta {
  font-size: 1rem !important;
  line-height: 1.5rem !important;
  color: #4b4f52 !important;
}

.ph-product-actions {
  width: 100%;
}

.ph-product-action-btn {
  flex: 1 1 0;
  min-height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1.125rem;
}

.ph-product-qty .btn {
  min-width: 3.5rem;
  font-size: 1rem;
}

.ph-product-stars,
.ph-product-review-count {
  color: #cc0100 !important;
}

.ph-product-price-wrap {
  border-color: #e6e8ea !important;
}

.ph-product-stock {
  color: #4b4f52 !important;
}

.ph-product-stock .bi {
  color: #1f5fa8 !important;
}

.ph-product-stock--other {
  color: #5a6a3a !important;
}

.ph-product-stock--other .bi {
  color: #7a9a4a !important;
}

.ph-product-stock--out {
  color: #b00020 !important;
}

.ph-product-stock--out .bi {
  color: #b00020 !important;
}

.ph-branch-avail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ph-branch-avail-toggle {
  font-size: 0.75rem;
  color: #6c757d;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.ph-branch-avail-toggle:hover {
  color: #343a40;
}

.ph-branch-avail-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.ph-branch-avail-toggle[aria-expanded="true"] .ph-branch-avail-icon {
  transform: rotate(180deg);
}

.ph-branch-avail-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.25rem;
  row-gap: 0.1rem;
  font-size: 0.75rem;
  color: #495057;
}

.ph-branch-avail-qty {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ph-branch-avail-home,
.ph-branch-avail-home.ph-branch-avail-qty {
  font-weight: 600;
  color: #2c6e2e;
}

.ph-product-btn-dark {
  border-color: #212529 !important;
  color: #212529 !important;
  background: transparent !important;
}

.ph-product-btn-dark:hover,
.ph-product-btn-dark:focus,
.ph-product-btn-dark:active {
  border-color: #212529 !important;
  color: #212529 !important;
  background: #e6e8ea !important;
  box-shadow: none !important;
}

.ph-product-btn-red {
  border: 1px solid #cc0100 !important;
  color: #cc0100 !important;
  background: transparent !important;
}

.ph-product-btn-red:hover,
.ph-product-btn-red:focus,
.ph-product-btn-red:active {
  border-color: #cc0100 !important;
  color: #cc0100 !important;
  background: #e8b8b8 !important;
  box-shadow: none !important;
}

.ph-cparts-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ph-cparts-label {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
  margin-right: 0.1rem;
}

.ph-cparts-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ph-cparts-loading {
  color: #adb5bd;
  font-size: 0.75rem;
}

.ph-cparts-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: #f1f3f5;
  border: 1px solid #ced4da;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #343a40;
  line-height: 1.4;
}

.ph-cparts-chip-del {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 0.8rem;
  color: #adb5bd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.ph-cparts-chip-del:hover {
  color: #b00020;
}

.ph-cparts-add-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem 0.5rem;
  background: none;
  border: 1px dashed #adb5bd;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #6c757d;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s, color 0.15s;
}

.ph-cparts-add-trigger:hover {
  border-color: #495057;
  color: #343a40;
}

.ph-cparts-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ph-cparts-inline-input {
  height: 1.65rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.78rem;
  font-family: monospace;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  width: 130px;
  outline: none;
}

.ph-cparts-inline-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.ph-cparts-confirm,
.ph-cparts-cancel {
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.ph-cparts-confirm { color: #2c6e2e; }
.ph-cparts-confirm:hover { color: #1a4a1c; }
.ph-cparts-cancel  { color: #adb5bd; }
.ph-cparts-cancel:hover  { color: #495057; }

.ph-cparts-error {
  font-size: 0.75rem;
  color: #b00020;
}

.ph-product-fav-btn {
  border: 1px solid #b3b7ba !important;
  background: transparent !important;
  color: #6c757d !important;
  padding: 0.375rem 0.625rem !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ph-product-fav-btn:hover {
  color: #e0304a !important;
  border-color: #e0304a !important;
}

.ph-product-fav-btn--active {
  color: #e0304a !important;
  border-color: #e0304a !important;
}

.ph-product-fav-btn--active:hover {
  color: #b00020 !important;
  border-color: #b00020 !important;
}

.ph-product-qty-btn {
  border: 1px solid #b3b7ba !important;
  background: transparent !important;
  color: #212529 !important;
}

.ph-product-qty-btn-active {
  background: #b3b7ba !important;
  font-weight: 600;
}

@media (max-width: 1199px) {
  .ph-product-detail-image-wrap,
  .ph-product-detail-image {
    width: 22rem;
    height: 22rem;
  }

  .ph-product-action-btn {
    font-size: 1rem;
  }

  .ph-product-login-price {
    font-size: 1rem;
    line-height: 1.25rem;
  }
}

@media (max-width: 767px) {
  .ph-product-detail-image-wrap,
  .ph-product-detail-image {
    width: 18rem;
    height: 18rem;
  }

  .ph-product-price-line {
    font-size: 1.25rem;
  }

  .ph-product-action-btn {
    flex: 1 1 100%;
  }
}

.ph-product-fpt {
  width: 100%;
  background: #ffffff !important;
}

.ph-product-fpt-title {
  font-size: 1.25rem !important;
  line-height: 1.25rem !important;
  color: #212529 !important;
}

.ph-product-fpt-count {
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  color: #212529 !important;
}

.ph-product-fpt-scroll {
  scrollbar-width: thin;
}

.ph-product-fpt-item {
  width: 16.0625rem;
  min-width: 16.0625rem;
  border-color: #e6e8ea !important;
}

.ph-product-fpt-image {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: cover;
}

.ph-product-fpt-item-title {
  font-size: 0.875rem;
  line-height: 1rem;
  color: #212529 !important;
}

.ph-product-fpt-price {
  font-size: 1rem !important;
  line-height: 1rem !important;
  color: #212529 !important;
}

.ph-product-fpt-stock {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  color: #212529 !important;
}

.ph-product-fpt-stock .bi {
  color: #1f5fa8 !important;
}

.ph-product-fpt-btn {
  border-color: #212529 !important;
  color: #212529 !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
  min-height: 2rem;
  padding: 0.5rem 0.75rem !important;
}

.ph-product-detail-block {
  width: 100%;
}

.ph-product-block-title {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.ph-product-block-subtitle {
  color: #212529;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.ph-product-block-text {
  color: #212529;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
}

.ph-product-feature-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #212529;
}

.ph-product-feature-list li {
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-product-doc-link {
  color: #cc0100 !important;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-product-kit-title {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.ph-kit-card {
  border-color: #d0d3d6 !important;
}

.ph-kit-title {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  letter-spacing: -0.028rem;
}

.ph-kit-save {
  color: #cc0100 !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1rem;
}

.ph-kit-text {
  color: #212529;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.ph-kit-item {
  color: #4b4f52;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.ph-kit-btn {
  border-color: #cc0100 !important;
  color: #cc0100 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.125rem !important;
  min-height: 2.5rem;
}

.ph-kit-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #d0d3d6;
  display: inline-block;
}

.ph-kit-dot--active {
  background: #212529;
}

.ph-kit-carousel-indicators {
  position: static !important;
  margin: 0.75rem 0 0 !important;
  gap: 0.25rem;
}

.ph-kit-carousel-indicators [data-bs-target] {
  width: 0.75rem !important;
  height: 0.75rem !important;
  margin: 0 !important;
  border-radius: 50%;
  border: 0 !important;
  background: #d0d3d6 !important;
  opacity: 1 !important;
}

.ph-kit-carousel-indicators .active {
  background: #212529 !important;
}

.ph-spec-table {
  border-top: 1px solid #e6e8ea;
}

.ph-spec-row {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e6e8ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ph-spec-row--alt {
  background: #ffffff;
}

.ph-spec-row span:first-child {
  color: #212529;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-spec-row span:last-child {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: right;
}

@media (max-width: 1199px) {
  .ph-kit-save,
  .ph-kit-btn {
    font-size: 0.875rem !important;
    line-height: 1rem !important;
  }

  .ph-product-kit-title {
    font-size: 1.25rem;
    line-height: 1.25rem;
  }
}

.ph-related-products-title {
  color: #212529;
  font-size: 1.25rem;
  line-height: 1.25rem;
}

.ph-related-products-scroll {
  scrollbar-width: thin;
}

.ph-related-products-box {
  width: 100%;
}

.ph-related-product-card {
  width: 23.25rem;
  min-width: 23.25rem;
  border-color: #e6e8ea !important;
  background: #ffffff;
}

.ph-related-product-image {
  width: 6.25rem;
  height: 6.25rem;
  object-fit: cover;
}

.ph-related-product-name {
  font-size: 1rem;
  line-height: 1.25rem;
  letter-spacing: -0.028rem;
}

.ph-related-product-price {
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-related-rating {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-related-stars {
  color: #cc0100;
  letter-spacing: 0.05rem;
}

.ph-related-reviews {
  color: #cc0100;
}

.ph-related-stock {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-related-stock .bi {
  color: #1f5fa8;
}

.ph-user-main-content {
  min-height: 30vh;
}

/* User template drawer navigation (Figma 206:18143 / 206:18172 / 1103:58807) */
.ph-user-drawer {
  position: fixed;
  left: 0;
  top: var(--ph-user-drawer-top, 12.5rem);
  bottom: var(--ph-user-drawer-bottom, 0px);
  z-index: 1030;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

.ph-user-drawer-shell {
  width: 5rem;
  height: 100%;
  display: flex;
  align-items: flex-start;
  transition: width 0.24s ease;
}

.ph-user-drawer-shell.is-open {
  width: 16rem;
}

.ph-user-drawer-rail {
  width: calc(100% - 1.75rem);
  min-width: 3.25rem;
  height: 100%;
  background: #4b4f52;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 0;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-user-drawer-item {
  width: 100%;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 0.5rem;
  color: #fff;
  border-bottom: 1px solid #e6e8ea;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

.ph-user-drawer-item:hover,
.ph-user-drawer-item:focus {
  color: #fff;
  background: #5a5f63;
}

.ph-user-drawer-item i {
  width: 1.5rem;
  text-align: center;
  flex: 0 0 1.5rem;
}

.ph-user-drawer-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25rem;
  margin-left: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease, margin-left 0.2s ease;
}

.ph-user-drawer-shell.is-open .ph-user-drawer-item {
  justify-content: flex-start;
  gap: 1rem;
  padding-inline: 1rem;
}

.ph-user-drawer-shell.is-open .ph-user-drawer-label {
  max-width: 11rem;
  opacity: 1;
  margin-left: 0.125rem;
}

.ph-user-drawer-spacer {
  flex: 1 1 auto;
  border-bottom: 1px solid #e6e8ea;
}

.ph-user-drawer-pull {
  width: 2.75rem;
  height: 3.5rem;
  margin-top: 0.55rem;
  border-radius: 0 2.25rem 2.25rem 0;
  background: #4b4f52;
  color: #ffffff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-user-drawer-pull:hover,
.ph-user-drawer-pull:focus {
  color: #fff;
  background: #5a5f63;
}

.ph-user-mobile-drawer {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.ph-user-mobile-drawer__trigger {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: var(--ph-secondary-med);
  color: #fff;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.ph-user-mobile-drawer__trigger:hover,
.ph-user-mobile-drawer__trigger:focus {
  color: #fff;
  background: var(--ph-gray-800);
}

.ph-user-mobile-drawer__panel {
  width: 3.75rem;
  background: var(--ph-secondary-med);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 2.5rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.ph-user-mobile-drawer__item {
  width: 3.625rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .75);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color .12s, background .12s;
}

.ph-user-mobile-drawer__item:hover { color: #fff; }

.ph-user-mobile-drawer__item--active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.ph-user-mobile-drawer__item:last-child {
  border-bottom: 0;
}

/* ── Profile page ──────────────────────────────────────────────────────────── */

.ph-profile-header {
  background: #fff;
  border: 1px solid var(--ph-gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.ph-profile-avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ph-gray-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.ph-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ph-gray-900);
  margin: 0 0 0.125rem;
}

.ph-profile-company {
  font-size: 0.9375rem;
  color: var(--ph-gray-600);
  margin: 0 0 0.375rem;
  line-height: 1.4;
}

.ph-profile-acct {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ph-gray-500);
  background: var(--ph-gray-100);
  border: 1px solid var(--ph-gray-200);
  border-radius: 999px;
  padding: 0.1rem 0.625rem;
  letter-spacing: 0.02em;
}

.ph-profile-card {
  background: #fff;
  border: 1px solid var(--ph-gray-200);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.ph-profile-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-gray-400);
  margin-bottom: 1rem;
}

.ph-profile-field + .ph-profile-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ph-gray-100);
}

.ph-profile-field-icon {
  color: var(--ph-gray-400);
  font-size: 0.9375rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.ph-profile-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-gray-400);
  margin-bottom: 0.2rem;
}

.ph-profile-field-value {
  font-size: 0.9375rem;
  color: var(--ph-gray-900);
  line-height: 1.5;
}

.ph-profile-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  gap: 1rem;
}

.ph-profile-notif-label {
  font-size: 0.9375rem;
  color: var(--ph-gray-900);
}

.ph-account-profile-page {
  color: #212529;
  background: var(--ph-gray-100);
}

.ph-account-profile-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.0231rem;
}

.ph-account-profile-subtitle {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #4b4f52;
}

.ph-account-section-title {
  font-size: 1.25rem;
  line-height: 1.25rem;
  color: #212529;
}

.ph-account-label {
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 600;
  color: #212529;
}

.ph-account-text {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #212529;
}

.ph-account-edit-btn {
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
  color: #cc0100 !important;
}

.ph-account-save-btn {
  background: #b3b7ba !important;
  color: #4b4f52 !important;
  border: 0 !important;
  min-height: 2.5rem;
  font-size: 1rem !important;
  line-height: 1.125rem !important;
  font-weight: 600 !important;
  padding: 0.625rem 1rem !important;
  opacity: 0.55;
}

.ph-account-notification-card {
  border-radius: 1rem !important;
}

.ph-account-notif-row {
  min-height: 2rem;
}

.ph-account-notif-row--divider {
  border-color: #b3b7ba !important;
}

.ph-account-switch {
  min-height: 1.5rem;
  padding-left: 0;
}

.ph-account-switch .form-check-input {
  width: 2.5rem;
  height: 1.5rem;
  min-height: 1.5rem;
  margin-left: 0;
  border-radius: 999px;
  border: 1px solid #212529;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 20 20'%3E%3Ccircle r='7' cx='8' cy='8' fill='%23ffffff' stroke='%23212529' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: left -1px center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, background-position 0.2s ease;
}

.ph-account-switch .form-check-input:focus {
  box-shadow: none !important;
  border-color: #212529;
}

.ph-account-switch .form-check-input[type="checkbox"]:checked {
  background-color: #212529;
  border-color: #212529;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 20 20'%3E%3Ccircle r='7' cx='8' cy='8' fill='%23ffffff' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right -1px center;
}

.ph-admin-page {
  background: var(--ph-gray-100);
  color: #212529;
}

.ph-admin-subtitle {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-admin-add-btn {
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.125rem;
}

.ph-admin-table-wrap {
  overflow-x: auto;
}

.ph-admin-table-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 80px 80px 80px 160px 230px;
  gap: 1rem;
  min-width: 980px;
}

.ph-admin-table-head {
  border-top: 1px solid #e6e8ea;
  padding: 0.625rem 1rem;
  align-items: center;
  min-height: 3rem;
}

.ph-admin-th {
  color: #4b4f52;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1rem;
}

.ph-admin-row {
  border-top: 1px solid #e6e8ea;
  padding: 0.5rem 1rem;
  align-items: center;
}

.ph-admin-user-name {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.ph-admin-user-email {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-admin-link-btn {
  color: #495057 !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.ph-admin-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.875rem !important;
}

.ph-admin-icon {
  color: #212529;
  font-size: 1.125rem;
  line-height: 1;
}

.ph-admin-user-type {
  border: 1px solid #212529 !important;
  border-radius: 0.375rem !important;
  min-height: 2.5rem;
  font-size: 1rem;
  line-height: 1.25rem;
  color: #212529;
}

.ph-admin-delete-btn {
  color: #cc0100 !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
}

.ph-admin-save-btn {
  border: 0 !important;
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1rem !important;
}
.ph-admin-save-btn:disabled {
  background: #b3b7ba !important;
  color: #8e9397 !important;
  opacity: 0.55;
}
.ph-admin-save-btn:not(:disabled) {
  background: var(--ph-primary, #0d6efd) !important;
  color: #fff !important;
  opacity: 1;
  cursor: pointer;
}

/* ── Admin subnav ────────────────────────────────────────────────────────── */
.ph-admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  border-bottom: 1px solid #dee2e6;
}

.ph-admin-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ph-admin-subnav-link:hover {
  color: #212529;
  border-bottom-color: #adb5bd;
  text-decoration: none;
}

.ph-admin-subnav-link.active {
  color: #212529;
  font-weight: 600;
  border-bottom-color: #cc0100;
}

/* ── Admin table ─────────────────────────────────────────────────────────── */
.ph-admin-table {
  font-size: 0.875rem;
  --bs-table-border-color: #e9ecef;
}

.table.ph-admin-table > :not(caption) > * > * {
  padding: 0.875rem 1rem;
}

.ph-admin-table > thead > tr > th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: #6c757d;
  background-color: #f8f9fa;
  border-bottom-color: #dee2e6;
  padding: 0.75rem 1rem;
}

.ph-admin-table > tbody > tr:hover > td {
  background-color: rgba(13, 110, 253, 0.04);
}

/* Events table: title+data rows appear as a visual group */
.ph-events-admin-title-row > td {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #212529;
  background: #f8f9fa;
  border-bottom: 0 !important;
  padding: 0.875rem 1rem 0.25rem !important;
}

.ph-events-admin-data-row > td {
  background: #f8f9fa;
  border-top: 0 !important;
  padding: 0.25rem 1rem 0.875rem !important;
  color: #4b4f52;
}

/* Thick separator between event groups */
.ph-events-admin-data-row + .ph-events-admin-title-row > td {
  border-top: 2px solid #dee2e6 !important;
}

.ph-admin-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ph-admin-mobile-item {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.ph-admin-mobile-item p {
  color: #4b4f52;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ph-modal-box {
  background: #fff;
  border-radius: 0.875rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.18), 0 0.375rem 0.75rem rgba(0,0,0,0.08);
  overflow: hidden;
}

.ph-modal-icon-header {
  display: flex;
  justify-content: center;
  padding: 1.875rem 1.75rem 0;
}

.ph-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.ph-modal-icon--primary {
  background: #e8f0fb;
  color: #0a4a7a;
}

.ph-modal-icon--danger {
  background: #fde8e8;
  color: #dc3545;
}

.ph-modal-body {
  padding: 1.125rem 1.75rem 0;
  text-align: center;
}

.ph-modal-title {
  font-size: 1.0625rem;
  font-weight: 650;
  color: #1a1a2e;
  margin-bottom: 0.375rem;
}

.ph-modal-desc {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 0;
}

.ph-modal-content {
  padding: 1.25rem 1.75rem 0;
}

.ph-modal-footer {
  display: flex;
  gap: 0.625rem;
  padding: 1.5rem 1.75rem 1.875rem;
}

.ph-modal-footer > * {
  flex: 1;
}

.ph-modal-error {
  margin: 0.75rem 1.75rem 0;
  padding: 0.5rem 0.75rem;
  background: #fde8e8;
  color: #b91c1c;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ph-payments-page {
  background: var(--ph-gray-100);
  color: #212529;
}

.ph-payments-subtitle {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-payments-link-btn {
  color: #cc0100 !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 600 !important;
}

.ph-payments-card {
  border: 1px solid #b3b7ba;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ph-payments-card--past-due {
  border-color: #cc0100;
}

.ph-payments-card-label {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.ph-payments-card-amount {
  color: #212529;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1;
  font-weight: 900;
}

.ph-payments-card-meta {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
}

.ph-payments-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.ph-payments-card-icon--danger {
  background: rgba(176, 0, 32, 0.15);
  color: #b00020;
}

.ph-payments-card-icon--success {
  background: rgba(30, 127, 92, 0.15);
  color: #1e7f5c;
}

.ph-payments-card-icon--info {
  background: rgba(31, 95, 168, 0.15);
  color: #1f5fa8;
}

.ph-payments-card-icon--warning {
  background: rgba(242, 169, 0, 0.15);
  color: #f2a900;
}

.ph-payments-pay-btn {
  min-height: 2rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 600;
}

.ph-payments-invoices {
  border: 1px solid #b3b7ba;
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.ph-payments-invoices-head {
  min-height: 5.0625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #4b4f52 0%, #404448 100%);
  border-bottom: 1px solid #1f5fa8;
}

.ph-payments-invoices-title {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}

.ph-payments-invoices-subtitle {
  color: #b3b7ba;
  font-size: 0.875rem;
  line-height: 1;
}

.ph-payments-head-link {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  line-height: 1rem !important;
  font-weight: 400 !important;
}

.ph-payments-tabs {
  border-bottom: 1px solid #212529;
  min-height: 3.5rem;
}

.ph-payments-tabs .nav-link {
  color: #212529;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 1rem;
  border-bottom-width: 2px;
}

.ph-payments-tabs .nav-link.active {
  color: #212529;
  font-weight: 600;
  border-bottom-color: #cc0100;
}

.ph-payments-table {
  --bs-table-bg: #ffffff;
  --bs-table-color: #212529;
  --bs-table-border-color: #e6e8ea;
}

.ph-payments-table thead th {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.ph-payments-table tbody td {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.ph-payments-th-checkbox {
  width: 2.5rem;
}

.ph-payments-number {
  color: #cc0100;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.ph-payments-row-action {
  color: #212529 !important;
  font-size: 0.875rem;
  line-height: 1;
}

.ph-accounting-page {
  background: var(--ph-gray-100);
  color: #212529;
}

.ph-accounting-panel {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}


.ph-accounting-panel-title {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: #212529;
}

.ph-accounting-list li {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #212529;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease;
}

.ph-accounting-list li[data-bs-toggle="modal"]:hover,
.ph-accounting-list li.ph-accounting-list-item--clickable:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.ph-accounting-list li.ph-accounting-list-item--clickable {
  cursor: pointer;
}

.ph-accounting-list small {
  font-size: 0.875rem;
  line-height: 1;
  color: #4b4f52;
}

.ph-accounting-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.ph-accounting-badge--dark {
  background: #212529;
  color: #ffffff;
}

.ph-accounting-badge--muted {
  background: #e6e8ea;
  color: #3a3e41;
}

.ph-accounting-badge--danger {
  background: #b00020;
  color: #ffffff;
}

.ph-accounting-orders .ph-payments-tabs .nav-link.active {
  border-bottom-color: #cc0100;
}

.ph-accounting-search-box {
  background: rgba(230, 232, 234, 0.25);
}

.ph-accounting-input-label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 400;
  color: #212529;
}

.ph-accounting-input {
  min-height: 2.5rem;
  border-color: #212529;
  color: #212529;
  font-size: 1rem;
}

.ph-accounting-input::placeholder {
  color: #b3b7ba;
}

.ph-accounting-search-btn {
  min-height: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.ph-accounting-table tbody tr:nth-child(odd) {
  background: rgba(230, 232, 234, 0.25);
}

.ph-accounting-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
}

.ph-accounting-status--danger {
  background: #f9dadd;
  color: #b00020;
}

.ph-accounting-status--success {
  background: #e3f3ec;
  color: #0f4330;
}

.ph-accounting-status--muted {
  background: #e6e8ea;
  color: #3a3e41;
}

.ph-accounting-status--warning {
  background: #fff4d6;
  color: #8f6100;
}

.ph-accounting-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ph-accounting-mobile-item {
  border: 1px solid #e6e8ea;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fff;
}

.ph-accounting-mobile-item p {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-tracking-page {
  background: var(--ph-gray-100);
  color: #212529;
}

.ph-deliveries-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ph-deliveries-filter-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ph-deliveries-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #848a8f;
  white-space: nowrap;
}

.ph-deliveries-filter-input {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  color: #212529;
  background: #fff;
  line-height: 1.4;
}

.ph-deliveries-filter-input:focus {
  outline: none;
  border-color: #cc0100;
  box-shadow: 0 0 0 0.2rem rgba(204,1,0,0.15);
}

.ph-deliveries-filter-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border: none;
  border-radius: 0.375rem;
  background: #cc0100;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.ph-deliveries-filter-btn:hover {
  background: #a80000;
}

.ph-deliveries-filter-reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #848a8f;
  text-decoration: none;
  white-space: nowrap;
}

.ph-deliveries-filter-reset:hover {
  color: #495057;
  text-decoration: underline;
}

.ph-delivery-day-group + .ph-delivery-day-group {
  margin-top: 2.5rem;
}

.ph-delivery-day-header {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4b4f52;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ph-delivery-day-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  text-transform: uppercase;
}

.ph-delivery-day-badge--today {
  background: rgba(242, 169, 0, 0.2);
  color: #7a5500;
}

.ph-delivery-day-badge--past {
  background: rgba(25, 135, 84, 0.15);
  color: #0f5132;
}

.ph-tracking-toolbar {
  flex-wrap: wrap;
}

.ph-tracking-sort-label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #212529;
}

.ph-tracking-sort-select {
  min-width: 11.6875rem;
  min-height: 2.5rem;
  border-color: #212529;
  color: #b3b7ba;
  font-size: 1rem;
}

.ph-tracking-filter-btn {
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-tracking-filter-btn i {
  font-size: 0.875rem;
}

/* Product/tracking filters panel (Figma 667:64467 / 667:64466) */
.ph-filters-control {
  position: relative;
}

.ph-filters-dropdown.dropdown-menu {
  width: min(21.25rem, calc(100vw - 2rem));
  margin-top: 0.5rem;
  padding: 0;
  border: 1px solid #d2d4d6;
  border-radius: 0.75rem;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.ph-filters-panel {
  background: #fff;
}

.ph-filters-panel__header {
  min-height: 3.5rem;
  background: #212529;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.ph-filters-panel__title {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
}

.ph-filters-panel__close {
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
}

.ph-filters-panel__body {
  padding: 1.25rem 1rem 1rem;
  max-height: min(60vh, 34rem);
  overflow: auto;
}

.ph-filters-section + .ph-filters-section {
  margin-top: 1.75rem;
}

.ph-filters-section__title {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d2d4d6;
  color: #212529;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ph-filters-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
}

.ph-filters-option + .ph-filters-option {
  margin-top: 0.25rem;
}

.ph-filters-option__control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2a2e31;
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.ph-filters-option__control input {
  width: 1rem;
  height: 1rem;
}

.ph-filters-option__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.5rem;
  background: #e6e8ea;
  color: #4b4f52;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
}

.ph-filters-panel__actions {
  border-top: 1px solid #d2d4d6;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
}

.ph-filters-panel__apply,
.ph-filters-panel__reset {
  min-height: 3rem;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-filters-panel__reset {
  border-width: 1px;
}

.ph-filters-modal .modal-dialog {
  margin: 0;
}

.ph-filters-modal .modal-content {
  min-height: 100vh;
  border-radius: 0;
  border: 0;
}

.ph-filters-modal .ph-filters-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ph-filters-modal .ph-filters-panel__body {
  flex: 1 1 auto;
  max-height: none;
}

@media (min-width: 992px) {
  .ph-filters-modal .modal-content {
    min-height: auto;
    border-radius: 0.75rem;
  }
}

/* ── Stock toggle switches in the refinement bar ─────────────────────────── */

.ph-stock-toggle .form-check-label {
  font-size: 0.875rem;
  color: #2a2e31;
  cursor: pointer;
  user-select: none;
}

.ph-stock-toggle .form-check-input {
  cursor: pointer;
}

.ph-stock-toggle .form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* ── Manufacturer filter: chips + search + scrollable list ───────────────── */

.ph-manu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.ph-manu-chips:empty {
  display: none;
}

.ph-manu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.25rem 0.2rem 0.625rem;
  background: #dc3545;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 500;
  max-width: 14rem;
}

.ph-manu-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-manu-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1;
  transition: background 0.1s;
}

.ph-manu-chip__remove:hover {
  background: rgba(255, 255, 255, 0.45);
}

.ph-manu-search-wrap {
  margin-bottom: 0.5rem;
}

.ph-manu-list {
  max-height: 13rem;
  overflow-y: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.ph-manu-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.375rem;
  border-radius: 0.375rem;
  cursor: pointer;
  color: #2a2e31;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 400;
  transition: background 0.1s;
  margin: 0;
}

.ph-manu-list-item:hover {
  background: #f5f5f5;
}

.ph-manu-list-item--checked {
  font-weight: 500;
}

.ph-manu-list-item--hidden {
  display: none;
}

.ph-manu-list-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.ph-manu-list-empty {
  margin: 0.5rem 0.375rem 0;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

/* ── End manufacturer filter ─────────────────────────────────────────────── */

.ph-tracking-order-card {
  border: 1px solid #dee2e6;
  border-left: 4px solid #dee2e6;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.ph-tracking-order-head {
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) minmax(14rem, 1fr) minmax(7rem, 0.45fr) minmax(7rem, 0.45fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e6e8ea;
  cursor: pointer;
  user-select: none;
}

.ph-tracking-order-card--collapsed .ph-tracking-order-head {
  border-bottom: 0;
}

.ph-tracking-order-card--asap .ph-tracking-order-head {
  background: rgba(204, 1, 0, 0.24);
}

.ph-tracking-order-card--morning .ph-tracking-order-head {
  background: rgba(242, 169, 0, 0.24);
}

.ph-tracking-order-card--afternoon .ph-tracking-order-head {
  background: rgba(31, 95, 168, 0.24);
}

.ph-tracking-order-card--night .ph-tracking-order-head {
  background: rgba(33, 37, 41, 0.24);
}

.ph-tracking-order-card--success {
  border-left-color: #198754;
}

.ph-tracking-order-card--success .ph-tracking-order-head {
  background: rgba(25, 135, 84, 0.08);
}

.ph-tracking-order-card--warn {
  border-left-color: #f2a900;
}

.ph-tracking-order-card--warn .ph-tracking-order-head {
  background: rgba(242, 169, 0, 0.12);
}

.ph-tracking-order-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ph-tracking-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.375rem;
  border-radius: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: flex-start;
}

.ph-tracking-pill i {
  font-size: 0.6875rem;
}

.ph-tracking-pill--asap {
  background: #cc0100;
  color: #ffffff;
}

.ph-tracking-pill--morning {
  background: #f2a900;
  color: #2a2e31;
}

.ph-tracking-pill--afternoon {
  background: #1f5fa8;
  color: #ffffff;
}

.ph-tracking-pill--night {
  background: #212529;
  color: #ffffff;
}

.ph-tracking-pill--success {
  background: #198754;
  color: #ffffff;
}

.ph-tracking-pill--warn {
  background: #f2a900;
  color: #2a2e31;
}

.ph-tracking-pill--muted {
  background: #b3b7ba;
  color: #212529;
}

.ph-tracking-order-title {
  color: #212529;
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 0.25rem;
}

.ph-tracking-order-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ph-tracking-meta-label {
  color: #4b4f52;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 400;
}

.ph-tracking-meta-value {
  color: #212529;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 400;
}

.ph-tracking-order-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ph-tracking-head-action {
  color: #212529 !important;
  line-height: 1;
}

.ph-tracking-head-action i {
  font-size: 0.875rem;
}

.ph-tracking-order-body {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(20rem, 1.3fr);
  gap: 0.75rem;
  padding: 1.5rem;
}

.ph-tracking-route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}

.ph-tracking-route-line {
  position: absolute;
  left: 0.6875rem;
  top: 3rem;
  bottom: 3rem;
  width: 0.125rem;
  background: #cc0100;
}

.ph-tracking-route-line--success { background: #198754; }
.ph-tracking-route-line--warn    { background: #f2a900; }

.ph-tracking-route-stop {
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.ph-tracking-route-icon {
  position: relative;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #cc0100;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ph-tracking-route-icon--success { background: #198754; }
.ph-tracking-route-icon--warn    { background: #f2a900; color: #2a2e31; }

.ph-tracking-stop-title {
  color: #212529;
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.ph-tracking-stop-address {
  margin-top: 0.25rem;
  color: #212529;
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.ph-tracking-meta-value--address {
  text-transform: uppercase;
}

.ph-tracking-items {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(230, 232, 234, 0.24);
}

.ph-tracking-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.ph-tracking-item-row + .ph-tracking-item-row {
  border-top: 1px solid #e6e8ea;
}

.ph-tracking-item-number {
  color: #cc0100;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.ph-tracking-item-number i {
  color: #212529;
  font-size: 0.75rem;
}

.ph-tracking-item-date {
  color: #4b4f52;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ph-tracking-item-count {
  justify-self: start;
  border-radius: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #e3f3ec;
  color: #0f4330;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.ph-tracking-item-amount {
  justify-self: end;
  color: #212529;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

.ph-transfer-list {
  border-top: 1px dashed #e6e8ea;
  padding: 0.375rem 1rem 0.375rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ph-transfer-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #848a8f;
  padding-bottom: 0.125rem;
}

.ph-transfer-row {
  display: grid;
  grid-template-columns: 1fr 4.5rem 3.5rem auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
}

.ph-transfer-number {
  color: #cc0100;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-transfer-number:hover {
  text-decoration: underline;
}

.ph-transfer-parts,
.ph-transfer-pcs {
  color: #848a8f;
  font-size: 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.ph-tracking-recommended {
  padding: 0;
  background: transparent;
}

.ph-tracking-recommended .ph-recently-purchased__inner {
  max-width: none;
}

.ph-tracking-recommended .ph-featured-product-card__price {
  font-size: 2.25rem;
  line-height: 2rem;
}

.form-check-input[type="checkbox"] {
  border-color: #212529;
}

.form-check-input[type="checkbox"]:checked {
  background-color: #cc0100;
  border-color: #cc0100;
}

.form-check-input[type="checkbox"]:focus {
  border-color: #cc0100;
  box-shadow: 0 0 0 0.2rem rgba(204, 1, 0, 0.15);
}

/* ── Cart page ──────────────────────────────────────────────────────────────── */

.ph-cart-page {
  background: #f0f2f4;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#ph-cart-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ph-cart-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ph-cart-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ph-gray-900);
  margin: 0;
}

.ph-cart-page-meta {
  font-size: 0.8125rem;
  color: var(--ph-gray-400);
  margin-top: 0.3rem;
  font-weight: 400;
}

.ph-cart-keep-shopping {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ph-primary);
  text-decoration: none;
  white-space: nowrap;
}
.ph-cart-keep-shopping:hover { color: var(--ph-primary-hover); }

/* ── Base card ──────────────────────────────────────────────────────────────── */

.ph-card {
  background: #fff;
  border-radius: 0.875rem;
  border: 1px solid var(--ph-gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Legacy card aliases used by SavedCartsPanel */
.ph-cart-main-card,
.ph-cart-saved-card,
.ph-cart-summary-card,
.ph-cart-essentials-card {
  border-radius: 0.875rem;
  border: 1px solid var(--ph-gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

/* ── Order Details form card ────────────────────────────────────────────────── */

.ph-order-card-header {
  padding: 1.125rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ph-order-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ph-gray-900);
  margin: 0;
}

.ph-order-card-body {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--ph-gray-100);
}

.ph-order-panel {
  flex: 1;
  padding: 1.125rem 1.25rem 1.25rem;
  border-right: 1px solid var(--ph-gray-100);
  min-width: 0;
}

.ph-order-panel:last-child {
  border-right: 0;
}

@media (max-width: 768px) {
  .ph-order-card-body { flex-direction: column; }
  .ph-order-panel { border-right: 0; border-bottom: 1px solid var(--ph-gray-100); }
  .ph-order-panel:last-child { border-bottom: 0; }
}

.ph-order-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-gray-400);
  margin-bottom: 0.5rem;
}

/* Delivery method toggle */
.ph-delivery-toggle {
  display: flex;
  gap: 0.5rem;
}

.ph-delivery-option {
  flex: 1;
  position: relative;
}

.ph-delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ph-delivery-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--ph-gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--ph-gray-600);
  background: #f5f6f7;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
  user-select: none;
  white-space: nowrap;
}

.ph-delivery-option input[type="radio"]:checked + label {
  border-color: var(--ph-info);
  background: var(--ph-info-soft);
  color: var(--ph-info);
  box-shadow: 0 0 0 3px rgba(31,95,168,0.1);
}

/* Timing pills */
.ph-timing-pills {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ph-timing-pill {
  position: relative;
}

.ph-timing-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ph-timing-pill label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid var(--ph-gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--ph-gray-600);
  background: #f5f6f7;
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
}

.ph-timing-pill-icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--ph-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
  color: var(--ph-gray-600);
}

.ph-timing-pill input[type="radio"]:checked + label {
  border-color: var(--ph-info);
  background: var(--ph-info-soft);
  color: var(--ph-info);
}

.ph-timing-pill input[type="radio"]:checked + label .ph-timing-pill-icon {
  background: var(--ph-info);
  color: #fff;
}

/* Form inputs */
.ph-order-input {
  display: block;
  width: 100%;
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  font-family: inherit;
  border: 1.5px solid var(--ph-gray-200);
  border-radius: 0.5rem;
  background: #f5f6f7;
  color: var(--ph-gray-900);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
  outline: none;
}

.ph-order-input:focus {
  border-color: var(--ph-info);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,95,168,0.1);
}

.ph-order-input::placeholder { color: var(--ph-gray-400); }

select.ph-order-input { appearance: auto; cursor: pointer; }

textarea.ph-order-input { resize: vertical; }

/* Status strip */
.ph-order-status-strip {
  margin: 1rem 1.5rem 1.25rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ph-order-status-strip--ok {
  background: var(--ph-success-soft);
  color: var(--ph-success);
}

.ph-order-status-strip--multi {
  background: var(--ph-info-soft);
  color: var(--ph-info);
}

.ph-order-status-strip--error {
  background: var(--ph-danger-soft);
  color: var(--ph-danger-text);
}

.ph-order-status-strip--checking {
  background: #f5f6f7;
  color: var(--ph-gray-400);
}

/* ── Cart items card ────────────────────────────────────────────────────────── */

.ph-items-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0;
}

.ph-items-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ph-gray-900);
}

.ph-items-header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ph-items-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ph-gray-500);
  background: var(--ph-gray-100);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  line-height: 1.4;
}

.ph-items-clear-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ph-gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.12s;
  line-height: 1;
}
.ph-items-clear-btn:hover { color: var(--ph-primary); }

/* ── Shipment groups ────────────────────────────────────────────────────────── */

.ph-shipment-group {
  margin: 1rem 1.5rem 0;
  border: 1.5px solid var(--ph-gray-100);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ph-shipment-group:last-child {
  margin-bottom: 1.25rem;
}

.ph-shipment-group--drop-active {
  border-color: var(--ph-info);
  box-shadow: 0 0 0 3px rgba(31,95,168,0.15);
}

.ph-shipment-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
}

.ph-shipment-header--available {
  background: var(--ph-info-soft);
  border-bottom: 1.5px solid #cce0f5;
}

.ph-shipment-header--backorder {
  background: var(--ph-danger-soft);
  border-bottom: 1.5px solid #f0c8ce;
}

.ph-shipment-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ph-shipment-icon--available { background: var(--ph-info); color: #fff; }
.ph-shipment-icon--backorder { background: #dc3545; color: #fff; }

.ph-shipment-label { flex: 1; min-width: 0; }

.ph-shipment-label-main {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-info);
  line-height: 1.2;
}

.ph-shipment-header--backorder .ph-shipment-label-main { color: #991b1b; }

.ph-shipment-label-sub {
  font-size: 0.75rem;
  color: var(--ph-gray-400);
  font-weight: 400;
}

.ph-shipment-count {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(31,95,168,0.12);
  color: var(--ph-info);
  white-space: nowrap;
  flex-shrink: 0;
}

.ph-shipment-header--backorder .ph-shipment-count {
  background: rgba(220,53,69,0.12);
  color: #991b1b;
}

/* ── Cart item rows ─────────────────────────────────────────────────────────── */

.ph-item-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem 1.375rem;
  border-top: 1px solid var(--ph-gray-100);
  transition: background 0.1s;
}

.ph-item-row:first-child { border-top: 0; }
.ph-item-row:hover { background: #f5f6f7; }
.ph-item-row.ph-item-dragging { opacity: 0.45; }

.ph-item-drag {
  cursor: grab;
  color: var(--ph-gray-200);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.12s;
  line-height: 1;
  padding: 0.25rem;
}
.ph-item-row:hover .ph-item-drag { color: var(--ph-gray-400); }

.ph-item-info { flex: 1; min-width: 0; }

.ph-item-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-gray-400);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ph-gray-900);
  line-height: 1.25;
  margin-bottom: 0;
}

.ph-item-split-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.175rem 0.45rem;
  border-radius: 999px;
  background: var(--ph-warning-soft);
  color: #7c4700;
  margin-top: 0.25rem;
}

.ph-item-price-block {
  text-align: right;
  flex-shrink: 0;
  min-width: 5.5rem;
}

.ph-item-unit-price {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ph-gray-900);
  line-height: 1;
}

.ph-item-ext-price {
  font-size: 0.6875rem;
  color: var(--ph-gray-400);
  margin-top: 0.125rem;
}

/* Quantity stepper */
.ph-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ph-gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.ph-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: #f5f6f7;
  color: var(--ph-gray-600);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
}

.ph-qty-btn:hover:not(:disabled) {
  background: var(--ph-gray-100);
  color: var(--ph-gray-900);
}

.ph-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ph-qty-input {
  width: 2.75rem;
  height: 2rem;
  border: 0;
  border-left: 1px solid var(--ph-gray-200);
  border-right: 1px solid var(--ph-gray-200);
  text-align: center;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ph-gray-900);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
}

.ph-qty-input::-webkit-inner-spin-button,
.ph-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.ph-qty-input:focus { background: var(--ph-info-soft); }

/* Remove button */
.ph-item-remove {
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--ph-gray-200);
  font-size: 0.875rem;
  line-height: 1;
  border-radius: 0.375rem;
  transition: color 0.1s, background 0.1s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-item-remove:hover {
  color: var(--ph-primary);
  background: var(--ph-danger-soft);
}

@media (max-width: 575.98px) {
  .ph-item-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }
  .ph-item-drag { display: none; }
  .ph-item-info { flex-basis: 100%; }
  .ph-item-price-block { flex: 1; text-align: left; }
}

/* ── Empty state ────────────────────────────────────────────────────────────── */

.ph-cart-empty-wrap {
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ph-cart-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ph-gray-900);
  margin-bottom: 1rem;
}

.ph-cart-empty-btn {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Place Order card ───────────────────────────────────────────────────────── */

.ph-place-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.5rem;
  flex-wrap: wrap;
}

.ph-place-summary { flex: 1; min-width: 0; }

.ph-place-summary-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-gray-400);
  margin-bottom: 0.2rem;
}

.ph-place-summary-detail {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ph-gray-900);
  letter-spacing: -0.01em;
}

.ph-place-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--ph-primary);
  color: #fff;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(204,1,0,0.25);
  font-family: inherit;
}

.ph-place-btn:hover:not(:disabled) {
  background: var(--ph-primary-hover);
  box-shadow: 0 4px 16px rgba(204,1,0,0.3);
  transform: translateY(-1px);
}

.ph-place-btn:active:not(:disabled) { transform: translateY(0); }

.ph-place-btn:disabled {
  background: var(--ph-gray-200);
  color: var(--ph-gray-400);
  box-shadow: none;
  cursor: not-allowed;
}

.ph-kits-page {
  background: #e6e8ea;
}

.ph-kits-subtitle {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0195rem;
}

.ph-kits-add-btn img {
  width: 3rem;
  height: 3rem;
  display: block;
}

.ph-kits-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.ph-kits-card .card-body {
  min-height: 30.5rem;
}

.ph-kits-card-title {
  color: #212529;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.028rem;
}

.ph-kits-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  background: #b3b7ba;
  color: #212529;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
}

.ph-kits-item-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.25rem;
  align-items: center;
  border-bottom: 1px solid #e6e8ea;
  padding-bottom: 0.25rem;
}

.ph-kits-item-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid #e6e8ea;
  object-fit: cover;
}

.ph-kits-item-text {
  color: #4b4f52;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.0094rem;
}

.ph-kits-item-star {
  color: #212529;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.125rem;
}

.ph-kits-item-star i {
  font-size: 1rem;
  line-height: 1;
}

.ph-kits-add-to-cart-btn {
  min-width: 8.5rem;
  min-height: 2.5rem;
  border-color: #cc0100;
  color: #cc0100;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-kits-add-to-cart-btn:hover,
.ph-kits-add-to-cart-btn:focus {
  border-color: #cc0100;
  color: #fff;
}

.ph-kits-actions {
  width: 100%;
  justify-content: space-between;
  padding-top: 1rem;
}

.ph-kits-edit-btn {
  color: #cc0100 !important;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-events-page {
  background: #e6e8ea;
}

.ph-events-subtitle {
  color: #4b4f52;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0195rem;
}

.ph-events-card {
  background: #4b4f52;
  border: 0;
  border-radius: 0.625rem;
  color: #fff;
}

.ph-events-card .card-body {
  min-height: 22.5rem;
}

.ph-events-card--featured {
  border: 1px solid #cc0100;
}

.ph-events-featured-badge {
  position: absolute;
  top: 1.4375rem;
  right: 0;
  background: #cc0100;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem 0 0 0.25rem;
}

.ph-events-card-title {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.028rem;
  padding-right: 80px;
}

.ph-events-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #e6e8ea;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ph-events-meta-row i {
  font-size: 1.125rem;
  line-height: 1;
}

.ph-events-card-copy {
  color: #e6e8ea;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0195rem;
}

.ph-events-learn-btn,
.ph-events-register-btn {
  min-height: 3.125rem;
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.ph-events-learn-btn {
  border-color: #fff;
}

.ph-events-calendar-card {
  border: 1px solid rgba(218, 220, 224, 0.7);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ph-events-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid rgba(218, 220, 224, 0.6);
  background: #fff;
}

.ph-events-calendar-title {
  color: #212529;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ph-events-calendar-view-btn {
  color: #cc0100 !important;
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 600;
}

.ph-events-calendar-view-btn i {
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

.ph-events-calendar-search-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f5f5f5;
  color: #6a778b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
}

.ph-events-calendar-table-wrap {
  background: #fff;
}

.ph-events-calendar-table {
  margin: 0;
  min-width: 64rem;
  table-layout: fixed;
}

.ph-events-calendar-table th {
  height: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 500;
  color: #212529;
  border-bottom: 1px solid rgba(218, 220, 224, 0.6) !important;
  border-top: 0;
  background: #fff;
}

.ph-events-calendar-table td {
  border: 1px solid rgba(218, 220, 224, 0.6);
  vertical-align: top;
  padding: 0.25rem;
  height: 5.875rem;
  background: #fff;
}

.ph-events-day-num {
  display: inline-block;
  color: #212529;
  font-size: 0.625rem;
  line-height: 1;
  margin: 0.15rem 0 0.5rem 0.125rem;
}

.ph-events-day-num--muted {
  color: #9ca3af;
}

.ph-events-day-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  color: #1e7f5c;
  font-size: 0.625rem;
  line-height: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.ph-events-day-event span:nth-child(2) {
  margin-right: auto;
}

.ph-events-day-event span:last-child {
  color: #212529;
  font-weight: 500;
}

/* ── Custom month calendar grid ──────────────────────────────────────────── */

.ph-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ph-cal-th {
  background: #f4f5f7;
  border-bottom: 1px solid rgba(218, 220, 224, 0.7);
  padding: 0;
  text-align: center;
}

.ph-cal-th span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
}

.ph-cal-cell {
  border: 1px solid rgba(218, 220, 224, 0.55);
  vertical-align: top;
  cursor: pointer;
}

.ph-cal-cell--other {
  background: #f8f9fa;
}

.ph-cal-cell:not(.ph-cal-cell--other):hover {
  background: #f0f4ff;
  transition: background 0.1s;
}

.ph-cal-day-top {
  line-height: 1;
}

.ph-cal-day-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  padding: 0.3125rem 0.375rem;
  line-height: 1;
}

.ph-cal-cell--other .ph-cal-day-num {
  color: #c7ced8;
}

.ph-cal-today-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #cc0100;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.25rem 0.25rem 0;
  line-height: 1;
}

.ph-cal-day-events {
  padding: 0 0.25rem 0.3125rem;
  min-height: 3.5rem;
}

.ph-cal-more {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0.125rem 0.25rem 0;
}

/* ── Event chips (left-accent pill) ── */
.ph-events-calendar .ph-fc-event {
  display: block;
  background: rgba(30, 127, 92, 0.09);
  border-left: 2.5px solid #1e7f5c;
  border-radius: 0 0.25rem 0.25rem 0;
  padding: 0.1875rem 0.3125rem;
  margin-bottom: 0.1875rem;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.1s;
}

.ph-events-calendar .ph-fc-event:hover {
  filter: brightness(0.94);
}

.ph-events-calendar .ph-fc-event__title {
  display: block;
  color: #1e7f5c;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-events-calendar .ph-fc-event--muted {
  background: rgba(107, 114, 128, 0.09);
  border-left-color: #6b7280;
}
.ph-events-calendar .ph-fc-event--muted .ph-fc-event__title { color: #4b4f52; }

.ph-events-calendar .ph-fc-event--danger {
  background: rgba(204, 1, 0, 0.08);
  border-left-color: #cc0100;
}
.ph-events-calendar .ph-fc-event--danger .ph-fc-event__title { color: #b91c1c; }

.ph-events-calendar .ph-fc-event--info {
  background: rgba(31, 95, 168, 0.09);
  border-left-color: #1f5fa8;
}
.ph-events-calendar .ph-fc-event--info .ph-fc-event__title { color: #1f5fa8; }

@media (max-width: 991px) {
  .ph-admin-add-btn {
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .ph-payments-invoices-head {
    flex-wrap: wrap;
    min-height: auto;
  }

  .ph-payments-tabs {
    justify-content: flex-start !important;
  }

  .ph-accounting-list li {
    font-size: 0.875rem;
  }

  .ph-tracking-order-head {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .ph-tracking-order-body {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .ph-tracking-stop-title {
    font-size: 1.25rem;
  }

  .ph-tracking-stop-address {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .ph-tracking-item-row {
    min-height: 2.75rem;
  }

  .ph-cart-link-btn {
    margin-top: 0;
    align-self: flex-start;
  }

  .ph-cart-item {
    padding: 1rem;
  }

  .ph-cart-item-top {
    grid-template-columns: auto 4rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .ph-checkout-item-top {
    grid-template-columns: auto 4rem minmax(0, 1fr);
  }

  .ph-cart-item-image-wrap,
  .ph-checkout-item-image-wrap {
    width: 4rem;
    height: 4rem;
  }

  .ph-checkout-item-image-wrap--tube {
    width: 4rem;
    height: 2rem;
  }

  .ph-cart-item-price {
    font-size: 1.25rem;
  }

  .ph-cart-empty-title {
    font-size: 1.5rem;
  }

  .ph-kits-card .card-body,
  .ph-events-card .card-body {
    min-height: 0;
  }

  .ph-kits-card-title {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .ph-kits-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ph-events-card-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .ph-events-calendar-title {
    font-size: 1.75rem;
  }

  .ph-events-calendar-head {
    min-height: auto;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .ph-events-calendar {
    min-width: 52rem;
  }

  .ph-account-profile-title {
    font-size: 2rem;
    line-height: 2.25rem;
  }

  .ph-account-profile-subtitle,
  .ph-account-text {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}


/* —— Error Pages —— */

.ph-error-page {
  background: #fff;
}

.ph-error-page__inner {
  max-width: 62rem;
  padding: 1rem 0.5rem;
}

.ph-error-page__eyebrow {
  color: #7b8084;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 500;
}

.ph-error-page__code {
  color: #7b8084;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  font-weight: 600;
}

.ph-error-page__title {
  color: #0f1720;
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
}

.ph-error-page__desc {
  color: #2d3640;
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  line-height: 1.45;
}

/* ── Account switcher ───────────────────────────────────────────────────── */
.ph-switched-account-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #664d03;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.ph-switched-account-banner__btn {
  background: transparent;
  border: 1px solid #664d03;
  color: #664d03;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

.ph-switched-account-banner__btn:hover {
  background: #664d03;
  color: #fff3cd;
}

/* ── Account switcher pill + panel ─────────────────────────────────────── */
.ph-acct-sw {
  position: fixed;
  top: 0.6rem;
  left: 1rem;
  z-index: 1060;
  touch-action: none;
  user-select: none;
}

.ph-acct-sw__pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ph-gray-100);
  color: var(--ph-gray-600);
  border: none;
  border-radius: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background 0.15s;
  max-width: 280px;
}

.ph-acct-sw__pill:hover,
.ph-acct-sw--open .ph-acct-sw__pill {
  background: var(--ph-gray-200);
  color: var(--ph-gray-900);
}

.ph-acct-sw--switched .ph-acct-sw__pill {
  background: var(--ph-warning);
  color: var(--ph-gray-900);
}

.ph-acct-sw--switched .ph-acct-sw__pill:hover,
.ph-acct-sw--switched.ph-acct-sw--open .ph-acct-sw__pill {
  background: var(--ph-warning-hover);
  color: var(--ph-gray-900);
}

.ph-acct-sw__pill-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ph-acct-sw__pill-id {
  opacity: 0.55;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.ph-acct-sw__pill-caret {
  font-size: 0.65rem;
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ph-acct-sw--open .ph-acct-sw__pill-caret {
  transform: rotate(180deg);
}

.ph-acct-sw__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 340px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 0.75rem;
}

.ph-acct-sw__panel-header {
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e9ecef;
}

.ph-acct-sw__panel-footer {
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e9ecef;
}

.ph-acct-sw__reset-pos {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--ph-muted, #6c757d);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ph-acct-sw__reset-pos:hover { color: var(--ph-dark, #1a1d21); }

.ph-acct-sw__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8e9397;
  margin-bottom: 0.1rem;
}

.ph-acct-sw__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
}

.ph-acct-sw__input {
  padding-right: 2.5rem;
  font-size: 0.875rem;
}

.ph-acct-sw__icon-wrap {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}

.ph-acct-sw__clear {
  pointer-events: all;
  color: #6c757d;
  line-height: 1;
}

.ph-acct-sw__clear:hover { color: #212529; }

.ph-acct-sw__search-icon {
  color: #6c757d;
  font-size: 0.875rem;
}

.ph-acct-sw__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 1;
  padding: 0.25rem 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}

.ph-acct-sw__result-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.ph-acct-sw__result-item:hover,
.ph-acct-sw__result-item--active {
  background-color: #f0f0f0;
}

.ph-acct-sw__result-name {
  font-size: 0.9rem;
  color: #212529;
}

.ph-acct-sw__result-addr {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.0625rem;
}

.ph-acct-sw__no-results {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.ph-acct-sw__results-truncated {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
  font-style: italic;
}

/* ── Payment type icons ─────────────────────────────────────────────────── */
.ph-payment-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.ph-payment-icon--card    { background: #e8f0fe; color: #1a56db; }
.ph-payment-icon--cash    { background: #dcfce7; color: #166534; }
.ph-payment-icon--check   { background: #f3f4f6; color: #374151; }
.ph-payment-icon--adj     { background: #fff7ed; color: #c2410c; }
.ph-payment-icon--default { background: #f3f4f6; color: #6b7280; }

.ph-pd-lines-table td,
.ph-pd-lines-table th {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

.ph-pd-lines-table .ph-tickets-actions-col {
  padding-right: 1rem !important;
}

.ph-pd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.ph-pd-icon-btn:hover {
  color: var(--ph-primary);
  background: rgba(204, 1, 0, 0.08);
}

/* ── Nav search typeahead ────────────────────────────────────────────── */
.ph-nav-typeahead {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  min-width: 720px;
  max-width: min(860px, 96vw);
}

/* Skeleton shimmer */
.ph-typeahead-skeleton {
  background: linear-gradient(
    90deg,
    var(--bs-secondary-bg) 25%,
    var(--bs-tertiary-bg, #e9ecef) 50%,
    var(--bs-secondary-bg) 75%
  );
  background-size: 200% 100%;
  animation: ph-typeahead-shimmer 1.4s ease-in-out infinite;
}

@keyframes ph-typeahead-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Two-panel wrapper */
.ph-typeahead-body {
  display: flex;
  align-items: stretch;
}

/* ── Left: category grid ─────────────────────────────────────────────── */
.ph-typeahead-cats-panel {
  flex: 0 0 200px;
  border-right: 1px solid var(--bs-border-color);
  padding: 0.75rem;
}

.ph-typeahead-panel-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
}

.ph-typeahead-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}

.ph-typeahead-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--bs-body-color);
  border-radius: 0.375rem;
  padding: 0.25rem 0.25rem 0.375rem;
  gap: 0.25rem;
  transition: background 0.12s;
  overflow: hidden;
}

.ph-typeahead-cat-card:hover {
  background: rgba(204, 1, 0, 0.06);
  color: var(--bs-body-color);
}

.ph-typeahead-cat-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--bs-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-typeahead-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-typeahead-cat-img-wrap--placeholder {
  font-size: 1.25rem;
  color: var(--bs-secondary-color);
}

.ph-typeahead-cat-name {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-body-color);
}

.ph-typeahead-cat-count {
  font-size: 0.625rem;
  color: var(--bs-secondary-color);
}

/* ── Right: product results ──────────────────────────────────────────── */
.ph-typeahead-prods-panel {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75rem 0 0.5rem;
}

.ph-typeahead-prods-group {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding: 0.4rem 1rem 0.2rem;
}

.ph-typeahead-prod-item + .ph-typeahead-prods-group {
  border-top: 1px solid var(--bs-border-color);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.ph-typeahead-prod-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  color: var(--bs-body-color);
}

.ph-typeahead-prod-item:hover,
.ph-typeahead-prod-item--active {
  background: rgba(204, 1, 0, 0.07);
  color: var(--bs-body-color);
}

.ph-typeahead-prod-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bs-secondary-bg);
}

.ph-typeahead-prod-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.ph-typeahead-prod-body {
  flex: 1 1 0;
  min-width: 0;
}

.ph-typeahead-prod-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-typeahead-prod-meta {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Search category chips ───────────────────────────────────────────── */
.ph-search-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ph-search-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bs-body-color);
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.ph-search-cat-chip:hover {
  border-color: var(--ph-red, #cc0100);
  color: var(--ph-red, #cc0100);
  background: rgba(204, 1, 0, 0.04);
}

.ph-search-cat-chip__count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

/* ── Search results pagination ───────────────────────────────────────── */
.ph-search-pagination {
  flex-wrap: wrap;
}

.ph-pagination-nav-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.ph-pagination-pages {
  flex-wrap: wrap;
  justify-content: center;
}

.ph-pagination-page {
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ph-primary);
  background: transparent;
  border: 1.5px solid transparent;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}

.ph-pagination-page:hover {
  border-color: var(--ph-primary);
  background: rgba(204, 1, 0, 0.06);
  color: var(--ph-primary);
}

.ph-pagination-page--active {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  color: #fff !important;
  font-weight: 700;
  pointer-events: none;
}

.ph-pagination-info {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

/* ── Ticket detail page ─────────────────────────────────────────────────────── */
.ph-ticket-type-badge {
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ph-ticket-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

.ph-ticket-dl dt {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
  padding-bottom: 0.25rem;
}

.ph-ticket-dl dd {
  font-size: 0.875rem;
  font-weight: 600;
  padding-bottom: 0.25rem;
}

.ph-ticket-address {
  font-size: 0.9375rem;
  line-height: 1.65;
  font-style: normal;
}

.ph-ticket-totals {
  min-width: 300px;
}

.ph-ticket-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.ph-ticket-totals-row:last-child {
  border-bottom: none;
}

.ph-ticket-totals-row--grand {
  font-size: 1.0625rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--bs-border-color);
  border-bottom: none;
}

/* ── Ticket print-only header ────────────────────────────────────────────── */
.ph-print-header {
  display: none;
}

/* ── Payment detail drawer ───────────────────────────────────────────────── */
.ph-payment-drawer {
  --bs-offcanvas-width: 620px;
}

.ph-payment-drawer-header {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

.ph-payment-drawer-header .offcanvas-title {
  color: #fff;
}

.ph-payment-drawer-header .btn-close {
  filter: invert(1) grayscale(1);
}

@media (max-width: 575px) {
  .ph-payment-drawer {
    --bs-offcanvas-width: 100vw;
  }
}

/* ── Proof of Delivery drawer ────────────────────────────────────────────── */
.ph-pod-drawer {
  --bs-offcanvas-width: 420px;
  --bs-offcanvas-bg: #1c1c1e;
  --bs-offcanvas-color: #e8e8ed;
}

.ph-pod-drawer .offcanvas-title {
  color: #fff;
}

.ph-pod-drawer-header {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ph-pod-drawer .offcanvas-body {
  padding: 1.25rem 1.25rem 2rem;
  color: #e8e8ed;
}

.ph-pod-drawer .offcanvas-body p,
.ph-pod-drawer .offcanvas-body strong {
  color: #e8e8ed;
}

.ph-pod-drawer .offcanvas-body .text-muted,
.ph-pod-drawer .offcanvas-body .ph-pod-order-item {
  color: #a0a0a8 !important;
}

.ph-pod-drawer .offcanvas-body hr {
  border-color: rgba(255,255,255,.12);
}

.ph-pod-drawer .alert-danger {
  background: rgba(220,53,69,.2);
  border-color: rgba(220,53,69,.4);
  color: #f8a5ae;
}

.ph-pod-divider {
  border-color: rgba(255,255,255,.12);
}

.ph-pod-section {
  margin-bottom: 1.1rem;
}

.ph-pod-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a7a88;
  margin-bottom: 0.3rem;
}

.ph-pod-section-value {
  font-size: 0.9375rem;
  color: #e8e8ed;
}

.ph-pod-notes {
  font-size: 0.875rem;
  color: #b0b0ba;
  white-space: pre-line;
}

.ph-pod-maps-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1.4;
  transition: color 0.15s;
}

.ph-pod-maps-link:hover {
  color: #fff;
  text-decoration: underline;
}

.ph-pod-order-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ph-pod-order-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ph-pod-order-chip:hover {
  background: rgba(220,53,69,.12);
  border-color: rgba(220,53,69,.3);
  color: #fff;
}

.ph-pod-img-modal .modal-dialog {
  max-width: min(95vw, 1000px);
}

.ph-pod-img-modal-content {
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.ph-pod-img-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ph-pod-img-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.ph-pod-img-toolbar-sep {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,.15);
  margin: 0 0.35rem;
}

.ph-pod-tool-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-pod-tool-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.ph-pod-tool-close {
  font-size: 0.875rem;
  opacity: 0.7;
}

.ph-pod-tool-close:hover {
  opacity: 1;
}

.ph-pod-zoom-label {
  font-size: 0.75rem;
  color: #888;
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* ── Image area ──────────────────────────────────────────────────────────── */
.ph-pod-image-wrap {
  position: relative;
  overflow: hidden;
  height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.ph-pod-panzoom {
  touch-action: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-pod-panzoom:active {
  cursor: grabbing;
}

.ph-pod-image-full {
  max-height: 70vh;
  max-width: 90vw;
  display: block;
  background: #fff;
  transition: transform 0.18s ease;
  pointer-events: none;
  user-select: none;
  border-radius: 2px;
}

/* ── Hint overlay ────────────────────────────────────────────────────────── */
.ph-pod-img-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.25rem;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  pointer-events: none;
  white-space: nowrap;
}

.ph-pod-img-hint-item {
  font-size: 0.78rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
}

.ph-pod-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.ph-pod-thumb-btn {
  background: none;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  width: 96px;
  height: 72px;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.ph-pod-thumb-btn:hover {
  border-color: var(--bs-danger);
}

.ph-pod-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}

@media (max-width: 575px) {
  .ph-pod-drawer {
    --bs-offcanvas-width: 100vw;
  }
}

/* ── POD icon in ticket rows ─────────────────────────────────────────────── */
.ph-pod-icon-btn {
  background: none;
  border: none;
  padding: 0 0 0 0.35rem;
  cursor: pointer;
  color: var(--bs-secondary-color);
  line-height: 1;
  vertical-align: middle;
  font-size: 0.8rem;
  opacity: 0.65;
  transition: opacity 0.15s, color 0.15s;
}

.ph-pod-icon-btn:hover {
  color: var(--bs-danger);
  opacity: 1;
}

/* ── Typeahead: mobile responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .ph-nav-typeahead {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    /* top is set via inline style by JS on open() */
    min-width: 0;
    transform: none;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .ph-typeahead-body {
    flex-direction: column;
  }

  .ph-typeahead-cats-panel {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--bs-border-color);
  }

  .ph-typeahead-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ph-cat-search-wrap {
    flex: 1 1 100%;
  }
}

/* ── Print styles ────────────────────────────────────────────────────────────── */
@media print {
  /* Hide all chrome */
  .ph-site-header,
  .ph-site-footer,
  .ph-user-drawer,
  .ph-user-mobile-drawer,
  .ph-acct-sw,
  .ph-homeowner-banner,
  .ph-print-btn,
  .ph-user-main-content > *:not(.ph-ticket-page) {
    display: none !important;
  }

  /* Remove sidebar offset so content fills the page */
  .ph-user-main-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Full-width content, no background tint */
  body,
  .ph-ticket-page,
  .ph-ticket-page .card {
    background: #fff !important;
    color: #000 !important;
  }

  .ph-ticket-page {
    padding: 0 !important;
  }

  .ph-ticket-page .ph-max-1200 {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Cards: remove shadow and border radius, keep border */
  .ph-ticket-page .card {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  /* Line items table: allow page breaks, but not mid-row */
  .ph-ticket-page .ph-ticket-lines-card {
    break-inside: auto !important;
  }

  /* Remove overflow so the browser can paginate the table */
  .ph-ticket-page .ph-ticket-lines-card .table-responsive {
    overflow: visible !important;
  }

  .ph-ticket-page .ph-ticket-lines-card thead {
    display: table-header-group;
  }

  .ph-ticket-page .ph-ticket-lines-card tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Summary cards side-by-side even on narrow print area */
  .ph-ticket-page .row.g-3 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }

  .ph-ticket-page .row.g-3 > [class*="col-"] {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Line items: always show desktop table, hide mobile cards */
  .ph-ticket-page .d-md-none {
    display: none !important;
  }

  .ph-ticket-page .d-none.d-md-block {
    display: block !important;
  }

  /* Totals block fills width */
  .ph-ticket-page .ph-ticket-totals {
    min-width: 220px;
  }

  /* Table: clean borders */
  .ph-ticket-page .ph-payments-table th,
  .ph-ticket-page .ph-payments-table td {
    border-color: #ccc !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 0.8125rem !important;
  }

  /* Suppress Bootstrap's colored badge */
  .ph-ticket-type-badge {
    border: 1px solid #999 !important;
    color: #000 !important;
    background: #fff !important;
  }

  /* Print-only letterhead */
  .ph-print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #4b4f52 !important;
    color: #fff !important;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    border-radius: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ph-print-header-logo {
    height: 36px;
    width: auto;
  }

  .ph-print-header-branch {
    font-size: 0.8125rem;
    color: #e0e0e0 !important;
    text-align: right;
    white-space: pre-line;
  }

  /* Page break hints */
  .ph-ticket-page header { break-after: avoid; }
  .ph-ticket-page .card  { break-inside: avoid; }
}

/* ── Tickets split-panel page ─────────────────────────────────────────────── */

.ph-tickets-page { background: var(--ph-gray-100); }

.ph-tickets-frame { overflow: hidden; }

.ph-tickets-panel-footer {
  background: var(--ph-gray-800);
  height: 1.5rem;
}

.ph-tickets-detail-panel {
  position: relative;
  min-height: 200px;
}

.ph-tickets-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ph-gray-800);
  padding: 0.5rem 0.75rem;
  gap: 0.25rem;
}

.ph-tickets-tabs::-webkit-scrollbar { display: none; }

.ph-tickets-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1.4;
}

.ph-tickets-tab i {
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.ph-tickets-tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.ph-tickets-tab.active {
  color: var(--ph-gray-800);
  background: #ffffff;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .ph-tickets-tabs {
    padding: 0.375rem 0.5rem;
    gap: 0.125rem;
  }
  .ph-tickets-tab {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.25rem;
  }
  .ph-tickets-tab-label {
    display: none;
  }
  .ph-tickets-tab i {
    font-size: 1.125rem;
  }
}

.ph-list-loading-bar {
  height: 2px;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ph-list-loading-bar.htmx-request {
  opacity: 1;
}
.ph-list-loading-bar-inner {
  height: 100%;
  width: 40%;
  background: var(--ph-primary);
  animation: ph-list-progress 1s ease-in-out infinite;
}
@keyframes ph-list-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* PDF download modal */
.ph-pdf-modal .modal-dialog {
  max-width: 380px;
}
.ph-pdf-modal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.ph-pdf-modal-head {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  background: #1c2333;
}
.ph-pdf-modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: rgba(204, 1, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem;
  font-size: 1.875rem;
  color: #cc0100;
  transition: background 0.35s ease, color 0.35s ease;
}
.ph-pdf-modal-icon.ph-ready {
  background: rgba(76, 175, 130, 0.18);
  color: #4caf82;
}
.ph-pdf-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.375rem;
  transition: color 0.2s ease;
}
.ph-pdf-modal-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.375rem;
}
.ph-pdf-modal-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.ph-pdf-modal-bar {
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: #cc0100;
  animation: ph-list-progress 1.1s ease-in-out infinite;
  transition: width 0.5s ease, background 0.4s ease;
}
.ph-pdf-modal-bar.ph-ready {
  width: 100%;
  animation: none;
  background: #4caf82;
}
.ph-pdf-modal-foot {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-top: 1px solid var(--bs-border-color);
}

.ph-tickets-filter-box {
  padding: 1rem 1rem 0;
  margin: 0.75rem;
  border-radius: 0.5rem;
}

.ph-tickets-filter-footer {
  margin-top: 0.75rem;
  padding: 0.5rem 0 0.625rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ph-tickets-filter-input {
  border-color: #ced4da;
  color: #212529;
  font-size: 0.875rem;
}

.ph-tickets-filter-input::placeholder {
  color: #adb5bd;
}

.ph-tickets-filter-btn {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.ph-tickets-preset-btn {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: #fff;
  color: var(--bs-secondary-color);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ph-tickets-preset-btn:hover {
  border-color: var(--ph-primary);
  color: var(--ph-primary);
  background: rgba(204, 1, 0, 0.04);
}
.ph-tickets-preset-btn.active {
  border-color: var(--ph-primary);
  color: #fff;
  background: var(--ph-primary);
}

.ph-tickets-mode-pill {
  font-size: 0.6875rem;
  line-height: 1;
  padding: 0 0.35rem;
  height: calc(1.5em + 0.5rem + 2px); /* match form-control-sm */
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  flex-shrink: 0;
  align-self: stretch;
}

.ph-tickets-mode-pill:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.ph-tickets-amt-input {
  width: 100px;
}

.ph-tickets-list-content-wrap {
  overflow-x: auto;
}
.ph-tickets-list-content-wrap.ph-loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@keyframes ph-row-return {
  0%   { background-color: transparent; }
  15%  { background-color: rgba(255, 193, 7, 0.3); }
  65%  { background-color: rgba(255, 193, 7, 0.22); }
  100% { background-color: transparent; }
}
.ph-tickets-row--return > td {
  animation: ph-row-return 1.6s ease-in-out;
}

/* Grouped row header */
.ph-tickets-group-row > td {
  background: var(--ph-gray-100) !important;
}

.ph-tickets-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a5e61;
  padding: 0.375rem 0.75rem !important;
}

.ph-tickets-group-total {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ph-gray-800);
  text-transform: none;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}

/* Selection bar */
.ph-tickets-selection-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff4d6;
  border-bottom: 1px solid #ffe08a;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

/* Row states */
.ph-tickets-row--selected > td {
  background: rgba(255, 244, 214, 0.6) !important;
}

.ph-tickets-row--active > td {
  background: rgba(220, 235, 255, 0.5) !important;
}

/* Checkbox column */
.ph-tickets-check-col {
  width: 2.5rem;
  padding-left: 0.75rem !important;
  padding-right: 0.375rem !important;
}

/* Actions column */
.ph-tickets-actions-col {
  width: 2.75rem;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
  white-space: nowrap;
}

.ph-tickets-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--bs-border-color);
  border-radius: 5px;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ph-tickets-action-btn:hover {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
}

/* Taller rows */
.ph-tickets-table td,
.ph-tickets-table th {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

.ph-tickets-table { font-size: 0.8125rem; }

.ph-tickets-table-wrap { overflow-x: auto; }

/* ── Mobile card list ── */
.ph-tickets-card-group-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ph-gray-500);
  background: var(--ph-gray-100);
  border-bottom: 1px solid var(--ph-stroke-light);
}

.ph-tickets-card {
  border-bottom: 1px solid var(--ph-stroke-light);
  padding: 0.625rem 1rem;
  transition: background 0.1s;
}

.ph-tickets-card:hover { background: var(--ph-gray-100); }

.ph-tickets-card.ph-tickets-row--active { background: var(--ph-info-soft); }

.ph-tickets-card.ph-tickets-row--return {
  animation: ph-row-return 1.6s ease-in-out;
}

.ph-tickets-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.ph-tickets-card-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-secondary);
  flex-shrink: 0;
}

.ph-tickets-card-amount {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-gray-900);
  white-space: nowrap;
}

.ph-tickets-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ph-tickets-card-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.ph-tickets-card-label {
  color: var(--ph-gray-400);
  flex-shrink: 0;
}

.ph-tickets-card-value {
  color: var(--ph-gray-600);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Detail panel */
.ph-tickets-detail-inner { min-height: 100%; }

.ph-tickets-back-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.375rem 0.75rem;
  background: #fff;
}

.ph-tickets-back-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bs-link-color);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  line-height: 1.5;
}

.ph-tickets-back-btn:hover {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

.ph-tickets-detail-empty {
  min-height: 300px;
}

.ph-tickets-empty-icon {
  font-size: 3rem;
  color: #b3b7ba;
}

.ph-tickets-detail-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.ph-tickets-detail-spinner.htmx-request {
  opacity: 1;
  pointer-events: auto;
}

.ph-tickets-detail-view { }

/* ── Detail line item cards (mobile) ── */
.ph-detail-line-cards {
  border: 1px solid var(--ph-stroke-light);
  border-radius: 0.375rem;
  overflow: hidden;
}

.ph-detail-line-card {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--ph-stroke-light);
}

.ph-detail-line-card:last-child { border-bottom: none; }

.ph-detail-line-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.ph-detail-line-num {
  font-size: 0.7rem;
  color: var(--ph-gray-400);
  flex-shrink: 0;
}

.ph-detail-line-id {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ph-secondary);
}

.ph-detail-line-price {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-gray-900);
  white-space: nowrap;
}

.ph-detail-line-desc {
  font-size: 0.8125rem;
  color: var(--ph-gray-600);
  margin-bottom: 0.2rem;
}

.ph-detail-line-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ph-gray-400);
}

.ph-detail-line-meta strong { color: var(--ph-gray-800); }

.ph-detail-line-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--ph-gray-100);
  color: var(--ph-gray-600);
}

.ph-quote-meta {
  font-size: 0.875rem;
  color: #495057;
}

.ph-quote-meta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #adb5bd;
  margin-right: 0.35rem;
}

.ph-transfer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
  color: #495057;
}

.ph-quote-segment-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.ph-tickets-detail-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Pagination */
.ph-tickets-pagination { font-size: 0.875rem; }

/* ── Events page: card list ─────────────────────────────────────────────── */

.ph-event-list {
  max-height: 640px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.ph-event-list-month-header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  padding: 0.875rem 0.125rem 0.375rem;
  margin-bottom: 0.25rem;
}

.ph-event-list-month-header:first-child {
  padding-top: 0.125rem;
}

.ph-event-list-card {
  display: flex;
  gap: 0.875rem;
  background: #fff;
  border: 1.5px solid rgba(218, 220, 224, 0.85);
  border-radius: 0.625rem;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.ph-event-list-card:hover {
  border-color: #c8cdd5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ph-event-list-card:focus-visible {
  border-color: #1f5fa8;
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.15);
}

.ph-event-list-card--active {
  border-color: #cc0100 !important;
  box-shadow: 0 0 0 3px rgba(204, 1, 0, 0.09) !important;
}

.ph-event-list-card--info.ph-event-list-card--active {
  border-color: #1f5fa8 !important;
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.09) !important;
}

.ph-event-list-card--success.ph-event-list-card--active {
  border-color: #1e7f5c !important;
  box-shadow: 0 0 0 3px rgba(30, 127, 92, 0.09) !important;
}

.ph-event-list-card--muted.ph-event-list-card--active {
  border-color: #4b4f52 !important;
  box-shadow: 0 0 0 3px rgba(75, 79, 82, 0.09) !important;
}

.ph-event-list-date {
  flex: 0 0 2.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f6f7;
  border-radius: 0.4375rem;
  padding: 0.25rem;
  text-align: center;
}

.ph-event-list-date-month {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cc0100;
  line-height: 1;
  margin-bottom: 0.1875rem;
}

.ph-event-list-date-day {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: #212529;
}

.ph-event-list-body {
  flex: 1;
  min-width: 0;
}

.ph-event-list-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #212529;
  margin: 0 0 0.3125rem;
}

.ph-event-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 0.1875rem;
}

.ph-event-list-meta i {
  font-size: 0.8125rem;
  margin-right: 0.2rem;
  vertical-align: -0.05em;
}

.ph-event-location-link {
  color: inherit;
  text-decoration: none;
}
.ph-event-location-link:hover {
  color: #1f5fa8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ph-event-list-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4b4f52;
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ph-events-calendar-sticky {
  position: sticky;
  top: 1rem;
}

.ph-events-calendar-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f5f5f5;
  color: #4b4f52;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1;
  transition: background 0.12s;
}

.ph-events-calendar-nav-btn:hover {
  background: #e8e9ea;
  color: #212529;
}

@media (max-width: 991px) {
  .ph-event-list {
    max-height: none;
    overflow-y: visible;
  }
  .ph-events-calendar-sticky {
    position: static;
  }
}

/* ── Day modal ───────────────────────────────────────────────────────────── */
.ph-day-modal-content {
  border: none;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.ph-day-modal-header {
  background: #fff;
  border-bottom: 1px solid rgba(218, 220, 224, 0.7);
  padding: 1.125rem 1.375rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ph-day-modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.ph-day-modal-cal-icon {
  font-size: 1.5rem;
  color: #cc0100;
  line-height: 1;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.ph-day-modal-title {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  font-size: inherit;
}

.ph-day-modal-weekday {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.01em;
}

.ph-day-modal-date-str {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.4;
}

.ph-day-modal-body {
  background: #f4f5f7;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Event cards */
.ph-day-modal-event {
  background: #fff;
  border-radius: 0.625rem;
  border-left: 4px solid #1e7f5c;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ph-day-modal-event--muted  { border-left-color: #6b7280; }
.ph-day-modal-event--danger { border-left-color: #dc2626; }
.ph-day-modal-event--info   { border-left-color: #2563eb; }

.ph-day-modal-event-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.3125rem;
}

.ph-day-modal-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.875rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
}

.ph-day-modal-event-meta i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
  vertical-align: -0.05em;
}

.ph-day-modal-event-desc {
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.55;
  margin: 0.4375rem 0 0;
}

.ph-day-modal-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Empty state */
.ph-day-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.ph-day-modal-empty i {
  font-size: 2rem;
  color: #9ca3af;
  opacity: 0.6;
}

.ph-day-modal-empty p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* ── Incentive Tracker ───────────────────────────────────────────────────── */

.ph-incentive-section {
  background: #fff;
  border-top: 1px solid rgba(218, 220, 224, 0.85);
  padding: 2rem 0 2.5rem;
}

.ph-incentive-marketing-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #212529;
}

.ph-incentive-marketing-header .ph-incentive-promo-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cc0100;
}

.ph-incentive-card {
  background: #fff;
  border: 1.5px solid rgba(218, 220, 224, 0.85);
  border-radius: 0.625rem;
  overflow: hidden;
}

.ph-incentive-card + .ph-incentive-card {
  margin-top: 1.25rem;
}

.ph-incentive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(218, 220, 224, 0.6);
  background: #f8f9fa;
  flex-wrap: wrap;
}

.ph-incentive-promo-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cc0100;
  margin-bottom: 0.2rem;
}

.ph-incentive-destination {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
}

.ph-incentive-trip-dates {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.ph-incentive-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8f6100;
  background: #fff4d6;
  border: 1px solid #f2c94c;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
}

.ph-incentive-note i {
  font-size: 0.9375rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.ph-incentive-body {
  padding: 1.25rem;
}

/* Progress bars */

.ph-incentive-bar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.ph-incentive-bar-wrap {
  position: relative;
  height: 1.25rem;
  background: #f5f6f7;
  border: 1px solid rgba(218, 220, 224, 0.7);
  border-radius: 0.25rem;
  overflow: visible;
}

.ph-incentive-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.4s ease;
}

.ph-incentive-bar-fill--time {
  background: #6b7280;
}

.ph-incentive-bar-fill--progress {
  background: #cc0100;
}

.ph-incentive-bar-tick {
  position: absolute;
  top: -0.25rem;
  height: calc(100% + 0.5rem);
  border-right: 2px dashed rgba(33, 37, 41, 0.25);
  pointer-events: none;
}

.ph-incentive-tick-label {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  white-space: nowrap;
  background: #fff;
  padding: 0.125rem 0.375rem;
  border: 1px solid rgba(218, 220, 224, 0.85);
  border-radius: 0.25rem;
}

.ph-incentive-bar-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-top: 0.3125rem;
}

/* Achievement status items */

.ph-incentive-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ph-incentive-status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(218, 220, 224, 0.55);
}

.ph-incentive-status-item:first-child {
  border-top: none;
  padding-top: 0;
}

.ph-incentive-status-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.ph-incentive-status-icon--locked {
  background: #f5f6f7;
  color: #c7ced8;
}

.ph-incentive-status-icon--progress {
  background: rgba(204, 1, 0, 0.08);
  color: #cc0100;
}

.ph-incentive-status-icon--unlocked {
  background: rgba(30, 127, 92, 0.1);
  color: #1e7f5c;
}

.ph-incentive-status-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.ph-incentive-status-sub {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.125rem;
  line-height: 1.4;
}

.ph-incentive-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.875rem;
}

@media (max-width: 991px) {
  .ph-incentive-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ph-incentive-destination {
    font-size: 1rem;
  }
}

/* ── Account section tabs (admin.scala.html) — matches tickets tab style ───── */

.ph-account-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ph-gray-800);
  padding: 0.5rem 0.75rem;
  gap: 0.25rem;
  border-radius: 0.75rem;
}

.ph-account-tabs::-webkit-scrollbar { display: none; }

.ph-account-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1.4;
}

.ph-account-tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.ph-account-tab.active {
  color: var(--ph-gray-800);
  background: #ffffff;
  font-weight: 600;
}

/* ── Replenishment page ──────────────────────────────────────────────────── */

.ph-replenish-hero {
  background: linear-gradient(135deg, #1f2937 0%, rgb(33,37,41) 40%, #c00 100%);
  border-radius: 1rem;
  padding: 2rem 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.ph-replenish-hero::before {
  content: '';
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(204, 1, 0, 0.12);
  pointer-events: none;
}

.ph-replenish-hero::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  right: 6rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(204, 1, 0, 0.07);
  pointer-events: none;
}

.ph-replenish-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7070;
  margin-bottom: 0.875rem;
}

.ph-replenish-hero-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.ph-replenish-hero-desc {
  font-size: 0.9375rem;
  color: var(--ph-gray-300);
  line-height: 1.65;
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

.ph-replenish-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ph-replenish-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.ph-replenish-hero-chip i {
  color: #ff7070;
  font-size: 0.875rem;
}

@media (max-width: 575px) {
  .ph-replenish-hero {
    padding: 1.5rem 1.25rem;
  }
  .ph-replenish-hero-title {
    font-size: 1.3rem;
  }
}

/* ── Replenishment usage tab ─────────────────────────────────────────────── */

.ph-usage-filters {
  background: #fff;
  border: 1px solid var(--ph-gray-200);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ph-usage-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ph-usage-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.ph-usage-preset {
  padding: 0.3125rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--ph-gray-200);
  border-radius: 2rem;
  background: transparent;
  color: var(--ph-gray-600);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ph-usage-preset:hover { border-color: var(--ph-gray-400); color: var(--ph-gray-900); }
.ph-usage-preset.active {
  background: var(--ph-gray-800);
  border-color: var(--ph-gray-800);
  color: #fff;
  font-weight: 600;
}

.ph-usage-custom-range {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.ph-usage-custom-range .form-control { width: 8.5rem; }
.ph-usage-date-sep { font-size: 0.8125rem; color: var(--ph-gray-500); white-space: nowrap; }

.ph-usage-select { width: 10rem; flex-shrink: 0; }
.ph-usage-text-filter { width: 11rem; flex-shrink: 0; }

.ph-usage-filter-actions { display: flex; align-items: center; gap: 0.625rem; margin-left: auto; }

.ph-usage-count {
  font-size: 0.8125rem;
  color: var(--ph-gray-500);
  white-space: nowrap;
}

/* ── Job groups ──────────────────────────────────────────────────────────── */

.ph-usage-groups { display: flex; flex-direction: column; gap: 0.625rem; }

.ph-usage-group {
  background: #fff;
  border: 1px solid var(--ph-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.ph-usage-group-hd {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
  min-height: 3rem;
}
.ph-usage-group-hd:hover { background: var(--bs-light); }

.ph-usage-chevron {
  font-size: 0.75rem;
  color: var(--ph-gray-400);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.ph-usage-group-hd.open .ph-usage-chevron { transform: rotate(90deg); }

.ph-usage-group-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ph-gray-900);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-usage-group-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.ph-usage-group-date {
  font-size: 0.8125rem;
  color: var(--ph-gray-500);
}
.ph-usage-group-stat {
  font-size: 0.8125rem;
  color: var(--ph-gray-500);
}
.ph-usage-restock-count {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
  border-radius: 2rem;
}

/* ── Usage table ─────────────────────────────────────────────────────────── */

.ph-usage-group-bd { border-top: 1px solid var(--ph-gray-100); overflow-x: auto; }

.ph-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.ph-usage-th {
  padding: 0.5rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ph-gray-500);
  background: var(--bs-light);
  border-bottom: 1px solid var(--ph-gray-100);
  white-space: nowrap;
  text-align: left;
}

.ph-usage-td {
  padding: 0.625rem 0.875rem;
  color: var(--ph-gray-900);
  border-bottom: 1px solid var(--ph-gray-100);
  vertical-align: middle;
}
.ph-usage-row:last-child .ph-usage-td { border-bottom: none; }
.ph-usage-row:hover { background: #fafbfc; }
.ph-usage-row--editing { background: #fffbf0 !important; }

.ph-usage-th--edp, .ph-usage-td--edp { width: 5rem; color: var(--ph-gray-600); font-family: monospace; }
.ph-usage-th--qty, .ph-usage-td--qty { width: 4rem; text-align: center; }
.ph-usage-th--status { width: 7rem; }
.ph-usage-th--device, .ph-usage-td--device { width: 9rem; color: var(--ph-gray-600); }
.ph-usage-th--replen-status, .ph-usage-td--replen-status { width: 9rem; }
.ph-usage-th--actions, .ph-usage-td--actions { width: 3rem; text-align: center; }

.ph-usage-custom-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ph-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Restock pills */
.ph-usage-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
  white-space: nowrap;
}
.ph-usage-pill--yes { background: #d1fae5; color: #065f46; }
.ph-usage-pill--no  { background: var(--ph-gray-100); color: var(--ph-gray-500); }
.ph-usage-pill--pending { background: #fef3c7; color: #92400e; }

.ph-usage-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ph-primary);
  text-decoration: none;
}
.ph-usage-ticket-link:hover { text-decoration: underline; }
.ph-usage-ticket-icon { font-size: 0.6875rem; opacity: 0.7; }

.ph-usage-price-val {
  font-size: 0.8125rem;
  color: #212529;
}

/* Edit controls */
.ph-usage-edit-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.375rem;
  color: var(--ph-gray-400);
  font-size: 0.8125rem;
  border-radius: 0.375rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s;
}
.ph-usage-row:hover .ph-usage-edit-btn,
.ph-usage-row--editing .ph-usage-edit-btn { opacity: 1; }
.ph-usage-edit-btn:hover { color: var(--ph-gray-800); }

.ph-usage-qty-input {
  width: 4rem;
  padding: 0.25rem 0.375rem;
  font-size: 0.8125rem;
  border: 1px solid var(--ph-gray-300);
  border-radius: 0.375rem;
  text-align: center;
}
.ph-usage-replenish-select {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--ph-gray-300);
  border-radius: 0.375rem;
}

.ph-usage-edit-actions { display: flex; align-items: center; gap: 0.25rem; justify-content: center; }
.ph-usage-save-btn,
.ph-usage-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.12s;
}
.ph-usage-save-btn { background: #d1fae5; color: #065f46; }
.ph-usage-save-btn:hover { background: #a7f3d0; }
.ph-usage-cancel-btn { background: var(--ph-gray-100); color: var(--ph-gray-600); }
.ph-usage-cancel-btn:hover { background: var(--ph-gray-200); }

@media (max-width: 767px) {
  .ph-usage-select, .ph-usage-text-filter { width: 100%; }
  .ph-usage-group-date { display: none; }
  .ph-usage-th--device, .ph-usage-td--device { display: none; }
}

/* ── Replenishment devices ───────────────────────────────────────────────── */

.ph-replenish-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

/* ── Card shell ── */
.ph-replenish-device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ph-gray-100);
  border-left: 4px solid var(--ph-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .ph-replenish-device-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
  }
}

/* ── Left-stripe state colours ── */
.ph-replenish-device-card.state-active       { border-left-color: var(--ph-success); }
.ph-replenish-device-card.state-inactive     { border-left-color: var(--ph-warning); }
.ph-replenish-device-card.state-unconfigured { border-left-color: var(--ph-gray-300); }

/* ── Header row: icon + name + delete ── */
.ph-replenish-device-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.125rem 0.875rem 1rem;
}

.ph-replenish-device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.state-active       .ph-replenish-device-icon { background: var(--ph-success-soft); color: var(--ph-success); }
.state-inactive     .ph-replenish-device-icon { background: var(--ph-warning-soft); color: var(--ph-warning); }
.state-unconfigured .ph-replenish-device-icon { background: var(--ph-gray-100);     color: var(--ph-gray-500); }

.ph-replenish-device-info {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
}

.ph-replenish-device-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ph-secondary);
  line-height: 1.35;
  word-break: break-word;
}

.ph-replenish-device-delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.125rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ph-gray-300);
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ph-replenish-device-card:hover .ph-replenish-device-delete,
.ph-replenish-device-delete:focus-visible {
  opacity: 1;
  color: var(--ph-gray-400);
}

.ph-replenish-device-delete:hover,
.ph-replenish-device-delete:focus-visible {
  color: var(--ph-primary);
  background-color: rgba(204, 1, 0, 0.08);
  outline: none;
}

/* ── Meta row: status pill + inactive badge ── */
.ph-replenish-device-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 0.875rem 0.75rem;
  border-top: 1px solid var(--ph-gray-100);
}

.ph-replenish-device-status,
.ph-replenish-inactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.ph-replenish-device-status.is-enabled {
  background: var(--ph-success-soft);
  color: var(--ph-success-text);
}

.ph-replenish-device-status.is-not-setup {
  background: var(--ph-gray-100);
  color: var(--ph-gray-600);
}

.ph-replenish-inactive-badge {
  background: var(--ph-warning-soft);
  color: var(--ph-warning-text);
}

/* ── Manage Parts (_manageParts) ─────────────────────────────────────────── */

.ph-parts-export-btn {
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.125rem;
  border-color: #b3b7ba !important;
  color: #4b4f52 !important;
}

/* Search bar */
.ph-parts-search-wrap {
  position: relative;
}

.ph-parts-search-inner {
  position: relative;
}

.ph-parts-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ph-gray-400);
  font-size: 0.9375rem;
  pointer-events: none;
}

.ph-parts-search-input {
  padding-left: 2.5rem !important;
  border: 1.5px solid #dee2e6;
  border-radius: 0.625rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: #212529;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ph-parts-search-input:focus {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(204,1,0,0.1);
}

/* Column browser */
.ph-parts-browser {
  display: flex;
  flex-direction: row;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 320px;
  max-height: 500px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.05);
}

.ph-parts-col {
  flex: 0 0 185px;
  border-right: 1px solid #e6e8ea;
  background: #f8f9fa;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ph-parts-col--hidden {
  display: none;
}

.ph-parts-col-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ph-gray-600);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1.35;
}

.ph-parts-col-item:last-child {
  border-bottom: none;
}

.ph-parts-col-item:hover {
  background: #eef0f2;
  color: var(--ph-gray-900);
}

.ph-parts-col-item--active {
  background: #fff;
  color: var(--ph-primary);
  font-weight: 600;
  border-bottom-color: rgba(0,0,0,0.05);
  box-shadow: inset 3px 0 0 var(--ph-primary);
}

.ph-parts-col-item--active:hover {
  background: #fff;
  color: var(--ph-primary);
}

.ph-parts-col-item-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-parts-col-item-count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ph-gray-500);
  background: #e6e8ea;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  line-height: 1.5;
  min-width: 1.35rem;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}

.ph-parts-col-item--active .ph-parts-col-item-count {
  color: var(--ph-primary);
  background: rgba(204,1,0,0.1);
}

.ph-parts-col-chevron {
  flex-shrink: 0;
  font-size: 0.625rem;
  color: var(--ph-gray-300);
  transition: color 0.12s;
}

.ph-parts-col-item:hover .ph-parts-col-chevron {
  color: var(--ph-gray-400);
}

.ph-parts-col-item--active .ph-parts-col-chevron {
  color: rgba(204,1,0,0.4);
}

/* Parts panel */
.ph-parts-panel {
  flex: 1 1 auto;
  min-width: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ph-parts-panel-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f3f4f5;
  transition: background 0.1s;
}

.ph-parts-panel-row:last-child {
  border-bottom: none;
}

.ph-parts-panel-row:hover {
  background: #fafbfc;
}

.ph-parts-panel-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ph-parts-panel-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ph-parts-panel-edp {
  font-size: 0.75rem;
  color: var(--ph-gray-400);
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

.ph-parts-panel-desc {
  font-size: 0.8125rem;
  color: var(--ph-gray-500);
  line-height: 1.4;
}

.ph-parts-panel-prompt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.ph-parts-panel-prompt-icon {
  font-size: 1.75rem;
  color: var(--ph-gray-200);
  margin-bottom: 0.75rem;
}

.ph-parts-panel-prompt-text {
  font-size: 0.875rem;
  color: var(--ph-gray-400);
  margin: 0;
}

.ph-parts-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* Breadcrumb */
.ph-parts-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  min-height: 1.75rem;
  padding: 0.25rem 0;
}

.ph-parts-bc-btn {
  font-size: 0.8125rem;
  color: var(--ph-primary);
  background: none;
  border: none;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.1s;
}

.ph-parts-bc-btn:hover {
  background: rgba(204,1,0,0.07);
  text-decoration: none;
}

.ph-parts-bc-sep {
  font-size: 0.6875rem;
  color: var(--ph-gray-300);
}

.ph-parts-bc-current {
  font-size: 0.8125rem;
  color: var(--ph-gray-900);
  font-weight: 600;
  line-height: 1.4;
  padding: 0.15rem 0.4rem;
}

/* Search results */
.ph-parts-search-result-list {
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.05);
}

/* Shared value display */
.ph-parts-your-part {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ph-gray-900);
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* Product description label (favorites panel — not monospaced) */
.ph-fav-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ph-gray-900);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.ph-parts-item-link {
  text-decoration: none;
  color: inherit;
}

a.ph-parts-item-link:hover {
  text-decoration: underline;
  color: var(--ph-primary);
}

/* Loading state */
/* Standardized centered loading state — use ph-content-loading on the container */
.ph-content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ph-gray-400);
}

.ph-content-loading-spinner {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ph-gray-300);
}

.ph-content-loading-text {
  font-size: 0.9375rem;
  color: var(--ph-gray-400);
}

/* Alias kept for backward compat — prefer ph-content-loading on new code */
.ph-parts-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%; padding: 3rem 1rem; text-align: center; color: var(--ph-gray-400); }
.ph-parts-loading-spinner { width: 2.25rem; height: 2.25rem; color: var(--ph-gray-300); }
.ph-parts-loading-text { font-size: 0.9375rem; color: var(--ph-gray-400); }

/* Empty state */
.ph-parts-empty {
  padding: 3rem 1rem;
  text-align: center;
}

.ph-parts-empty-icon {
  font-size: 2rem;
  color: var(--ph-gray-300);
  display: block;
  margin-bottom: 0.75rem;
}

.ph-parts-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4b4f52;
  margin-bottom: 0.375rem;
}

.ph-parts-empty-sub {
  font-size: 0.875rem;
  color: var(--ph-gray-400);
  margin: 0;
}

/* Modals */
.ph-parts-modal-content {
  border-radius: 1rem;
  border: 1px solid #e6e8ea;
}

.ph-parts-modal-header {
  border-bottom: 1px solid #e6e8ea;
  padding: 1.25rem 1.5rem 1rem;
}

.ph-parts-modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.ph-parts-modal-body {
  padding: 1.25rem 1.5rem;
}

.ph-parts-modal-footer {
  border-top: 1px solid #e6e8ea;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.ph-parts-field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.375rem;
}

.ph-parts-field-input {
  border: 1px solid #b3b7ba;
  border-radius: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  color: #212529;
}

.ph-parts-field-input:focus {
  border-color: #212529;
  box-shadow: none;
}

.ph-parts-field-input[disabled] {
  background: var(--ph-gray-100);
  color: var(--ph-gray-400);
}

.ph-parts-field-hint {
  font-size: 0.8125rem;
  color: var(--ph-gray-400);
  margin-top: 0.375rem;
  line-height: 1.4;
}

.ph-parts-lookup-result {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  background: var(--ph-gray-100);
}

.ph-parts-lookup-found {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #212529;
}

.ph-parts-lookup-notfound {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #cc0100;
}

.ph-parts-lookup-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ph-parts-lookup-icon--ok {
  color: #198754;
}

.ph-parts-lookup-icon--warn {
  color: #cc0100;
}

.ph-parts-lookup-desc {
  line-height: 1.4;
}

.ph-parts-modal-save-btn {
  min-height: 2.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ph-parts-delete-msg {
  font-size: 0.9375rem;
  color: #4b4f52;
  line-height: 1.5;
}

.ph-parts-delete-confirm-btn {
  min-height: 2.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .ph-parts-export-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-height: 2.25rem;
  }
  .ph-parts-browser {
    flex-direction: column;
    max-height: none;
    min-height: 0;
  }
  .ph-parts-col {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e6e8ea;
    max-height: 240px;
  }
  .ph-parts-panel {
    min-width: 0;
    width: 100%;
    max-height: none;
    border-top: 1px solid #e6e8ea;
  }
  .ph-parts-panel--mobile-below {
    border-top: 2px solid #e6e8ea;
  }
}

/* ── Favorites tab ──────────────────────────────────────────────────────── */
.ph-fav-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.2rem;
}

.ph-fav-meta-chip {
  font-size: 0.75rem;
  color: var(--ph-gray-500);
  background: #f0f2f4;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  white-space: nowrap;
}

.ph-fav-meta-price {
  color: #198754;
  background: #d1e7dd;
  font-weight: 600;
}

.ph-fav-atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ph-primary);
  background: transparent;
  border: 1.5px solid var(--ph-primary);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.ph-fav-atc-btn:hover {
  background: var(--ph-primary);
  color: #fff;
}

.ph-fav-atc-desc {
  font-size: 0.9375rem;
  color: #212529;
  font-weight: 500;
}

/* ─── Related Products Section ──────────────────────────────────────────── */

.ph-related-section {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--ph-border, #dee2e6);
  margin-top: 2rem;
}

.ph-related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-dark, #212529);
  margin-bottom: 1.5rem;
}

/* Category columns layout */
.ph-related-groups {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.ph-related-group {
  flex: 1;
  min-width: 0;
}

.ph-related-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ph-border, #dee2e6);
}

.ph-related-cards {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

@media (max-width: 767px) {
  .ph-related-groups {
    flex-direction: column;
    gap: 1.75rem;
  }
  .ph-related-group {
    flex: none;
    width: 100%;
  }
}

/* Horizontal list-row card */
.ph-related-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: 0.375rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ph-related-card:hover {
  border-color: var(--ph-primary, #cc0100);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

.ph-related-card-img-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-related-card-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--ph-border, #dee2e6);
}

.ph-related-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.ph-related-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ph-dark, #212529);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ph-related-card-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ph-primary, #cc0100);
  margin: 0;
}

.ph-related-card-price--list {
  color: var(--ph-muted, #6c757d);
  font-weight: 500;
}

.ph-related-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--ph-success, #1e7f5c);
  margin: 0;
}

.ph-related-card-stock .bi {
  font-size: 0.5rem;
}

.ph-related-card-stock--out {
  color: var(--ph-muted, #6c757d);
}

/* ─── Frequently Bought Together Section ────────────────────────────────── */

.ph-fbt-section {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--ph-border, #dee2e6);
  margin-top: 2rem;
}

.ph-fbt-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ph-fbt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ph-dark, #212529);
  margin-bottom: 0;
}

/* Tab bar */
.ph-fbt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ph-border, #dee2e6);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ph-fbt-tabs::-webkit-scrollbar { display: none; }

.ph-fbt-tab {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ph-muted, #6c757d);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.ph-fbt-tab:hover { color: var(--ph-dark, #212529); }
.ph-fbt-tab.active {
  color: var(--ph-primary, #cc0100);
  border-bottom-color: var(--ph-primary, #cc0100);
}

/* Tab panels */
.ph-fbt-panel { display: none; }
.ph-fbt-panel.active { display: block; }

/* Cards grid */
.ph-fbt-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 991px) {
  .ph-fbt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ph-fbt-cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

@media (max-width: 767px) {
  .ph-fbt-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 0.375rem;
    border-bottom: none;
    margin-bottom: 1.25rem;
  }
  .ph-fbt-tab {
    border: 1.5px solid var(--ph-border, #dee2e6);
    border-radius: 2rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    margin-bottom: 0;
    white-space: normal;
    text-align: left;
  }
  .ph-fbt-tab.active {
    background: var(--ph-primary, #cc0100);
    border-color: var(--ph-primary, #cc0100);
    color: #fff;
  }
  .ph-fbt-tab:hover:not(.active) {
    border-color: var(--ph-primary, #cc0100);
    color: var(--ph-primary, #cc0100);
  }
}

/* Card — reset button, match related-card style */
.ph-fbt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.875rem;
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: 0.5rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  width: 100%;
}
.ph-fbt-card:hover {
  border-color: var(--ph-primary, #cc0100);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.ph-fbt-card-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--ph-border, #dee2e6);
  background: var(--ph-light, #f8f9fa);
  flex-shrink: 0;
}

.ph-fbt-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ph-dark, #212529);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
}

.ph-fbt-card-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-primary, #cc0100);
  margin-bottom: 0;
}

.ph-fbt-card-price--list {
  color: var(--ph-muted, #6c757d);
  font-weight: 400;
}

.ph-fbt-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--ph-success, #1e7f5c);
  margin-bottom: 0;
}
.ph-fbt-card-stock .bi { font-size: 0.55rem; }
.ph-fbt-card-stock--out { color: var(--ph-muted, #6c757d); }

/* ─── FBT Quick-View Modal ─────────────────────────────────────────── */

/* ── FBT Quick-View Modal redesign ──────────────────────── */
.ph-fbt-qv-content {
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.ph-fbt-qv-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: #fff;
  border: 1.5px solid var(--ph-border, #dee2e6);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: var(--ph-dark, #1a1d21);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.ph-fbt-qv-close:hover {
  background: var(--ph-dark, #1a1d21);
  color: #fff;
  border-color: var(--ph-dark, #1a1d21);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ph-fbt-qv-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 280px;
}

.ph-fbt-qv-image-panel {
  background: var(--ph-light, #f8f9fa);
  border-right: 1px solid var(--ph-border, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.ph-fbt-qv-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-md, 0.625rem);
  background: transparent;
}

.ph-fbt-qv-info {
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ph-fbt-qv-name {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ph-dark, #1a1d21);
  text-decoration: none;
}
.ph-fbt-qv-name:hover { text-decoration: underline; }

.ph-fbt-qv-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 0.75rem;
  font-size: 0.8125rem;
}
.ph-fbt-qv-meta strong { color: var(--ph-dark, #1a1d21); font-weight: 600; }
.ph-fbt-qv-meta span  { color: var(--ph-muted, #6c757d); }

.ph-fbt-qv-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ph-fbt-qv-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ph-primary, #cc0100);
  line-height: 1;
}

.ph-fbt-qv-price--list {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ph-muted, #6c757d);
}

.ph-fbt-qv-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.ph-fbt-qv-actions .btn { flex: 1; min-width: 130px; }

/* ── Specs list inside modal ─────────────────────────────── */
.ph-fbt-qv-specs-section {
  border-top: 1px solid var(--ph-border, #dee2e6);
  padding: 1.25rem 2rem 1.75rem;
}

.ph-fbt-qv-specs-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 0.75rem;
}

.ph-fbt-qv-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: var(--radius-sm, 0.375rem);
  overflow: hidden;
}

.ph-fbt-qv-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.5rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--ph-border, #dee2e6);
  font-size: 0.8125rem;
  background: #fff;
}
.ph-fbt-qv-specs-list .ph-fbt-qv-spec-row:nth-child(odd) { background: var(--ph-light, #f8f9fa); }
.ph-fbt-qv-specs-list .ph-fbt-qv-spec-row:last-child { border-bottom: none; }

.ph-fbt-qv-spec-row dt {
  font-weight: 600;
  color: var(--ph-dark, #1a1d21);
}
.ph-fbt-qv-spec-row dd {
  margin: 0;
  color: var(--ph-body, #343a40);
}

@media (max-width: 575px) {
  .ph-fbt-qv-top {
    grid-template-columns: 1fr;
  }
  .ph-fbt-qv-image-panel {
    border-right: none;
    border-bottom: 1px solid var(--ph-border, #dee2e6);
    padding: 1.75rem 2rem;
    min-height: 160px;
  }
  .ph-fbt-qv-img { width: 100px; height: 100px; }
  .ph-fbt-qv-info { padding: 1.5rem; }
  .ph-fbt-qv-specs-section { padding: 1rem 1.5rem 1.5rem; }
  .ph-fbt-qv-specs-list { grid-template-columns: 1fr; }
  .ph-fbt-qv-spec-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE v3 — Sticky Commerce Sidebar
═══════════════════════════════════════════════════════════ */

/* ── Full-width header above grid (breadcrumb + title) ── */
.ph-pdp-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}
.ph-pdp-header-content {
  min-width: 0;
}

/* ── Two-column grid layout ────────────────────────── */
.ph-pdp-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Left scrollable column ────────────────────────── */
.ph-pdp-main { min-width: 0; }

/* Gallery: vertical thumb strip + square main */
.ph-pdp-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.ph-pdp-thumb-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ph-pdp-g-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm, 0.375rem);
  background: var(--ph-light, #f8f9fa);
  border: 2px solid var(--ph-border, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}
.ph-pdp-g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ph-pdp-g-thumb--active,
.ph-pdp-g-thumb:hover {
  border-color: var(--ph-primary, #cc0100);
  box-shadow: 0 0 0 3px rgba(204,1,0,0.1);
}

/* Square main image */
.ph-pdp-g-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg, 1rem);
  border: 1px solid var(--ph-border, #dee2e6);
  background: linear-gradient(145deg, #f7f8fa 0%, #eef0f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 100%;
  padding: 0;
}
.ph-pdp-g-main:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.ph-pdp-g-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.ph-pdp-g-main-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  transition: opacity 0.2s;
}
.ph-pdp-g-main--single {
  max-height: 480px;
}

/* Category badge + title + subtitle */
.ph-pdp-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.ph-pdp-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ph-primary, #cc0100);
  background: var(--ph-primary-light, #fff0f0);
  border: 1px solid rgba(204,1,0,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  text-decoration: none;
}
.ph-pdp-category:hover,
.ph-pdp-category:focus {
  background: rgba(204,1,0,0.12);
  color: var(--ph-primary, #cc0100);
  text-decoration: none;
}
.ph-pdp-title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--ph-dark, #1a1d21);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}
.ph-pdp-subtitle {
  font-size: 0.9375rem;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.ph-pdp-subtitle strong { color: var(--ph-body, #343a40); font-weight: 600; }
.ph-pdp-subtitle-sep { color: var(--ph-border, #dee2e6); }

/* Content sections with red-bar headings */
.ph-pdp-section { margin-bottom: 2.25rem; }
.ph-pdp-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ph-dark, #1a1d21);
  letter-spacing: -0.02em;
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ph-border, #dee2e6);
}
.ph-pdp-section-head::before {
  content: '';
  display: block;
  width: 3px;
  height: 1rem;
  background: var(--ph-primary, #cc0100);
  border-radius: 2px;
  flex-shrink: 0;
}
.ph-pdp-section-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ph-body, #343a40);
}

/* Doc links */
.ph-pdp-doc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ph-light, #f8f9fa);
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: var(--radius-sm, 0.375rem);
  text-decoration: none;
  color: var(--ph-dark, #1a1d21);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ph-pdp-doc-link:hover {
  border-color: var(--ph-primary, #cc0100);
  background: var(--ph-primary-light, #fff0f0);
  color: var(--ph-primary, #cc0100);
  transform: translateX(3px);
}

/* Specs two-column grid */
.ph-pdp-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: var(--radius-md, 0.625rem);
  overflow: hidden;
}
.ph-pdp-spec-item {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--ph-border, #dee2e6);
  background: #fff;
}
.ph-pdp-spec-item:nth-child(4n+1),
.ph-pdp-spec-item:nth-child(4n+2) { background: var(--ph-light, #f8f9fa); }
.ph-pdp-spec-item:last-child { border-bottom: none; }
.ph-pdp-spec-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.ph-pdp-spec-key {
  font-weight: 700;
  color: var(--ph-dark, #1a1d21);
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}
.ph-pdp-spec-val {
  color: var(--ph-body, #343a40);
  font-size: 0.875rem;
}

/* ── Sticky right sidebar ──────────────────────────── */
.ph-pdp-sidebar { position: sticky; top: 72px; }

.ph-pdp-purchase-card {
  background: #fff;
  border: 1px solid var(--ph-border, #dee2e6);
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Price header */
.ph-pdp-card-header {
  background: var(--ph-light, #f8f9fa);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ph-border, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ph-pdp-card-header-prices {
  flex: 1;
  min-width: 0;
}
.ph-pdp-card-header-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 0.375rem;
}
.ph-pdp-sidebar-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ph-dark, #1a1d21);
  letter-spacing: -0.04em;
  line-height: 1;
}
.ph-pdp-sidebar-list {
  font-size: 0.8125rem;
  color: var(--ph-muted, #6c757d);
  text-decoration: line-through;
  margin-top: 0.2rem;
}
.ph-pdp-sidebar-save {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ph-success-bg, #e8f5ef);
  color: var(--ph-success, #1e7f5c);
  border: 1px solid rgba(30,127,92,0.2);
  padding: 0.2rem 0.625rem;
  border-radius: 2rem;
  margin-top: 0.5rem;
}
.ph-pdp-sidebar-login-btn {
  background: none;
  border: none;
  color: var(--ph-primary, #cc0100);
  font-weight: 700;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
}
.ph-pdp-sidebar-login-btn:hover { color: var(--ph-primary-hover, #a30000); text-decoration: underline; }
.ph-pdp-sidebar-market {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ph-dark, #1a1d21);
  letter-spacing: -0.03em;
}

/* Card body */
.ph-pdp-card-body { padding: 1.25rem 1.5rem; }

/* Stock status block */
.ph-pdp-stock-section {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem;
  background: var(--ph-success-bg, #e8f5ef);
  border-radius: var(--radius-sm, 0.375rem);
  margin-bottom: 1rem;
}
.ph-pdp-stock-section--out { background: #f1f3f5; }
.ph-pdp-stock-section--other { background: #f0faf5; }
.ph-pdp-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ph-success, #1e7f5c);
  box-shadow: 0 0 0 3px rgba(30,127,92,0.2);
  flex-shrink: 0;
}
.ph-pdp-stock-dot--out { background: var(--ph-muted, #6c757d); box-shadow: none; }
.ph-pdp-stock-text { font-size: 0.875rem; font-weight: 700; color: var(--ph-success, #1e7f5c); }
.ph-pdp-stock-text--out { color: var(--ph-muted, #6c757d); }
.ph-pdp-stock-sub { font-size: 0.8rem; color: var(--ph-success, #1e7f5c); opacity: 0.8; }

/* Branch availability in sidebar */
.ph-pdp-branch-wrap { margin-bottom: 1rem; }
.ph-pdp-branch-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ph-primary, #cc0100);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ph-pdp-branch-toggle .bi { transition: transform 0.2s; }
.ph-pdp-branch-toggle.collapsed .bi { transform: rotate(0deg); }
.ph-pdp-branch-toggle:not(.collapsed) .bi { transform: rotate(180deg); }
.ph-pdp-branch-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}
.ph-pdp-branch-name { color: var(--ph-body, #343a40); }
.ph-pdp-branch-qty { font-weight: 700; color: var(--ph-dark, #1a1d21); text-align: right; }
.ph-pdp-branch-name--home,
.ph-pdp-branch-qty--home { color: var(--ph-success, #1e7f5c); font-weight: 700; }

/* Qty control */
.ph-pdp-qty-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.ph-pdp-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ph-border, #dee2e6);
  border-radius: var(--radius-sm, 0.375rem);
  overflow: hidden;
  margin-bottom: 0.875rem;
}
.ph-pdp-qty-btn {
  width: 44px;
  height: 44px;
  background: var(--ph-light, #f8f9fa);
  border: none;
  color: var(--ph-dark, #1a1d21);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s;
}
.ph-pdp-qty-btn:hover { background: var(--ph-border, #dee2e6); }
.ph-pdp-qty-num {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  border-left: 1.5px solid var(--ph-border, #dee2e6);
  border-right: 1.5px solid var(--ph-border, #dee2e6);
  padding: 0.625rem 0;
  color: var(--ph-dark, #1a1d21);
  user-select: none;
}

/* ATC button */
.ph-pdp-atc {
  width: 100%;
  height: 52px;
  background: var(--ph-primary, #cc0100);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 0.375rem);
  font-size: 1.0625rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(204,1,0,0.25);
  letter-spacing: 0.01em;
}
.ph-pdp-atc:hover:not(:disabled) {
  background: var(--ph-primary-hover, #a30000);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,1,0,0.35);
}
.ph-pdp-atc:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; box-shadow: none; }
.ph-pdp-atc--login {
  background: transparent;
  color: var(--ph-primary, #cc0100);
  border: 2px solid var(--ph-primary, #cc0100);
  box-shadow: none;
}
.ph-pdp-atc--login:hover:not(:disabled) {
  background: var(--ph-primary, #cc0100);
  color: #fff;
}

/* Favorites row button */
.ph-pdp-fav-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: var(--radius-sm, 0.375rem);
  border: 1.5px solid var(--ph-border, #dee2e6);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ph-muted, #6c757d);
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  background: none;
  width: 100%;
}
.ph-pdp-fav-row:hover {
  border-color: #e0304a;
  color: #e0304a;
  background: #fff5f5;
}
.ph-pdp-fav-row--active {
  color: #e0304a;
  border-color: #e0304a;
}

/* Sidebar meta grid */
.ph-pdp-sidebar-meta {
  border-top: 1px solid var(--ph-border, #dee2e6);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ph-pdp-sidebar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8125rem;
}
.ph-pdp-sidebar-meta-key { color: var(--ph-muted, #6c757d); font-weight: 500; }
.ph-pdp-sidebar-meta-val { color: var(--ph-dark, #1a1d21); font-weight: 700; text-align: right; max-width: 60%; }

.ph-pdp-qr {
  display: block;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--ph-border, #dee2e6);
  padding: 0.125rem;
  background: #fff;
}

/* Customer parts in sidebar */
.ph-pdp-sidebar-cparts {
  border-top: 1px solid var(--ph-border, #dee2e6);
  margin-top: 1rem;
  padding-top: 1rem;
}
.ph-pdp-cparts-head {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ph-muted, #6c757d);
  margin-bottom: 0.5rem;
}

/* ── Mobile breakpoints ───────────────────────────── */
@media (max-width: 991px) {
  .ph-pdp-header,
  .ph-pdp-layout {
    grid-template-columns: 1fr;
  }
  .ph-pdp-sidebar {
    position: static;
  }
  .ph-pdp-gallery {
    grid-template-columns: 64px 1fr;
  }
}
@media (max-width: 575px) {
  .ph-pdp-header,
  .ph-pdp-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ph-pdp-specs-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   ADD-TO-CART TOAST
═══════════════════════════════════════════════════════════ */

.ph-atc-toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--ph-border, #dee2e6);
  border-left: 4px solid var(--ph-success, #1e7f5c);
  border-radius: var(--radius-md, 0.625rem);
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  min-width: 240px;
  max-width: 340px;
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease;
  pointer-events: auto;
}
.ph-atc-toast--in {
  transform: translateX(0);
  opacity: 1;
}

.ph-atc-toast__icon {
  font-size: 1.375rem;
  color: var(--ph-success, #1e7f5c);
  flex-shrink: 0;
  line-height: 1;
}

.ph-atc-toast__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm, 0.375rem);
  border: 1px solid var(--ph-border, #dee2e6);
  background: var(--ph-light, #f8f9fa);
  flex-shrink: 0;
}

.ph-atc-toast__body {
  flex: 1;
  min-width: 0;
}

.ph-atc-toast__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ph-dark, #1a1d21);
  line-height: 1.2;
}

.ph-atc-toast__name {
  font-size: 0.8125rem;
  color: var(--ph-muted, #6c757d);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-atc-toast__close {
  background: none;
  border: none;
  padding: 0.125rem;
  color: var(--ph-muted, #6c757d);
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  align-self: flex-start;
  line-height: 1;
  opacity: 0.6;
}
.ph-atc-toast__close:hover { opacity: 1; }

/* Button state after successful add (used by event delegation handler) */
.ph-atc-btn--added {
  background-color: var(--ph-success, #1e7f5c) !important;
  border-color: var(--ph-success, #1e7f5c) !important;
  color: #fff !important;
}
