/*
Theme Name: PowPills Storefront
Theme URI: https://example.com/
Author: PowPills
Description: Classic server-rendered WooCommerce theme. Design system ported 1:1 from the TanStack Start / React storefront so product, category, cart and checkout pages are rendered by WooCommerce in PHP for full SEO.
Version: 4.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powpills
Tags: e-commerce, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
WC requires at least: 8.0
WC tested up to: 10.6
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Ported from src/styles.css. All colours remain in oklch(), exactly as the
   React build defined them, so the palette is identical.
   ========================================================================== */

:root {
  /* Radius scale */
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  /* Core surfaces + text */
  --background: oklch(1 0 0);
  --foreground: oklch(0.21 0.02 160);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.21 0.02 160);
  --muted: oklch(0.968 0.006 150);
  --muted-foreground: oklch(0.52 0.02 155);
  --border: oklch(0.92 0.008 150);
  --input: oklch(0.92 0.008 150);
  --ring: oklch(0.51 0.13 156);

  /* Brand */
  --brand: oklch(0.51 0.13 156);
  --brand-foreground: oklch(0.99 0.005 150);
  --brand-dark: oklch(0.31 0.07 158);
  --brand-soft: oklch(0.95 0.03 155);
  --brand-tint: oklch(0.975 0.015 155);
  --surface: oklch(0.985 0.004 150);

  /* Accents */
  --promo-blue: oklch(0.95 0.03 235);
  --promo-sand: oklch(0.96 0.04 90);
  --star: oklch(0.79 0.16 82);
  --sale: oklch(0.62 0.2 30);
  --destructive: oklch(0.577 0.245 27.325);

  /* Gradients + shadows */
  --gradient-brand: linear-gradient(135deg, oklch(0.31 0.07 158), oklch(0.51 0.13 156));
  --gradient-soft: linear-gradient(160deg, oklch(0.975 0.015 155), oklch(0.95 0.03 155));
  --shadow-card: 0 1px 2px oklch(0.21 0.02 160 / 0.04), 0 8px 24px -16px oklch(0.21 0.02 160 / 0.18);
  --shadow-lift: 0 2px 6px oklch(0.21 0.02 160 / 0.06), 0 18px 40px -22px oklch(0.31 0.07 158 / 0.35);

  /* Typography */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container: 80rem; /* matches max-w-7xl */
  --gutter: 1rem;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.pp-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pp-site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.pp-main {
  flex: 1 1 auto;
}

.pp-section {
  padding-block: 2.5rem;
}

.pp-grid {
  display: grid;
  gap: 1rem;
}

/* Shared heading block */
.pp-heading {
  text-align: center;
}

.pp-heading--left {
  text-align: left;
}

.pp-heading__title {
  font-size: 1.5rem;
  font-weight: 800;
}

.pp-heading__subtitle {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-heading__title {
    font-size: 1.875rem;
  }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.pp-btn--primary {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.pp-btn--primary:hover {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
}

.pp-btn--onbrand {
  background-color: var(--brand-foreground);
  color: var(--brand-dark);
  box-shadow: var(--shadow-card);
}

.pp-btn--onbrand:hover {
  transform: translateY(-2px);
  color: var(--brand-dark);
}

.pp-btn--outline {
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

.pp-btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pp-btn--ghost-brand {
  border-color: color-mix(in oklab, var(--brand-foreground) 40%, transparent);
  color: var(--brand-foreground);
}

.pp-btn--ghost-brand:hover {
  background-color: color-mix(in oklab, var(--brand-foreground) 10%, transparent);
  color: var(--brand-foreground);
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.pp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
}

/* -- utility bar -- */
.pp-utility {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
  font-size: 0.6875rem;
}

.pp-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.pp-utility__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

.pp-utility__item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.pp-utility__item:not(:first-child) {
  display: none;
}

.pp-utility__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
}

.pp-utility__phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}

.pp-utility a:hover {
  color: var(--brand-foreground);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .pp-utility__item:not(:first-child) {
    display: flex;
  }
}

/* -- main bar -- */
.pp-headerbar {
  border-bottom: 1px solid var(--border);
}

.pp-headerbar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.pp-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.625rem;
}

.pp-logo__mark {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.pp-logo__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pp-logo__name em {
  color: var(--brand);
  font-style: normal;
}

.pp-logo__tagline {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/*
 * WordPress custom logo.
 *
 * the_custom_logo() prints the image at its uploaded dimensions, so a large
 * source file (a 1024px square, for example) will blow the header apart. These
 * caps constrain it no matter what was uploaded — no need to re-crop the file.
 */
.pp-logo img,
.pp-logo .custom-logo,
.custom-logo-link img,
img.custom-logo {
  width: auto;
  max-width: 11rem;
  max-height: 2.75rem;
  object-fit: contain;
}

.pp-footer__logobox img,
.pp-footer__logobox .custom-logo {
  width: auto;
  max-width: 9.5rem;
  max-height: 2.5rem;
  object-fit: contain;
}

/* Safety net: nothing in the header may exceed the bar height. */
.pp-headerbar__inner img {
  max-height: 2.75rem;
}

/* -- search -- */
.pp-search {
  display: none;
  flex: 1 1 auto;
  max-width: 42rem;
  margin-left: auto;
}

.pp-search__input {
  height: 2.75rem;
  width: 100%;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background-color: var(--background);
  padding-inline: 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.pp-search__input:focus {
  outline: none;
  border-color: var(--brand);
}

.pp-search__submit {
  display: inline-flex;
  height: 2.75rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: var(--brand);
  color: var(--brand-foreground);
  transition: background-color 0.2s;
}

.pp-search__submit:hover {
  background-color: var(--brand-dark);
}

@media (min-width: 768px) {
  .pp-search {
    display: flex;
  }
}

/* -- header actions -- */
.pp-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.pp-actions__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pp-actions__label {
  display: none;
  line-height: 1.2;
}

.pp-actions__label strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.pp-actions__label span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.pp-actions__icon {
  color: var(--brand);
  flex-shrink: 0;
}

.pp-cart {
  position: relative;
  display: inline-flex;
}

.pp-cart__count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--sale);
  color: var(--brand-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.pp-iconbtn {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .pp-actions {
    margin-left: 0;
  }
  .pp-iconbtn--search {
    display: none;
  }
}

@media (min-width: 1024px) {
  .pp-actions {
    gap: 1.25rem;
  }
  .pp-actions__label {
    display: block;
  }
  .pp-iconbtn--menu {
    display: none;
  }
}

/* -- desktop category nav -- */
.pp-catnav {
  display: none;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.pp-catnav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.5rem;
}

.pp-catnav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pp-catnav__menu a {
  white-space: nowrap;
}

.pp-catnav__help {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-catnav__help:hover {
  text-decoration: underline;
}

/* "All Categories" dropdown, CSS-only via <details> */
.pp-dropdown {
  position: relative;
  flex-shrink: 0;
}

.pp-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--brand);
  color: var(--brand-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pp-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.pp-dropdown__trigger:hover {
  background-color: var(--brand-dark);
}

.pp-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 60;
  min-width: 16rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  box-shadow: var(--shadow-card);
}

.pp-dropdown__panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.pp-dropdown__panel a:hover {
  background-color: var(--brand-tint);
  color: var(--brand);
}

@media (min-width: 1024px) {
  .pp-catnav {
    display: block;
  }
}

/* -- mobile drawer -- */
.pp-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.pp-drawer[data-open="true"] {
  display: block;
}

.pp-drawer__backdrop {
  position: absolute;
  inset: 0;
  background-color: oklch(0 0 0 / 0.5);
  border: 0;
  width: 100%;
}

.pp-drawer__panel {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 19rem;
  max-width: 85vw;
  overflow-y: auto;
  background-color: var(--background);
  padding-bottom: 2rem;
}

.pp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}

.pp-drawer__title {
  font-size: 1rem;
  font-weight: 700;
}

.pp-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.pp-drawer__nav a {
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
}

.pp-drawer__nav a:hover {
  background-color: var(--brand-tint);
  color: var(--brand);
}

.pp-drawer__grouptitle {
  margin-top: 1rem;
  padding-inline: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.pp-mobilesearch {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding: 0.75rem var(--gutter);
}

.pp-mobilesearch[hidden] {
  display: none;
}

.pp-mobilesearch input {
  height: 2.75rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding-inline: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .pp-mobilesearch {
    display: none;
  }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.pp-hero {
  border-bottom: 1px solid var(--border);
  background-image: var(--gradient-soft);
}

.pp-hero__inner {
  padding-block: 2rem;
}

.pp-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lift);
}

.pp-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.24 0.05 158 / 0.92) 0%, oklch(0.24 0.05 158 / 0.75) 100%);
}

