/**
 * Wholesale member PDP — delta styles only.
 * Extends catalog/view/theme/default/stylesheet/standard-product.css
 * Keep retail look; layer business purchasing features on top.
 */

body.dfa-wholesale-pdp {
  --wp-yellow: #fbf6e9;
  --wp-green-soft: #f0f9f4;
  --wp-green: #2d8a5b;
  --wp-green-deep: #1f6f49;
}

/* ── Three-column wholesale pricing ── */
.wp-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--sp-line);
}

.wp-pricing__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-pricing__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sp-muted);
  line-height: 1.25;
}

.wp-pricing__value {
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-black);
  line-height: 1.15;
  word-break: break-word;
}

.wp-pricing__value--muted {
  color: var(--sp-muted);
  font-weight: 700;
}

.wp-pricing__value--wholesale {
  color: var(--sp-red);
  font-size: clamp(1.2rem, 4.15vw, 1.55rem); /* ~15% larger than sibling prices */
}

.wp-pricing__unit {
  font-size: 0.72em;
  font-weight: 700;
}

.wp-pricing__value--save {
  color: var(--wp-green);
}

/* ── Info row (4 cards) ── */
.wp-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.wp-info-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 11px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: #fff;
}

.wp-info-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fde8ea;
  color: var(--sp-red);
  margin-bottom: 2px;
}

.wp-info-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-muted);
  line-height: 1.2;
}

.wp-info-card__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.25;
}

/* ── Volume pricing card ── */
.wp-volume {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: #fff;
}

.wp-volume__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wp-volume__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sp-red);
}

.wp-volume__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wp-volume__table th,
.wp-volume__table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--sp-line);
  text-align: left;
}

.wp-volume__table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sp-muted);
}

.wp-volume__table td:last-child,
.wp-volume__table th:last-child {
  text-align: right;
  font-weight: 700;
}

.wp-volume__table tr.is-active td {
  color: var(--sp-red);
}

.wp-volume__banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--wp-green-soft);
  color: var(--wp-green);
  font-size: 13px;
  font-weight: 700;
}

/* ── Qty + inventory ── */
.wp-purchase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.wp-qty {
  max-width: none;
  width: 100%;
}

.wp-qty__input {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.wp-qty__hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-muted);
}

.wp-inventory {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wp-inventory__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wp-inventory__units {
  font-size: 14px;
  font-weight: 800;
  color: var(--sp-black);
  line-height: 1.2;
}

.wp-inventory__cases {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-muted);
}

/* ── Offer CTA ── */
.wp-offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1.5px solid #E60012;
  border-radius: 999px;
  background: #fff;
  color: #E60012;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.wp-offer-btn:hover {
  background: #fff5f6;
}

.wp-offer-btn[aria-expanded="true"] {
  background: #fff5f6;
}

.wp-offer-btn:active {
  transform: scale(0.985);
}

.wp-offer-sub {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--sp-muted);
  line-height: 1.35;
}

/* ── Wholesale Club Benefits ── */
.wp-benefits {
  margin: 28px 0 8px;
  padding: 18px 16px 16px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
}

.wp-benefits__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-black);
}

.wp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.wp-benefits__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wp-benefits__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fde8ea;
  color: var(--sp-red);
}

.wp-benefits__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.25;
}

/* ── Inline offer form ── */
.wp-offer {
  container-type: inline-size;
  margin-top: 0;
  max-width: 100%;
}

.wp-offer,
.wp-offer * {
  box-sizing: border-box;
}

.wp-offer-panel {
  position: static;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 16px 16px 18px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.06);
}

.wp-offer-panel[hidden] {
  display: none !important;
}

.wp-offer-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wp-offer-panel__bar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #111;
}

.wp-offer-close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wp-offer-close:hover {
  background: #fafafa;
}

.wp-offer-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 12px;
}

.wp-offer-summary__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.wp-offer-summary__name {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #111;
}

.wp-offer-summary__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
}

.wp-offer-summary__stats dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
}

.wp-offer-summary__stats dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.wp-offer-summary__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b6b6b;
}

.wp-offer-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wp-offer-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.wp-offer-field input,
.wp-offer-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.wp-offer-field textarea {
  min-height: 96px;
  resize: vertical;
}

