/* =========================================================================
   PepsFuel — commerce component styles (Agent B)

   Scope: ONLY the commerce surfaces Agent A's sheets do not cover — product
   cards and grid, the PDP (gallery, buy panel, dossier, specifications), the
   cart drawer, the support launcher, the welcome dialog, the purchase toast,
   and light-touch styling for WooCommerce's own cart/checkout markup.

   Everything Agent A already owns is used, not redefined: `.pf-btn*`,
   `.pf-badge*`, `.pf-accordion*`, `.pf-carousel*`, `.pf-container*`,
   `.pf-notice--*`, `.pf-sr-only`, `.numeric`, `.text-eyebrow`,
   `vial-surface`, `vial-contact-shadow`, and the `[data-reveal]` /
   `[data-stagger]` motion states in tokens.css.

   Enqueued at priority 5 from inc/woocommerce.php — i.e. BEFORE A's sheets —
   so the design system always wins on any name that does overlap.

   Values are read from A's tokens with the reference value from
   src/app/globals.css as the fallback.
   ========================================================================= */

/* Cart badge pop and the toast countdown ring, under prefixed names so they
   can never be silently redefined by another sheet. */
@keyframes pf-badge-pop {
  0% { transform: scale(0.7); }
  45% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes pf-toast-countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: var(--pf-ring-circumference); }
}

/* The longer explanatory paragraph inside A's `.pf-notice--banner`, which
   styles its bare <p> as the bold headline. */
.pf-notice--banner p.pf-notice__body {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.85;
}

/* ------------------------------------------------------- vial product plate */
/* The plate itself is A's `vial-surface`; this only sizes the box and lays the
   image inside it, matching ProductMedia.tsx (object-contain, 6% padding). */

.pf-vial {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.pf-vial img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  z-index: 1;
}

.pf-vial--md { border-radius: 10px; }
.pf-vial--lg { border-radius: 14px; }

/* ============================================================ PRODUCT CARD */

.pf-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface, #fff);
  transition:
    border-color var(--duration-base, 280ms) var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--duration-base, 280ms) var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    transform var(--duration-base, 280ms) var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

/* Lift + shadow together read as the card rising toward the light; shadow
   alone reads as the page darkening. 4px is the ceiling before adjacent grid
   rows start visibly jostling. */
.pf-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-200, #bfd7ff);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(8, 17, 32, 0.1), 0 4px 8px rgba(8, 17, 32, 0.04));
}

.pf-card:focus-within {
  border-color: var(--color-brand-300, #93bcff);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(8, 17, 32, 0.1), 0 4px 8px rgba(8, 17, 32, 0.04));
}

.pf-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }

.pf-card__overlay-link { position: absolute; inset: 0; z-index: 1; }

