/* ============================================
   Private Label Page — PDF-Matched Redesign
   ============================================ */

/* ===== HERO ===== */
.pl-hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../../images/private-label/pdf-hero-bg.png');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-start;
  padding-top: var(--navbar-height);
}

/* Dark overlay matching the PDF cover */
.pl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.60) 50%,
    rgba(0,0,0,0.30) 100%
  );
}

.pl-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0 var(--space-3xl);
  max-width: 750px;
}

.pl-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
}

.pl-hero__title span {
  color: var(--brand-red);
}

.pl-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  font-weight: var(--fw-semibold);
}

/* ===== BRAND SOLUTION SECTION ===== */
.pl-brand-solution {
  padding: var(--space-section) 0;
  background: var(--bg-white);
  text-align: center;
}

.pl-brand-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.pl-brand-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3xl);
}

.pl-brand-showcase {
  max-width: 820px;
  margin: 0 auto;
  border: 3px solid var(--brand-red);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pl-brand-showcase img {
  width: 100%;
  display: block;
  /* Show the product mockup photos at bottom of page 2 */
  object-fit: cover;
  object-position: center 75%;
  height: 560px;
}

/* ===== CATEGORY SECTIONS ===== */
.pl-category-section {
  padding: var(--space-section) 0;
}

.pl-category-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.pl-category-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.pl-category-title--dark {
  color: var(--text-heading);
}

.pl-category-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-body);
}

.pl-category-sub--dark {
  color: var(--text-body);
}

/* ===== PRODUCT GRID (FLEX LAYOUT FOR ORPHAN CENTERING) ===== */
.pl-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.pl-product-card {
  width: calc(33.333% - (var(--space-xl) * 2 / 3));
}

.pl-product-grid--4col .pl-product-card {
  width: calc(25% - (var(--space-xl) * 3 / 4));
}

/* ===== PRODUCT CARD — PDF Split Layout ===== */
.pl-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pl-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* Top info section — beige/warm background (matches PDF top half) */
.pl-product-card__info {
  background: #f2ede8;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  flex-shrink: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pl-product-card__spec:last-of-type {
  margin-top: auto;
}

.pl-product-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  font-weight: 900;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.pl-product-card__tagline {
  font-size: var(--fs-small);
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.pl-product-card__spec {
  margin-top: var(--space-sm);
}

.pl-spec-label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: 4px;
}

.pl-product-card__spec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pl-product-card__spec ul li {
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
  padding-left: 1em;
  position: relative;
}

.pl-product-card__spec ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: bold;
}

.pl-badge {
  font-size: 0.75em;
  font-weight: var(--fw-semibold);
  background: var(--brand-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
}

/* Bottom image section — product photo */
.pl-product-card__img {
  overflow: hidden;
  position: relative;
  border-top: 3px solid var(--brand-red);
  height: 320px;
  flex-shrink: 0;
}

.pl-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transition: transform 0.4s ease;
}

/* Custom PDF Extract Crops for Grinders & Jars (Using Transform Zoom) */
.pl-product-card__img img.img-glass-grinder { transform: scale(1.4) translateY(5%); }
.pl-product-card:hover .pl-product-card__img img.img-glass-grinder { transform: scale(1.45) translateY(5%); }

.pl-product-card__img img.img-plastic-grinder { transform: scale(1.4) translateY(5%); }
.pl-product-card:hover .pl-product-card__img img.img-plastic-grinder { transform: scale(1.45) translateY(5%); }

.pl-product-card__img img.img-plastic-shaker { transform: scale(1.4) translateY(12%); }
.pl-product-card:hover .pl-product-card__img img.img-plastic-shaker { transform: scale(1.45) translateY(12%); }

.pl-product-card__img img.img-costco-jar { transform: scale(1.4) translateY(5%); }
.pl-product-card:hover .pl-product-card__img img.img-costco-jar { transform: scale(1.45) translateY(5%); }

.pl-product-card:hover .pl-product-card__img img {
  transform: scale(1.03); /* Fallback for non-grinder images */
}

/* CTA button at bottom */
.pl-product-card__cta {
  display: block;
  margin-top: auto;
  background: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition-base);
  flex-shrink: 0;
}

.pl-product-card__cta:hover {
  background: var(--brand-red-dark);
}

/* ===== FANCY SHAPED LAMPS TABLE ===== */
.pl-fancy-section {
  padding: var(--space-section) 0;
  background: #1a1a1a;
}

.pl-fancy-section .pl-category-title {
  color: #fff;
}

.pl-fancy-section .pl-category-sub {
  color: rgba(255,255,255,0.7);
}

.pl-fancy-table {
  max-width: 780px;
  margin: 0 auto var(--space-2xl);
}

.pl-lamp-table {
  width: 100%;
  border-collapse: collapse;
}

.pl-lamp-table td {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-body);
  color: var(--text-heading);
  background: var(--bg-beige);
  border: 1px solid #e0d8d0;
  line-height: var(--lh-relaxed);
}

.pl-lamp-table tr:nth-child(even) td {
  background: #f9f5f1;
}

.pl-lamp-table td:first-child {
  border-right: 2px solid var(--brand-red);
}

.pl-fancy-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ===== HOW IT WORKS ===== */
.pl-how-it-works {
  padding: var(--space-section) 0;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.how-step-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-top: 3px solid var(--brand-red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.how-step-card__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-red);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.how-step-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.how-step-card p {
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
}

/* ===== WHY CHOOSE ===== */
.pl-why-choose {
  padding: var(--space-section) 0;
  background: var(--bg-white);
}

.why-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.why-tile {
  background: var(--bg-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.why-tile__icon {
  width: 36px;
  height: 36px;
  color: var(--brand-red);
}

.why-tile h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  color: var(--text-heading);
}

/* ===== CTA SECTION ===== */
.product-cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #c0392b 0%, #96281b 100%);
  text-align: center;
}

.product-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.product-cta__text {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

.product-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* White CTA button */
.product-cta .btn--white {
  color: #1a1a1a;
  font-weight: var(--fw-bold);
  min-width: 200px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .pl-product-grid--4col .pl-product-card {
    width: calc(50% - (var(--space-xl) / 2));
  }
}

@media (max-width: 1024px) {
  .pl-product-grid .pl-product-card {
    width: calc(50% - (var(--space-xl) / 2));
  }
  .how-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pl-hero {
    min-height: 80vh;
  }
  .pl-product-grid .pl-product-card {
    width: 100%;
  }
  .how-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .pl-brand-showcase img {
    height: 280px;
  }
  .pl-lamp-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-small);
  }
}

@media (max-width: 480px) {
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
  .why-grid-6 {
    grid-template-columns: 1fr;
  }
}