.wp-offer-field input:focus,
.wp-offer-field textarea:focus {
  outline: 2px solid rgba(230, 0, 18, 0.28);
  border-color: #E60012;
}

.wp-offer-price {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  padding-left: 12px;
}

.wp-offer-price span {
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 700;
}

.wp-offer-price input {
  border: none;
  border-radius: 10px;
  padding-left: 4px;
}

.wp-offer-price:focus-within {
  outline: 2px solid rgba(230, 0, 18, 0.28);
  border-color: #E60012;
}

.wp-offer-field.is-invalid input,
.wp-offer-field.is-invalid textarea,
.wp-offer-field.is-invalid .wp-offer-price {
  border-color: #E60012;
}

.wp-offer-error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #E60012;
}

.wp-offer-form[hidden],
.wp-offer-error[hidden],
.wp-offer-status[hidden],
.wp-offer-success[hidden],
.wp-offer-summary__note[hidden] {
  display: none !important;
}

.wp-offer-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #E60012;
}

.wp-offer-actions {
  margin-top: 16px;
}

.wp-offer-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #E60012;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(230, 0, 18, 0.18);
}

.wp-offer-submit:hover:not(:disabled) {
  background: #cc0010;
}

.wp-offer-submit:disabled {
  background: #c9c9c9;
  box-shadow: none;
  cursor: not-allowed;
}

.wp-offer-success h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.wp-offer-success p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1a1a;
}

.wp-offer-success__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #E60012;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@container (min-width: 460px) {
  .wp-offer-fields {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }

  .wp-offer-field--full {
    grid-column: 1 / -1;
  }

  .wp-offer-submit {
    width: auto;
    min-width: 220px;
  }
}

@supports not (container-type: inline-size) {
  @media (min-width: 992px) {
    .wp-offer-fields {
      grid-template-columns: 1fr 1fr;
      gap: 14px 16px;
    }

    .wp-offer-field--full {
      grid-column: 1 / -1;
    }

    .wp-offer-submit {
      width: auto;
      min-width: 220px;
    }
  }
}

@media (max-width: 767px) {
  .wp-offer-panel {
    scroll-margin-bottom: calc(var(--sp-mobile-nav) + 96px + env(safe-area-inset-bottom, 0px));
  }

  .wp-offer-submit {
    scroll-margin-bottom: calc(var(--sp-mobile-nav) + 96px + env(safe-area-inset-bottom, 0px));
  }
}

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

  .wp-benefits__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .wp-purchase-grid {
    grid-template-columns: minmax(220px, 280px) auto;
  }
}

@media (max-width: 420px) {
  .wp-pricing {
    gap: 8px;
  }

  .wp-pricing__label {
    font-size: 10px;
  }

  .wp-inventory {
    min-width: 0;
  }
}

/* Wholesale gallery: large uncropped image, thumbnails in a row beneath it. */
body.dfa-wholesale-pdp .sp-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 8px;
  grid-template-columns: none;
  grid-template-areas: none;
}

body.dfa-wholesale-pdp .sp-gallery__stage {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

body.dfa-wholesale-pdp .sp-gallery__main-link {
  padding: 12px;
}

body.dfa-wholesale-pdp .sp-gallery__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

body.dfa-wholesale-pdp .sp-gallery__thumbs-wrap {
  width: 100%;
  max-width: 520px;
  margin-top: 12px;
  align-self: center;
}

body.dfa-wholesale-pdp .sp-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
}

body.dfa-wholesale-pdp .sp-gallery__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

body.dfa-wholesale-pdp .sp-gallery__thumb img {
  object-fit: contain;
}

body.dfa-wholesale-pdp .sp-gallery__dots {
  display: none;
}

.wp-size {
  margin: -6px 0 12px;
  color: var(--sp-muted);
  font-size: 14px;
  font-weight: 600;
}

.wp-pricing__basis {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-muted);
  text-transform: lowercase;
}

.wp-pack-note {
  margin: -8px 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-black);
}

.wp-case-total {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-black);
}

.wp-inventory__status {
  font-size: 13px;
  font-weight: 800;
}

