/*
 * JPRO Wholesale section — dark navy, premium B2B design
 * Unique dark theme: intentionally contrasts with all other white/light sections
 * All selectors prefixed t1-wholesale / t1-wh- — zero class conflicts
 */

/* ── CSS variables ── */
.t1-wholesale {
  --wh-navy:       #050d2b;
  --wh-navy-mid:   #091654;
  --wh-blue:       #1a56c4;
  --wh-blue-deep:  #03318f;
  --wh-gold:       #c9a227;
  --wh-gold-lt:    #f0c840;
  --wh-green:      #0f9d58;
  --wh-green-bg:   #e6f7f0;
  --wh-green-bd:   #b3e8d0;
  --wh-green-txt:  #0a6b3e;
}

/* ── Section ── */
.t1-wholesale {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

/* Dot-grid texture */
.t1-wholesale::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.042) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.t1-wh-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── Section header ── */
.t1-wh-head {
  text-align: center;
  margin: 0 0 36px;
}

.t1-wh-eyebrow {
    display: inline-block;
    font-family: "Montserrat", "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgb(13 43 107);
    padding: 6px 20px;
    border: 1px solid rgb(13 43 107);
    border-radius: 40px;
    background: rgb(13 43 107 / 14%);
    margin-bottom: 22px;
}
.t1-wh-title {
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  color: #091654;
  margin: 0 0 18px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.t1-wh-sub {
  font-family: "Open Sans", "Montserrat", sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  margin: 0;
  line-height: 1.70;
}

/* ── 4-column product grid ── */
.t1-wh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 32px;
}

/* ── Card base ── */
.t1-wh-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 4px solid #00b67a;
  box-shadow:
    0 4px 24px rgba(0,8,36,0.30),
    0 1px 6px rgba(0,8,36,0.16);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.t1-wh-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 22px 64px rgba(0,8,36,0.44),
    0 6px 18px rgba(0,8,36,0.24);
}

.t1-wh-card.is-wh-skeleton .t1-wh-img-wrap {
  background: linear-gradient(90deg, #e8edf6 25%, #f5f7fb 50%, #e8edf6 75%);
  background-size: 200% 100%;
  animation: t1WhShimmer 1.2s linear infinite;
}

.t1-wh-card.is-wh-skeleton .t1-wh-cta {
  opacity: 0.55;
  pointer-events: none;
}

@keyframes t1WhShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Badge row ── */
.t1-wh-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 16px 0;
}

.t1-wh-qty-pill {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wh-blue-deep);
  background: rgba(3,49,143,0.07);
  border: 1px solid rgba(3,49,143,0.16);
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
}

.t1-wh-save-pill,
.t1-wh-best-flag {
  display: none !important;
}

/* Keep every card on the same blue accent */
.t1-wh-card {
  border-top: 4px solid var(--wh-blue);
}

/* ── Product image ── */
.t1-wh-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf0f7;
  flex-shrink: 0;
}

.t1-wh-img-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.t1-wh-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.40s ease;
}

.t1-wh-card:hover .t1-wh-img {
  transform: scale(1.05);
}

/* ── Card body ── */
.t1-wh-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Tier label */
.t1-wh-label {
  font-family: "Montserrat", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wh-blue);
  margin: 0 0 6px;
}

/* Product name */
.t1-wh-name {
  font-family: "Open Sans", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  word-break: break-word;
}

.t1-wh-name-link {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.18s ease;
}

.t1-wh-name-link:hover {
  color: var(--wh-blue);
}

.t1-wh-hint {
  margin: 0 0 8px;
  font-family: "Open Sans", "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6472;
  min-height: 2.9em;
}

.t1-wh-price {
  margin: 4px 0 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--wh-blue);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t1-wh-card.is-wh-skeleton .t1-wh-price,
.t1-wh-card.is-wh-skeleton .t1-wh-cta {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Pricing block (legacy) ── */
.t1-wh-pricing {
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
  padding: 12px 0;
  margin-bottom: 16px;
}

.t1-wh-per-tube-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}

.t1-wh-per-tube-price {
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--wh-blue);
  line-height: 1;
  letter-spacing: -0.5px;
}

.t1-wh-per-tube-label {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #999;
}

.t1-wh-total {
  font-family: "Open Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: #777;
  margin: 0;
}

.t1-wh-total strong {
  font-weight: 700;
  color: #333;
}

/* ── CTA ── */
.t1-wh-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 13px 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #1a56c4 0%, #03318f 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(3,49,143,0.32);
  box-sizing: border-box;
  transition: box-shadow 0.22s ease, transform 0.15s ease;
}

.t1-wh-card--featured .t1-wh-cta {
  background: linear-gradient(135deg, var(--wh-gold) 0%, #a07e1a 100%);
  box-shadow: 0 4px 14px rgba(201,162,39,0.40);
  color: #1a0e00 !important;
  -webkit-text-fill-color: #1a0e00 !important;
}

.t1-wh-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(3,49,143,0.42);
}

.t1-wh-card--featured .t1-wh-cta:hover {
  box-shadow: 0 8px 26px rgba(201,162,39,0.52);
}

/* ── Trust strip ── */
.t1-wh-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.t1-wh-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  position: relative;
}

.t1-wh-trust-item + .t1-wh-trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.13);
}

.t1-wh-trust-icon {
  flex-shrink: 0;
  color: var(--wh-gold-lt);
  width: 28px;
  height: 28px;
}

.t1-wh-trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.t1-wh-trust-text strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.t1-wh-trust-text span {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
}

/* ── Tablet: 2 × 2 ── */
@media (max-width: 1100px) {
  .t1-wh-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .t1-wh-trust-item {
    padding: 22px 20px;
    gap: 14px;
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .t1-wholesale {
    padding: 40px 0;
  }

  .t1-wh-head {
    margin-bottom: 24px;
  }

  .t1-wh-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .t1-wh-per-tube-price {
    font-size: 26px;
  }

  .t1-wh-trust {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .t1-wh-trust-item {
    padding: 18px 20px;
  }

  .t1-wh-trust-item + .t1-wh-trust-item::before {
    left: 20px;
    right: 20px;
    top: 0;
    width: auto;
    height: 1px;
  }
}