/* Pro Peptide // The Drop // v3 styles
 * Card surface for /the-drop/ (slug internal: overstock).
 * Tokens first; raw hex only where the v3 spec calls a neutral that
 * has no matching token (e.g. the #fafafa card header strip).
 * Montserrat. Weights 600 / 700 / 800 on this surface per v3 brief
 * (DESIGN.md "no 700" rule overridden by the v3 spec for The Drop).
 */

.pp-os {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--pp-text);
}

.pp-os * { box-sizing: border-box; }

/* --- Admin-only placeholder ribbon --- */
.pp-os__ribbon {
  margin: 0 0 24px;
  padding: 10px 16px;
  text-align: center;
  background: var(--pp-warning-tint);
  color: var(--pp-text);
  border: 0.5px solid var(--pp-border, #E5E7EB);
  border-radius: var(--pp-radius-md, 8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* --- Hero (rendered by page template, styled here) --- */
.pp-os__hero {
  max-width: 660px;
  margin: 0 auto 32px;
  text-align: center;
}
.pp-os__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--pp-radius-pill, 999px);
  background: var(--pp-red-tint);
  color: var(--pp-red-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pp-os__h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.pp-os__sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--pp-text-secondary, #6B7280);
  line-height: 1.55;
  margin: 0 0 4px;
}
.pp-os__fineprint {
  font-size: 12px;
  font-weight: 400;
  color: var(--pp-text-tertiary, #9CA3AF);
  font-style: italic;
  margin: 0;
}

/* --- Empty state --- */
.pp-os__empty {
  text-align: center;
  color: var(--pp-text-secondary, #6B7280);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 32px;
}

/* =========================================================================
 * Notify strip (top of page, above first deal card)
 * Input + button matched at 44px tall, 8px radius. Larger left copy.
 * ========================================================================= */
.pp-drop-notify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--pp-bg, #fff);
  border: 0.5px solid var(--pp-border, #E5E7EB);
  border-radius: 14px;
  max-width: 760px;
  margin: 40px auto 0;
}
.pp-drop-notify__copy {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--pp-text-secondary, #6B7280);
}
.pp-drop-notify__copy strong {
  display: inline;
  font-size: 16px;
  font-weight: 700;
  color: var(--pp-text, #343434);
  margin-right: 8px;
}
.pp-drop-notify__tail {
  color: var(--pp-text-secondary, #6B7280);
  font-weight: 400;
}
.pp-drop-notify__form {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.pp-drop-notify__form input[type="email"] {
  height: 44px;
  width: 260px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-text);
  background: var(--pp-bg, #fff);
  border: 1px solid var(--pp-border, #E5E7EB);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pp-drop-notify__form input[type="email"]::placeholder {
  color: var(--pp-text-tertiary, #9CA3AF);
}
.pp-drop-notify__form input[type="email"]:hover {
  border-color: #C7CDD5;
}
.pp-drop-notify__form input[type="email"]:focus {
  border-color: var(--pp-blue, #1f9edb);
  box-shadow: 0 0 0 3px rgba(31, 158, 219, 0.15);
}
.pp-drop-notify__form input[type="email"]:disabled {
  background: var(--pp-bg-tertiary, #F3F4F6);
  cursor: not-allowed;
}
.pp-drop-notify__form button {
  height: 44px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-text-light, #fff);
  background: var(--pp-dark, #343434);
  border: 0;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pp-drop-notify__form button:hover { background: var(--pp-dark-mid, #4a4a4a); }
.pp-drop-notify__form button[disabled],
.pp-drop-notify__form button[aria-disabled="true"] {
  background: var(--pp-disabled-bg, #9CA3AF);
  color: var(--pp-disabled-text, #fff);
  cursor: not-allowed;
  pointer-events: none;
}
.pp-drop-notify__message {
  flex-basis: 100%;
  width: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.pp-drop-notify__message[data-state="success"] { color: #4e9c2a; }
.pp-drop-notify__message[data-state="error"]   { color: #c0384a; }

/* =========================================================================
 * Deal cards — v3 FINAL (vertical cards, image hero top, dots/bar scarcity)
 * 2026-06-01. Supersedes the horizontal v5 cards. Responsive centered grid
 * that fills the 1280px column: 2-3 across on desktop, 1-up under 640px.
 * Equal-height cards via a 2-line clamped blurb + bottom-pinned scarcity.
 * Combined green badge carries both % off and $ saved. Hex inlined.
 * ========================================================================= */
/* Section heading above the grid: signals which products are the drops and
   breaks up the page between the trust strip and the cards. */
.pp-drop-deals-heading {
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--pp-text, #343434);
  margin: 0 0 26px;
}

.pp-drop-deals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.pp-drop-card {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
  background: #fff;
  border: 1px solid #EEE;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.pp-drop-card:has(a.pp-drop-card__link:hover) {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Whole card is the click target = the claim action. Sold-out renders a
   <div> instead of an <a>, so there is no claim action. */
.pp-drop-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Image hero: white, vial centered, large. */
.pp-drop-card__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  padding: 10px;
  background: #fff;
}
.pp-drop-card__img,
.pp-drop-card__hero .pp-drop-card__vial-svg {
  max-height: 230px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pp-drop-card__vial-svg { color: #9CA3AF; width: auto; height: 220px; }

/* Combined green badge, top-left of the image. Carries % off + $ saved. */
.pp-drop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #4e9c2a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Divider under image + centered content. */
.pp-drop-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 16px 18px;
  border-top: 1px solid #F4F4F4;
}
.pp-drop-card__cat {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #9CA3AF;
}
.pp-drop-card__name {
  margin: 0 0 9px;
  font-size: 21px;
  font-weight: 700;
  color: #343434;
  line-height: 1.25;
}
/* Blurb clamped to 2 lines so every card keeps the same height. */
.pp-drop-card__blurb {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #6B7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price. */
.pp-drop-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}
.pp-drop-card__price-new {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #343434;
}
.pp-drop-card__price-old {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: line-through;
}
.pp-drop-card__price--soldout .pp-drop-card__price-new {
  text-decoration: line-through;
  color: #9CA3AF;
}

/* Scarcity dots (batch <= 12). Top margin auto pins scarcity + label to the
   card bottom so short-blurb cards still line up. */
.pp-drop-card__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin: auto 0 8px;
}
.pp-drop-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EEE;
}
.pp-drop-card__dot.is-on { background: #ef4444; }

/* Scarcity bar (batch > 12). */
.pp-drop-card__bar {
  width: 100%;
  max-width: 180px;
  height: 6px;
  background: #FDE8EA;
  border-radius: 999px;
  overflow: hidden;
  margin: auto 0 8px;
}
.pp-drop-card__bar-fill {
  display: block;
  height: 100%;
  background: #ef4444;
  border-radius: 999px;
  transition: width 320ms ease-out;
}

/* "X of Y left" label. Red by default; bold when low. */
.pp-drop-card__left {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #c0384a;
}
.pp-drop-card.is-low .pp-drop-card__left { font-weight: 700; }

/* Sold out: dim card, dots stay grey, label = SOLD OUT, no claim action. */
.pp-drop-card.is-sold-out { opacity: 0.55; }
.pp-drop-card.is-sold-out .pp-drop-card__left {
  color: #9CA3AF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================================
 * Trust strip (3-up row above the first deal card)
 * Static markup. No PHP vars. Inserts once per page.
 * Border removed; single hairline below as a horizontal divider.
 * ========================================================================= */
.pp-drop-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 760px;
  padding: 28px 24px;
  margin: 0 auto 40px;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--pp-border, #E5E7EB);
  border-radius: 0;
}
.pp-drop-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pp-drop-trust__icon {
  flex-shrink: 0;
  color: var(--pp-blue, #1f9edb);
}
.pp-drop-trust__headline {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pp-text, #343434);
  margin-bottom: 4px;
}
.pp-drop-trust__sub {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pp-text-secondary, #6B7280);
}

@media (max-width: 768px) {
  .pp-drop-trust {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .pp-drop-trust__headline { font-size: 15px; }
  .pp-drop-trust__sub      { font-size: 12px; }
}

/* --- Focus (WCAG 2.1 AA) --- */
.pp-os a:focus-visible,
.pp-os button:focus-visible,
.pp-drop-notify__form input:focus-visible {
  outline: none;
  box-shadow: var(--pp-shadow-focus, 0 0 0 3px rgba(31, 158, 219, 0.45));
}
/* Card link: outline (not box-shadow) so the ring isn't clipped by the card's
   overflow:hidden. Inset offset keeps it inside the rounded corners. */
.pp-drop-card__link:focus-visible {
  outline: 2px solid var(--pp-blue, #1f9edb);
  outline-offset: -2px;
  box-shadow: none;
}

/* --- Mobile (< 768px) --- */
@media (max-width: 768px) {
  .pp-os { padding: 28px 16px 60px; }
  .pp-os__h1 { font-size: 32px; }
  .pp-os__sub { font-size: 14px; }

  .pp-drop-notify {
    flex-direction: column;
    align-items: stretch;
  }
  .pp-drop-notify__form { width: 100%; }
  .pp-drop-notify__form input[type="email"] { flex: 1 1 auto; width: auto; }
}

/* Stack to a single full-width column below 640px (grid above). */
@media (max-width: 640px) {
  .pp-drop-card {
    flex-basis: 100%;
    max-width: 420px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .pp-drop-card,
  .pp-drop-card__bar-fill,
  .pp-pdp-overstock__bar-fill { animation: none; transition: none; }
}

/* =========================================================================
 * Overstock PDP — surfaces that appear on the regular WooCommerce single
 * product template when the product is tagged "overstock". Loaded by the
 * same enqueue as the /overstock/ shortcode page. Unchanged from v2.
 * Defaults to red (clearance, urgent) — overrides category color routing
 * on this specific surface.
 * ========================================================================= */

.pp-pdp-page--overstock {
  --os-cat: var(--pp-red);
  --os-cat-text: var(--pp-red-text);
  --os-cat-tint: var(--pp-red-tint);
}

/* H1 pill: small "Overstock" chip on the title row. */
.pp-pdp-overstock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: var(--pp-radius-sm, 6px);
  background: var(--pp-red-tint);
  color: var(--pp-red-text);
  border: 1px solid var(--pp-red);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* Scarcity strip: was/now/save + progress bar, lives in the buybox
 * directly above the WC Add to Cart form. */
.pp-pdp-overstock {
  margin: 14px 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--os-cat);
  border-radius: var(--pp-radius-lg, 12px);
  background: var(--os-cat-tint);
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--pp-text);
}

.pp-pdp-overstock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pp-pdp-overstock__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--os-cat);
  color: #fff;
  border-radius: var(--pp-radius-sm, 6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pp-pdp-overstock__save {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--os-cat);
  border-radius: var(--pp-radius-sm, 6px);
  background: #fff;
  color: var(--os-cat-text);
  font-size: 12px;
  font-weight: 600;
}

.pp-pdp-overstock__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.pp-pdp-overstock__now {
  font-size: 28px;
  font-weight: 600;
  color: var(--os-cat-text);
  line-height: 1;
}

.pp-pdp-overstock__cur {
  font-size: 12px;
  font-weight: 500;
  color: var(--os-cat-text);
  opacity: 0.7;
  margin-left: 4px;
  letter-spacing: 0.4px;
}

.pp-pdp-overstock__was {
  font-size: 15px;
  color: var(--pp-text);
  opacity: 0.55;
  text-decoration: line-through;
}

.pp-pdp-overstock__delta {
  font-size: 13px;
  font-weight: 600;
  color: var(--pp-green-text, #4e9c2a);
}

.pp-pdp-overstock__count {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--pp-text);
}

.pp-pdp-overstock__count strong {
  color: var(--os-cat-text);
  font-weight: 600;
}

.pp-pdp-overstock__bar {
  position: relative;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 8px;
}

.pp-pdp-overstock__bar-fill {
  display: block;
  height: 100%;
  background: var(--os-cat);
  border-radius: 999px;
  transition: width 320ms ease-out;
}

.pp-pdp-overstock__left {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--os-cat-text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