.pp-hero__body {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.pp-hero__content {
  max-width: 36rem;
}

.pp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--brand-foreground) 15%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-foreground);
  backdrop-filter: blur(4px);
}

.pp-hero__title {
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-foreground);
}

.pp-hero__text {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--brand-foreground) 85%, transparent);
}

.pp-hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pp-hero__body {
    padding: 3.5rem 2.5rem;
  }
  .pp-hero__title {
    font-size: 2.25rem;
  }
  .pp-hero__text {
    font-size: 1rem;
  }
  .pp-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pp-hero__scrim {
    background: linear-gradient(90deg, oklch(0.24 0.05 158 / 0.9) 0%, oklch(0.24 0.05 158 / 0.55) 50%, transparent 80%);
  }
}

@media (min-width: 1024px) {
  .pp-hero__inner {
    padding-block: 3rem;
  }
  .pp-hero__body {
    min-height: 26rem;
    padding-inline: 3.5rem;
  }
  .pp-hero__title {
    font-size: 3rem;
  }
}

/* trust row under hero */
.pp-trustrow {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pp-trustrow__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 0.875rem 1rem;
}

.pp-trustrow__icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: var(--brand-tint);
  color: var(--brand);
}

.pp-trustrow__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.pp-trustrow__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-trustrow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   7. ASSURANCE STRIP
   ========================================================================== */

.pp-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  border-radius: var(--radius-2xl);
  background-color: var(--brand-tint);
  padding: 1.25rem;
}

.pp-assurances__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.pp-assurances__icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--background) 70%, transparent);
  color: var(--brand);
}

.pp-assurances__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.pp-assurances__sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-assurances {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .pp-assurances {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ==========================================================================
   8. CATEGORY TILES
   ========================================================================== */

.pp-cats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pp-cat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pp-cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 50%, transparent);
  box-shadow: var(--shadow-card);
}

.pp-cat__media {
  position: relative;
  overflow: hidden;
}

.pp-cat__media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pp-cat:hover .pp-cat__media img {
  transform: scale(1.05);
}

.pp-cat__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.pp-cat__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.pp-cat:hover .pp-cat__name {
  color: var(--brand);
}

.pp-cat__cta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

@media (min-width: 640px) {
  .pp-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pp-cat__name {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .pp-cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   9. PROMO CARDS
   ========================================================================== */

.pp-promos {
  display: grid;
  gap: 1.25rem;
}

.pp-promo {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  transition: box-shadow 0.2s;
}

.pp-promo:hover {
  box-shadow: var(--shadow-card);
}

.pp-promo--tint {
  background-color: var(--brand-tint);
}
.pp-promo--blue {
  background-color: var(--promo-blue);
}
.pp-promo--sand {
  background-color: var(--promo-sand);
}

.pp-promo__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.pp-promo__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.5rem;
}

.pp-promo__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  color: var(--brand);
}

.pp-promo__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.pp-promo__text {
  margin-top: 0.5rem;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-promo__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-promo__cta:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .pp-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   10. WIDE PROMO BANNER
   ========================================================================== */

.pp-banner {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background-image: var(--gradient-brand);
  color: var(--brand-foreground);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lift);
}

.pp-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pp-banner__content {
  max-width: 36rem;
}

.pp-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--brand-foreground) 15%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pp-banner__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.pp-banner__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--brand-foreground) 85%, transparent);
}

.pp-banner__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pp-banner__list {
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}

.pp-banner__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pp-banner {
    padding-inline: 3rem;
  }
  .pp-banner__title {
    font-size: 1.875rem;
  }
}

/* ==========================================================================
   11. TRUST STATS
   ========================================================================== */

.pp-trust {
  display: grid;
  gap: 1.25rem;
}

.pp-trust__panel {
  border-radius: var(--radius-2xl);
  background-color: var(--surface);
  padding: 1.5rem;
}

.pp-trust__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.pp-trust__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-trust__stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.pp-trust__stat {
  border-radius: var(--radius-lg);
  background-color: var(--background);
  padding: 1rem;
}

.pp-trust__stat svg {
  color: var(--brand);
}

.pp-trust__value {
  margin-top: 0.625rem;
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.pp-trust__label {
  margin-top: 0.125rem;
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.pp-quote {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.5rem;
  margin: 0;
}

.pp-quote__body {
  margin: 1rem 0 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-quote__foot {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pp-quote__avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
}

.pp-quote__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.pp-quote__role {
  display: block;
  font-size: 0.75rem;
  color: var(--brand);
}

.pp-stars {
  display: flex;
  gap: 0.125rem;
  color: var(--star);
}

.pp-stars svg {
  fill: var(--star);
}

@media (min-width: 640px) {
  .pp-trust__panel {
    padding: 2rem;
  }
  .pp-trust__title {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .pp-trust {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
  .pp-trust__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   12. HOW IT WORKS
   ========================================================================== */

.pp-steps-wrap {
  background-color: var(--brand-tint);
}

.pp-steps-wrap .pp-container {
  padding-block: 3rem;
}

.pp-steps {
  position: relative;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.pp-steps__rule {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 1.75rem;
  border-top: 1px dashed color-mix(in oklab, var(--brand) 30%, transparent);
}

.pp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-2xl);
  background-color: var(--background);
  padding: 1.5rem;
  text-align: center;
}

.pp-step__icon {
  position: relative;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.pp-step__num {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background);
  border-radius: 9999px;
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
}

.pp-step__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-step__text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-steps-wrap .pp-container {
    padding-block: 4rem;
  }
  .pp-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pp-steps__rule {
    display: block;
  }
}

/* ==========================================================================
   13. SUPPORT BANNER
   ========================================================================== */

.pp-support {
  display: grid;
  gap: 2rem;
  border-radius: var(--radius-3xl);
  background-image: var(--gradient-brand);
  padding: 1.5rem;
}

.pp-support__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--brand-foreground) 15%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-foreground);
}

.pp-support__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-foreground);
}

.pp-support__text {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--brand-foreground) 85%, transparent);
}

.pp-support__list {
  display: grid;
  gap: 0.75rem;
}

.pp-support__card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: var(--radius-2xl);
  background-color: var(--background);
  padding: 1.25rem;
  transition: transform 0.2s;
}

.pp-support__card:hover {
  transform: translateY(-2px);
}

.pp-support__card svg {
  color: var(--brand);
}

.pp-support__cardtitle {
  font-size: 0.875rem;
  font-weight: 700;
}

