/* ============================================================
   NTLF MEDICAL – Products Catalog Styles  (style-products.css)
   Design: clean white catalog, navy/blue brand, crisp cards,
   sticky sidebar with filters, responsive grid & list views.
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --navy: #0a2540;
  --blue: #1a56db;
  --blue-dark: #1341b4;
  --blue-light: #e8f0fe;
  --green: #0d9e6e;
  --green-light: #e6f9f2;
  --amber: #f59e0b;
  --red: #e53e3e;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --header-h: 72px;
  --sidebar-w: 260px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --white: #0f172a;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-600: #cbd5e1;
  --gray-800: #f1f5f9;
  --blue-light: #1e3a5f;
  --green-light: #0d3a2a;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}
input,
select {
  font-family: var(--font-body);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.4);
}
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1da851;
  transform: translateY(-1px);
}
.btn-nav {
  background: var(--blue);
  color: #fff;
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: var(--r-sm);
}
.btn-nav:hover {
  background: var(--blue-dark);
}
.btn-ghost {
  background: var(--gray-100);
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--gray-200);
}

/* ── Loader ─────────────────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.loader-logo .logo-ntlf {
  color: #fff;
}
.loader-logo .logo-medical {
  color: var(--green);
  margin-left: 5px;
}
.loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 0 auto 14px;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: var(--r-full);
  animation: loadFill 1.4s ease forwards;
}
@keyframes loadFill {
  to {
    width: 100%;
  }
}
.loader-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9900;
  background: var(--gray-800);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: var(--green);
}
.toast.error {
  background: var(--red);
}

/* ── Dark Toggle ────────────────────────────────────────────── */
.dark-toggle {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 18px;
  z-index: 800;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.dark-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
}
[data-theme="dark"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: none;
}
body:not([data-theme]) .moon-icon {
  display: none;
}

/* ── Scroll Top ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--blue-dark);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}
[data-theme="dark"] .site-header {
  background: #0f172a;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.logo-lines {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.logo-lines span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: var(--r-full);
}
.logo-lines span:nth-child(1) {
  width: 100%;
}
.logo-lines span:nth-child(2) {
  width: 70%;
}
.logo-lines span:nth-child(3) {
  width: 45%;
}
.logo-mark.small {
  width: 34px;
  height: 34px;
}
.logo-mark.small .logo-circle {
  width: 34px;
  height: 34px;
}
.logo-mark.small .logo-lines {
  inset: 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-ntlf {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}
.logo-medical {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[data-theme="dark"] .logo-ntlf {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  font-size: 1.1rem;
  justify-content: center;
  transition: all var(--transition);
}
.nav-cart:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--blue);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: var(--r-full);
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--header-h) + 52px) 0 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #080e20 0%, #0a2540 40%, #0d3561 80%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.phb-blob {
  position: absolute;
  border-radius: var(--r-full);
  filter: blur(90px);
  opacity: 0.18;
}
.phb-1 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: -200px;
  right: -80px;
  animation: blobF 9s ease-in-out infinite;
}
.phb-2 {
  width: 350px;
  height: 350px;
  background: var(--green);
  bottom: -100px;
  left: -80px;
  animation: blobF 11s ease-in-out infinite reverse;
}
.phb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
@keyframes blobF {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15px, -20px);
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.page-hero-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  margin-bottom: 18px;
  max-width: 640px;
}
.page-hero-content p strong {
  color: #fff;
}
.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: #fca5a5;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.hero-notice a {
  color: #fdba74;
  font-weight: 700;
}
.hero-notice a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG LAYOUT
════════════════════════════════════════════════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────── */
.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filter-toggle-btn {
  display: none; /* shown on mobile only */
  width: 100%;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  box-shadow: var(--shadow-sm);
}
.filter-icon {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  color: var(--blue);
}
.filter-chevron {
  transition: transform var(--transition);
  font-size: 0.7rem;
  color: var(--blue);
  margin-left: auto;
  display: flex;
  align-items: center;
}
.filter-toggle-btn.open .filter-chevron {
  transform: rotate(180deg);
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.filter-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.filter-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* Category list */
.filter-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: left;
}
.cat-btn:hover {
  background: var(--blue-light);
  color: var(--blue);
}
.cat-btn.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.cat-btn-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-btn-icon {
  font-size: 1rem;
  line-height: 1;
}
.cat-btn-count {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cat-btn.active .cat-btn-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Price inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.price-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.price-label {
  font-size: 0.74rem;
  color: var(--gray-500);
  font-weight: 600;
}
.price-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color var(--transition);
}
.price-input:focus {
  outline: none;
  border-color: var(--blue);
}
.price-dash {
  color: var(--gray-400);
  font-weight: 700;
  padding-top: 18px;
}
.btn-apply-price {
  width: 100%;
  padding: 9px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-apply-price:hover {
  background: var(--blue);
  color: #fff;
}

/* Sort select */
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:focus {
  outline: none;
  border-color: var(--blue);
}

/* Reset button */
.btn-reset-filters {
  width: 100%;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  color: var(--gray-500);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
  margin-bottom: 14px;
}
.btn-reset-filters:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(229, 62, 62, 0.05);
}