.wp-inventory__status.is-in {
  color: var(--wp-green);
}

.wp-inventory__status.is-out {
  color: var(--sp-red);
}

.wp-empty {
  margin: 0 0 12px;
  color: var(--sp-muted);
  font-size: 15px;
}

.wp-subhead {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.wp-highlights {
  margin: 8px 0 0;
  padding-left: 18px;
}

.wp-highlights li + li {
  margin-top: 6px;
}

.wp-review-summary {
  margin: 0 0 14px;
  font-weight: 700;
}

.wp-review-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 480px;
}

.wp-review-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.wp-review-form input,
.wp-review-form textarea,
.wp-review-form select {
  width: 100%;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}

.wp-review-submit {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--sp-red);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
}

@media (max-width: 767px) {
  body.dfa-wholesale-pdp .sp-sticky {
    display: none !important;
    transform: none;
  }

  body.dfa-wholesale-pdp .sp-sticky.is-visible {
    display: block !important;
  }

  body.dfa-wholesale-pdp .sp-sticky:not(.is-visible) {
    pointer-events: none;
  }

  body.dfa-wholesale-pdp .sp-page {
    padding-bottom: calc(104px + var(--sp-mobile-nav) + env(safe-area-inset-bottom, 0px));
  }

  body.dfa-wholesale-pdp .sp-sticky__price strong {
    white-space: nowrap;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.dfa-wholesale-pdp .sp-sticky__atc {
    max-width: min(42vw, 148px);
    padding: 0 12px;
    font-size: 12px;
    gap: 6px;
  }

  body.dfa-wholesale-pdp .sp-sticky__atc span {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 768px) {
  body.dfa-wholesale-pdp .sp-gallery {
    max-width: none;
    align-items: flex-start;
  }

  body.dfa-wholesale-pdp .sp-gallery__stage,
  body.dfa-wholesale-pdp .sp-gallery__thumbs-wrap {
    max-width: 100%;
  }
}

/* Restored wholesale PDP — reference layout */

body.dfa-wholesale-pdp {
  --sp-red: #E30613;
  --wp-green: #1b8a45;
}

.wp-status-bar {
  background: #E30613;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  line-height: 1.3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.wp-verified__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1b8a45;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.wp-verified strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  color: #111;
}

.wp-verified small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #6b6b6b;
  line-height: 1.2;
}

body.dfa-wholesale-pdp .sp-brand,
body.dfa-wholesale-pdp .sp-brand a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
}

body.dfa-wholesale-pdp .sp-title {
  font-size: clamp(1.25rem, 5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2px 0 8px;
}

body.dfa-wholesale-pdp .sp-rating {
  margin-bottom: 14px;
}

body.dfa-wholesale-pdp .wp-pricing {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 0.85fr;
  align-items: start;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 0 0 4px;
  border-bottom: 0;
}

body.dfa-wholesale-pdp .wp-pricing__label {
  min-height: 2.5em;
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

body.dfa-wholesale-pdp .wp-pricing__value {
  font-size: clamp(0.95rem, 3.2vw, 1.3rem);
  white-space: nowrap;
}

body.dfa-wholesale-pdp .wp-pricing__value--wholesale {
  font-size: clamp(1.09rem, 3.7vw, 1.5rem); /* ~15% larger than MSRP / case price */
  line-height: 1.1;
}

body.dfa-wholesale-pdp .wp-pricing__col--accent .wp-pricing__label {
  color: #222;
  font-weight: 700;
}

body.dfa-wholesale-pdp .wp-pricing__value s {
  text-decoration-thickness: 1px;
}

body.dfa-wholesale-pdp .wp-pricing__unit {
  display: inline;
  margin-left: 2px;
  font-size: 0.62em;
  font-weight: 600;
  color: #6b6b6b;
  letter-spacing: 0;
}

body.dfa-wholesale-pdp .wp-pricing__value--wholesale .wp-pricing__unit {
  font-size: 0.54em;
  font-weight: 600;
  color: #6b6b6b;
}

.wp-save-banner {
  background: #E30613;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding: 10px 12px;
  margin: 0 0 14px;
}

/* Potential profit margin card — pale green, between pricing and case meta */
.wp-profit-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--wp-green-soft, #f0f9f4);
  border: 1px solid rgba(45, 138, 91, 0.14);
  color: var(--wp-green-deep, #1f6f49);
}

.wp-profit-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(45, 138, 91, 0.12);
  color: var(--wp-green, #2d8a5b);
}

.wp-profit-card__margin {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 0 1 auto;
}

.wp-profit-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp-green, #2d8a5b);
  line-height: 1.2;
  white-space: nowrap;
}

.wp-profit-card__pct {
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--wp-green, #2d8a5b);
}

.wp-profit-card__divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  margin: 2px 2px;
  background: rgba(0, 0, 0, 0.1);
}

