/* ============================================================
   PT. PRIMAJAYA ANUGERAH PERKASA — Catalog Styles
   Optimized for Digital Viewing and PDF Printing
   ============================================================ */

:root {
  --cat-bg: #ffffff;
  --cat-dark: #03182E;
  --cat-accent: #0EA5E9;
  --cat-accent-dark: #072C52;
  --cat-text: #1F2937;
  --cat-text-muted: #6B7280;
  --cat-border: #E5E7EB;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v11/QGYsz_MVcBeNP4NJtEtq.woff2) format('woff2');
}

body.catalog-body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  background: #f3f4f6;
  color: var(--cat-text);
}

.catalog-container {
  max-width: 1000px;
  margin: 2rem auto;
  background: var(--cat-bg);
  box-shadow: 0 10px 50px rgba(0,0,0,0.1);
}

/* ── PAGE BREAKS FOR PRINT ── */
.catalog-page {
  width: 210mm;
  min-height: 297mm;
  padding: 20mm;
  margin: 0 auto;
  background: white;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  page-break-after: always;
}

/* ── COVER PAGE ── */
.cover-page {
  background: var(--cat-dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 40mm 20mm;
}

.cover-logo img {
  width: 120px;
  margin: 0 auto 2rem;
}

.cover-content h1 {
  font-size: 4rem;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
}

.cover-content h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cat-accent);
  margin-top: 1rem;
  letter-spacing: 4px;
}

.cover-footer {
  margin-top: auto;
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── CONTENT SECTIONS ── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--cat-dark);
  border-left: 5px solid var(--cat-accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.vm-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--cat-accent);
}

.vm-card h3 {
  color: var(--cat-accent-dark);
  margin-bottom: 1rem;
}

/* ── PRODUCT GRID ── */
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cat-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--cat-border);
  border-radius: 6px;
}

.cat-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f9fafb;
}

.cat-details h4 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.cat-details p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cat-text-muted);
}

.cat-brand {
  font-weight: bold;
  color: var(--cat-accent);
}

/* ── PRINT OPTIMIZATION ── */
@media print {
  body {
    background: none;
  }
  .catalog-container {
    margin: 0;
    box-shadow: none;
  }
  .no-print {
    display: none;
  }
  .catalog-page {
    margin: 0;
    border: none;
    padding: 20mm;
    width: 210mm;
    height: 297mm;
  }
}

/* Floating Download Button (Web View Only) */
.download-btn-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--cat-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