/* Sidebar contact box */
.sidebar-contact-box {
  background: linear-gradient(145deg, var(--navy) 0%, #0d3561 100%);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scb-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.scb-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}
.scb-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
}

/* ─── CATALOG MAIN ───────────────────────────── */
.catalog-main {
  min-width: 0;
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 4px;
  transition: color var(--transition);
}
.search-clear:hover {
  color: var(--red);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.results-count {
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.view-btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.view-btn.active {
  background: var(--blue);
  color: #fff;
}
.view-btn:hover:not(.active) {
  background: var(--bg-alt);
}

/* Active filters bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 0;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.filter-tag-remove {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
}
.filter-tag-remove:hover {
  color: var(--red);
}

/* ── Products Grid View ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 86, 219, 0.3);
}

/* Image area */
.pc-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  flex-direction: column;
  gap: 6px;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .pc-img img {
  transform: scale(1.06);
}
.pc-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-alt);
  font-size: 0.75rem;
  color: var(--gray-400);
  padding: 16px;
  text-align: center;
}
.pc-img-ph .ph-icon {
  font-size: 2rem;
  opacity: 0.4;
}
.pc-img-ph .ph-name {
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.6;
}

/* Badges */
.pc-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.pc-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.4;
}
.pc-badge-popular {
  background: var(--blue);
  color: #fff;
}
.pc-badge-featured {
  background: var(--amber);
  color: #fff;
}
.pc-badge-new {
  background: var(--green);
  color: #fff;
}

/* Quick view button */
.pc-quick-view {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.product-card:hover .pc-quick-view {
  opacity: 1;
  transform: translateY(0);
}

/* Card body */
.pc-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-cat {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.pc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}
[data-theme="dark"] .pc-name {
  color: var(--gray-800);
}
.pc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pc-price-block {
  display: flex;
  flex-direction: column;
}
.pc-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1.1;
}
.pc-unit {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 500;
}
.pc-actions {
  display: flex;
  gap: 8px;
}
.pc-btn-detail {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.pc-btn-detail:hover {
  background: var(--blue);
  color: #fff;
}
.pc-btn-cart {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.pc-btn-cart:hover {
  background: var(--green);
  color: #fff;
}

/* ── LIST VIEW override ─────────────────────────────────────── */
.products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 14px;
}
.products-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}
.products-grid.list-view .pc-img {
  width: 160px;
  min-width: 160px;
  aspect-ratio: auto;
  height: auto;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.products-grid.list-view .pc-body {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.products-grid.list-view .pc-desc {
  display: block;
  -webkit-line-clamp: unset;
  flex: 1 1 100%;
  margin-bottom: 0;
}
.products-grid.list-view .pc-footer {
  margin-left: auto;
  flex-wrap: nowrap;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-400);
  margin: 0 auto 20px;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 10px;
}
[data-theme="dark"] .empty-state h3 {
  color: var(--gray-800);
}
.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   QUICK VIEW MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-box {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--red);
  color: #fff;
}
.modal-inner {
  padding: 36px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.modal-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gray-300);
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-cat {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.modal-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
[data-theme="dark"] .modal-name {
  color: var(--gray-800);
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.modal-unit {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-specs {
  margin-bottom: 24px;
}
.modal-specs h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.modal-specs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-specs li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-ntlf {
  color: #fff;
}
.footer-logo .logo-medical {
  color: var(--green);
}
.footer-logo .logo-circle {
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.social-link.wa:hover {
  background: #25d366;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.footer-contact li a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.footer-contact li a:hover {
  color: var(--green);
}
.fc-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  text-align: center;
  color: var(--green);
  font-size: 0.88rem;
}
.footer-notice {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(229, 62, 62, 0.12);
  border: 1px solid rgba(229, 62, 62, 0.25);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.83rem;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.83rem;
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: #fff;
}

/* ── Entry Animations ───────────────────────────────────────── */
.product-card {
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive Breakpoints ─────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 230px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .filter-toggle-btn {
    display: flex;
  }
  .filter-panel {
    display: none;
    margin-top: 8px;
  }
  .filter-panel.open {
    display: flex;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--green);
    gap: 2px;
    z-index: 400;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .btn-nav {
    display: none;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    min-width: unset;
  }
  .toolbar-right {
    justify-content: space-between;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-inner {
    padding: 24px;
  }
  .products-grid.list-view .pc-img {
    width: 120px;
    min-width: 120px;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .products-grid.list-view .product-card {
    flex-direction: column;
  }
  .products-grid.list-view .pc-img {
    width: 100%;
    height: 200px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}

/* ── FA icon refinements for products page ── */
.nav-cart .cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.hero-notice i {
  font-size: 0.88rem;
  flex-shrink: 0;
}
.modal-close {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.social-link i {
  font-size: 0.88rem;
}

/* UPDATED HERO SECTION — background image with dark overlay */
.page-hero {
  background-image: url("/room2.jpeg");
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* NEW STYLES ADDED — pseudo-element overlay keeps text readable */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(8, 14, 32, 0.9) 0%,
    rgba(10, 37, 64, 0.87) 40%,
    rgba(13, 53, 97, 0.85) 80%
  );
  z-index: 1;
}
.page-hero-bg,
.page-hero-content,
.page-hero__container {
  position: relative;
  z-index: 2;
}