.pp-support__cardsub {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-support {
    padding: 2.5rem;
  }
  .pp-support__title {
    font-size: 1.875rem;
  }
  .pp-support__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-support {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */

.pp-testimonials {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.pp-testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.5rem;
  margin: 0;
  transition: box-shadow 0.2s;
}

.pp-testimonial:hover {
  box-shadow: var(--shadow-card);
}

.pp-testimonial blockquote {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-testimonial figcaption {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pp-testimonial img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
}

@media (min-width: 640px) {
  .pp-testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-testimonials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   15. FAQ  (native <details>, zero JavaScript)
   ========================================================================== */

.pp-faqs {
  margin-top: 1.5rem;
  display: grid;
  column-gap: 1.5rem;
}

.pp-faq {
  border-bottom: 1px solid var(--border);
}

.pp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.pp-faq__q::-webkit-details-marker {
  display: none;
}

.pp-faq__q:hover {
  text-decoration: underline;
}

.pp-faq__q::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.pp-faq[open] .pp-faq__q::after {
  transform: rotate(-135deg);
}

.pp-faq__a {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .pp-faqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.pp-newsletter {
  background-color: var(--brand);
}

.pp-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
  color: var(--brand-foreground);
}

.pp-newsletter__copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pp-newsletter__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.pp-newsletter__text {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--brand-foreground) 80%, transparent);
}

.pp-newsletter__form {
  display: flex;
  width: 100%;
  max-width: 28rem;
}

.pp-newsletter__form input {
  height: 2.5rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background-color: var(--background);
  padding-inline: 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.pp-newsletter__form button {
  height: 2.5rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
  padding-inline: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .pp-newsletter__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.pp-footer {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
}

.pp-footer__cols {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

.pp-footer__about {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--brand-foreground) 80%, transparent);
}

.pp-footer__social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.pp-footer__social span {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--brand-foreground) 10%, transparent);
}

.pp-footer__coltitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.pp-footer__list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--brand-foreground) 80%, transparent);
}

.pp-footer__list a:hover {
  color: var(--brand-foreground);
  text-decoration: underline;
}

.pp-footer__logobox {
  width: fit-content;
  border-radius: var(--radius-md);
  background-color: color-mix(in oklab, var(--background) 95%, transparent);
  padding: 0.5rem;
}

.pp-footer__contact {
  padding-bottom: 2.5rem;
}

.pp-footer__contactlist {
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--brand-foreground) 80%, transparent);
}

.pp-footer__contactlist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .pp-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pp-footer__contactlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-footer__cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .pp-footer__contactlist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pp-legal {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.pp-legal__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-legal__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.pp-legal__pay span {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
}

.pp-legal__secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.pp-legal__fine {
  border-top: 1px solid var(--border);
  padding: 1rem var(--gutter);
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-legal__fine p {
  margin-inline: auto;
  max-width: 48rem;
}

.pp-legal__fine p + p {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .pp-legal__bar {
    flex-direction: row;
  }
}

/* ==========================================================================
   17. GENERIC CONTENT / PAGES / POSTS
   ========================================================================== */

.pp-page {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3rem;
}

.pp-page__title {
  font-size: 1.875rem;
  font-weight: 800;
}

.pp-prose {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.pp-prose > * + * {
  margin-top: 1rem;
}

.pp-prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.pp-prose h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--foreground);
}

.pp-prose a {
  color: var(--brand);
  text-decoration: underline;
}

.pp-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.pp-prose ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.pp-prose li + li {
  margin-top: 0.375rem;
}

.pp-prose img {
  border-radius: var(--radius-lg);
}

.pp-prose blockquote {
  margin: 1.5rem 0;
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  font-style: italic;
}

.pp-prose h4,
.pp-prose h5,
.pp-prose h6 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.pp-prose strong,
.pp-prose b {
  color: var(--foreground);
  font-weight: 700;
}

/* Empty paragraphs are what wpautop leaves behind around block markup. */
.pp-prose p:empty {
  display: none;
}

/*
 * Specification tables.
 *
 * The live products keep their "Active Ingredient / Manufacturer / Packaging /
 * Strength / Delivery Time / SKU" grid in the description as
 * <table class="bordered">, styled by the previous theme. Without rules of our
 * own it rendered as unstyled, borderless rows of run-together text — one of the
 * places the page looked like two themes at once. These rules apply to any table
 * in prose, so the same styling holds whatever class the editor used.
 */
.pp-prose table,
.pp-prose table.bordered {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}

.pp-prose table th,
.pp-prose table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.pp-prose table tr:last-child th,
.pp-prose table tr:last-child td {
  border-bottom: 0;
}

/* A full-width <th colspan="2"> is a section heading, e.g. GENERAL INFORMATION. */
.pp-prose table th {
  background: var(--muted);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

.pp-prose table th[colspan] {
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 0.8125rem;
  text-transform: uppercase;
}

/* First cell of a two-column row is the label. */
.pp-prose table td:first-child {
  width: 40%;
  color: var(--foreground);
  font-weight: 600;
  background: var(--surface);
}

.pp-prose table td strong {
  font-weight: 600;
}

.pp-prose table tbody tr:nth-child(even) td:last-child {
  background: var(--brand-tint);
}

/* Narrow screens: let a wide table scroll instead of breaking the layout. */
.pp-prose .pp-tablewrap,
.pp-prose table {
  max-width: 100%;
}

@media (max-width: 640px) {
  .pp-prose table th,
  .pp-prose table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  .pp-prose table td:first-child {
    width: 45%;
  }
}

/*
 * Secondary prose block — used for the promotional short description so it reads
 * as supporting copy rather than competing with the real product description.
 */
.pp-prose--muted {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

/*
 * Neutralise layout coming from the previous theme's markup. Their promo box is a
 * nest of floated <div>s; letting those floats escape pushed our own cards out of
 * alignment.
 */
.pp-prose > div {
  float: none !important;
  width: auto !important;
  max-width: 100%;
}

.pp-prose::after {
  content: "";
  display: table;
  clear: both;
}

.pp-crumbs {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-crumbs a:hover {
  color: var(--brand);
}

.pp-crumbs__sep {
  margin-inline: 0.375rem;
}

/* Blog / archive cards */
.pp-cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.pp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.pp-card:hover {
  box-shadow: var(--shadow-card);
}

.pp-card__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.pp-card__title {
  margin-top: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.pp-card:hover .pp-card__title {
  color: var(--brand);
}

.pp-card__excerpt {
  margin-top: 0.625rem;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-card__meta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Pagination */
.pp-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pp-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding-inline: 0.5rem;
  font-size: 0.875rem;
}

.pp-pagination .page-numbers.current {
  border-color: var(--brand);
  background-color: var(--brand);
  color: var(--brand-foreground);
}

/* 404 */
.pp-404 {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--gutter);
  text-align: center;
}

.pp-404__code {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   18. WOOCOMMERCE OVERRIDES
   Restyles WooCommerce's own markup so native product/cart/checkout pages
   inherit the storefront look without replacing their templates.
   ========================================================================== */

.woocommerce-page .pp-main,
.single-product .pp-main {
  padding-block: 2.5rem;
}

.woocommerce .woocommerce-breadcrumb {
  max-width: var(--container);
  margin: 0 auto 1.5rem;
  padding-inline: var(--gutter);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* product grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  box-shadow: var(--shadow-card);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  margin: 0 0 1rem;
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  padding: 1rem;
  transition: transform 0.3s;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 0.875rem !important;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 !important;
  color: var(--foreground);
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--brand);
}

.woocommerce ul.products li.product .price {
  display: block;
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-weight: 800;
  color: var(--foreground) !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--muted-foreground);
  font-weight: 500;
  opacity: 1;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--sale);
}

.woocommerce span.onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  z-index: 5;
  min-height: 0;
  min-width: 0;
  margin: 0;
  border-radius: 9999px;
  background-color: var(--sale);
  color: var(--brand-foreground);
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* star ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--star);
}

/* buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border-radius: var(--radius-lg);
  background-color: var(--brand);
  color: var(--brand-foreground);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
}

.woocommerce ul.products li.product .button {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
}

/* single product */
.single-product div.product {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.single-product div.product .product_title {
  font-size: 1.75rem;
  font-weight: 800;
}

.single-product div.product p.price,
.single-product div.product span.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
}

.single-product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
}

.single-product .woocommerce-tabs ul.tabs::before {
  border: 0;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  margin: 0 0.25rem 0 0;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: var(--brand);
  color: var(--brand) !important;
}

/* quantity */
.woocommerce .quantity .qty {
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  color: var(--foreground);
}

/* notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  max-width: var(--container);
  margin: 0 auto 1.5rem;
  border-top: 0;
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  background-color: var(--brand-tint);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.woocommerce-error {
  border-left-color: var(--destructive);
  background-color: color-mix(in oklab, var(--destructive) 8%, var(--background));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: var(--brand);
}

/* forms: cart, checkout, account */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container .select2-selection--single {
  height: auto;
  min-height: 2.5rem;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.woocommerce form .form-row label {
  font-size: 0.75rem;
  font-weight: 600;
}

.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.woocommerce table.shop_table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-size: 1rem;
  font-weight: 700;
}

.woocommerce #payment,
.woocommerce-checkout-review-order {
  border-radius: var(--radius-xl);
}

.woocommerce #payment {
  background-color: var(--brand-tint) !important;
}

.woocommerce #payment div.payment_box {
  background-color: var(--background) !important;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.woocommerce #payment div.payment_box::before {
  border-bottom-color: var(--background) !important;
}

/* sidebar / filters */
.pp-shop {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pp-shop__head {
  margin-bottom: 1.5rem;
}

.pp-shop__title {
  font-size: 1.75rem;
  font-weight: 800;
}

.pp-shop__count {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pp-chip {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s;
}

.pp-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pp-chip[aria-current="page"],
.pp-chip--active {
  border-color: var(--brand);
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.woocommerce .woocommerce-ordering {
  margin-left: auto;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.woocommerce .woocommerce-result-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .single-product div.product .product_title {
    font-size: 2rem;
  }
}

@media (min-width: 1280px) {
  .woocommerce ul.products.columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */

.pp-hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .pp-hide-sm {
    display: inline;
  }
  .pp-only-sm {
    display: none;
  }
}

.pp-mt-0 { margin-top: 0; }
.pp-mt-1 { margin-top: 0.5rem; }
.pp-mt-2 { margin-top: 1rem; }
.pp-mt-4 { margin-top: 2rem; }
.pp-muted { color: var(--muted-foreground); }
.pp-brand { color: var(--brand); }
.pp-center { text-align: center; }


/* ==========================================================================
   20. PRODUCT CARD  (woocommerce/content-product.php)
   Reproduces src/components/store/ProductCard.tsx
   ========================================================================== */

.woocommerce ul.products li.product.pp-pcard {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1rem;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product.pp-pcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  box-shadow: var(--shadow-card);
}

.pp-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.pp-badge--dark  { background-color: var(--brand-dark); color: var(--brand-foreground); }
.pp-badge--brand { background-color: var(--brand);      color: var(--brand-foreground); }
.pp-badge--sale  { background-color: var(--sale);       color: var(--brand-foreground); }

.pp-pcard__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--surface);
}

.woocommerce ul.products li.product.pp-pcard .pp-pcard__media img {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  padding: 1rem;
  background: transparent;
  transition: transform 0.3s;
}

.pp-pcard:hover .pp-pcard__media img {
  transform: scale(1.05);
}

.pp-pcard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 1rem;
}

.woocommerce ul.products li.product.pp-pcard .pp-pcard__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--foreground);
  padding: 0;
}

.pp-pcard__title:hover {
  color: var(--brand);
}

.pp-pcard__desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-pcard__rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.pp-pcard__count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-pcard__foot {
  margin-top: auto;
  padding-top: 0.75rem;
}

.pp-pcard__pricelabel {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.woocommerce ul.products li.product.pp-pcard .pp-pcard__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-weight: 800;
  color: var(--foreground) !important;
}

.pp-pcard__price del { color: var(--muted-foreground); font-weight: 500; opacity: 1; }
.pp-pcard__price ins { text-decoration: none; color: var(--sale); }

.pp-pcard__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-pcard__stock--out {
  color: var(--muted-foreground);
}

.woocommerce ul.products li.product.pp-pcard .pp-pcard__cta {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  border-radius: var(--radius-xl);
  background-color: var(--brand);
  color: var(--brand-foreground);
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s;
}

.woocommerce ul.products li.product.pp-pcard .pp-pcard__cta:hover {
  background-color: var(--brand-dark);
}

/* ==========================================================================
   21. PRODUCT ARCHIVE  (woocommerce/archive-product.php)
   Reproduces src/routes/category.$slug.tsx
   ========================================================================== */

.pp-archive-hero {
  border-bottom: 1px solid var(--border);
  background-color: var(--brand-tint);
}

.pp-archive-hero .pp-container {
  padding-block: 2.5rem;
}

.pp-archive-hero__grid {
  margin-top: 1.5rem;
  display: grid;
  align-items: center;
  gap: 2rem;
}

.pp-archive-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
}

