/* ==========================================================================
   PRODUCT NEW PAGE — styles scoped with .pn- prefix so nothing here
   collides with style.css / home.css / about.css
   ========================================================================== */

.pn-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 40px) 0 65px;
  background-color: var(--light-cream);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pn-hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.pn-hero .wrap.pn-hero-grid {
  position: relative;
  z-index: 1;
}

.pn-hero .wrap.pn-hero-grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.pn-hero-top {
  display: flex;
  align-items: center;
  flex: 1;
}

.pn-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pn-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--dark);
  margin: 12px 0 20px;
}

.pn-hero-copy h1 .accent {
  color: var(--accent);
}

.pn-hero-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 28px;
}

.pn-hero-actions {
  display: flex;
  gap: 14px;
}

.pn-hero-grid {
  perspective: 1400px;
}

.pn-hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pn-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--light-cream);
  box-shadow:
    -6px 8px 16px rgba(0, 0, 0, 0.10),
    -2px 3px 6px rgba(0, 0, 0, 0.06),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pn-stat:hover {
  transform: translateY(-4px);
  box-shadow:
    -10px 14px 24px rgba(0, 0, 0, 0.14),
    -3px 4px 8px rgba(0, 0, 0, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.pn-stat-icon {
  flex-shrink: 0;
  color: var(--accent);
    width: 28px;
  height: 28px;
}
.pn-stat > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.pn-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  white-space: nowrap;
}

.pn-stat span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pn-hero-grid {
    grid-template-columns: 1fr;
  }
  .pn-hero-copy,
.pn-hero-stats {
    grid-column: 1;
  }
  .pn-hero-copy { grid-row: 1; }
  
  .pn-hero-stats {
    grid-row: 3;
    flex-wrap: wrap;
  }
  .pn-hero-stats .pn-stat {
    flex: 1 1 40%;
  }
  .pn-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .pn-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 14px 20px;
  }
}

@media (max-width: 900px) {
  .pn-hero {
    min-height: calc(100svh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    height: auto;
    overflow: visible;
  }
}

.pn-catalog-wrap {
  position: relative;
  overflow: hidden;
}

.pn-categories,
.pn-grid-section {
  position: relative;
  z-index: 1;
}

.pn-categories {
  padding: 60px 0 20px;
}

.pn-catalog-wrap {
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
}

.pn-cat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 28px;
}

.pn-cat-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--dark);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 600px) {
  
  .pn-cat-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.pn-grid-section {
  padding: 20px 0 80px;
  background: transparent;
}

.pn-grid-layout {
  display: block;
  width: 100%;
}

.pn-grid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pn-view-more {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 1023px) {
  .pn-grid-layout {
    grid-template-columns: 1fr;
  }

}

.pn-featured {
  background: var(--dark);
  padding: 60px 0;
  overflow: hidden;
}

.pn-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.eyebrow-light {
  color: var(--gold);
}

.pn-featured-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  color: var(--white);
  margin: 8px 0 0;
  line-height: 1.2;
}

.pn-featured-head h2 .accent {
  color: var(--gold);
}

.pn-featured-card {
  flex: 0 0 200px;
  background: var(--deep-brown);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.pn-featured-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
  margin-bottom: 12px;
}

.pn-featured-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 600px) {
  .pn-featured-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.pn-industries {
  padding: 70px 0;
  background: var(--light-cream);
}

.pn-industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.pn-industry-card {
  position: relative;
  height: 190px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.pn-industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,.15) 0%, rgba(23,19,15,.75) 100%);
  z-index: -1;
}

.pn-industry-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 10px;
}

.pn-industry-card h5 {
  color: var(--white);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 1023px) {
  .pn-industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .pn-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pn-brands {
  padding: 60px 0;
}

.pn-brand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  margin-top: 28px;
  align-items: center;
  justify-items: center;
}

.pn-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    -4px 6px 12px rgba(0, 0, 0, 0.08),
    -1px 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pn-brand-logo:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow:
    -8px 14px 24px rgba(0, 0, 0, 0.14),
    -2px 4px 8px rgba(0, 0, 0, 0.08);
}

