/* ==========================================================================
   PartsHyper Design System — ph-design.css
   Primary: #046838 | Canvas: #FFFFFF | Accent: Aloe #c1fbd4
   Typography: UberMove (display) + Inter Variable (body)
   ========================================================================== */

/* ---------- Font Faces ---------- */
@font-face {
  font-family: 'UberMove';
  src: url('../Uber-Font/UberMoveBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'UberMove';
  src: url('../Uber-Font/UberMoveMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --ph-primary:        #046838;
  --ph-primary-dark:   #034d29;
  --ph-primary-light:  #057a43;

  /* Canvas */
  --ph-canvas:         #ffffff;
  --ph-canvas-cream:   #f9fafb;
  --ph-canvas-muted:   #f3f4f6;

  /* Accents */
  --ph-aloe:           #c1fbd4;
  --ph-pistachio:      #d4f9e0;
  --ph-aloe-text:      #024a27;

  /* Ink / Text */
  --ph-ink:            #111827;
  --ph-ink-2:          #374151;
  --ph-ink-3:          #6b7280;
  --ph-ink-4:          #9ca3af;

  /* Border / Hairline */
  --ph-border:         #e5e7eb;
  --ph-border-focus:   #046838;

  /* Feedback */
  --ph-success:        #046838;
  --ph-error:          #dc2626;
  --ph-warning:        #d97706;

  /* Typography */
  --font-display:      'UberMove', 'Helvetica', Arial, sans-serif;
  --font-body:         'Inter', 'Helvetica', Arial, sans-serif;

  /* Font sizes */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.5rem;    /* 24px */
  --text-3xl:   1.875rem;  /* 30px */
  --text-4xl:   2.25rem;   /* 36px */
  --text-5xl:   3rem;      /* 48px */
  --text-6xl:   3.75rem;   /* 60px */
  --text-7xl:   4.5rem;    /* 72px */

  /* Spacing (8px base) */
  --space-1:   0.25rem;  /* 4px */
  --space-2:   0.5rem;   /* 8px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-8:   2rem;     /* 32px */
  --space-10:  2.5rem;   /* 40px */
  --space-12:  3rem;     /* 48px */
  --space-16:  4rem;     /* 64px */
  --space-20:  5rem;     /* 80px */
  --space-24:  6rem;     /* 96px */

  /* Border radius */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-pill: 9999px;

  /* Shadows (light track) */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md:  0 2px 4px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-card:
    0 0 0 1px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.06),
    0 4px 8px rgba(0,0,0,0.06),
    0 8px 16px rgba(0,0,0,0.04);
  --shadow-hover:
    0 0 0 1px rgba(4,104,56,0.12),
    0 4px 8px rgba(4,104,56,0.10),
    0 8px 24px rgba(4,104,56,0.10);
  --shadow-lg:  0 25px 50px -12px rgba(0,0,0,0.15);

  /* Transitions */
  --ease-fast:   150ms ease;
  --ease-base:   200ms ease;
  --ease-slow:   350ms ease;

  /* Container */
  --container-max: 1280px;
  --container-pad: var(--space-6);
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss03";
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 420;
  line-height: 1.5;
  color: var(--ph-ink);
  background-color: var(--ph-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea { font: inherit; }
svg { display: block; }

/* ---------- Typography Utilities ---------- */
.ph-display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ph-ink);
}
.ph-display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ph-ink);
}
.ph-display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ph-ink);
}
.ph-heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ph-ink);
}
.ph-heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ph-ink);
}
.ph-heading-md {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ph-ink);
}
.ph-body-lg {
  font-size: var(--text-lg);
  font-weight: 420;
  line-height: 1.6;
  color: var(--ph-ink-2);
}
.ph-body {
  font-size: var(--text-base);
  font-weight: 420;
  line-height: 1.5;
  color: var(--ph-ink-2);
}
.ph-caption {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ph-ink-3);
}
.ph-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-primary);
}