.pp-archive-hero__intro {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-archive-hero__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.pp-archive-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.pp-archive-hero__meta svg {
  color: var(--brand);
}

.pp-archive-hero__image {
  display: none;
  height: 12rem;
  width: 100%;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .pp-archive-hero__title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .pp-archive-hero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .pp-archive-hero__title { font-size: 2.25rem; }
  .pp-archive-hero__image { display: block; }
}

.pp-archive {
  padding-block: 2.5rem;
}

.pp-archive__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pp-archive__sort {
  margin-left: auto;
}

.woocommerce .pp-archive__sort form.woocommerce-ordering {
  margin: 0;
}

.pp-archive__empty {
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-highlights {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
}

.pp-highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.5rem;
}

.pp-highlight__title {
  font-size: 1rem;
  font-weight: 700;
}

.pp-highlight__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-archive__about {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}

.pp-archive__abouttitle {
  font-size: 1.5rem;
  font-weight: 700;
}

.pp-archive__aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.pp-aside {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.pp-aside--tint {
  background-color: var(--brand-tint);
}

.pp-aside--note {
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-aside--note strong {
  color: var(--foreground);
}

.pp-aside__title {
  font-size: 1rem;
  font-weight: 700;
}

.pp-aside__list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.pp-aside__list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}

.pp-aside__list a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .pp-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .pp-archive__about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* ==========================================================================
   22. SINGLE PRODUCT  (woocommerce/single-product.php)
   Reproduces src/routes/product.$slug.tsx
   ========================================================================== */

.pp-single {
  background-color: var(--surface);
  padding-bottom: 3rem;
}

.pp-single__crumbs {
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.pp-single__crumbs .pp-container {
  padding-block: 0.75rem;
}

.pp-single__crumbs .pp-crumbs {
  font-size: 0.75rem;
}

.pp-single__stack {
  display: grid;
  gap: 1rem;
  padding-block: 1.25rem;
}

.pp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  padding: 1.25rem;
}

.pp-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-card__title svg { color: var(--brand); }

.pp-card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-card__link:hover { text-decoration: underline; }

.pp-single__introgrid {
  display: grid;
  gap: 2rem;
}

/* WooCommerce gallery inside our card */
.pp-single__gallery .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.pp-single__gallery .woocommerce-product-gallery img {
  border-radius: var(--radius-lg);
}

.pp-pill {
  display: inline-block;
  border-radius: var(--radius-sm);
  background-color: var(--brand-tint);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.pp-single__title {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.pp-single__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pp-single__reviewlink {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-single__overview {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-specs {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.pp-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.pp-specs svg {
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: var(--brand);
}

.pp-specs__label { font-weight: 600; }
.pp-specs__value { color: var(--muted-foreground); }
.pp-specs__value--brand { font-weight: 600; color: var(--brand); }
.pp-specs__value a { color: var(--brand); }
.pp-specs__value a:hover { text-decoration: underline; }

@media (min-width: 1024px) {
  .pp-single__introgrid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .pp-card { padding: 1.5rem; }
  .pp-single__title { font-size: 1.875rem; }
}

/* -- buy box -- */
.pp-buybox {
  display: grid;
  gap: 1.5rem;
}

.pp-buybox__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.woocommerce .pp-buybox__amount {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand);
}

.pp-buybox__amount del { font-size: 1rem; color: var(--muted-foreground); font-weight: 500; }
.pp-buybox__amount ins { text-decoration: none; }

.pp-buybox__save {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sale);
}

.pp-buybox__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--brand);
}

/* WooCommerce variation table inside the buy box */
.woocommerce .pp-buybox__form table.variations {
  margin-bottom: 1rem;
}

.woocommerce .pp-buybox__form table.variations th,
.woocommerce .pp-buybox__form table.variations td {
  padding: 0.25rem 0 0.5rem;
  border: 0;
}

.woocommerce .pp-buybox__form table.variations label {
  font-size: 0.75rem;
  font-weight: 600;
}

.woocommerce .pp-buybox__form select {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.woocommerce .pp-buybox__form .quantity {
  margin-right: 0.5rem;
}

.woocommerce .pp-buybox__form button.button {
  width: 100%;
  margin-top: 0.5rem;
  padding-block: 0.875rem;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .pp-buybox { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: start; }
  .pp-buybox__price { border-right: 1px solid var(--border); padding-right: 2rem; }
  .woocommerce .pp-buybox__form button.button { width: auto; min-width: 14rem; }
}

/* -- assurance strip -- */
.pp-assure {
  display: grid;
  gap: 1.25rem;
}

.pp-assure__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pp-assure__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: var(--brand-tint);
  color: var(--brand);
}

.pp-assure__title { display: block; font-size: 0.75rem; font-weight: 600; }
.pp-assure__sub { display: block; font-size: 0.6875rem; color: var(--muted-foreground); }

@media (min-width: 640px) { .pp-assure { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pp-assure { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* -- tabs -- */
.pp-tabs { padding: 0; }

.pp-tabs__bar {
  display: flex;
  overflow-x: auto;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding-inline: 0.5rem;
}

.pp-tabs__tab {
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pp-tabs__tab--active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.pp-tabs__panels { padding: 1.25rem; }

/*
 * No-JS default: every panel visible and separated, so all content is readable
 * and indexable. The tab bar is hidden until JS confirms it can drive it.
 */
.pp-tabs:not([data-enhanced]) .pp-tabs__bar { display: none; }

.pp-tabs:not([data-enhanced]) .pp-panel + .pp-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pp-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.pp-panel__grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 2rem;
}

.pp-panel__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-panel__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  border-radius: var(--radius-xl);
  background-color: var(--brand-tint);
  padding: 1.5rem;
  text-align: center;
}

.pp-facts > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pp-facts svg { color: var(--brand); }

.pp-facts span {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.pp-steps-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.pp-steps-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-steps-list__num {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--brand-tint);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand);
}

.pp-ticklist {
  margin-top: 1rem;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-ticklist li {
  display: flex;
  gap: 0.625rem;
}

.pp-ticklist svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--brand);
}

.pp-sidelist {
  margin-top: 1rem;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-sidelist li {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
}

@media (min-width: 640px) {
  .pp-sidelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .pp-panel__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pp-tabs__panels { padding: 1.75rem; }
}

/* -- details + reviews -- */
.pp-single__twocol {
  display: grid;
  gap: 1rem;
}

.pp-dl {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.pp-dl > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pp-dl dt { font-weight: 600; }
.pp-dl dd { margin: 0; color: var(--muted-foreground); }

@media (min-width: 1024px) {
  .pp-single__twocol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Related / upsell rows inherit the archive grid but sit on the tinted page */
.pp-single .related,
.pp-single .up-sells {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  padding: 1.25rem;
}

.pp-single .related > h2,
.pp-single .up-sells > h2 {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
}


/* ==========================================================================
   23. FIXES FROM LIVE-SITE PAGE SOURCE
   Each rule here addresses something observed in the rendered HTML of
   propharmas.com rather than a guess.
   ========================================================================== */

/* -- Hero with no background image ----------------------------------------
   Previously the dark scrim sat over an empty panel, producing a flat slab.
   Without an image the panel now carries the brand gradient itself. */
.pp-hero__panel--plain {
  background-image: var(--gradient-brand);
}

/* -- Category tile with no thumbnail --------------------------------------
   Replaces the grey WooCommerce placeholder with a tinted icon panel. */
.pp-cat__media--empty {
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-tint);
}

.pp-cat__glyph {
  display: flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  background-color: color-mix(in oklab, var(--background) 75%, transparent);
  color: var(--brand);
}

.pp-cat:hover .pp-cat__glyph {
  background-color: var(--background);
}

/* Badge was previously inline-styled; moved into the stylesheet. */
.pp-cat__badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--background) 90%, transparent);
  color: var(--brand);
  backdrop-filter: blur(4px);
}

/* -- Product row heading ---------------------------------------------------
   Was inline-styled in the template; now a real class. */
.pp-rowhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pp-rowhead__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-rowhead__link:hover {
  text-decoration: underline;
}

/* -- Third-party plugin markup inside our product grid --------------------
   The live site runs WPC Smart Compare / Quick View / Wishlist, which inject
   their own buttons into every card. Left unstyled they broke the card layout,
   so they are pulled into the card's own rhythm. */
.woocommerce ul.products li.product .woosc-btn,
.woocommerce ul.products li.product .woosq-btn,
.woocommerce ul.products li.product .woosw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.woocommerce ul.products li.product .woosc-btn:hover,
.woocommerce ul.products li.product .woosq-btn:hover,
.woocommerce ul.products li.product .woosw-btn:hover {
  background: none;
  color: var(--brand);
}

/* WooCommerce's default loop title/price markup, when a plugin renders the card
   instead of our template override. Keeps typography consistent either way. */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
}

.woocommerce ul.products li.product .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* -- Old theme's leftover plugin CSS --------------------------------------
   templatemela-core and templatemela-plugin-healthmart still enqueue layout
   CSS from the previous theme. These resets stop their container widths and
   float rules leaking into our sections. */
.pp-main .elementor-section,
.pp-main .e-con {
  max-width: none;
}

.pp-site .cms-banner,
.pp-site .home-category-block,
.pp-site .home-category2-block,
.pp-site .home-product-cms-block,
.pp-site .testimonial-home-block,
.pp-site .simple-scroll {
  float: none;
}

/* Admin bar offset — WordPress pushes html down 32px, which made the sticky
   header sit under the toolbar for logged-in users. */
body.admin-bar .pp-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .pp-header {
    top: 46px;
  }
}


