/* =====================================================
   products.css — Deepoint product catalogue page
   ===================================================== */

/* ── Page hero ── */
.prod-page-hero {
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-primary) 60%,
    #1a5ea8 100%
  );
  color: var(--white);
  padding: 100px 0 72px;
  position: relative;
  overflow: hidden;
}
.prod-page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.prod-page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}
.prod-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 12px 0 16px;
  max-width: 700px;
}
.prod-page-hero h1 .accent {
  color: var(--gold);
}
.prod-page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: 32px;
}
.prod-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Sticky category nav ── */
.cat-nav-wrap {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.cat-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar {
  display: none;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 16px 20px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mute);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.cat-tab:hover {
  color: var(--blue-primary);
}
.cat-tab.active {
  color: var(--blue-primary);
  border-bottom-color: var(--blue-primary);
}

/* ── Product section ── */
.prod-section {
  margin-bottom: 72px;
  scroll-margin-top: 130px;
}
.prod-section:last-child {
  margin-bottom: 0;
}
.prod-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}
.prod-section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 8px 0 10px;
  color: var(--blue-deep);
}
.prod-section-head p {
  color: var(--text-mute);
  font-size: 0.97rem;
  max-width: 580px;
}
.prod-section-head .btn {
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── SKU grid ── */
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.sku-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sku-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── SKU card ── */
.sku-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.sku-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary);
}

.sku-img {
  background: var(--bg-light);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.sku-img img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.sku-card:hover .sku-img img {
  transform: scale(1.05);
}
.panel-img {
  height: 220px;
}

.sku-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sku-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-mute);
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}
.tag-badge.blue {
  background: #e8f0fb;
  color: var(--blue-primary);
  border-color: #c5d9f5;
}
.tag-badge.gold {
  background: #fef7e0;
  color: #8a6000;
  border-color: #f5d96a;
}
.tag-badge.red {
  background: #fdecea;
  color: var(--red-accent);
  border-color: #f5c6c0;
}
.tag-badge.green {
  background: #e5f7ec;
  color: #1a7a3c;
  border-color: #a8ddb8;
}

.sku-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 6px;
  line-height: 1.3;
}
.sku-desc {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ── Spec table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 16px;
  flex: 1;
}
.spec-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-light);
  vertical-align: top;
  line-height: 1.4;
}
.spec-table td:first-child {
  color: var(--text-mute);
  width: 45%;
  padding-right: 12px;
}
.spec-table td:last-child {
  color: var(--text-dark);
}
.spec-table tr:last-child td {
  border-bottom: none;
}

/* ── SKU actions ── */
.sku-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.sku-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 12px;
}

/* ── Bottom CTA ── */
.prod-bottom-cta {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  padding: 64px 0;
}
.prod-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.prod-cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0 0 8px;
}
.prod-cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.prod-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Footer ── */
.footer-col-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer ul a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer ul a:hover {
  color: var(--white);
}
.brand-blurb {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 14px 0 16px;
}
.brand-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .prod-section-head {
    flex-direction: column;
    gap: 14px;
  }
  .prod-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .prod-cta-btns {
    justify-content: center;
  }
  .sku-grid,
  .sku-grid-3,
  .sku-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .sku-grid,
  .sku-grid-3,
  .sku-grid-4 {
    grid-template-columns: 1fr;
  }
  .prod-hero-actions {
    flex-direction: column;
  }
  .sku-actions {
    flex-direction: column;
  }
}
