/* =====================================================================
   Perth Power Equipment — Product Range Page CSS
   Upload as: hello-theme-child/assets/product-range/styles.css
   Auto-loaded on the product-range page via functions.php
   ===================================================================== */

/* ── Kill WP page chrome ───────────────────────────────────────────── */
.page-id-product-range .entry-title,
.page-template .entry-title,
body:not(.woocommerce) .entry-title { display: none !important; }
.entry-content { padding-top: 0 !important; margin-top: 0 !important; }
article.page { padding-top: 0 !important; }

/* ── Page wrapper ──────────────────────────────────────────────────── */
.pp-range-page {
  font-family: "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pp-range-page *, .pp-range-page *::before, .pp-range-page *::after {
  box-sizing: border-box;
}

/* ── Hero / header ─────────────────────────────────────────────────── */
.pp-range-hero {
  background: var(--pp-ink, #0d0d0f);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.pp-range-hero::before {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 40%, rgba(225,11,23,.06) 100%);
  pointer-events: none;
}
.pp-range-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,11,23,.14) 0%, transparent 68%);
  pointer-events: none;
}
.pp-range-hero .pp-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.pp-range-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pp-red, #e10b17);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.pp-range-tag::before {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--pp-red, #e10b17);
  flex: none;
}
.pp-range-h {
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 84px);
  text-transform: uppercase;
  line-height: .95;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.pp-range-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.55);
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

/* ── Category grid section ─────────────────────────────────────────── */
.pp-range-cats {
  background: #f0f0f2;
  padding: 72px 0 80px;
}

.pp-range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Category card ─────────────────────────────────────────────────── */
.pp-cat-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--pp-ink, #0d0d0f);
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s;
}
.pp-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

/* Background image */
.pp-cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s, opacity .3s;
  opacity: .7;
}
.pp-cat-card:hover .pp-cat-card-img {
  transform: scale(1.04);
  opacity: .55;
}

/* Dark gradient overlay — always present, stronger at bottom */
.pp-cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.30) 40%,
    rgba(0,0,0,.75) 100%
  );
  z-index: 1;
  transition: background .3s;
}
/* Red tint on hover */
.pp-cat-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(225,11,23,.04) 0%,
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.78) 100%
  );
}

/* Red accent line — slides in from left on hover */
.pp-cat-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--pp-red, #e10b17);
  z-index: 3;
  transition: width .25s ease;
}
.pp-cat-card:hover::after { width: 100%; }

/* Card content */
.pp-cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px 22px;
  z-index: 2;
}
.pp-cat-card-count {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pp-cat-card-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Arrow icon — slides in on hover */
.pp-cat-card-name::after {
  content: "→";
  font-style: normal;
  font-size: .7em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
  color: var(--pp-red, #e10b17);
}
.pp-cat-card:hover .pp-cat-card-name::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── "No image" placeholder ────────────────────────────────────────── */
.pp-cat-card-noimg {
  position: absolute;
  inset: 0;
  background: var(--pp-ink-3, #22242a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-cat-card-noimg svg {
  width: 64px; height: 64px;
  stroke: rgba(255,255,255,.1);
  fill: none; stroke-width: 1.5;
}

/* ── Featured / wide card (first category) ────────────────────────── */
.pp-range-grid .pp-cat-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}
.pp-range-grid .pp-cat-card:first-child .pp-cat-card-name {
  font-size: clamp(36px, 5vw, 52px);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pp-range-grid .pp-cat-card:first-child { grid-column: span 1; aspect-ratio: 4 / 3; }
  .pp-range-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pp-range-cats { padding: 48px 0 60px; }
  .pp-range-grid { grid-template-columns: 1fr; gap: 14px; }
  .pp-range-hero { padding: 72px 0 60px; }
}