/* ==========================================================================
   24. REACT PARITY — components added in 4.0.0
   Every block below matches a component or section in src/. Class names follow
   the same BEM-ish scheme as the rest of the file.
   ========================================================================== */

/* -- button variants ------------------------------------------------------- */

/* --brand is the filled primary button; --primary is kept as its older alias. */
.pp-btn--brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.pp-btn--brand:hover {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
}

/* On a brand-coloured panel the outline button needs a light border, not a dark one. */
.pp-btn--ghostbrand {
  border: 1px solid color-mix(in oklab, var(--brand-foreground) 40%, transparent);
  color: var(--brand-foreground);
}

.pp-btn--ghostbrand:hover {
  background-color: color-mix(in oklab, var(--brand-foreground) 10%, transparent);
  color: var(--brand-foreground);
}

.pp-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.pp-btn--block {
  display: flex;
  width: 100%;
}

/* -- breadcrumb with › separators (single product) ------------------------- */

.pp-crumbs--chev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
}

.pp-crumbs__current {
  font-weight: 600;
  color: var(--foreground);
}

/* -- product gallery ------------------------------------------------------- */

.pp-gallery__img {
  display: none;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 24rem;
  object-fit: contain;
}

.pp-gallery__img.is-active {
  display: block;
}

.pp-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pp-gallery__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: var(--border);
  cursor: pointer;
}

.pp-gallery__dot.is-active {
  background-color: var(--brand);
}

/* -- single product info column ------------------------------------------- */

.pp-single__ratingcount {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-specs__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--brand);
}

.pp-specs__value--links a {
  color: var(--brand);
}

.pp-specs__value--links a:hover {
  text-decoration: underline;
}

/* -- buy box: price | pack size | quantity -------------------------------- */

.pp-buybox {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .pp-buybox {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.5rem;
  }

  .pp-buybox__price {
    border-right: 1px solid var(--border);
    padding-right: 2rem;
  }
}

.pp-buybox__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pp-buybox__amount {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand);
}

.pp-buybox__amount del {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pp-buybox__mrp,
.pp-buybox__save {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-buybox__strike {
  text-decoration: line-through;
}

.pp-buybox__savenum {
  font-weight: 600;
  color: var(--brand);
}

.pp-buybox__ship {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--brand);
}

/*
 * WooCommerce's add-to-cart form, laid out as the React two-column block:
 * pack-size buttons on the left, quantity + Add to Cart on the right.
 */
.pp-buybox__cart form.cart {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

@media (min-width: 1024px) {
  .pp-buybox__cart form.cart {
    grid-template-columns: minmax(0, 1fr) 16rem;
    align-items: start;
  }
}

.pp-buybox__cart .variations {
  width: 100%;
  margin: 0;
  border: 0;
}

.pp-buybox__cart .variations th,
.pp-buybox__cart .variations td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  background: none;
}

.pp-buybox__cart .variations label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pp-buybox__cart .variations select {
  width: 100%;
  margin-top: 0.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.pp-buybox__cart .reset_variations {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* The button grid navigation.js builds from the select's options. */
.pp-packgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .pp-packgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pp-packgrid__btn {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--background);
  padding: 0.625rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.pp-packgrid__btn:hover {
  border-color: var(--brand);
}

.pp-packgrid__btn.is-active {
  border-color: var(--brand);
  background-color: var(--brand-tint);
}

.pp-packgrid__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pp-packgrid__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.pp-packgrid__price {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* When the grid is in use the real select is hidden but stays in the form. */
.pp-packgrid-active .variations tr,
.pp-packgrid-active .variations label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* -- quantity stepper ------------------------------------------------------ */

.pp-qty,
.pp-buybox__cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pp-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  cursor: pointer;
}

.pp-qty__btn:hover {
  color: var(--brand);
}

.pp-qty input.qty,
.pp-buybox__cart .quantity input.qty {
  width: 2.75rem;
  height: 2.25rem;
  border: 0;
  background: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  -moz-appearance: textfield;
  appearance: textfield;
}

.pp-qty input.qty::-webkit-outer-spin-button,
.pp-qty input.qty::-webkit-inner-spin-button,
.pp-buybox__cart .quantity input.qty::-webkit-outer-spin-button,
.pp-buybox__cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pp-buybox__cart .woocommerce-variation-add-to-cart,
.pp-buybox__cart form.cart:not(.variations_form) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.pp-buybox__cart button.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  background-color: var(--brand);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-foreground);
  cursor: pointer;
  transition: background-color 0.15s;
}

.pp-buybox__cart button.single_add_to_cart_button:hover {
  background-color: var(--brand-dark);
}

.pp-buybox__cart button.single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pp-buybox__cart .woocommerce-variation-price {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.pp-buybox__cart .woocommerce-variation-availability {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* -- overview tab: facts panel + read more -------------------------------- */

.pp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  border-radius: var(--radius-xl);
  background-color: var(--brand-tint);
  padding: 1.5rem;
  text-align: center;
}

.pp-facts__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
}

.pp-facts__item span {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.pp-readmore {
  margin-top: 1rem;
}

.pp-readmore__toggle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}

.pp-readmore__toggle::-webkit-details-marker {
  display: none;
}

.pp-readmore__toggle:hover {
  text-decoration: underline;
}

.pp-readmore[open] .pp-readmore__toggle {
  margin-bottom: 0.5rem;
}

.pp-readmore[open] .pp-readmore__toggle::after {
  content: none;
}

.pp-readmore__body {
  margin-top: 0.5rem;
}

/* -- how it works tab: quick facts table ---------------------------------- */

.pp-quickfacts {
  margin-top: 1.75rem;
}

.pp-quickfacts__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-quickfacts__list {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pp-quickfacts__list > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

.pp-quickfacts__list > div:first-child {
  border-top: 0;
}

.pp-quickfacts__list dt {
  font-weight: 600;
}

.pp-quickfacts__list dd {
  margin: 0;
  color: var(--muted-foreground);
}

/* -- side effects list ---------------------------------------------------- */

.pp-sidelist {
  display: grid;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .pp-sidelist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pp-sidelist li {
  display: flex;
  gap: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-sidelist__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--sale);
}

/* -- review summary ------------------------------------------------------- */

.pp-revsum {
  margin-top: 0.75rem;
}

.pp-revsum__head {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.pp-revsum__score {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.pp-revsum__outof,
.pp-revsum__stars {
  padding-bottom: 0.25rem;
}

.pp-revsum__outof {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-revsum__based {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-revsum__bars {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.pp-revsum__bars li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
}

.pp-revsum__label {
  display: flex;
  width: 2rem;
  align-items: center;
  gap: 0.125rem;
  font-weight: 600;
}

.pp-revsum__star {
  color: var(--star);
  fill: var(--star);
}

.pp-revsum__track {
  flex: 1;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--surface);
}

.pp-revsum__fill {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--brand);
}

.pp-revsum__pct {
  width: 2rem;
  text-align: right;
  color: var(--muted-foreground);
}

.pp-revsum__write {
  margin-top: 1rem;
}

/* -- sticky add-to-cart bar ----------------------------------------------- */

.pp-stickybar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--card) 95%, transparent);
  backdrop-filter: blur(8px);
}

.pp-stickybar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.pp-stickybar__amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
}

.pp-stickybar__amount del {
  display: none;
}

.pp-stickybar__meta {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted-foreground);
}

.pp-stickybar__cta {
  margin-left: auto;
  flex: 1;
}

@media (min-width: 640px) {
  .pp-stickybar__cta {
    flex: none;
    max-width: 16rem;
    padding-inline: 2rem;
  }
}

