/* ================================================
   products.css — N Trims Products Page Styles
   Depends on: index.css (shared variables & base)
   ================================================ */

/* ---- Hero ---- */
.products-hero {
  background: var(--accent);
  padding: 72px 60px 60px;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.products-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20%;
  width: 280px; height: 280px;
  background: rgba(184,151,106,.12);
  border-radius: 50%;
}

.products-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.products-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.products-hero-breadcrumb a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}

.products-hero-breadcrumb a:hover { color: #fff; }

.breadcrumb-sep { color: rgba(255,255,255,.3); }

.products-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  margin-bottom: 16px;
}

.products-hero-label::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(255,255,255,.5);
}

.products-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
}

.products-hero h1 strong {
  font-weight: 700;
  color: var(--gold);
}

.products-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 36px;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.hero-stat span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-right: 5px;
}

.hero-stat-div {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.2);
}

/* ---- Category Nav ---- */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.cat-link:hover, .cat-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Page Wrapper ---- */
.products-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 60px 96px;
}

/* ---- Product Sections ---- */
.product-section {
  margin-bottom: 80px;
  scroll-margin-top: 140px;
}

.product-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-section-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.product-section-count {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  font-weight: 500;
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ---- Catalogue Grid ---- */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Product Card (pcard) ---- */
.pcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}

.pcard::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.pcard:hover::after { transform: scaleX(1); }

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
}

/* ---- Image area ---- */
.pcard-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--accent-light);
  position: relative;
  flex-shrink: 0;
}

.pcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.pcard:hover .pcard-img {
  transform: scale(1.05);
}

/* Emoji fallback — shown when image is missing */
.pcard-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: var(--accent-light);
}

/* ---- Card body ---- */
.pcard-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.pcard-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pcard-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 16px;
}

/* Features list */
.pcard-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pcard-features li {
  font-size: 12.5px;
  color: var(--mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.pcard-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* CTA link */
.pcard-cta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  transition: gap .2s;
}

.pcard:hover .pcard-cta { gap: 10px; }

/* ---- CTA Strip ---- */
.cta-strip {
  background: var(--accent);
  border-radius: 4px;
  padding: 52px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.cta-strip-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cta-strip-text p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

.cta-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--accent);
  padding: 16px 36px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}

.cta-strip-btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .products-hero { padding: 48px 24px 40px; }
  .cat-nav-inner { padding: 0 16px; }
  .products-page-wrap { padding: 40px 24px 64px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; padding: 40px 28px; text-align: center; }
  .product-section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stats { gap: 16px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
}