.wp-profit-card__amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.wp-profit-card__dollars {
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111;
}

.wp-profit-card__hint {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #6b6b6b;
}

@media (max-width: 380px) {
  .wp-profit-card {
    gap: 8px;
    padding: 11px 12px;
  }

  .wp-profit-card__icon {
    width: 32px;
    height: 32px;
  }

  .wp-profit-card__label {
    font-size: 9px;
  }

  .wp-profit-card__hint {
    font-size: 10px;
  }
}

.wp-meta-line {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

@media (min-width: 768px) {
  .wp-meta-line {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
}

.wp-qty-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

body.dfa-wholesale-pdp .wp-qty {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  min-height: 46px;
}

body.dfa-wholesale-pdp .wp-case-total {
  margin: 0 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

body.dfa-wholesale-pdp .sp-atc {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: #E30613;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 16px;
}

body.dfa-wholesale-pdp .sp-atc__text {
  text-align: center;
  line-height: 1.25;
}

.wp-stock-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 11px;
  line-height: 1.3;
}

.wp-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  color: #1b8a45;
}

.wp-stock.is-out {
  color: #E30613;
}

.wp-stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 8px;
}

.wp-ship-note {
  color: #6b6b6b;
  font-weight: 500;
  font-size: 10.5px;
  white-space: nowrap;
  text-align: right;
}

.wp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 4px;
}

.wp-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #E30613;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
  text-decoration: none;
  cursor: pointer;
}

.wp-action.is-saved {
  color: #1b8a45;
}

.wp-offer-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid #E60012;
  background: #fff;
  color: #E60012;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wp-accordions {
  margin-top: 8px;
  border-top: 1px solid #ececec;
}

.wp-acc {
  border-bottom: 1px solid #ececec;
}

.wp-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.wp-acc summary::-webkit-details-marker {
  display: none;
}

.wp-acc summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  margin-right: 4px;
  flex: 0 0 8px;
}

.wp-acc[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.wp-acc__body {
  padding: 0 2px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.wp-prose h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.wp-prose ul,
.wp-highlights {
  margin: 6px 0 0;
  padding-left: 18px;
}

.wp-prose li + li,
.wp-highlights li + li {
  margin-top: 4px;
}

.wp-related {
  margin-top: 22px;
}

.wp-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wp-related__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wp-related__head a {
  color: #E30613;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.wp-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wp-related__card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wp-related__media {
  position: relative;
  display: block;
  background: #f6f6f6;
  aspect-ratio: 1.15 / 1;
}

.wp-related__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-related__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 6px;
}

.wp-related__body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.wp-related__brand {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.wp-related__body h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.wp-related__body h3 a {
  color: #111;
  text-decoration: none;
}

.wp-related__price {
  margin: 4px 0 0;
  font-size: 13px;
}

.wp-related__price s {
  color: #8a8a8a;
  margin-right: 4px;
  font-size: 12px;
}

.wp-related__price strong {
  color: #E30613;
}

.wp-related__price span,
.wp-related__unavail {
  color: #666;
  font-size: 12px;
}

.wp-related__unavail {
  margin: 6px 0 0;
}

.wp-related__add {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  background: #E30613;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
}

body.dfa-wholesale-pdp .sp-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  grid-template-areas: "stage thumbs";
  column-gap: 8px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  flex-direction: unset;
}

body.dfa-wholesale-pdp .sp-gallery__stage {
  grid-area: stage;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid #eee;
  margin: 0;
}

body.dfa-wholesale-pdp .sp-gallery__main-link {
  padding: 8px;
}

body.dfa-wholesale-pdp .sp-gallery__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.dfa-wholesale-pdp .sp-gallery__thumbs-wrap {
  grid-area: thumbs;
  width: 68px;
  max-width: 68px;
  margin: 0;
  align-self: stretch;
}

body.dfa-wholesale-pdp .sp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 68px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scroll-snap-type: y mandatory;
}