/* The single-product wrapper reserves room so the bar never covers content. */
.pp-single {
  padding-bottom: 7rem;
}

@media (min-width: 1024px) {
  .pp-single {
    padding-bottom: 5rem;
  }
}

/* -- related products row ------------------------------------------------- */

.pp-related ul.products {
  margin-top: 1.25rem;
}

.pp-pcard--compact .pp-pcard__cta {
  display: none;
}

/* -- shop page ------------------------------------------------------------ */

.pp-shop {
  padding-block: 2.5rem;
}

.pp-shop__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .pp-shop__title {
    font-size: 1.875rem;
  }
}

.pp-shop__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-archive__sortlabel {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-chip--outline {
  border-color: color-mix(in oklab, var(--brand) 30%, transparent);
  background-color: var(--background);
  color: var(--brand);
}

.pp-chip--outline:hover {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

/* -- sidebar lists shared by archive and article -------------------------- */

.pp-aside__links,
.pp-aside__posts {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.pp-aside__links li + li,
.pp-aside__posts li + li {
  margin-top: 0.625rem;
}

.pp-aside__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pp-aside__links a:hover {
  background-color: var(--brand-tint);
  color: var(--brand);
}

.pp-aside__posts a {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.pp-aside__posts a:hover {
  color: var(--brand);
}

.pp-aside__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-aside__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.pp-aside__text + .pp-btn {
  margin-top: 1rem;
}

/* -- headings, rows ------------------------------------------------------- */

.pp-heading__title--left,
.pp-heading__subtitle--left {
  text-align: left;
}

.pp-rowhead--wide {
  align-items: flex-end;
}

.pp-hero__star {
  color: var(--star);
  fill: var(--star);
}

.pp-panel__note--hint {
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
}

.pp-mt-8 {
  margin-top: 2rem;
}

/* ==========================================================================
   25. HOMEPAGE SECTIONS ADDED IN 4.0.0
   ========================================================================== */

/* -- wide promo banner ---------------------------------------------------- */

.pp-promobanner {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background-image: var(--gradient-brand);
  padding: 2.5rem 2rem;
  color: var(--brand-foreground);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 640px) {
  .pp-promobanner {
    padding-inline: 3rem;
  }
}

.pp-promobanner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pp-promobanner__copy {
  max-width: 36rem;
}

.pp-promobanner__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--brand-foreground) 15%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-promobanner__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .pp-promobanner__title {
    font-size: 1.875rem;
  }
}

.pp-promobanner__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--brand-foreground) 85%, transparent);
}

.pp-promobanner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pp-promobanner__points {
  display: grid;
  gap: 1rem;
  padding: 0;
  font-size: 0.875rem;
  list-style: none;
}

.pp-promobanner__points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pp-promobanner__points svg {
  flex-shrink: 0;
}

/* -- popular products tabs ------------------------------------------------ */

.pp-ptabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}

.pp-ptabs__tab {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s, border-color 0.15s;
}

.pp-ptabs__tab:hover {
  color: var(--foreground);
}

.pp-ptabs__tab--active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.pp-ptabs__panels {
  margin-top: 1.5rem;
}

/* Without JS every panel is visible and stacked, so nothing is unreachable. */
.pp-popular[data-enhanced] .pp-ptabs__panel {
  display: none;
}

.pp-popular[data-enhanced] .pp-ptabs__panel.is-active {
  display: block;
}

.pp-popular:not([data-enhanced]) .pp-ptabs__panel + .pp-ptabs__panel {
  margin-top: 2rem;
}

/* -- guides teaser -------------------------------------------------------- */

.pp-guides {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .pp-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-guides {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   26. BLOG — index and article
   ========================================================================== */

.pp-blog {
  padding-block: 3rem;
}

.pp-blog__head {
  margin-top: 1rem;
  max-width: 42rem;
}

.pp-tagpill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--brand-tint);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-tagpill--solid {
  background-color: var(--background);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-blog__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .pp-blog__title {
    font-size: 2.25rem;
  }
}

.pp-blog__intro {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-blog__empty {
  margin-top: 2rem;
  color: var(--muted-foreground);
}

.pp-lead {
  display: block;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.pp-lead:hover {
  box-shadow: var(--shadow-lift);
}

.pp-lead__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pp-lead:hover .pp-lead__title {
  color: var(--brand);
}

.pp-lead__excerpt {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-postgrid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .pp-postgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pp-postgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pp-postcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.pp-postcard:hover {
  box-shadow: var(--shadow-card);
}

.pp-postcard__title {
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.pp-postcard:hover .pp-postcard__title {
  color: var(--brand);
}

.pp-postcard__excerpt {
  flex: 1;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.pp-shopby {
  margin-top: 3.5rem;
  border-radius: var(--radius-2xl);
  background-color: var(--brand-tint);
  padding: 2rem;
}

.pp-shopby__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pp-shopby__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-shopby__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* -- article -------------------------------------------------------------- */

.pp-article__band {
  border-bottom: 1px solid var(--border);
  background-color: var(--brand-tint);
}

.pp-article__band > .pp-container {
  padding-block: 2rem;
}

@media (min-width: 640px) {
  .pp-article__band > .pp-container {
    padding-block: 3rem;
  }
}

.pp-article__bandinner {
  margin-top: 1.25rem;
  max-width: 48rem;
}

.pp-article__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .pp-article__title {
    font-size: 2.25rem;
  }
}

.pp-article__excerpt {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-article__excerpt {
    font-size: 1.125rem;
  }
}

.pp-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.pp-article__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem;
}

@media (min-width: 1024px) {
  .pp-article__grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3rem;
    padding-block: 3.5rem;
  }
}

.pp-article__body {
  max-width: 48rem;
}

.pp-article__figure {
  margin: 2rem 0 0;
}

.pp-article__figure img {
  border-radius: var(--radius-2xl);
}

.pp-article__prose {
  margin-top: 1.5rem;
}

.pp-article__h2 {
  scroll-margin-top: 8rem;
}

.pp-article__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pp-article__aside {
    position: sticky;
    top: 8rem;
    align-self: start;
  }
}

.pp-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pp-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.pp-article__back:hover {
  text-decoration: underline;
}

.pp-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .pp-toc {
    padding: 1.5rem;
  }
}

.pp-toc__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.pp-toc__list {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.pp-toc__list li {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pp-toc__num {
  font-weight: 600;
  color: var(--brand);
}

.pp-toc__list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.pp-disclaimer {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--surface);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .pp-disclaimer {
    padding: 1.5rem;
  }
}

.pp-disclaimer strong {
  color: var(--foreground);
}

/* ==========================================================================
   27. CART, CHECKOUT, ACCOUNT
   ========================================================================== */

.pp-cart,
.pp-checkout,
.pp-thanks,
.pp-account {
  margin-inline: auto;
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  padding-block: 2.5rem;
}

.pp-cart__title,
.pp-checkout__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pp-cart__grid,
.pp-checkout__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .pp-cart__grid,
  .pp-checkout__grid {
    grid-template-columns: 2fr 1fr;
  }
}

.pp-cart__list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-cartline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  padding: 1rem;
}

.pp-cartline__media img {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  object-fit: contain;
  padding: 0.5rem;
}

.pp-cartline__info {
  flex: 1;
  min-width: 10rem;
}

.pp-cartline__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.pp-cartline__name:hover {
  color: var(--brand);
}

