/* Product catalogue: on-screen preview + printable / Save-as-PDF brochure */
.catalogue-doc { --ink: #0d1220; --red: #d3122a; --gold: #d9a441; --mute: #5b6475; background: transparent; }
.catalogue-doc * { box-sizing: border-box; }
.catalogue-doc h2, .catalogue-doc h3, .catalogue-doc h4 { font-family: 'Outfit', 'Inter', sans-serif; margin: 0; }
.bk-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: var(--red); margin-bottom: 8px; }
.bk-tagline { font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif; font-weight: 600; }

/* ---------- Cover ---------- */
.bk-cover { position: relative; overflow: hidden; border-radius: 22px; color: #fff; min-height: 560px; margin-bottom: 40px; background: var(--ink); }
.bk-cover-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.55; }
.bk-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,18,32,0.55) 0%, rgba(13,18,32,0.35) 35%, rgba(13,18,32,0.92) 100%); }
.bk-cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, var(--red), var(--gold)); }
.bk-cover-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 560px; padding: 44px 56px 36px; }
.bk-logo { height: 64px; width: auto; align-self: flex-start; }
.bk-kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 14px; }
.bk-cover h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; font-weight: 800; max-width: 720px; }
.bk-cover .bk-tagline { font-size: 1.5rem; color: #ff8a98; margin: 14px 0 6px; }
.bk-sub { color: rgba(255,255,255,0.82); font-size: 1.02rem; margin: 6px 0 0; }
.bk-cover-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.25); padding-top: 16px; }

/* ---------- About + contents ---------- */
.bk-about { background: #fff; border: 1px solid #eaecf0; border-radius: 22px; padding: 44px 48px; margin-bottom: 40px; }
.bk-about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; }
.bk-about h3 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 14px; }
.bk-about p { color: var(--mute); line-height: 1.7; margin: 0 0 18px; }
.bk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.bk-stats div { background: #f7f8fa; border-radius: 14px; padding: 16px 12px; text-align: center; border-top: 3px solid var(--red); }
.bk-stats strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.6rem; color: var(--ink); }
.bk-stats span { font-size: 0.8rem; color: var(--mute); }
.bk-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bk-points li { padding-left: 26px; position: relative; color: var(--ink); font-size: 0.95rem; }
.bk-points li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.bk-contents { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px 30px; }
.bk-contents .bk-tag { color: var(--gold); }
.bk-contents ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: c; }
.bk-contents li { counter-increment: c; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 0.95rem; }
.bk-contents li::before { content: counter(c, decimal-leading-zero); color: var(--gold); font-weight: 800; font-size: 0.8rem; width: 22px; }
.bk-contents li span { flex: 1; }
.bk-contents li em { font-style: normal; font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ---------- Range divider + product grid ---------- */
.bk-range { margin-bottom: 44px; }
.bk-divider { position: relative; display: grid; grid-template-columns: 320px 1fr; min-height: 220px; border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; margin-bottom: 26px; }
.bk-divider-img { background-color: #fff; background-size: contain; background-repeat: no-repeat; background-position: center; margin: 14px; border-radius: 16px; }
.bk-divider-text { padding: 32px 40px 32px 20px; display: flex; flex-direction: column; justify-content: center; }
.bk-divider .bk-tag { color: var(--gold); }
.bk-divider h3 { font-size: 2.2rem; line-height: 1.05; }
.bk-divider p { color: rgba(255,255,255,0.8); margin: 10px 0 12px; max-width: 520px; line-height: 1.6; }
.bk-divider em { font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.bk-divider::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--red), var(--gold)); z-index: 1; }