.pn-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pn-brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 1023px) {
  .pn-brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pn-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   REDESIGNED PRODUCT SECTION & 3D STYLES (MATCHING DESIGN SPEC)
   ========================================================================== */

/* Category main row */
.pn-cat-main-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.pn-cat-title-block {
  text-align: center;
}
.pn-cat-title-block h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  color: var(--dark);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.pn-cat-title-block .pn-title-highlight {
  color: #7b431e;
}

.pn-title-divider {
  color: #7b431e;
  margin: 12px 0;
}

.pn-cat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

/* Category horizontal cards row */
.pn-cat-cards-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.pn-cat-card-v2 {
  background: #fbf7f1;
  border: 1px solid #e8decb;
  border-radius: 16px;
  padding: 0 0 20px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  min-height: 230px;
  box-shadow: 0 4px 12px rgba(123, 67, 30, 0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.pn-cat-v2-icon {
  width: 100%;
  height: 140px;
  background: #f0e6d6;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pn-cat-v2-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pn-cat-card-v2 span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1714;
  line-height: 1.35;
  margin-bottom: 16px;
  padding: 0 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image visibility for products section */
.pn-catalog-wrap {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  isolation: isolate;
}

.pn-catalog-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  z-index: 0;
  pointer-events: none;
}

/* 4 Products per row in Grid Section */
.pn-product-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Light background Product Cards with fixed image fit */
.pn-product-card-v2 {
  background: #ffffff;
  border: 2px solid #7b431e; /* Changed from 1px solid #e8decb to a bolder accent border */
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(123, 67, 30, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pn-product-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(123, 67, 30, 0.12);
}

.pn-card-v2-img {
  width: 100%;
  height: 210px;
  background: #fbf7f1;
  border-bottom: 2px solid #7b431e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pn-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.pn-product-card-v2:hover .pn-card-v2-img img {
  transform: scale(1.06);
}

.pn-card-v2-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pn-card-v2-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1714;
  margin: 0 0 4px;
}

.pn-card-v2-info p {
  font-size: 0.78rem;
  color: #766a5c;
  margin: 0 0 12px;
}

.pn-card-v2-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7b431e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* Restored exact dark background color for Why Source section */
.pn-why {
  background: var(--dark, #17130f) !important;
  padding: 70px 0;
  text-align: center;
}

.pn-why-head {
  text-align: center;
  margin-bottom: 36px;
}

.pn-why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  justify-content: center;
}

.pn-why-card {
  background: var(--deep-brown, #2a221b);
  border: 1px solid rgba(217, 200, 181, 0.15);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}

.pn-why-card:hover {
  transform: translateY(-10px) rotateX(8deg) rotateY(-4deg) scale(1.03);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 160, 84, 0.25);
  border-color: var(--gold, #d4a054);
}

.pn-why-card svg {
  color: var(--gold, #d4a054);
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.pn-why-card:hover svg {
  transform: translateZ(20px) scale(1.1);
}

.pn-why-card h5 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.pn-why-card p {
  color: var(--beige, #d9c8b5);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile centering for Why Source section & 5th card */
@media (max-width: 1023px) {
  .pn-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pn-why-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pn-why-grid {
    grid-template-columns: 1fr;
  }
  .pn-why-card:nth-child(5) {
    grid-column: span 1;
    max-width: 100%;
  }
}

/* Responsive category and product grid */
@media (max-width: 1200px) {
  .pn-cat-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .pn-product-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pn-cat-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .pn-product-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pn-cat-title-block h2 {
    white-space: normal;
  }
  .pn-cat-cards-row,
  .pn-product-grid-v2 {
    grid-template-columns: 1fr;
  }
  .pn-cat-card-v2 {
    min-height: auto;
    padding-bottom: 16px;
  }
  .pn-cat-v2-icon {
    height: 160px;
  }
}

/* ==================== FLOATING MARQUEE FOR FEATURED PRODUCTS ==================== */
.pn-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0 20px;
}

.pn-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-float 22s linear infinite;
}

.pn-marquee-wrap:hover .pn-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-float {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pn-marquee-track .pn-featured-card {
  flex: 0 0 220px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.pn-marquee-track .pn-featured-card:hover {
  transform: translateY(-6px) scale(1.03);
}

/* ==================== 3D EFFECTS FOR INDUSTRIES ==================== */
.pn-3d-card {
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.pn-3d-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg) scale(1.03);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

/* ==================== BRANDS STRIP BACKGROUND ==================== */
.pn-brands {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 600px) {
  .pn-hero {
    background-image: url('../assets/products_new/hero/hero_mobile.png') !important;
    background-size: cover;
    background-position: center center;
  }
}

/* ==================== FLYOUT DROPDOWN (Products → Categories → Subcategories) ==================== */
.flyout-dropdown {
  min-width: 260px;
  padding: 10px 0;
}

.flyout-item {
  position: relative;
}

.flyout-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.75rem;
  color: #1a1714;
}

.flyout-item > a svg {
  color: #766a5c;
  flex-shrink: 0;
}

.flyout-item:hover > a {
  background: var(--light-cream);
  color: #7b431e;
}

.flyout-submenu {
  position: absolute;
  top: -10px;
  left: 100%;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--beige);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 16px 32px rgba(23, 19, 15, 0.12);
  z-index: 60;
}

.flyout-item:hover .flyout-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.flyout-submenu a {
  display: block;
  padding: 9px 20px;
  font-size: 0.76rem;
  color: #4a423a;
  text-decoration: none;
}

.flyout-submenu a:hover {
  background: var(--light-cream);
  color: #7b431e;
}

/* Brands dropdown — 2 columns since it has 17 items */
.brands-dropdown {
  min-width: 320px;
  columns: 2;
  column-gap: 4px;
  padding: 14px 10px;
}

.brands-dropdown a {
  break-inside: avoid;
}

@media (max-width: 1023px) {
  .flyout-dropdown,
.brands-dropdown {
    display: none !important;
  }
}

/* =========================================================
   WHAT YOU REQUIRE — CTA SECTION
   ========================================================= */

.pn-cta-band {
  position: relative;
  width: 100%;
  min-height: 470px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--light-cream);
  background-image: url("../assets/products_new/what_you_require.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* CTA CONTENT */
.pn-cta-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 8%;
  position: relative;
  z-index: 2;
}

.pn-cta-copy {
  width: 55%;
  max-width: 650px;
}

/* EYEBROW */
.pn-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 42px;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.pn-cta-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* HEADING */
.pn-cta-copy h2 {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.pn-cta-copy h2 span {
  display: block;
  margin-top: 10px;
  color: var(--accent);
}

/* DESCRIPTION */
.pn-cta-copy p {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--deep-brown);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

/* CTA ACTIONS */
.pn-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

/* TRUST TEXT */
.pn-cta-note {
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1000px) {
  .pn-cta-band {
    min-height: 430px;
    background-position: center center;
  }
  .pn-cta-inner {
    padding: 60px 6%;
  }
  .pn-cta-copy {
    width: 60%;
  }
  .pn-cta-copy h2 {
    font-size: clamp(44px, 6vw, 64px);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 700px) {
  .pn-cta-band {
    min-height: 600px;
    align-items: flex-start;
    background-position: 65% center;
  }
  .pn-cta-inner {
    padding: 55px 24px;
  }
  .pn-cta-copy {
    width: 100%;
  }
  .pn-cta-copy h2 {
    font-size: clamp(42px, 12vw, 58px);
  }
  .pn-cta-copy p {
    max-width: 390px;
    font-size: 13px;
  }
  .pn-cta-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  
  .pn-cta-note {
    font-size: 9px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 420px) {
  .pn-cta-band {
    min-height: 570px;
    background-position: 68% center;
  }
  .pn-cta-inner {
    padding: 45px 20px;
  }
  .pn-cta-copy h2 {
    font-size: 42px;
  }
}

/* Darken navbar text on this page (light hero behind it needs dark text before scroll) */
.navbar:not(.scrolled) .nav-links a {
  color: var(--dark);
}
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
  color: var(--brown);
}