/* ---------- Layout ---------- */
.ph-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.ph-section {
  padding-block: var(--space-16);
}
.ph-section-sm {
  padding-block: var(--space-12);
}
.ph-section-lg {
  padding-block: clamp(var(--space-16), 8vw, 7rem);
}

/* ---------- Buttons ---------- */
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  transition: background-color var(--ease-base),
              color var(--ease-base),
              box-shadow var(--ease-base),
              transform var(--ease-fast);
  cursor: pointer;
  border: 2px solid transparent;
}
.ph-btn:hover { transform: translateY(-1px); }
.ph-btn:active { transform: translateY(0); }

.ph-btn-primary {
  background-color: var(--ph-primary);
  color: #ffffff;
  border-color: var(--ph-primary);
}
.ph-btn-primary:hover {
  background-color: var(--ph-primary-dark);
  border-color: var(--ph-primary-dark);
  box-shadow: 0 4px 12px rgba(4,104,56,0.3);
}

.ph-btn-outline {
  background-color: transparent;
  color: var(--ph-primary);
  border-color: var(--ph-primary);
}
.ph-btn-outline:hover {
  background-color: var(--ph-primary);
  color: #ffffff;
}

.ph-btn-aloe {
  background-color: var(--ph-aloe);
  color: var(--ph-aloe-text);
  border-color: var(--ph-aloe);
}
.ph-btn-aloe:hover {
  background-color: #a8f5c0;
  border-color: #a8f5c0;
}

.ph-btn-ghost {
  background-color: transparent;
  color: var(--ph-ink-2);
  border-color: var(--ph-border);
}
.ph-btn-ghost:hover {
  background-color: var(--ph-canvas-muted);
  color: var(--ph-ink);
}

.ph-btn-sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
}
.ph-btn-lg {
  font-size: var(--text-lg);
  padding: 1rem 2rem;
}
.ph-btn-icon {
  padding: 0.625rem;
  border-radius: var(--radius-pill);
}

/* ---------- Pill Tags / Badges ---------- */
.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
}
.ph-tag-aloe    { background: var(--ph-aloe);      color: var(--ph-aloe-text); }
.ph-tag-primary { background: var(--ph-primary);   color: #ffffff; }
.ph-tag-muted   { background: var(--ph-canvas-muted); color: var(--ph-ink-2); }
.ph-tag-error   { background: #fef2f2;             color: var(--ph-error); }

/* ---------- Cards ---------- */
.ph-card {
  background: var(--ph-canvas);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ph-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--ease-base), transform var(--ease-base);
}
.ph-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.ph-card-body { padding: var(--space-6); }
.ph-card-body-sm { padding: var(--space-4); }

.ph-card-aloe {
  background: var(--ph-pistachio);
  border-color: transparent;
}

/* ---------- Product Card ---------- */
.ph-product-card {
  background: var(--ph-canvas);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ph-border);
  overflow: hidden;
  transition: box-shadow var(--ease-base), transform var(--ease-base);
  position: relative;
}
.ph-product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.ph-product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ph-canvas-cream);
}
.ph-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.ph-product-card:hover .ph-product-card-img img {
  transform: scale(1.05);
}
.ph-product-card-quick-view {
  position: absolute;
  inset: 0;
  background: rgba(4,104,56,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease-base);
}
.ph-product-card:hover .ph-product-card-quick-view {
  opacity: 1;
}
.ph-product-card-body {
  padding: var(--space-4);
}
.ph-product-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ph-ink);
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph-product-card-shop {
  font-size: var(--text-xs);
  color: var(--ph-ink-3);
  margin-bottom: var(--space-2);
}
.ph-product-card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ph-primary);
}
.ph-product-card-price-old {
  font-size: var(--text-sm);
  color: var(--ph-ink-4);
  text-decoration: line-through;
  margin-left: var(--space-2);
}
.ph-product-card-footer {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--ph-border);
  display: flex;
  gap: var(--space-2);
}

