/*
Theme Name: Singularity Healthcare
Theme URI: https://singularity-healthcare.com
Author: Singularity Healthcare
Description: Installable WordPress catalogue theme for surgical technologies, surgical consumables, and infection prevention products.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: singularity-healthcare
*/

:root {
  --sh-blue: #1479b8;
  --sh-blue-dark: #0c4871;
  --sh-teal: #10a7a4;
  --sh-green: #54ad6a;
  --sh-ink: #162532;
  --sh-muted: #607080;
  --sh-line: #dbe7ef;
  --sh-bg: #f7fbfd;
  --sh-white: #ffffff;
  --sh-radius: 8px;
  --sh-shadow: 0 18px 45px rgba(12, 72, 113, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--sh-ink);
  background: #fbfdff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--sh-blue); text-decoration: none; }
a:hover { color: var(--sh-blue-dark); }
img { max-width: 100%; height: auto; display: block; }
.sh-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sh-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--sh-line); backdrop-filter: blur(10px); }
.sh-nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.sh-brand { display: flex; align-items: center; gap: 12px; color: var(--sh-ink); font-weight: 800; }
.sh-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sh-brand small { display: block; color: var(--sh-muted); font-weight: 600; }
.sh-menu { display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; list-style: none; }
.sh-menu a { color: var(--sh-ink); font-weight: 700; }
.sh-button, button.sh-button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--sh-radius);
  background: var(--sh-blue); color: white; font-weight: 800; cursor: pointer;
}
.sh-button:hover { background: var(--sh-blue-dark); color: white; }
.sh-button.secondary { background: #e9f5fb; color: var(--sh-blue-dark); }
.sh-hero { background: radial-gradient(circle at 82% 20%, rgba(16,167,164,.14), transparent 32%), linear-gradient(135deg, #f4fbff 0%, #ffffff 52%, #edf8f5 100%); border-bottom: 1px solid var(--sh-line); }
.sh-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 72px 0 58px; }
.sh-eyebrow { color: var(--sh-teal); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; color: var(--sh-ink); }
h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 22px; }
.sh-lead { font-size: 19px; color: #405363; max-width: 680px; }
.sh-hero-media { position: relative; min-height: 430px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-content: center; }
.sh-hero-media img { height: 205px; width: 100%; object-fit: cover; border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); background: #eef7fb; }
.sh-section { padding: 64px 0; }
.sh-section.alt { background: var(--sh-bg); border-block: 1px solid var(--sh-line); }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sh-card { background: white; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; box-shadow: 0 12px 32px rgba(22,37,50,.06); transition: transform .18s ease, box-shadow .18s ease; }
.sh-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(22,37,50,.1); }
.sh-card-body { padding: 22px; }
.sh-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #eef7fb; }
.sh-meta { color: var(--sh-muted); font-size: 14px; font-weight: 700; }
.sh-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sh-product-card h3 { font-size: 19px; min-height: 44px; }
.sh-product-card p { color: var(--sh-muted); }
.sh-filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.sh-pill { border: 1px solid var(--sh-line); background: white; border-radius: 999px; padding: 9px 14px; color: var(--sh-ink); font-weight: 800; }
.sh-product-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; padding: 54px 0; }
.sh-product-detail img { border-radius: var(--sh-radius); background: #eef7fb; box-shadow: var(--sh-shadow); }
.sh-specs, .sh-components { width: 100%; border-collapse: collapse; margin-top: 18px; }
.sh-specs th, .sh-specs td, .sh-components th, .sh-components td { border: 1px solid var(--sh-line); padding: 11px 12px; text-align: left; vertical-align: top; }
.sh-specs th, .sh-components th { background: #eef7fb; color: var(--sh-blue-dark); }
.sh-rich-product { margin-top: 28px; }
.sh-rich-product h3 { margin-top: 28px; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
.product-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f9fc; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 10px; box-shadow: none; }
.feature-showcase { display: grid; gap: 14px; margin: 20px 0 28px; }
.feature-showcase article { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: #fff; padding: 14px; }
.feature-showcase img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--sh-radius); background: #f4f9fc; padding: 8px; box-shadow: none; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 26px; font-size: 14px; }
.spec-table caption { text-align: left; color: var(--sh-blue-dark); font-weight: 900; padding: 0 0 8px; }
.spec-table th, .spec-table td { border: 1px solid var(--sh-line); padding: 10px; text-align: left; vertical-align: top; }
.spec-table th { background: #eef7fb; color: var(--sh-blue-dark); }
.spec-table-wide { display: block; overflow-x: auto; white-space: nowrap; }
.sh-footer { background: #10283a; color: #dcebf3; padding: 44px 0; }
.sh-footer a { color: #ffffff; }
.sh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.sh-modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7, 23, 34, .58); }
.sh-modal.is-open { display: flex; }
.sh-modal-panel { width: min(560px, 100%); background: white; border-radius: var(--sh-radius); padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.sh-modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.sh-close { border: 0; background: #eef7fb; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 22px; }
.sh-form label { display: grid; gap: 6px; color: var(--sh-ink); font-weight: 800; margin: 14px 0; }
.sh-form input, .sh-form textarea { width: 100%; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 12px; font: inherit; }
.sh-form textarea { min-height: 130px; resize: vertical; }
.sh-notice { display: none; margin: 14px 0; padding: 12px; border-radius: var(--sh-radius); background: #e9f9ef; color: #146b33; font-weight: 800; }
.sh-notice.is-visible { display: block; }
.sh-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.sh-values span { min-height: 64px; display: flex; align-items: center; padding: 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: white; color: var(--sh-blue-dark); font-weight: 800; }
@media (max-width: 860px) {
  .sh-nav, .sh-menu { align-items: flex-start; flex-direction: column; }
  .sh-menu { gap: 10px; padding-bottom: 18px; }
  .sh-hero-grid, .sh-product-detail, .sh-footer-grid { grid-template-columns: 1fr; }
  .sh-grid, .sh-product-grid { grid-template-columns: 1fr; }
  .sh-values { grid-template-columns: 1fr; }
  .sh-hero-media { min-height: 0; }
  .feature-showcase article, .product-gallery { grid-template-columns: 1fr; }
}