body.dfa-wholesale-pdp .sp-gallery__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 2px;
  background: #fff;
}

body.dfa-wholesale-pdp .sp-gallery__thumb.is-active {
  border-color: #E30613;
  box-shadow: 0 0 0 1px #E30613;
}

body.dfa-wholesale-pdp .sp-gallery__zoom,
body.dfa-wholesale-pdp .sp-gallery__nav,
body.dfa-wholesale-pdp .sp-gallery__dots,
body.dfa-wholesale-pdp .sp-gallery__thumbs-next {
  display: none !important;
}

@media (max-width: 768px) {
  body.dfa-wholesale-pdp .dfa-header-inner {
    grid-template-columns: 44px minmax(0, 1fr) 28px auto;
    grid-template-rows: auto;
  }

  body.dfa-wholesale-pdp .dfa-search-wrap {
    display: none !important;
  }

  /* Keep the single header crown; hide only the duplicate action crown. */
  body.dfa-wholesale-pdp .dfa-header-crown {
    display: inline-flex !important;
  }

  body.dfa-wholesale-pdp .dfa-action-account,
  body.dfa-wholesale-pdp .dfa-action-wholesale {
    display: none !important;
  }

  body.dfa-wholesale-pdp .dfa-action-wishlist,
  body.dfa-wholesale-pdp .dfa-header-search-icon,
  body.dfa-wholesale-pdp .dfa-action.dfa-action-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    padding: 0;
  }

  body.dfa-wholesale-pdp .dfa-actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  body.dfa-wholesale-pdp .sp-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.dfa-wholesale-pdp .sp-layout {
    gap: 16px;
  }
}

@media (min-width: 768px) {
  body.dfa-wholesale-pdp .sp-gallery {
    grid-template-columns: minmax(0, 1fr) 84px;
    max-width: none;
  }

  body.dfa-wholesale-pdp .sp-gallery__thumbs-wrap,
  body.dfa-wholesale-pdp .sp-gallery__thumbs {
    width: 84px;
    max-width: 84px;
  }

  body.dfa-wholesale-pdp .sp-gallery__thumb {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }

  body.dfa-wholesale-pdp .wp-related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.dfa-wholesale-pdp .sp-atc {
    font-size: 15px;
  }
}

/* ── Popular brands (logo tiles) ── */
.wp-brands {
  margin: 28px 0 8px;
}

.wp-brands__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wp-brands__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: 72px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
}

.wp-brands__tile:hover,
.wp-brands__tile:focus-visible {
  border-color: #f5c6cc;
  outline: 2px solid #E30613;
  outline-offset: 2px;
}

.wp-brands__tile.is-current {
  border-color: #E30613;
}

.wp-brands__tile img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 36px;
  max-height: 36px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .wp-brands__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .wp-brands__tile {
    height: 84px;
  }

  .wp-brands__tile img {
    height: 40px;
    max-height: 40px;
  }
}

@media (min-width: 1100px) {
  .wp-brands__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ── Wholesale reco order (swipeable rows + case qty) ── */
body.dfa-wholesale-pdp .sp-carousel.wp-reco-section {
  margin-top: 28px;
}

body.dfa-wholesale-pdp .sp-carousel.wp-reco-section .wp-related__head {
  margin-bottom: 12px;
}

body.dfa-wholesale-pdp .sp-carousel.wp-reco-section .wp-related__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.dfa-wholesale-pdp .wp-reco {
  max-width: 168px;
}

body.dfa-wholesale-pdp .wp-reco .sp-reco__media {
  border-radius: 12px;
  background: #fff;
}

body.dfa-wholesale-pdp .wp-reco__case {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #888;
}

body.dfa-wholesale-pdp .wp-reco .sp-reco__name {
  margin-bottom: 4px;
}