/* ---------- Category Card ---------- */
.ph-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--ph-canvas);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: background var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  text-decoration: none;
  color: var(--ph-ink);
}
.ph-cat-card:hover {
  background: var(--ph-aloe);
  border-color: var(--ph-aloe);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--ph-aloe-text);
}
.ph-cat-card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--ph-primary);
  transition: color var(--ease-base);
}
.ph-cat-card:hover .ph-cat-card-icon { color: var(--ph-aloe-text); }
.ph-cat-card-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Category Showcase Cards ---------- */
.ph-cat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.ph-cat-showcase-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ph-canvas);
  border: 1px solid var(--ph-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ph-cat-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(4, 104, 56, 0.18);
  border-color: var(--ph-aloe);
}
.ph-cat-showcase-mosaic {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: var(--ph-canvas-cream);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2px;
}
.ph-cat-showcase-mosaic-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ph-cat-showcase-card:hover .ph-cat-showcase-mosaic-main {
  transform: scale(1.04);
}
.ph-cat-showcase-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ph-cat-showcase-side img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ph-cat-showcase-card:hover .ph-cat-showcase-side img {
  transform: scale(1.04);
}
.ph-cat-showcase-icon-bg {
  width: 100%;
  height: 100%;
  background: var(--ph-aloe);
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  color: var(--ph-primary);
}
.ph-cat-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,30,14,0.82) 0%, rgba(2,30,14,0.12) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.875rem 0.875rem 0.75rem;
  pointer-events: none;
}
.ph-cat-showcase-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.ph-cat-showcase-meta {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}
.ph-cat-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ph-primary);
  border-top: 1px solid var(--ph-border);
  background: var(--ph-canvas);
  transition: background 0.18s ease, color 0.18s ease;
}
.ph-cat-showcase-card:hover .ph-cat-showcase-footer {
  background: var(--ph-aloe);
  color: var(--ph-aloe-text);
}
@media (max-width: 768px) {
  .ph-cat-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.75rem;
  }
  .ph-cat-showcase-mosaic { height: 120px; }
}
@media (max-width: 480px) {
  .ph-cat-showcase-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Form / Input ---------- */
.ph-input {
  width: 100%;
  background: var(--ph-canvas);
  color: var(--ph-ink);
  font-size: var(--text-base);
  font-weight: 420;
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.ph-input:focus {
  border-color: var(--ph-border-focus);
  box-shadow: 0 0 0 3px rgba(4,104,56,0.12);
}
.ph-input::placeholder { color: var(--ph-ink-4); }

.ph-search-bar {
  display: flex;
  align-items: center;
  background: var(--ph-canvas);
  border: 1.5px solid var(--ph-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.ph-search-bar:focus-within {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(4,104,56,0.1);
}
.ph-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.625rem var(--space-4);
  font-size: var(--text-base);
  color: var(--ph-ink);
}
.ph-search-bar input::placeholder { color: var(--ph-ink-4); }
.ph-search-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-primary);
  color: #fff;
  border: none;
  padding: 0.625rem var(--space-4);
  cursor: pointer;
  transition: background var(--ease-fast);
  height: 100%;
}
.ph-search-bar button:hover { background: var(--ph-primary-dark); }

/* ---------- Navigation ---------- */
.ph-hamburger-btn { display: none; } /* shown only on mobile via breakpoint */
.ph-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ph-nav {
  background: var(--ph-canvas);
  border-bottom: 1px solid var(--ph-border);
  box-shadow: var(--shadow-sm);
}
.ph-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.ph-nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ph-primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.ph-nav-logo span { color: var(--ph-ink); }
.ph-nav-search { flex: 1; max-width: 520px; }
.ph-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}
.ph-nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  color: var(--ph-ink-2);
  transition: background var(--ease-fast), color var(--ease-fast);
  text-decoration: none;
}
.ph-nav-action-btn:hover {
  background: var(--ph-canvas-muted);
  color: var(--ph-primary);
}
.ph-nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  background: var(--ph-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Category bar */
.ph-catbar {
  background: var(--ph-canvas);
  border-bottom: 1px solid var(--ph-border);
  position: relative;
}
.ph-catbar-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ph-border);
  background: var(--ph-canvas);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ph-ink-2);
  transition: background var(--ease-fast), color var(--ease-fast), box-shadow var(--ease-fast);
}
.ph-catbar-arrow:hover { background: var(--ph-primary); border-color: var(--ph-primary); color: #fff; box-shadow: var(--shadow-md); }
.ph-catbar-arrow[hidden] { display: none !important; }
.ph-catbar-arrow-l { left: 6px; }
.ph-catbar-arrow-r { right: 6px; }
/* Scrollable row — overflow-y:hidden prevents clipping issues with dropdowns */
.ph-catbar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ph-catbar-scroll::-webkit-scrollbar { display: none; }
.ph-catbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--container-pad);
  width: max-content;
  min-width: 100%;
}
.ph-catbar-item {
  position: relative;
  flex-shrink: 0;
}
.ph-catbar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ph-ink-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast);
  text-decoration: none;
  user-select: none;
}
.ph-catbar-link:hover,
.ph-catbar-item.ph-cat-active .ph-catbar-link {
  color: var(--ph-primary);
  border-bottom-color: var(--ph-primary);
}

