/* ============================================
   PRODUCTS — Sidebar / Detail Layout
   Loaded in addition to style.css
   ============================================ */

.products-hero {
  position: relative;
  height: 38vh;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -78px;
  padding-top: 78px;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.products-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 11, 0.90) 0%, rgba(10, 10, 11, 0.75) 55%, rgba(20, 20, 22, 0.62) 100%);
}

.products-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
  color: var(--beige);
}

.products-hero .hero-content p {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-top: 14px;
}

/* ---- Layout shell ---- */
.products-shell {
  padding: 56px 0 100px;
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

/* ---- Sidebar ---- */
.products-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

.sidebar-intro h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.sidebar-intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-group {
  margin-bottom: 18px;
}

.sidebar-group:last-of-type {
  margin-bottom: 24px;
}

.sidebar-group h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
  margin-bottom: 10px;
  padding-left: 4px;
}

[data-theme="dark"] .sidebar-group h4 {
  color: var(--gold);
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: var(--bg-alt);
  color: var(--text-main);
}

.sidebar-link.active {
  background: rgba(200, 164, 92, 0.12);
  color: var(--gold-deep);
  border-left-color: var(--gold);
  font-weight: 700;
}

[data-theme="dark"] .sidebar-link.active {
  color: var(--gold);
}

.sidebar-cta {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ---- Product detail content ---- */
.product-detail-crumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.product-detail-crumb strong {
  color: var(--text-main);
}

.product-detail h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.15;
}

.product-tagline {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

[data-theme="dark"] .product-tagline {
  color: var(--gold);
}

.product-intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.ideal-for-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ideal-for-box strong {
  color: var(--text-main);
}

.product-detail h2.sub-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 18px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.check-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Detail table */
.detail-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

table.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.detail-table tr {
  border-bottom: 1px solid var(--border-color);
}

table.detail-table tr:last-child {
  border-bottom: none;
}

table.detail-table td {
  padding: 14px 22px;
  color: var(--text-muted);
}

table.detail-table td:first-child {
  width: 42%;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-alt);
}

.detail-footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 10px 2px 8px;
  font-style: italic;
}

/* Requirements */
.req-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 20px;
  margin-bottom: 8px;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 4px 0;
}

.req-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--mid-gray);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

/* CTA box */
.product-cta-box {
  background: linear-gradient(135deg, var(--black), var(--near-black));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 44px;
  color: var(--beige);
}

.product-cta-box h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.product-cta-box p {
  color: var(--light-gray);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 640px;
}

/* Prev/next */
.product-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.product-detail-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 45%;
}

.product-detail-nav a span.dir-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid-gray);
}

.product-detail-nav a span.dir-name {
  font-weight: 600;
  color: var(--text-main);
}

.product-detail-nav a.next-link {
  text-align: right;
  align-items: flex-end;
  margin-left: auto;
}

.product-detail-nav a:hover span.dir-name {
  color: var(--gold-deep);
}

[data-theme="dark"] .product-detail-nav a:hover span.dir-name {
  color: var(--gold);
}

/* ---- Overview cards (hub page) ---- */
.category-block {
  margin-bottom: 52px;
}

.category-block-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.category-block-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.category-block-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mini-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.mini-product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: var(--transition);
}

.mini-product-card:hover {
  border-color: var(--gold-pale);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mini-product-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.mini-product-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.mini-product-card .mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-deep);
}

[data-theme="dark"] .mini-product-card .mini-link {
  color: var(--gold);
}

.mini-product-card .mini-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-group {
    margin-bottom: 10px;
  }

  .sidebar-intro p {
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .product-cta-box {
    padding: 28px 24px;
  }

  .product-detail-nav {
    flex-direction: column;
    gap: 16px;
  }

  .product-detail-nav a,
  .product-detail-nav a.next-link {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }
}