.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bk-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; page-break-inside: avoid; }
.bk-card-img { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid #f0f1f4; display: grid; place-items: center; }
.bk-card-img img { width: 100%; height: 100%; object-fit: contain; }
.bk-ribbon { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #f7dc9b, #d9a441); color: #3b2600; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.bk-card.is-premium { border-color: #e9c777; box-shadow: 0 0 0 1px #f3dfb0 inset; }
.bk-card-body { padding: 14px 16px 16px; border-top: 3px solid var(--red); }
.bk-card.is-premium .bk-card-body { border-top-color: var(--gold); }
.bk-sku { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--red); }
.bk-card h4 { font-size: 1.02rem; line-height: 1.25; margin: 4px 0 10px; color: var(--ink); }
.bk-card dl { margin: 0; display: grid; gap: 4px; }
.bk-card dl div { display: flex; gap: 8px; font-size: 0.8rem; }
.bk-card dt { color: var(--mute); min-width: 46px; }
.bk-card dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Back cover ---------- */
.bk-back { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.bk-back::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.bk-back .bk-logo { margin: 0 auto 24px; align-self: center; display: block; }
.bk-back h3 { font-size: 2rem; margin-bottom: 8px; }
.bk-back > p { color: rgba(255,255,255,0.78); margin: 0 0 26px; }
.bk-back ul { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.bk-back li { background: rgba(255,255,255,0.07); border-radius: 14px; padding: 14px 18px; }
.bk-back li span { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; font-weight: 700; }
.bk-back li strong { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.bk-back .bk-tagline { font-size: 1.3rem; color: #ff8a98; margin: 8px 0 0; }

@media (max-width: 900px) {
  .bk-cover-inner { padding: 32px 26px 26px; }
  .bk-about { padding: 28px 22px; }
  .bk-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .bk-divider { grid-template-columns: 1fr; }
  .bk-divider-img { height: 200px; }
  .bk-divider-text { padding: 8px 26px 26px; }
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-back ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .bk-grid { grid-template-columns: 1fr; } }

/* ---------- Print / Save as PDF: A4 brochure ---------- */
@page { size: A4; margin: 12mm 10mm 14mm; }
@page :first { margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .page-hero, .cat-controls, .form-note, .floating-whatsapp, .floating-premium, .toast-container, .cta-band, #enquiryModal { display: none !important; }
  .inner-page main, .page-section { padding: 0 !important; margin: 0 !important; }
  .container { max-width: none !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
  .catalogue-doc { font-size: 10pt; }

  .bk-cover { border-radius: 0; margin: 0; min-height: 297mm; height: 297mm; width: 210mm; break-after: page; page-break-after: always; }
  .bk-cover-inner { min-height: 297mm; padding: 22mm 20mm 16mm 24mm; }
  .bk-cover h2 { font-size: 40pt; }
  .bk-cover .bk-tagline { font-size: 18pt; }
  .bk-logo { height: 18mm; }

  .bk-about { border-radius: 0; border: 0; padding: 4mm 0 0; margin: 0; break-after: page; page-break-after: always; min-height: 250mm; }
  .bk-about h3 { font-size: 22pt; }
  .bk-about-grid { gap: 12mm; }

  .bk-range { margin: 0; break-before: page; page-break-before: always; }
  .bk-divider { border-radius: 8px; min-height: 0; grid-template-columns: 40mm 1fr; margin-bottom: 5mm; break-inside: avoid; }
  .bk-divider-img { margin: 3mm; height: 26mm; min-height: 0; }
  .bk-divider-text { padding: 3mm 6mm 3mm 2mm; }
  .bk-divider h3 { font-size: 17pt; margin: 0; }
  .bk-divider p { font-size: 8.5pt; margin: 1mm 0; }
  .bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; }
  .bk-card { border-radius: 4mm; box-shadow: none; }
  .bk-card-img { aspect-ratio: 16 / 11; }
  .bk-card-body { padding: 2.5mm 3.5mm 3mm; }
  .bk-card h4 { font-size: 9.5pt; margin: 0.5mm 0 1.5mm; }
  .bk-card dl div { font-size: 7.5pt; }
  .bk-sku { font-size: 6.5pt; }
  .bk-ribbon { font-size: 6pt; top: 2mm; left: 2mm; padding: 1mm 2.5mm; }

  .bk-back { border-radius: 0; margin: 0; min-height: 270mm; break-before: page; page-break-before: always; padding: 60mm 20mm 20mm; }
  .bk-back h3 { font-size: 26pt; }

  /* running footer on inner pages */
  @page { @bottom-center { content: "Accurate Sanitary Ware  ·  accuratesanitaryware.com  ·  Page " counter(page); font: 8pt 'Inter', Arial, sans-serif; color: #7a8394; } }
  @page :first { @bottom-center { content: none; } }
}

/* heading colours: light on dark blocks, dark on light blocks */
.catalogue-doc h2, .catalogue-doc h3 { color: inherit; }
.bk-cover, .bk-divider, .bk-back, .bk-contents { color: #fff; }
.bk-about h3 { color: var(--ink); }

@media print {
  .bk-about-grid { grid-template-columns: 1.15fr 1fr !important; gap: 10mm !important; }
  .bk-contents { padding: 6mm 7mm; }
  .bk-stats { margin: 6mm 0; }
}

/* strict 4:3 image boxes (portrait photos must not stretch the card) */
.bk-card-img { overflow: hidden; }
.bk-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bk-card.is-premium .bk-card-img img { object-fit: cover; object-position: center 55%; }

/* Tagline sits next to the logo only */
.bk-lockup { display: flex; align-items: center; gap: 16px; align-self: flex-start; }
.bk-back .bk-lockup { justify-content: center; align-self: auto; margin-bottom: 24px; }
.bk-back .bk-lockup .bk-logo { margin: 0; }
.bk-lock-tag { font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif; font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: #ff8a98; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, 0.4); max-width: 150px; }
@media print { .bk-lock-tag { font-size: 12pt; padding-left: 4mm; max-width: 40mm; } }

/* ---------- Cover: Accurate brand page (white, logo navy + red) ---------- */
.bk-front {
  --navy: #2a2a8a; --navy-d: #1b1b66; --brand-red: #e80838;
  container-type: inline-size; position: relative; overflow: hidden; background: #fff;
  width: 100%; max-width: 780px; aspect-ratio: 210 / 297; margin: 0 auto 40px;
  border-radius: 20px; box-shadow: 0 16px 44px rgba(16, 24, 40, 0.16); color: var(--navy);
}
.bk-front * { box-sizing: border-box; }
.bk-f-circle { position: absolute; right: -20cqw; top: -20cqw; width: 58cqw; height: 58cqw; border-radius: 50%; background: var(--brand-red); }
.bk-f-panel { position: absolute; left: 52cqw; top: 22cqw; width: 64cqw; height: 94cqw; border-radius: 30cqw 0 0 30cqw; background: linear-gradient(165deg, var(--navy) 0%, var(--navy-d) 100%); }
.bk-f-dots { position: absolute; left: 6cqw; bottom: 38cqw; width: 22cqw; height: 22cqw; background-image: radial-gradient(var(--brand-red) 22%, transparent 24%); background-size: 3.4cqw 3.4cqw; opacity: 0.35; }
.bk-f-logo { position: absolute; left: 8cqw; top: 8cqw; display: flex; align-items: center; gap: 2.4cqw; }
.bk-f-logo img { width: 38cqw; height: auto; display: block; }
.bk-f-tag { font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif; font-weight: 700; font-size: 2.6cqw; line-height: 1.3; color: var(--brand-red); padding-left: 2.4cqw; border-left: 0.5cqw solid var(--brand-red); max-width: 22cqw; }
.bk-f-p { position: absolute; height: auto; filter: drop-shadow(0 1.6cqw 2cqw rgba(0, 0, 0, 0.38)); }
.bk-f-p1 { left: 55cqw; top: 26cqw; width: 48cqw; }
.bk-f-p2 { left: 60cqw; top: 60cqw; width: 40cqw; }
.bk-f-p3 { left: 55cqw; top: 88cqw; width: 34cqw; }
.bk-f-text { position: absolute; left: 8cqw; top: 46cqw; width: 40cqw; }
.bk-f-kicker { display: inline-block; font-size: 1.9cqw; font-weight: 800; letter-spacing: 0.22em; color: var(--brand-red); margin-bottom: 2.4cqw; }
.bk-f-text h2 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 7.4cqw; line-height: 1.02; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.bk-f-text > p { font-size: 2.2cqw; line-height: 1.5; color: #4a5060; margin: 3cqw 0 0; max-width: 34cqw; }
.bk-f-badges { list-style: none; margin: 5cqw 0 0; padding: 0; display: grid; gap: 1.6cqw; }
.bk-f-badges li { display: flex; align-items: baseline; gap: 2cqw; padding-left: 2.4cqw; border-left: 0.6cqw solid var(--brand-red); }
.bk-f-badges strong { font-family: 'Outfit', sans-serif; font-size: 3.6cqw; color: var(--navy); min-width: 15cqw; }
.bk-f-badges span { font-size: 2cqw; color: #4a5060; }
.bk-f-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 19cqw; background: var(--navy-d); border-top: 1.2cqw solid var(--brand-red); display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 0 8cqw; color: #fff; }
.bk-f-foot span { font-size: 2cqw; line-height: 1.4; font-weight: 600; display: block; }
.bk-f-foot b { display: block; font-size: 1.5cqw; letter-spacing: 0.16em; text-transform: uppercase; color: #ff8fa3; font-weight: 800; margin-bottom: 0.5cqw; }

@media print {
  .bk-front { width: 210mm; max-width: none; height: 297mm; margin: 0; border-radius: 0; box-shadow: none; break-after: page; page-break-after: always; }
}

/* cover fine-tuning: keep the tagline clear of the red circle, dots between logo and title */
.bk-f-circle { right: -24cqw; top: -24cqw; width: 48cqw; height: 48cqw; }
.bk-f-dots { left: 8cqw; top: 27cqw; bottom: auto; width: 17cqw; height: 13cqw; }
.bk-f-foot span:first-child { white-space: nowrap; }
.bk-f-foot { padding: 0 6cqw; gap: 2cqw; }
.bk-f-foot span { font-size: 1.72cqw; }
.bk-f-foot b { font-size: 1.35cqw; }

/* one brand palette across the whole catalogue: logo navy + red */
.bk-divider, .bk-back, .bk-contents { background: #1b1b66; }
.bk-divider::before { background: linear-gradient(180deg, #e80838, #ff6b81); }
.bk-back::before { background: linear-gradient(90deg, #e80838, #ff6b81); }
.bk-tag, .bk-sku { color: #e80838; }
.bk-divider .bk-tag, .bk-contents .bk-tag { color: #ff8fa3; }
.bk-divider em { color: #ff8fa3; }
.bk-contents li::before { color: #ff8fa3; }
.bk-back li span { color: #ff8fa3; }
.bk-card-body { border-top-color: #e80838; }
.bk-stats div { border-top-color: #e80838; }
.bk-stats strong, .bk-about h3 { color: #2a2a8a; }