/* Shared dropdown panel */
.ph-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ph-canvas);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base);
  z-index: 200;
}
.ph-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ph-ink-2);
  border-radius: var(--radius-sm);
  transition: background var(--ease-fast), color var(--ease-fast);
  white-space: nowrap;
  text-decoration: none;
}
.ph-dropdown a:hover {
  background: var(--ph-aloe);
  color: var(--ph-primary);
}

/* Catbar dropdowns — positioned via JS as fixed to escape scroll clipping */
.ph-catdrop {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ---------- Announce Bar ---------- */
.ph-announce {
  background: var(--ph-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Mobile Drawer ---------- */
.ph-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease-base), visibility var(--ease-base);
}
.ph-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.ph-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: var(--ph-canvas);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform var(--ease-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ph-drawer.open { transform: translateX(0); }
.ph-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--ph-border);
  position: sticky;
  top: 0;
  background: var(--ph-canvas);
}
.ph-drawer-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--ph-ink-3);
  transition: background var(--ease-fast);
}
.ph-drawer-close:hover { background: var(--ph-canvas-muted); }
.ph-drawer-body { padding: var(--space-4); flex: 1; }
.ph-drawer-nav-item {
  border-bottom: 1px solid var(--ph-border);
}
.ph-drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ph-ink);
  cursor: pointer;
}
.ph-drawer-submenu {
  padding: 0 var(--space-2) var(--space-2);
  display: none;
}
.ph-drawer-submenu.open { display: block; }
.ph-drawer-submenu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ph-ink-2);
  border-radius: var(--radius-sm);
}
.ph-drawer-submenu a:hover {
  background: var(--ph-canvas-muted);
  color: var(--ph-primary);
}

/* ---------- Footer ---------- */
.ph-footer {
  background: #022c1b;
  border-top: none;
  position: relative;
}
.ph-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 10% 100%, rgba(4,104,56,0.22) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 90% 0%, rgba(4,104,56,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.ph-footer > .ph-container { position: relative; }
.ph-footer-main {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
  gap: var(--space-8);
}
/* Logo in footer — fully white */
.ph-footer .ph-nav-logo { color: #fff; }
.ph-footer .ph-nav-logo span { color: #fff; }
.ph-footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-top: var(--space-3);
  max-width: 260px;
}
.ph-footer-col-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
}
.ph-footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.ph-footer-links a {
  font-size: var(--text-sm);
  color: #fff;
  transition: color var(--ease-fast), padding-left var(--ease-fast);
  text-decoration: none;
}
.ph-footer-links a:hover { color: var(--ph-aloe); padding-left: 4px; }
.ph-footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.ph-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: #fff;
}
.ph-footer-contact-item svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 2px; color: var(--ph-aloe); }
.ph-footer-contact-item a { color: #fff; transition: color var(--ease-fast); }
.ph-footer-contact-item a:hover { color: var(--ph-aloe); }
.ph-footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.ph-footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.ph-footer-social a:hover {
  background: var(--ph-aloe);
  border-color: var(--ph-aloe);
  color: #022c1b;
}
.ph-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.ph-footer-bottom p, .ph-footer-bottom p a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); }
.ph-footer-bottom a { color: #fff; font-weight: 500; transition: color var(--ease-fast); }
.ph-footer-bottom a:hover { color: var(--ph-aloe); }

/* Mobile footer: vertical stacking with section dividers */
@media (max-width: 768px) {
  .ph-footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: var(--space-10) var(--space-8);
  }
  .ph-footer-brand { max-width: 100%; padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,0.07); }
  .ph-footer-brand p { max-width: 100%; }
  .ph-footer-main > div:not(.ph-footer-brand) {
    padding-block: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .ph-footer-main > div:last-child { border-bottom: none; }
  .ph-footer-col-title { margin-bottom: var(--space-3); }
  .ph-footer-bottom { flex-direction: column; text-align: center; gap: var(--space-2); padding-block: var(--space-5); }
}