.pf-card__media-inner {
  height: 100%;
  width: 100%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-card:hover .pf-card__media-inner { transform: scale(1.04); }

.pf-card__badges {
  pointer-events: none;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.pf-card__body { display: flex; flex: 1 1 0%; flex-direction: column; padding: 1rem; }

.pf-card__title { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--color-ink, #081120); }
.pf-card__title a { color: inherit; text-decoration: none; transition: color var(--duration-fast, 180ms); }
.pf-card:hover .pf-card__title a { color: var(--color-brand-700, #0a41ae); }

.pf-card__strength { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--color-ink-muted, #5d6879); }

.pf-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-ink-muted, #5d6879);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card__foot { margin-top: auto; padding-top: 1rem; }

/* The hairline separates the buy decision from the description, so the price
   row scans as a unit even when descriptions wrap unevenly. */
.pf-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--color-line, #e2e9f3);
  padding-top: 0.875rem;
}

.pf-price { display: inline-flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.pf-price .amount,
.pf-price ins { font-weight: 600; color: var(--color-ink, #081120); text-decoration: none; }
.pf-price del { font-size: 0.875rem; font-weight: 500; color: var(--color-ink-subtle, #637082); }
.pf-price .woocommerce-Price-currencySymbol { font-weight: inherit; }
.pf-card__price .pf-price { font-size: 1.125rem; }

/* Labelled rather than icon-only: a bare "+" made the primary action the least
   explained element on the card. min-width keeps the Add → Added swap from
   shifting the price column. */
.pf-card__add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  height: 2.5rem;
  min-width: 92px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  border-radius: 10px;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--color-brand-500, #1268ff);
  color: #fff;
  transition:
    background-color var(--duration-fast, 180ms) var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1)),
    transform var(--duration-fast, 180ms) var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1));
}

.pf-card__add:hover { background-color: var(--color-brand-600, #0a51db); }
.pf-card__add:active { transform: scale(0.95); }

.pf-card__add--disabled,
.pf-card__add[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  background-color: var(--color-surface-3, #eef3fb);
  color: var(--color-ink-subtle, #637082);
}

/* Woo's own script also adds `.added`; both drive the same confirmed state. */
.pf-card__add.is-added,
.pf-card__add.added { background-color: var(--color-success, #1b7b51); }

.pf-card__add .pf-icon-check { display: none; }
.pf-card__add.is-added .pf-icon-plus,
.pf-card__add.added .pf-icon-plus { display: none; }
.pf-card__add.is-added .pf-icon-check,
.pf-card__add.added .pf-icon-check {
  display: grid;
  animation: pf-badge-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-card__add .pf-label-added { display: none; }
.pf-card__add.is-added .pf-label-add,
.pf-card__add.added .pf-label-add { display: none; }
.pf-card__add.is-added .pf-label-added,
.pf-card__add.added .pf-label-added { display: inline; }
.pf-card__add.loading { opacity: 0.7; }

/* The "View cart" link WooCommerce appends after an AJAX add. The drawer opens
   instead, so the link would be a second, weaker route to the same place
   directly beside the button that just worked. */
.pf-card__price-row .added_to_cart,
.pf-buy .added_to_cart { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pf-card:hover { transform: none; }
  .pf-card:hover .pf-card__media-inner { transform: none; }
  .pf-card__add:active { transform: none; }
  .pf-card__add.is-added .pf-icon-check,
  .pf-card__add.added .pf-icon-check { animation: none; }
}

/* --------------------------------------------------------------- shop grid */

.pf-shop { padding-top: 2.5rem; padding-bottom: 4rem; }
.pf-shop__header { margin-bottom: 2rem; }
.pf-shop__title { margin: 0.375rem 0 0; }

.pf-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

ul.products.pf-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

ul.products.pf-products > li { list-style: none; margin: 0; width: auto; float: none; }

@media (min-width: 560px) { ul.products.pf-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { ul.products.pf-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { ul.products.pf-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================ SINGLE PRODUCT */

.pf-breadcrumbs {
  border-bottom: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface-2, #f6f9ff);
}

.pf-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-ink-muted, #5d6879);
}

.pf-breadcrumbs li { display: flex; align-items: center; gap: 0.375rem; }
.pf-breadcrumbs a { color: inherit; text-decoration: none; transition: color var(--duration-fast, 180ms); }
.pf-breadcrumbs a:hover { color: var(--color-brand-600, #0a51db); }
.pf-breadcrumbs [aria-current="page"] { font-weight: 500; color: var(--color-ink, #081120); }
.pf-breadcrumbs svg { color: var(--color-ink-subtle, #637082); }

.pf-single { padding-top: 2.5rem; }
.pf-single__grid { display: grid; gap: 2.5rem; }

@media (min-width: 1024px) {
  .pf-single__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 3.5rem; }
  .pf-single__media { position: sticky; top: 6rem; }
}

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

.pf-gallery { display: flex; flex-direction: column; gap: 1rem; }

.pf-gallery__stage {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--color-line, #e2e9f3);
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.pf-gallery__stage.is-magnified { cursor: zoom-out; }

.pf-gallery__stage:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-500, #1268ff) 20%, transparent);
}

.pf-gallery__zoom {
  display: block;
  height: 100%;
  width: 100%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-gallery__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--color-surface, #fff) 90%, transparent);
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-ink-muted, #5d6879);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(8, 17, 32, 0.05));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pf-gallery__rail { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.pf-gallery__thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  padding: 0;
  background: none;
  transition: border-color var(--duration-fast, 180ms), box-shadow var(--duration-fast, 180ms);
}

.pf-gallery__thumb:hover { border-color: var(--color-brand-300, #93bcff); }
.pf-gallery__thumb[aria-pressed="true"] {
  border-color: var(--color-brand-500, #1268ff);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(8, 17, 32, 0.05));
}

@media (prefers-reduced-motion: reduce) { .pf-gallery__zoom { transition: none; } }

/* --------------------------------------------------------------- buy panel */

.pf-buy { display: flex; flex-direction: column; gap: 1.5rem; }

.pf-buy__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }

.pf-buy__title {
  margin: 0;
  font-size: var(--text-display-md, clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem));
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.pf-buy__strength { font-weight: 500; color: var(--color-ink-muted, #5d6879); }
.pf-buy__excerpt { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.65; color: var(--color-ink-muted, #5d6879); }

.pf-buy__price { display: flex; align-items: baseline; gap: 0.625rem; }
.pf-buy__price .pf-price { font-size: 1.5rem; }
.pf-buy__currency {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--color-ink-subtle, #637082);
}
.pf-buy__tax-note { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--color-ink-subtle, #637082); }

.pf-buy__stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink, #081120);
}
.pf-buy__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--color-ink-subtle, #637082);
}
.pf-buy__dot--in { background-color: var(--color-success, #1b7b51); }
.pf-buy__dot--pre { background-color: var(--color-brand-500, #1268ff); }

.pf-buy__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* WooCommerce's own add-to-cart form, restyled as the reference's quantity +
   CTA row. The form itself is untouched so every product type still posts and
   every gateway-facing flow is unchanged. */
.pf-buy form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; }
.pf-buy form.cart .quantity { flex-shrink: 0; }

.pf-buy form.cart .single_add_to_cart_button {
  flex: 1 1 0%;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  border: 0;
  border-radius: 10px;
  background-color: var(--color-brand-500, #1268ff);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(8, 17, 32, 0.06));
  transition:
    background-color var(--duration-fast, 180ms) var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1)),
    box-shadow var(--duration-fast, 180ms) var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1)),
    transform var(--duration-fast, 180ms) var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1));
}

.pf-buy form.cart .single_add_to_cart_button:hover {
  background-color: var(--color-brand-600, #0a51db);
  box-shadow: var(--shadow-brand, 0 8px 28px rgba(18, 104, 255, 0.22));
  transform: translateY(-1px);
}

.pf-buy form.cart .single_add_to_cart_button.disabled,
.pf-buy form.cart .single_add_to_cart_button:disabled { opacity: 0.5; pointer-events: none; }
.pf-buy form.cart .single_add_to_cart_button.loading { opacity: 0.7; }
.pf-buy form.cart .single_add_to_cart_button.is-added { background-color: var(--color-success, #1b7b51); }

@media (prefers-reduced-motion: reduce) {
  .pf-buy form.cart .single_add_to_cart_button:hover { transform: none; }
}

.pf-buy__facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface-2, #f6f9ff);
  padding: 1rem;
  font-size: 0.8125rem;
}

.pf-buy__fact { display: flex; gap: 0.625rem; }
.pf-buy__fact + .pf-buy__fact { border-top: 1px solid var(--color-line, #e2e9f3); padding-top: 0.75rem; }
.pf-buy__fact svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--color-ink-subtle, #637082); }
.pf-buy__fact dt { font-weight: 600; color: var(--color-ink, #081120); }
.pf-buy__fact dd { margin: 0.125rem 0 0; color: var(--color-ink-muted, #5d6879); }

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

.pf-qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
}

/* On the PDP the stepper matches the lg button height, so the row reads as one
   control instead of a small widget beside a large one. */
.pf-qty--lg,
.pf-buy form.cart .quantity.pf-qty { height: 52px; border-radius: 10px; }

.pf-qty__btn {
  display: grid;
  height: 100%;
  width: 2rem;
  place-items: center;
  border: 0;
  background: none;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-ink-muted, #5d6879);
  transition: background-color var(--duration-fast, 180ms), color var(--duration-fast, 180ms);
}

.pf-qty--lg .pf-qty__btn,
.pf-buy form.cart .quantity.pf-qty .pf-qty__btn { width: 2.75rem; }
.pf-qty__btn:hover:not(:disabled) { background-color: var(--color-surface-3, #eef3fb); color: var(--color-ink, #081120); }
.pf-qty__btn:disabled { opacity: 0.35; cursor: not-allowed; }

.pf-qty__value,
.pf-qty input.qty {
  width: 2rem;
  border: 0;
  background: none;
  text-align: center;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pf-qty--lg .pf-qty__value,
.pf-buy form.cart .quantity.pf-qty input.qty { width: 2.5rem; font-size: 1rem; }

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

/* --------------------------------------------------------- dossier sections */

.pf-detail { padding-top: 3.5rem; padding-bottom: 3.5rem; background-color: var(--color-surface-2, #f6f9ff); }
.pf-detail__grid { display: grid; gap: 2.5rem; }

@media (min-width: 1024px) {
  .pf-detail__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; }
  .pf-detail__aside { position: sticky; top: 6rem; }
}

.pf-dossier { display: flex; flex-direction: column; gap: 3rem; }

.pf-dossier__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--color-brand-600, #0a51db) 85%, transparent);
}

.pf-dossier__head { margin-top: 0.375rem; display: flex; align-items: center; gap: 1.25rem; }

.pf-dossier__title {
  margin: 0;
  font-size: var(--text-display-sm, clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem));
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.pf-dossier__rule { height: 1px; min-width: 2rem; flex: 1 1 0%; background-color: var(--color-line, #e2e9f3); }

.pf-dossier__body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-ink-muted, #5d6879);
}

.pf-dossier__body p { margin: 0; }
.pf-dossier__doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }

.pf-storage {
  display: flex;
  gap: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface, #fff);
  padding: 1.25rem;
}

.pf-storage svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--color-accent-600, #0c8887); }
.pf-storage p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--color-ink-muted, #5d6879); }

.pf-specs {
  border-radius: 16px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface, #fff);
  padding: 1.5rem;
}

.pf-specs h2 { margin: 0; font-size: 0.875rem; font-weight: 600; }
.pf-specs dl { margin: 1rem 0 0; font-size: 0.8125rem; }
.pf-specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--color-line, #e2e9f3);
}
.pf-specs__row:first-child { border-top: 0; }
.pf-specs dt { margin: 0; color: var(--color-ink-muted, #5d6879); }
.pf-specs dd { margin: 0; text-align: right; font-weight: 500; color: var(--color-ink, #081120); }

.pf-related { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pf-related h2 { margin: 0 0 2rem; font-size: var(--text-display-sm, 1.625rem); }

.pf-reviews { padding-bottom: 3.5rem; }
.pf-reviews h2 { font-size: var(--text-display-sm, 1.625rem); }
.pf-reviews .comment-form input[type="text"],
.pf-reviews .comment-form input[type="email"],
.pf-reviews .comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
}

/* ============================================================= CART DRAWER */

.pf-drawer-root { position: fixed; inset: 0; z-index: 100; }
.pf-drawer-root[hidden] { display: none; }

.pf-drawer__overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-brand-950, #04122f) 45%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 240ms linear;
}

.pf-drawer-root.is-open .pf-drawer__overlay { opacity: 1; }

.pf-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  width: 100%;
  max-width: 420px;
  flex-direction: column;
  background-color: var(--color-surface, #fff);
  box-shadow: var(--shadow-xl, 0 24px 56px rgba(8, 17, 32, 0.12), 0 8px 16px rgba(8, 17, 32, 0.05));
  outline: none;
  transform: translateX(100%);
  transition: transform var(--duration-base, 280ms) var(--ease-exit, cubic-bezier(0.4, 0, 1, 1));
}

.pf-drawer-root.is-open .pf-drawer__panel {
  transform: translateX(0);
  transition: transform 360ms var(--ease-emphasis, cubic-bezier(0.16, 1, 0.3, 1));
}

.pf-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-line, #e2e9f3);
  padding: 1rem 1.25rem;
}

.pf-drawer__title { margin: 0; font-size: 1rem; font-weight: 600; }

.pf-drawer__close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-ink-muted, #5d6879);
  transition: background-color var(--duration-fast, 180ms), color var(--duration-fast, 180ms);
}
.pf-drawer__close:hover { background-color: var(--color-surface-3, #eef3fb); color: var(--color-ink, #081120); }

.pf-drawer__body { flex: 1 1 0%; overflow-y: auto; overscroll-behavior: contain; }

.pf-drawer__footer {
  border-top: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface-2, #f6f9ff);
  padding: 1.25rem;
}
.pf-drawer__footer[hidden] { display: none; }

.pf-cart-lines { list-style: none; margin: 0; padding: 0; }
.pf-cart-lines > li + li { border-top: 1px solid var(--color-line, #e2e9f3); }

.pf-cart-line { display: flex; gap: 0.875rem; padding: 1.25rem; }
.pf-cart-line.is-busy { opacity: 0.55; pointer-events: none; }

.pf-cart-line__thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-line, #e2e9f3);
}

.pf-cart-line__main { min-width: 0; flex: 1 1 0%; }
.pf-cart-line__name { font-size: 0.9375rem; font-weight: 500; color: var(--color-ink, #081120); text-decoration: none; }
.pf-cart-line__name:hover { color: var(--color-brand-600, #0a51db); }
.pf-cart-line__meta { margin: 0; font-size: 0.8125rem; color: var(--color-ink-muted, #5d6879); }
.pf-cart-line__each { color: var(--color-ink-subtle, #637082); }
.pf-cart-line__row { margin-top: 0.625rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pf-cart-line__total { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.pf-cart-line__remove {
  align-self: flex-start;
  border: 0;
  border-radius: 6px;
  background: none;
  padding: 0.375rem;
  color: var(--color-ink-subtle, #637082);
  transition: background-color var(--duration-fast, 180ms), color var(--duration-fast, 180ms);
}
.pf-cart-line__remove:hover { background-color: var(--color-danger-bg, #fdecea); color: var(--color-danger, #b3261e); }

.pf-ship { padding: 1.25rem; border-bottom: 1px solid var(--color-line, #e2e9f3); }
.pf-ship__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  color: var(--color-ink-muted, #5d6879);
}
.pf-ship__label svg { flex-shrink: 0; }
.pf-ship__label strong { font-weight: 600; color: var(--color-ink, #081120); font-variant-numeric: tabular-nums; }
.pf-ship__label--met { color: var(--color-success, #1b7b51); font-weight: 500; }
.pf-ship__track { height: 6px; overflow: hidden; border-radius: 9999px; background-color: var(--color-surface-3, #eef3fb); }
.pf-ship__fill {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-brand-500, #1268ff);
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-ship__fill--met { background-color: var(--color-success, #1b7b51); }

.pf-drawer__subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.pf-drawer__subtotal-label { font-size: 0.875rem; font-weight: 500; color: var(--color-ink-muted, #5d6879); }
.pf-drawer__note { margin: 0 0 1rem; font-size: 0.75rem; color: var(--color-ink-subtle, #637082); }
.pf-drawer__actions { display: flex; flex-direction: column; gap: 0.5rem; }

.pf-empty { padding: 2.5rem 1.25rem; text-align: center; }
.pf-empty__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--color-surface-3, #eef3fb);
  color: var(--color-ink-muted, #5d6879);
}
.pf-empty__title { margin: 0; font-size: 1rem; font-weight: 600; }
.pf-empty__body { margin: 0.375rem 0 1.25rem; font-size: 0.875rem; color: var(--color-ink-muted, #5d6879); }

@media (prefers-reduced-motion: reduce) {
  .pf-drawer__panel,
  .pf-drawer-root.is-open .pf-drawer__panel,
  .pf-drawer__overlay,
  .pf-ship__fill { transition: none !important; }
}

/* ========================================================= SUPPORT LAUNCHER */

.pf-support { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; }
@media print { .pf-support { display: none; } }

.pf-support__panel {
  position: absolute;
  right: 0;
  bottom: 4.5rem;
  width: min(310px, calc(100vw - 2.5rem));
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface, #fff);
  box-shadow: 0 24px 50px -16px rgb(7 29 73 / 0.35);
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  visibility: hidden;
  transition:
    opacity 160ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1)),
    transform 160ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1)),
    visibility 0s linear 160ms;
}

/* Spring-feel entrance: an over-shooting curve stands in for the reference's
   framer-motion spring (stiffness 400, damping 30, mass 0.7). */
.pf-support.is-open .pf-support__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
  transition:
    opacity 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.22, 1.32, 0.36, 1),
    visibility 0s;
}

.pf-support__head { background-color: var(--color-brand-900, #071d49); padding: 1rem 1.25rem; color: #fff; }
.pf-support__head p { margin: 0; }
.pf-support__head-title { font-size: 1.0625rem; font-weight: 600; }
.pf-support__head-body {
  margin-top: 0.25rem !important;
  font-size: 0.75rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-brand-100, #dbe8ff) 75%, transparent);
}

.pf-support__list { padding: 0.625rem; }
.pf-support__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 14px;
  padding: 0.75rem;
  text-decoration: none;
  transition: background-color var(--duration-fast, 180ms);
}
.pf-support__item:hover { background-color: var(--color-surface-2, #f6f9ff); }
.pf-support__glyph {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--color-brand-50, #eff5ff);
  color: var(--color-brand-600, #0a51db);
}
.pf-support__glyph--accent { background-color: var(--color-accent-50, #eefdfb); color: var(--color-accent-700, #0e6c6d); }
.pf-support__item-title { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--color-ink, #081120); }
.pf-support__item-body {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--color-ink-muted, #5d6879);
}

.pf-support__hours {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-top: 1px solid var(--color-line, #e2e9f3);
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  color: var(--color-ink-subtle, #637082);
}

.pf-support__button {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background-color: var(--color-brand-900, #071d49);
  color: #fff;
  box-shadow: 0 10px 28px -6px rgb(7 29 73 / 0.55);
  transition: background-color var(--duration-fast, 180ms), transform 120ms var(--ease-micro, cubic-bezier(0.4, 0, 0.2, 1));
}
.pf-support__button:hover { background-color: var(--color-brand-800, #0d388a); }
.pf-support__button:active { transform: scale(0.93); }

.pf-support__button .pf-icon-x { display: none; }
.pf-support.is-open .pf-support__button .pf-icon-x { display: block; }
.pf-support.is-open .pf-support__button .pf-icon-headset { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pf-support__panel,
  .pf-support.is-open .pf-support__panel,
  .pf-support__button:active { transition: none !important; transform: none !important; }
}

/* ========================================================== WELCOME DIALOG */

.pf-welcome { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.pf-welcome[hidden] { display: none; }

.pf-welcome__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background-color: color-mix(in srgb, var(--color-brand-900, #071d49) 55%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 240ms linear;
}
.pf-welcome.is-open .pf-welcome__overlay { opacity: 1; }

.pf-welcome__panel {
  position: relative;
  width: 100%;
  max-width: 840px;
  overflow: hidden;
  border-radius: 26px;
  background-color: var(--color-surface, #fff);
  box-shadow: 0 40px 90px -24px rgb(7 29 73 / 0.5);
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition:
    opacity 200ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1)),
    transform 200ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1));
}

.pf-welcome.is-open .pf-welcome__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition:
    opacity 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 440ms cubic-bezier(0.22, 1.28, 0.36, 1);
}

.pf-welcome__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 10;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--color-surface, #fff) 85%, transparent);
  color: var(--color-ink-muted, #5d6879);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pf-welcome__close:hover { background-color: var(--color-surface-3, #eef3fb); color: var(--color-ink, #081120); }

.pf-welcome__grid { display: grid; }
@media (min-width: 768px) { .pf-welcome__grid { grid-template-columns: 0.85fr 1fr; } }

.pf-welcome__art { position: relative; display: none; min-height: 420px; }
@media (min-width: 768px) { .pf-welcome__art { display: block; } }
.pf-welcome__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-welcome__art-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-brand-900, #071d49) 85%, transparent),
    color-mix(in srgb, var(--color-brand-900, #071d49) 35%, transparent) 55%,
    color-mix(in srgb, var(--color-brand-900, #071d49) 10%, transparent)
  );
}
.pf-welcome__art-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; color: #fff; }
.pf-welcome__art-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pf-welcome__art-line { margin: 0.5rem 0 0; font-size: 1.375rem; line-height: 1.35; font-weight: 600; }

.pf-welcome__body { padding: 1.75rem; }
@media (min-width: 640px) { .pf-welcome__body { padding: 2.25rem; } }

.pf-welcome__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-600, #0a51db);
}
.pf-welcome__title { margin: 0.5rem 0 0; font-size: 1.75rem; line-height: 1.15; font-weight: 600; color: var(--color-brand-900, #071d49); }
.pf-welcome__lede { margin: 0.625rem 0 0; font-size: 0.875rem; line-height: 1.65; color: var(--color-ink-muted, #5d6879); }

.pf-field { display: flex; flex-direction: column; gap: 0.375rem; }
.pf-field__label { font-size: 0.8125rem; font-weight: 600; color: var(--color-ink, #081120); }
.pf-field__input {
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  background-color: var(--color-surface, #fff);
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-ink, #081120);
  transition: border-color var(--duration-fast, 180ms), box-shadow var(--duration-fast, 180ms);
}
.pf-field__input:focus {
  outline: none;
  border-color: var(--color-brand-400, #6096ff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-500, #1268ff) 12%, transparent);
}
.pf-field__input[aria-invalid="true"] { border-color: var(--color-danger, #b3261e); }
.pf-field__hint { font-size: 0.75rem; color: var(--color-ink-subtle, #637082); }
.pf-field__error { margin: 0.375rem 0 0; font-size: 0.75rem; font-weight: 500; color: var(--color-danger, #b3261e); }
.pf-field__error[hidden] { display: none; }

.pf-welcome__fields { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; }

.pf-consent {
  margin-top: 1rem;
  display: flex;
  gap: 0.625rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--color-ink-muted, #5d6879);
  cursor: pointer;
}
.pf-consent input { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--color-brand-500, #1268ff); }

.pf-welcome__alert {
  margin-top: 0.75rem;
  border-radius: 10px;
  background-color: var(--color-warn-bg, #fdf4e3);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--color-warn, #8a5f0f);
}
.pf-welcome__alert[hidden] { display: none; }

.pf-welcome__decline {
  margin-top: 0.75rem;
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-ink-subtle, #637082);
  transition: color var(--duration-fast, 180ms);
}
.pf-welcome__decline:hover { color: var(--color-ink, #081120); }

.pf-welcome__tick {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--color-success-bg, #e8f6ef);
  color: var(--color-success, #1b7b51);
}

.pf-welcome__code-row { margin-top: 1.25rem; display: flex; align-items: stretch; gap: 0.5rem; }
.pf-welcome__code {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px dashed var(--color-brand-400, #6096ff);
  background-color: var(--color-brand-50, #eff5ff);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-brand-700, #0a41ae);
}
.pf-welcome__copy {
  display: grid;
  width: 3.5rem;
  place-items: center;
  border: 1px solid var(--color-line, #e2e9f3);
  border-radius: 14px;
  background: none;
  color: var(--color-ink-muted, #5d6879);
  transition: background-color var(--duration-fast, 180ms), color var(--duration-fast, 180ms);
}
.pf-welcome__copy:hover { background-color: var(--color-surface-2, #f6f9ff); color: var(--color-ink, #081120); }
.pf-welcome__copy .pf-icon-check { display: none; color: var(--color-success, #1b7b51); }
.pf-welcome__copy.is-copied .pf-icon-check { display: block; }
.pf-welcome__copy.is-copied .pf-icon-copy { display: none; }

.pf-welcome__terms { margin-top: 1rem; font-size: 0.75rem; line-height: 1.65; color: var(--color-ink-muted, #5d6879); }

@media (prefers-reduced-motion: reduce) {
  .pf-welcome__panel,
  .pf-welcome.is-open .pf-welcome__panel,
  .pf-welcome__overlay { transition: none !important; transform: none !important; }
}

/* =========================================================== PURCHASE TOAST */

.pf-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  width: min(348px, calc(100vw - 2.5rem));
  border-radius: 22px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: color-mix(in srgb, var(--color-surface, #fff) 95%, transparent);
  padding: 0.75rem 0.625rem 0.75rem 0.75rem;
  box-shadow: 0 18px 40px -12px rgb(7 29 73 / 0.28), 0 2px 6px -1px rgb(7 29 73 / 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform-origin: bottom left;
  opacity: 0;
  transform: scale(0.86) translate(-28px, 16px);
  visibility: hidden;
  transition:
    opacity 260ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1)),
    transform 260ms var(--ease-exit, cubic-bezier(0.4, 0, 1, 1)),
    visibility 0s linear 260ms;
}

/* Clear of the PDP's sticky mobile bar. */
@media (max-width: 639px) { .pf-toast { bottom: 5rem; } }

/* Slightly under-damped, so it settles with a small bounce rather than sliding
   to a stop — stands in for spring(380, 26, 0.8). */
.pf-toast.is-visible {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  visibility: visible;
  transition:
    opacity 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.22, 1.35, 0.36, 1),
    visibility 0s;
}

.pf-toast__inner { display: flex; align-items: center; gap: 0.75rem; }

.pf-toast__thumb {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--color-line, #e2e9f3);
}
.pf-toast__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

.pf-toast__main { min-width: 0; flex: 1 1 0%; }
.pf-toast__line {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--color-ink, #081120);
}
.pf-toast__place { font-weight: 600; }
.pf-toast__product {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-brand-700, #0a41ae);
  text-decoration: none;
}
.pf-toast__product:hover { text-decoration: underline; }
.pf-toast__time { margin: 0.125rem 0 0; font-size: 0.6875rem; color: var(--color-ink-subtle, #637082); }

/* The ring wraps the dismiss control rather than the whole card: it stays
   legible at 32px and points at the thing that ends this early. */
.pf-toast__dismiss-wrap { position: relative; width: 2rem; height: 2rem; flex-shrink: 0; align-self: flex-start; }

.pf-toast__ring { pointer-events: none; position: absolute; inset: 0; transform: rotate(-90deg); }
.pf-toast__ring-track { color: var(--color-line, #e2e9f3); }
.pf-toast__ring-progress {
  color: var(--color-brand-500, #1268ff);
  animation: pf-toast-countdown var(--pf-ring-duration, 10000ms) linear forwards;
}
.pf-toast.is-paused .pf-toast__ring-progress { animation-play-state: paused; }

.pf-toast__dismiss {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: var(--color-ink-subtle, #637082);
  transition: background-color var(--duration-fast, 180ms), color var(--duration-fast, 180ms);
}
.pf-toast__dismiss:hover { background-color: var(--color-surface-3, #eef3fb); color: var(--color-ink, #081120); }

@media (prefers-reduced-motion: reduce) {
  .pf-toast,
  .pf-toast.is-visible { transition: none !important; transform: none !important; }
  .pf-toast__ring { display: none; }
}

/* ================================================= CART + CHECKOUT (light) */
/*
 * Deliberately presentational only. No WooCommerce checkout internals are
 * overridden, so every payment gateway works exactly as on a default theme.
 */

.woocommerce-cart .pf-main,
.woocommerce-checkout .pf-main,
.woocommerce-account .pf-main { padding-top: 2.5rem; padding-bottom: 4rem; }

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-line, #e2e9f3);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-surface, #fff);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-line, #e2e9f3);
  text-align: left;
  vertical-align: middle;
}

.woocommerce table.shop_table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-subtle, #637082);
  background-color: var(--color-surface-2, #f6f9ff);
}

.woocommerce .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order {
  border-radius: 16px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface-2, #f6f9ff);
  padding: 1.5rem;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-size: 1.0625rem; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border: 0;
  border-radius: 10px;
  background-color: var(--color-brand-500, #1268ff);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--duration-fast, 180ms);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background-color: var(--color-brand-600, #0a51db); }

.woocommerce #place_order,
.woocommerce .checkout-button { height: 52px; width: 100%; font-size: 1rem; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  background-color: var(--color-surface, #fff);
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-ink, #081120);
}

.woocommerce form .form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
}

.woocommerce form .form-row label { font-size: 0.8125rem; font-weight: 600; color: var(--color-ink, #081120); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  border-radius: 10px;
  border: 1px solid var(--color-line, #e2e9f3);
  background-color: var(--color-surface-2, #f6f9ff);
  padding: 0.875rem 1rem;
}

.woocommerce-error {
  border-color: color-mix(in srgb, var(--color-danger, #b3261e) 25%, transparent);
  background-color: var(--color-danger-bg, #fdecea);
  color: var(--color-danger, #b3261e);
}

.woocommerce #payment ul.payment_methods { border-bottom: 1px solid var(--color-line, #e2e9f3); }
.woocommerce #payment div.form-row { padding: 1rem 0 0; }

.pf-checkout-notice { margin-bottom: 1.5rem; }

/* Archive toolbar — Woo's native result count and ordering select. */
.pf-shop__toolbar .woocommerce-result-count { margin: 0; font-size: 0.8125rem; color: var(--color-ink-muted, #5d6879); }
.pf-shop__toolbar .woocommerce-ordering { margin: 0; }
.pf-shop__toolbar select {
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  background-color: var(--color-surface, #fff);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-ink, #081120);
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border: 0;
}

.woocommerce-pagination .page-numbers li .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--color-line-strong, #cfd9e8);
  background-color: var(--color-surface, #fff);
  color: var(--color-ink, #081120);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.woocommerce-pagination .page-numbers li .page-numbers.current {
  background-color: var(--color-brand-500, #1268ff);
  border-color: var(--color-brand-500, #1268ff);
  color: #fff;
}