.pp-cartline__info dl,
.pp-cartline__info .variation {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-cartline__info .variation dt,
.pp-cartline__info .variation dd {
  display: inline;
  margin: 0;
  font-weight: 400;
}

.pp-cartline__info .variation dd + dt::before {
  content: " · ";
}

.pp-cartline__unit {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pp-cartline__total {
  width: 5rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
}

.pp-cartline__remove {
  display: inline-flex;
  color: var(--muted-foreground);
}

.pp-cartline__remove:hover {
  color: var(--destructive);
}

.pp-cart__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pp-coupon {
  display: flex;
  gap: 0.5rem;
}

.pp-coupon__input {
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding-inline: 0.75rem;
  font-size: 0.875rem;
}

.pp-cart__empty {
  margin-top: 2rem;
  padding: 2.5rem;
  text-align: center;
}

.pp-cart__emptytext {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-cart__emptytext + .pp-btn {
  margin-top: 1.25rem;
}

/* -- order summary aside -------------------------------------------------- */

.pp-summary {
  height: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  padding: 1.5rem;
}

.pp-summary__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-summary__items {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pp-summary__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pp-summary__thumb img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  object-fit: contain;
  padding: 0.25rem;
}

.pp-summary__meta {
  flex: 1;
  font-size: 0.75rem;
}

.pp-summary__name {
  display: block;
  font-weight: 600;
}

.pp-summary__variant {
  display: block;
  color: var(--muted-foreground);
}

.pp-summary__linetotal {
  font-size: 0.75rem;
  font-weight: 700;
}

.pp-summary__empty {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-summary__empty a {
  font-weight: 600;
  color: var(--brand);
}

.pp-summary__list {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.pp-summary__list--divided {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.pp-summary__row,
.pp-summary tr {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pp-summary__row dt,
.pp-summary th {
  font-weight: 400;
  text-align: left;
  color: var(--muted-foreground);
}

.pp-summary__row dd,
.pp-summary td {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.pp-summary__row--total {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  font-size: 0.875rem;
}

.pp-summary__row--total dt {
  font-weight: 600;
  color: var(--foreground);
}

.pp-summary__row--total dd {
  font-weight: 700;
}

/* WooCommerce's shipping rows render as a <tr>, so normalise them too. */
.pp-summary .woocommerce-shipping-totals th,
.pp-summary .shipping th {
  color: var(--muted-foreground);
}

.pp-summary ul#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.pp-summary ul#shipping_method li {
  margin-top: 0.25rem;
}

.pp-summary__cta {
  margin-top: 1.25rem;
}

.pp-summary__cta a.checkout-button,
.pp-summary__cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background-color: var(--brand);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-foreground);
}

.pp-summary__cta a.checkout-button:hover,
.pp-summary__cta .button:hover {
  background-color: var(--brand-dark);
  color: var(--brand-foreground);
}

.pp-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

/* -- checkout ------------------------------------------------------------- */

.pp-checkout__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-checkout__main {
  display: grid;
  gap: 2rem;
}

.pp-checkout__section {
  padding: 1.5rem;
}

.pp-checkout__heading,
.pp-checkout__section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-card--tint {
  border-color: transparent;
  background-color: var(--brand-tint);
}

.pp-checkout__payment {
  padding: 1.5rem;
}

/*
 * WooCommerce's own checkout fields, restyled to the React input.
 * These selectors are intentionally broad so gateway-added fields match too.
 */
.woocommerce form .form-row {
  display: block;
  margin: 0 0 1rem;
  padding: 0;
}

.woocommerce form .form-row label,
.pp-field__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.woocommerce form .form-row .required {
  color: var(--destructive);
  text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.pp-field__input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding-inline: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
}

.woocommerce form .form-row textarea {
  height: auto;
  min-height: 5rem;
  padding-block: 0.5rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.pp-field__input:focus {
  border-color: var(--brand);
}

.woocommerce form .form-row .select2-container .select2-selection--single {
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.woocommerce form .form-row .select2-container .select2-selection__rendered {
  line-height: 2.5rem;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  width: 100%;
}

@media (min-width: 640px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    display: inline-block;
    width: calc(50% - 0.5rem);
  }

  .woocommerce form .form-row-first {
    margin-right: 1rem;
  }
}

.pp-field {
  display: block;
  margin-bottom: 1rem;
}

/* Payment methods list */
.woocommerce-checkout #payment {
  border-radius: var(--radius-lg);
  background: none;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0;
  border: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  display: inline;
  font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  padding: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

.woocommerce-checkout #payment .form-row.place-order {
  margin-top: 1.25rem;
  padding: 0;
}

.woocommerce-checkout #payment button#place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background-color: var(--brand);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-foreground);
  cursor: pointer;
}

.woocommerce-checkout #payment button#place_order:hover {
  background-color: var(--brand-dark);
}

/* -- order received ------------------------------------------------------- */

.pp-thanks {
  max-width: 48rem;
}

.pp-thanks__card {
  padding: 2rem;
  text-align: center;
}

.pp-thanks__icon {
  display: inline-flex;
  color: var(--brand);
}

.pp-thanks__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pp-thanks__lead {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-thanks__number {
  font-weight: 600;
  color: var(--foreground);
}

.pp-thanks__facts {
  margin: 1.5rem auto 0;
  max-width: 24rem;
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  padding: 1.25rem;
  text-align: left;
  font-size: 0.75rem;
}

.pp-thanks__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pp-thanks__facts > div:first-child {
  margin-top: 0;
}

.pp-thanks__facts dt {
  color: var(--muted-foreground);
}

.pp-thanks__facts dd {
  margin: 0;
  font-weight: 600;
}

.pp-thanks__pay {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--brand-tint);
  padding: 1.25rem;
  text-align: left;
}

.pp-thanks__paytitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.pp-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* -- my account ----------------------------------------------------------- */

.pp-account {
  max-width: 28rem;
  padding-block: 3.5rem;
}

.pp-account--wide {
  max-width: 56rem;
}

.pp-account__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pp-account__sub {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-account__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pp-account--wide .pp-account__grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .pp-account--wide .pp-account__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pp-account__form {
  padding: 1.5rem;
}

.pp-account__formtitle {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pp-account__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-account__lost,
.pp-account__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.pp-account__lost a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.pp-account__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   28. LAYOUT HOOKS FOR THE NEW TEMPLATES
   Small structural rules for wrappers that previously relied on their parent's
   grid alone. Listed separately so the parity check can confirm every class a
   template prints has a rule.
   ========================================================================== */

/* Grid children on cart and checkout — needed so the aside can stick and the
   main column can shrink instead of overflowing on narrow screens. */
.pp-cart__items,
.pp-checkout__main {
  min-width: 0;
}

.pp-cart__aside,
.pp-checkout__aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  .pp-cart__aside,
  .pp-checkout__aside {
    position: sticky;
    top: 8rem;
    align-self: start;
  }
}

/* Single product info column: cap the measure so the overview paragraph does not
   run the full width of a 1280px card. */
.pp-single__info {
  min-width: 0;
}

.pp-single__info .pp-single__overview {
  max-width: 36rem;
}

/* Sticky bar price block must not shrink when the button grows. */
.pp-stickybar__price {
  flex-shrink: 0;
}

/* Footer wrapper — the outer element footer.php prints. */
.pp-footer-wrap {
  margin-top: auto;
}

/* -- static page + 404 (inline styles moved out of the templates) ---------- */

.pp-mt-4 {
  margin-top: 1rem;
}

.pp-page__figure {
  margin: 1.5rem 0 0;
}

.pp-page__thumb {
  width: 100%;
  border-radius: var(--radius-2xl);
}

.pp-404__inner {
  max-width: 28rem;
}

.pp-404__title {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.pp-404__text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pp-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pp-404__search {
  margin-top: 2rem;
}