/* ---------- Hero ---------- */
.ph-hero {
  background: var(--ph-canvas);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--ph-border);
  text-align: center;
}
.ph-hero-headline {
  margin-bottom: var(--space-8);
}
.ph-hero-headline h1 {
  margin-top: 0.5rem;
  line-height: 1.1;
}

/* Search */
.ph-hero-search-wrap {
  max-width: 640px;
  margin: 0 auto var(--space-10);
}
.ph-hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--ph-canvas);
  border: 2px solid var(--ph-primary);
  border-radius: var(--radius-pill);
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  gap: 0.75rem;
  box-shadow: 0 4px 24px rgba(4,104,56,0.14);
}
.ph-hero-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--text-base);
  color: var(--ph-ink-1);
  min-width: 0;
}
.ph-hero-search-bar input::placeholder { color: var(--ph-ink-3); }
.ph-hero-search-bar .ph-btn { flex-shrink: 0; }

/* Category chips */
.ph-hero-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ph-hero-chips > span {
  font-size: var(--text-sm);
  color: var(--ph-ink-3);
  font-weight: 500;
}
.ph-chip {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ph-ink-2);
  background: var(--ph-canvas-cream);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.875rem;
  text-decoration: none;
  transition: background var(--ease-base), color var(--ease-base), border-color var(--ease-base);
  white-space: nowrap;
}
.ph-chip:hover {
  background: var(--ph-aloe);
  color: var(--ph-primary);
  border-color: var(--ph-primary);
}

/* Trending product strip */
.ph-hero-strip {
  margin-bottom: var(--space-8);
  text-align: left;
}
.ph-hero-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.ph-hero-strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ph-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ph-hero-strip-scroll {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.ph-hero-strip-scroll::-webkit-scrollbar { display: none; }
.ph-hero-strip-card {
  flex: 0 0 140px;
  background: var(--ph-canvas);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-xl);
  padding: 0.875rem 0.75rem;
  text-decoration: none;
  transition: box-shadow var(--ease-base), transform var(--ease-base), border-color var(--ease-base);
  text-align: center;
  scroll-snap-align: start;
}
.ph-hero-strip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--ph-primary);
}
.ph-hero-strip-img {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
}
.ph-hero-strip-img img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.ph-hero-strip-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ph-ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  min-height: 1.9em;
  margin: 0;
}
.ph-hero-strip-price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ph-primary);
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
}
.ph-hero-strip-more {
  flex: 0 0 100px;
  background: var(--ph-aloe);
  border: 1.5px solid var(--ph-primary);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ph-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  gap: 0.375rem;
  transition: background var(--ease-base);
  scroll-snap-align: start;
}
.ph-hero-strip-more:hover { background: var(--ph-pistachio); }

/* Trust bar */
.ph-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--ph-ink-3);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ph-border);
}
.ph-hero-trust strong {
  color: var(--ph-ink-1);
  font-weight: 700;
}

/* ---------- Brand marquee ---------- */
.ph-brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ph-brand-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: ph-brand-scroll 48s linear infinite;
}
.ph-brand-track:hover { animation-play-state: paused; }
@keyframes ph-brand-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ph-brand-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 88px;
  padding: 0.875rem 1.25rem;
  background: var(--ph-canvas);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
  cursor: default;
}
.ph-brand-item:hover {
  border-color: var(--ph-primary);
  box-shadow: var(--shadow-sm);
}
.ph-brand-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: grayscale(30%) opacity(0.75);
  transition: filter var(--ease-base);
}
.ph-brand-item:hover img { filter: grayscale(0%) opacity(1); }
.ph-brand-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ph-ink-3);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color var(--ease-base);
}
.ph-brand-item:hover .ph-brand-name { color: var(--ph-primary); }

/* ---------- How It Works ---------- */
.ph-how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}
.ph-how-step-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-pill);
  background: var(--ph-aloe);
  color: var(--ph-aloe-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Section Header ---------- */
.ph-section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* ---------- Product Grid ---------- */
.ph-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-6);
}

/* ---------- CTA Band ---------- */
.ph-cta-band {
  background: linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-primary-light) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ph-cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Divider ---------- */
.ph-divider {
  border: none;
  border-top: 1px solid var(--ph-border);
  margin-block: var(--space-4);
}

/* ---------- Skeleton Loader ---------- */
.ph-skeleton {
  background: linear-gradient(90deg, var(--ph-canvas-muted) 25%, var(--ph-border) 50%, var(--ph-canvas-muted) 75%);
  background-size: 200% 100%;
  animation: ph-skeleton-wave 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes ph-skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Scroll Animations ---------- */
.ph-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ph-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility Helpers ---------- */
.ph-text-primary { color: var(--ph-primary); }
.ph-text-muted   { color: var(--ph-ink-3); }
.ph-bg-aloe      { background: var(--ph-aloe); }
.ph-bg-muted     { background: var(--ph-canvas-muted); }
.ph-rounded-pill { border-radius: var(--radius-pill); }
.ph-rounded-xl   { border-radius: var(--radius-xl); }

/* ---------- Mobile Bottom App Nav ---------- */
.ph-app-nav {
  display: none; /* desktop: hidden */
}
@media (max-width: 768px) {
  .ph-app-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--ph-canvas);
    border-top: 1px solid var(--ph-border);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .ph-app-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.5rem 0.125rem 0.4rem;
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ph-ink-4);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
  }
  .ph-app-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
    transition: stroke-width 0.15s;
    flex-shrink: 0;
  }
  .ph-app-nav-item:active { transform: scale(0.88); }
  .ph-app-nav-item.ph-app-active,
  .ph-app-nav-item:hover {
    color: var(--ph-primary);
  }
  .ph-app-nav-item.ph-app-active svg { stroke-width: 2.5; }
  .ph-app-nav-icon {
    position: relative;
    display: inline-flex;
  }
  .ph-app-nav-badge {
    position: absolute;
    top: -4px;
    right: -7px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    background: var(--ph-primary);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid var(--ph-canvas);
  }
  /* Push page content above the bottom nav */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  /* Hamburger visible on mobile (right side of nav) */
  .ph-hamburger-btn { display: flex; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ph-footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .ph-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --container-pad: 1rem; }
  .ph-nav-search { display: none; }
  /* Catbar: visible on mobile as a compact horizontal scroll strip */
  .ph-catbar-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }
  /* Hide dropdown chevron on mobile — touch has no hover, links go directly */
  .ph-catbar-item[data-drop] .ph-catbar-link > svg:last-child { display: none; }
  /* User button & login links hidden on mobile — drawer handles account actions */
  .ph-user-menu-wrap,
  .ph-nav-actions > a.ph-btn { display: none; }
  .ph-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-4);
  }
  .ph-hero-trust { gap: var(--space-4); }
}
@media (max-width: 480px) {
  .ph-product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}
