/* ================================================================
   PHARMAFLOW PORTAL STYLES — UROCHEM BIOTECH
   Brand Red: #E91E24 | Brand Cyan: #00B8E6 | Pure White: #ffffff
   High-density responsive grid (up to 6 columns) matching PharmaFlow
================================================================ */

:root {
  --pf-red: #ff2d4a;
  --pf-red-dark: #d9122f;
  --pf-red-soft: rgba(255, 45, 74, 0.08);
  --pf-cyan: #19d3ff;
  --pf-cyan-dark: #0bb5dd;
  --pf-cyan-soft: rgba(25, 211, 255, 0.10);
  --pf-cyan-border: rgba(25, 211, 255, 0.30);
  --pf-navy: #050d24;
  --pf-navy-dark: #030818;
  --pf-navy-light: #0a1a45;
  --pf-white: #ffffff;
  --pf-bg: #f4f7fc;
  --pf-surface: #ffffff;
  --pf-border: #e2e8f4;
  --pf-border-light: #edf2f9;
  --pf-text-main: #0a1633;
  --pf-text-muted: #5f6f8f;
  --pf-text-light: #94a3b8;
  --pf-radius: 14px;
  --pf-radius-sm: 8px;
  --pf-radius-lg: 20px;
  --pf-shadow-sm: 0 1px 3px rgba(10, 22, 51, 0.05);
  --pf-shadow-md: 0 6px 18px rgba(10, 22, 51, 0.08);
  --pf-shadow-lg: 0 12px 32px rgba(10, 22, 51, 0.12);
  --pf-font: 'Manrope', system-ui, -apple-system, sans-serif;
  --pf-font-serif: 'Sora', 'Manrope', sans-serif;
}

/* Base resets & layout container */
body.pf-body {
  background: var(--pf-bg) !important;
  color: var(--pf-text-main);
  font-family: var(--pf-font);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Ensure custom dot cursor & follower ring float on top of all popups and content */
#csr {
  position: fixed;
  z-index: 999999999 !important;
  pointer-events: none !important;
}

#csr-r {
  position: fixed;
  z-index: 999999998 !important;
  pointer-events: none !important;
}

body.pf-body a,
body.pf-body button,
body.pf-body [onclick],
body.pf-body .pf-btn-export,
body.pf-body .pf-btn-float-action,
body.pf-body .pf-card-wish,
body.pf-body .pf-step-btn,
body.pf-body .pf-modal-close,
body.pf-body .pf-prod-title,
body.pf-body .pf-img-wrap,
body.pf-body label,
body.pf-body .pf-radio-label,
body.pf-body input[type="radio"],
body.pf-body input[type="checkbox"],
body.pf-body select,
body.pf-body .pf-search-shortcut-btn,
body.pf-body .pf-search-clear {
  cursor: pointer !important;
}

body.pf-body input[type="text"],
body.pf-body input[type="search"],
body.pf-body textarea {
  cursor: text !important;
}

body.pf-body .pf-step-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.45;
}

.pf-main-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 112px 24px 100px; /* Comfortable top clearance for fixed header */
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .pf-main-container {
    padding: 95px 16px 80px;
  }
}

/* ================================================================
   1. PHARMAFLOW ULTRA-LUXURY HERO SHOWCASE & PAGE HEADER
================================================================ */
.pf-hero-showcase {
  background: radial-gradient(circle at 85% 15%, rgba(25, 211, 255, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255, 45, 74, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(31, 107, 255, 0.12) 0%, transparent 60%),
              linear-gradient(135deg, #050d24 0%, #0a1b47 50%, #040817 100%);
  color: #fff;
  border-radius: 24px;
  padding: 30px 34px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 50px -10px rgba(5, 13, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Ambient glow orbs */
.pf-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.pf-hero-glow.pf-glow-cyan {
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(25, 211, 255, 0.35) 0%, transparent 70%);
}

.pf-hero-glow.pf-glow-red {
  bottom: -90px;
  left: 25%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 45, 74, 0.25) 0%, transparent 70%);
}

.pf-hero-grid-pattern {
  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: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

.pf-hero-content-wrap {
  position: relative;
  z-index: 2;
}

/* Breadcrumb & Meta Engine Status Bar */
.pf-hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.pf-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  font-weight: 600;
  color: #94a3b8;
}

.pf-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.pf-breadcrumb a:hover {
  color: var(--pf-cyan);
}

.pf-crumb-sep {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
}

.pf-crumb-current {
  color: var(--pf-cyan);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pf-hero-badges-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-chip-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
}

.pf-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pfDotPulse 1.8s infinite;
}

@keyframes pfDotPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pf-chip-gmp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Main Hero Row: Title + Controls */
.pf-hero-main-row {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.pf-initiative-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-cyan);
  margin-bottom: 10px;
}

.pf-hero-title {
  margin: 0 0 12px;
  font-family: var(--pf-font-serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.pf-cyan-glow {
  color: var(--pf-cyan);
  text-shadow: 0 0 24px rgba(25, 211, 255, 0.45);
}

.pf-title-subtext {
  font-weight: 600;
  font-size: 0.75em;
  color: #cbd5e1;
  display: inline-block;
}

.pf-hero-description {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 680px;
}

/* Live Stats Band */
.pf-hero-stats-band {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 22px;
  width: fit-content;
  backdrop-filter: blur(12px);
}

.pf-stat-item {
  display: flex;
  flex-direction: column;
}

.pf-stat-num {
  font-family: var(--pf-font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pf-stat-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.pf-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* Hero Controls Column: Hamburger + Portal Cards */
.pf-hero-controls-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ultra-Premium Hamburger / Filter Trigger Button */
.pf-hero-hamburger-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(25, 211, 255, 0.15), rgba(31, 107, 255, 0.25));
  border: 1.5px solid rgba(25, 211, 255, 0.4);
  border-radius: 16px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -6px rgba(25, 211, 255, 0.25);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.pf-hero-hamburger-btn:hover {
  background: linear-gradient(135deg, rgba(25, 211, 255, 0.25), rgba(31, 107, 255, 0.38));
  border-color: var(--pf-cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(25, 211, 255, 0.4);
}

.pf-hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  flex-shrink: 0;
}

.pf-hamburger-lines span {
  display: block;
  height: 2.5px;
  border-radius: 4px;
  background: var(--pf-cyan);
  transition: all 0.3s ease;
}

.pf-hamburger-lines span:nth-child(1) { width: 100%; }
.pf-hamburger-lines span:nth-child(2) { width: 75%; background: #fff; }
.pf-hamburger-lines span:nth-child(3) { width: 90%; }

.pf-hero-hamburger-btn:hover .pf-hamburger-lines span:nth-child(2) {
  width: 100%;
}

.pf-hamburger-info {
  flex: 1;
}

.pf-h-title {
  display: block;
  font-family: var(--pf-font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.pf-h-sub {
  display: block;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
}

.pf-h-badge {
  background: var(--pf-red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 45, 74, 0.5);
  flex-shrink: 0;
}

/* Customer Portal Login Card */
.pf-hero-login-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.pf-hero-login-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

.pf-login-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pf-red), var(--pf-red-dark));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 45, 74, 0.35);
}

.pf-login-card-text {
  flex: 1;
}

.pf-login-title {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  line-height: 1.2;
}

.pf-login-sub {
  display: block;
  font-size: 0.70rem;
  color: #94a3b8;
}

.pf-login-arrow {
  font-size: 1.3rem;
  color: #cbd5e1;
  transition: transform 0.2s ease;
}

.pf-hero-login-card:hover .pf-login-arrow {
  transform: translateX(4px);
  color: var(--pf-cyan);
}

/* WhatsApp Direct Pill */
.pf-hero-wa-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.pf-hero-wa-pill:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.pf-hero-wa-pill i {
  font-size: 1.05rem;
}

/* ================================================================
   TOP CATALOG TOOLBAR (Omni-Search + PDF Exports)
================================================================ */
.pf-catalog-toolbar {
  background: var(--pf-white);
  border: 1.5px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--pf-shadow-sm);
  flex-wrap: wrap;
}

.pf-search-box-wrap {
  flex: 1;
  min-width: 290px;
  position: relative;
  display: flex;
  align-items: center;
}

.pf-search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--pf-text-light);
  pointer-events: none;
  transition: color 0.2s ease;
}

.pf-search-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  background: var(--pf-bg);
  border: 1.5px solid var(--pf-border);
  border-radius: 35px;
  font-size: 0.86rem;
  font-family: var(--pf-font);
  color: var(--pf-text-main);
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.pf-search-input:focus {
  background: #fff;
  border-color: var(--pf-cyan);
  box-shadow: 0 0 0 4px var(--pf-cyan-soft);
}

.pf-search-input:focus + .pf-search-icon {
  color: var(--pf-cyan);
}

.pf-search-clear {
  position: absolute;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: var(--pf-text-muted);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pf-search-clear:hover {
  background: var(--pf-red);
  color: #fff;
}

.pf-export-suite {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--pf-white);
  border: 1.5px solid var(--pf-border);
  border-radius: 30px;
  color: var(--pf-text-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.pf-btn-export:hover {
  background: var(--pf-bg);
  border-color: var(--pf-cyan);
  color: var(--pf-cyan-dark);
  transform: translateY(-1px);
  box-shadow: var(--pf-shadow-sm);
}

.pf-btn-export.primary {
  background: linear-gradient(135deg, var(--pf-cyan), var(--pf-cyan-dark));
  border-color: var(--pf-cyan);
  color: #fff;
}

.pf-btn-export.primary:hover {
  box-shadow: 0 4px 14px var(--pf-cyan-soft);
  transform: translateY(-1px);
}

.pf-btn-export svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pf-catalog-toolbar {
    padding: 12px;
    gap: 12px;
    margin-bottom: 16px;
    border-radius: var(--pf-radius);
  }

  .pf-search-box-wrap {
    min-width: 100%;
    width: 100%;
  }

  .pf-search-input {
    padding: 11px 40px 11px 40px;
    font-size: 0.82rem;
  }

  .pf-export-suite {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pf-export-suite::-webkit-scrollbar {
    display: none;
  }

  .pf-btn-export {
    padding: 8px 13px;
    font-size: 0.74rem;
    flex-shrink: 0;
  }
}

/* ================================================================
   TWO-COLUMN LAYOUT: SIDEBAR + PRODUCT GRID
================================================================ */
.pf-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .pf-layout {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   LEFT FILTER SIDEBAR & OFF-CANVAS DRAWER
================================================================ */
.pf-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 36, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pf-sidebar-backdrop.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.pf-sidebar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--pf-border);
}

.pf-sidebar-header-title {
  display: flex;
  align-items: center;
  font-family: var(--pf-font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pf-navy);
}

.pf-sidebar-close-btn {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--pf-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pf-sidebar-close-btn:hover {
  background: var(--pf-red);
  color: #fff;
}

.pf-sidebar {
  background: var(--pf-white);
  border: 1.5px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  padding: 20px;
  box-shadow: var(--pf-shadow-sm);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-border) transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pf-sidebar.pf-highlight-pulse {
  border-color: var(--pf-cyan) !important;
  box-shadow: 0 0 0 4px var(--pf-cyan-soft), 0 12px 32px rgba(25, 211, 255, 0.25) !important;
  animation: pfPulseBorder 1.2s ease;
}

@keyframes pfPulseBorder {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.pf-sidebar::-webkit-scrollbar {
  width: 4px;
}
.pf-sidebar::-webkit-scrollbar-thumb {
  background: var(--pf-border);
  border-radius: 4px;
}

.pf-filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pf-border-light);
}

.pf-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pf-filter-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-quick-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-checkbox-label,
.pf-radio-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--pf-text-main);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--pf-radius-sm);
  transition: all 0.2s ease;
  user-select: none;
}

.pf-checkbox-label:hover,
.pf-radio-label:hover {
  background: var(--pf-bg);
  color: var(--pf-cyan-dark);
}

.pf-checkbox-label.active,
.pf-radio-label.active {
  background: var(--pf-cyan-soft);
  color: var(--pf-cyan-dark);
}

/* Custom styled inputs */
.pf-checkbox-label input[type="checkbox"],
.pf-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

.pf-radio-label input[type="radio"] {
  border-radius: 50%;
}

.pf-checkbox-label input[type="checkbox"]:checked,
.pf-radio-label input[type="radio"]:checked {
  border-color: var(--pf-cyan);
  background: var(--pf-cyan);
}

.pf-checkbox-label input[type="checkbox"]:checked::before {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.pf-radio-label input[type="radio"]:checked::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.pf-filter-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--pf-border);
  color: var(--pf-text-muted);
  margin-left: auto;
}

.pf-radio-label.active .pf-filter-badge {
  background: var(--pf-cyan);
  color: #fff;
}

.pf-scroll-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.pf-scroll-list::-webkit-scrollbar {
  width: 3px;
}
.pf-scroll-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ================================================================
   RIGHT CONTENT: PRODUCT CATALOG GRID (6 COLUMNS)
================================================================ */
.pf-catalog-container {
  min-height: 600px;
}

.pf-grid-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--pf-text-muted);
}

.pf-grid-count {
  font-weight: 700;
  color: var(--pf-text-main);
}

.pf-grid-count span.pf-num {
  color: var(--pf-red);
}

/* Up to 6 Columns on Ultrawide / Large Desktops */
.pf-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1600px) {
  .pf-product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1350px) {
  .pf-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .pf-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pf-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .pf-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pf-card {
    padding: 10px 10px 12px;
    border-radius: 12px;
  }

  .pf-img-wrap {
    height: 110px;
    margin-bottom: 8px;
  }

  .pf-prod-title {
    font-size: 0.84rem;
    min-height: 34px;
    margin-bottom: 4px;
    line-height: 1.25;
  }

  .pf-prod-packing {
    font-size: 0.70rem;
    margin-bottom: 6px;
  }

  .pf-price-block {
    font-size: 0.76rem;
    margin-bottom: 6px;
  }

  .pf-mrp-val {
    font-size: 0.90rem;
  }

  .pf-meta-row {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .pf-stepper-wrap {
    padding: 2px 4px;
  }

  .pf-step-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .pf-step-val {
    font-size: 0.82rem;
    min-width: 20px;
  }
}

@media (max-width: 320px) {
  .pf-product-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   PRODUCT CARD (Match PharmaFlow screenshot exactly)
================================================================ */
.pf-card {
  background: var(--pf-white);
  border: 1.5px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--pf-shadow-sm);
  overflow: hidden;
}

.pf-card:hover {
  transform: translateY(-4px);
  border-color: var(--pf-cyan-border);
  box-shadow: var(--pf-shadow-lg);
}

/* Wishlist Heart */
.pf-card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--pf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pf-text-light);
  transition: all 0.2s ease;
}

.pf-card-wish:hover {
  background: #fff;
  color: var(--pf-red);
  border-color: var(--pf-red);
  transform: scale(1.12);
}

.pf-card-wish.active {
  background: var(--pf-red-soft);
  color: var(--pf-red);
  border-color: var(--pf-red);
}

.pf-card-wish svg {
  width: 14px;
  height: 14px;
}

/* Packshot Image */
.pf-img-wrap {
  width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid rgba(226, 232, 244, 0.8);
  border-radius: var(--pf-radius-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}

.pf-img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pf-card:hover .pf-img-wrap img {
  transform: scale(1.08);
}

.pf-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  color: var(--pf-cyan);
}

.pf-img-fallback svg {
  width: 42px;
  height: 42px;
  opacity: 0.6;
}

.pf-img-fallback span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--pf-text-muted);
  margin-top: 6px;
}

/* Product Info */
.pf-prod-title {
  font-family: var(--pf-font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pf-text-main);
  line-height: 1.25;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
  cursor: pointer;
  transition: color 0.2s;
}

.pf-prod-title:hover {
  color: var(--pf-red);
}

.pf-prod-packing {
  font-size: 0.72rem;
  color: var(--pf-text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pricing block */
.pf-price-block {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.pf-mrp-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pf-text-light);
}

.pf-mrp-val {
  font-family: var(--pf-font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--pf-navy);
}

.pf-mrp-unit {
  font-size: 0.7rem;
  color: var(--pf-text-muted);
  font-weight: 500;
}

/* Meta: Division & Segment pills */
.pf-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--pf-text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pf-brand-tag {
  font-weight: 700;
  color: var(--pf-red);
}

.pf-meta-sep {
  opacity: 0.4;
}

.pf-seg-tag {
  font-weight: 600;
  color: var(--pf-text-muted);
}

/* ================================================================
   QUANTITY STEPPER [- 0 +] (Key PharmaFlow component)
================================================================ */
.pf-stepper-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--pf-border);
  border-radius: 30px;
  background: var(--pf-bg);
  padding: 3px;
  transition: all 0.2s ease;
}

.pf-card:hover .pf-stepper-wrap {
  border-color: var(--pf-cyan-border);
  background: #fff;
}

.pf-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--pf-cyan-dark);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pf-step-btn:hover {
  background: var(--pf-cyan);
  color: #fff;
  transform: scale(1.08);
}

.pf-step-btn.minus {
  color: var(--pf-red);
}

.pf-step-btn.minus:hover {
  background: var(--pf-red);
  color: #fff;
}

.pf-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.pf-step-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pf-text-main);
  text-align: center;
  min-width: 32px;
}

.pf-step-val.has-qty {
  color: var(--pf-red);
}

/* ================================================================
/* ================================================================
   FLOATING CART & ORDER ACTION DRAWER
================================================================ */
.pf-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  z-index: 9990;
  background: rgba(7, 21, 38, 0.95);
  color: #fff;
  border-radius: 40px;
  padding: 10px 22px;
  box-shadow: 0 16px 45px rgba(7, 21, 38, 0.45), 0 0 0 1.5px rgba(0, 184, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 90vw;
  box-sizing: border-box;
}

.pf-floating-bar.active {
  transform: translateX(-50%) translateY(0);
}

/* HIDE WHEN MOBILE MENU DRAWER IS OPEN */
body.pf-menu-open .pf-floating-bar,
.mob-bg.open ~ .pf-floating-bar,
.mob-bg.open ~ * .pf-floating-bar,
body.pf-menu-open #pfFloatingBar {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(200px) !important;
}

.pf-float-info {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  min-width: 0;
}

.pf-float-cart-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pf-cyan), var(--pf-cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 184, 230, 0.6);
  flex-shrink: 0;
}

.pf-cart-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  background: var(--pf-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 12px;
  padding: 1px 5px;
  min-width: 14px;
  text-align: center;
  border: 1.5px solid #071526;
  line-height: 1.2;
}

.pf-float-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.pf-float-text-main {
  font-size: 0.90rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.pf-float-total {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.pf-float-sep {
  color: #64748b;
  font-size: 0.75rem;
}

.pf-float-count {
  color: var(--pf-cyan);
  font-weight: 700;
  font-size: 0.82rem;
}

.pf-float-text-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.pf-float-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pf-btn-float-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.pf-btn-float-action.wa {
  background: #25D366;
  color: #fff;
}

.pf-btn-float-action.wa:hover {
  background: #1eb956;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.pf-btn-float-action.review {
  background: linear-gradient(135deg, var(--pf-red), var(--pf-red-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(233, 30, 36, 0.45);
}

.pf-btn-float-action.review:hover {
  transform: translateY(-2px);
}

.pf-btn-float-action.customer {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pf-btn-float-action.customer:hover {
  background: var(--pf-cyan);
  color: #071526;
  border-color: var(--pf-cyan);
  transform: translateY(-2px);
}

/* Floating Bar Responsive Rules */
@media (max-width: 680px) {
  .pf-floating-bar {
    width: calc(100% - 16px);
    max-width: 480px;
    bottom: 12px;
    padding: 7px 10px 7px 10px;
    gap: 8px;
    border-radius: 32px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1.5px rgba(0, 184, 230, 0.4);
  }

  .pf-float-info {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .pf-float-cart-icon {
    width: 34px;
    height: 34px;
  }

  .pf-float-cart-icon svg {
    width: 16px;
    height: 16px;
  }

  .pf-cart-badge {
    top: -4px;
    right: -4px;
    font-size: 0.60rem;
    padding: 1px 4px;
  }

  .pf-float-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.15;
    overflow: hidden;
  }

  .pf-float-text-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: nowrap;
    overflow: hidden;
  }

  .pf-float-sep {
    display: none;
  }

  .pf-float-total {
    font-size: 0.94rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
  }

  .pf-float-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--pf-cyan);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
  }

  .pf-float-text-sub {
    display: none;
  }

  .pf-float-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .pf-btn-float-action {
    padding: 7px 12px;
    font-size: 0.76rem;
    gap: 4px;
    border-radius: 20px;
  }

  .pf-floating-bar .pf-btn-float-action .pf-desk-word {
    display: none; /* Shows "Review" instead of "Review Order" on mobile */
  }

  .pf-floating-bar .pf-btn-float-action.customer {
    display: none;
  }
}

@media (max-width: 400px) {
  .pf-floating-bar {
    width: calc(100% - 10px);
    padding: 6px 8px;
    gap: 6px;
    bottom: 8px;
  }

  .pf-floating-bar .pf-float-cart-icon {
    width: 30px;
    height: 30px;
  }

  .pf-floating-bar .pf-float-cart-icon svg {
    width: 14px;
    height: 14px;
  }

  .pf-floating-bar .pf-float-total {
    font-size: 0.88rem;
  }

  .pf-floating-bar .pf-float-count {
    font-size: 0.62rem;
    max-width: 85px;
  }

  .pf-floating-bar .pf-btn-float-action {
    padding: 6px 9px;
    font-size: 0.70rem;
    gap: 3px;
  }

  .pf-floating-bar .pf-btn-float-action.wa .pf-btn-label {
    display: none; /* Just green circular button with WhatsApp icon */
  }

  .pf-floating-bar .pf-btn-float-action.wa {
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
  }
}

/* Customer Portal Buttons */
.pf-hero-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pf-red), var(--pf-red-dark));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(233, 30, 36, 0.35);
  cursor: pointer !important;
}

.pf-hero-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 36, 0.5);
  background: #cb151a;
  color: #fff;
}

.pf-btn-export.cust-login {
  background: var(--pf-navy-dark);
  color: #fff;
  border-color: var(--pf-navy-dark);
}

.pf-btn-export.cust-login:hover {
  background: var(--pf-red);
  color: #fff;
  border-color: var(--pf-red);
}

/* High-priority custom cursor stacking */
#csr {
  z-index: 999999999 !important;
  pointer-events: none !important;
}

#csr-r {
  z-index: 999999998 !important;
  pointer-events: none !important;
}

/* ================================================================
   MODALS: QUICK VIEW & CART REVIEW (100% RESPONSIVE)
================================================================ */
body.pf-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.pf-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: rgba(5, 13, 36, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  cursor: default !important;
  pointer-events: auto !important;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-modal-backdrop.open {
  display: flex !important;
  opacity: 1;
}

.pf-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(5, 13, 36, 0.45), 0 0 0 1px rgba(25, 211, 255, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  z-index: 1000000 !important;
  cursor: default !important;
  pointer-events: auto !important;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-modal-backdrop.open .pf-modal-card {
  transform: scale(1) translateY(0);
}

.pf-modal-card * {
  cursor: default;
}

.pf-modal-card button,
.pf-modal-card a,
.pf-modal-card [onclick],
.pf-modal-close,
.pf-modal-step-btn,
.pf-order-step-btn,
.pf-order-del-btn {
  cursor: pointer !important;
}

/* Modal Header */
.pf-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  background: #ffffff;
}

.pf-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pf-modal-badge {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-red);
  margin-bottom: 2px;
}

.pf-modal-badge.pf-badge-cyan {
  color: var(--pf-cyan-dark);
}

.pf-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pf-navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-modal-sub,
.pf-modal-category {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.pf-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
}

.pf-modal-close:hover {
  background: var(--pf-red);
  color: #ffffff;
  border-color: var(--pf-red);
  transform: rotate(90deg);
}

/* ================================================================
   PRODUCT QUICK VIEW MODAL BODY
================================================================ */
.pf-modal-body {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-modal-img-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-modal-img {
  width: 100%;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.pf-modal-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pf-modal-img:hover img {
  transform: scale(1.05);
}

.pf-modal-img-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  padding: 0 4px;
}

.pf-modal-info-col {
  display: flex;
  flex-direction: column;
}

.pf-modal-salt-box {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--pf-cyan-dark);
}

.pf-salt-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.pf-salt-heading {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--pf-navy);
}

.pf-modal-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 14px;
}

.pf-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0 0 16px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  overflow: hidden;
}

.pf-spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #edf2f7;
}

.pf-spec-table tr:last-child td {
  border-bottom: none;
}

.pf-spec-table td.label {
  font-weight: 700;
  color: #64748b;
  width: 40%;
  background: #fbfcfe;
}

.pf-spec-table td.label i {
  margin-right: 6px;
}

.pf-spec-table td.val {
  font-weight: 600;
  color: var(--pf-navy);
}

.pf-mrp-highlight {
  color: var(--pf-red) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.pf-mrp-tax {
  font-size: 0.70rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 4px;
}

.pf-modal-action-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: auto;
}

.pf-modal-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pf-step-lbl-main {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pf-navy);
}

.pf-step-lbl-sub {
  display: block;
  font-size: 0.70rem;
  color: #64748b;
}

.pf-modal-stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  padding: 3px 6px;
}

.pf-modal-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--pf-navy);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pf-modal-step-btn.add {
  background: var(--pf-red);
  color: #ffffff;
}

.pf-modal-step-btn:hover {
  opacity: 0.88;
  transform: scale(1.06);
}

.pf-modal-step-qty {
  font-weight: 800;
  font-size: 1rem;
  min-width: 30px;
  text-align: center;
  color: var(--pf-navy);
}

.pf-modal-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pf-modal-btn-subrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* ================================================================
   ORDER REVIEW / QUOTATION MODAL
================================================================ */
.pf-order-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  background: #fbfcfe;
}

.pf-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.pf-order-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pf-order-table thead th.pf-th-qty { text-align: center; }
.pf-order-table thead th.pf-th-mrp,
.pf-order-table thead th.pf-th-total { text-align: right; }
.pf-order-table thead th.pf-th-del { text-align: center; width: 60px; }

.pf-order-row {
  border-bottom: 1px solid #edf2f7;
  transition: background 0.2s ease;
  background: #ffffff;
}

.pf-order-row:hover {
  background: #f8fafc;
}

.pf-order-row td {
  padding: 12px 14px;
  vertical-align: middle;
}

.pf-td-prod {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pf-row-num {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.80rem;
  line-height: 1.4;
}

.pf-prod-info-block {
  display: flex;
  flex-direction: column;
}

.pf-order-name {
  font-weight: 800;
  color: var(--pf-navy);
  font-size: 0.90rem;
  line-height: 1.3;
}

.pf-order-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pf-red);
  text-transform: uppercase;
}

.pf-td-pack {
  color: #64748b;
  font-size: 0.82rem;
}

.pf-td-qty {
  text-align: center;
}

.pf-order-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px 8px;
}

.pf-order-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pf-order-step-btn.add {
  background: var(--pf-red);
  color: #ffffff;
}

.pf-order-step-btn:hover {
  opacity: 0.9;
  transform: scale(1.08);
}

.pf-order-qty-val {
  font-weight: 800;
  font-size: 0.92rem;
  min-width: 26px;
  text-align: center;
  color: var(--pf-red);
}

.pf-td-mrp {
  text-align: right;
  font-size: 0.86rem;
  color: #475569;
}

.pf-td-total {
  text-align: right;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--pf-navy);
}

.pf-td-del {
  text-align: center;
}

.pf-order-del-btn {
  border: none;
  background: #fee2e2;
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pf-order-del-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

.pf-mob-label {
  display: none;
}

/* Empty cart state inside modal */
.pf-modal-empty-cart {
  padding: 50px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pf-empty-cart-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.pf-modal-empty-cart h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pf-navy);
}

.pf-modal-empty-cart p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  max-width: 380px;
  line-height: 1.5;
}

/* Modal Footer Box */
.pf-modal-footer-box {
  padding: 16px 24px;
  border-top: 1px solid #edf2f7;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pf-modal-footer-summary {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-modal-total-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-total-pill-lbl {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
}

.pf-total-pill-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pf-red);
  font-family: var(--pf-font-serif);
}

.pf-modal-disclaimer {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.45;
}

.pf-modal-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pf-modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer !important;
  transition: all 0.22s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.pf-modal-action-btn.wa {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.pf-modal-action-btn.wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.pf-modal-action-btn.review {
  background: linear-gradient(135deg, var(--pf-red), var(--pf-red-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 45, 74, 0.35);
  width: 100%;
}

.pf-modal-action-btn.review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 45, 74, 0.5);
}

.pf-modal-action-btn.login {
  background: var(--pf-navy);
  color: #ffffff;
  border: 1px solid var(--pf-navy);
}

.pf-modal-action-btn.login:hover {
  background: var(--pf-red);
  border-color: var(--pf-red);
  color: #ffffff;
}

.pf-modal-action-btn.print,
.pf-modal-action-btn.profile {
  background: #ffffff;
  color: var(--pf-navy);
  border: 1.5px solid #e2e8f0;
}

.pf-modal-action-btn.print:hover,
.pf-modal-action-btn.profile:hover {
  background: #f1f5f9;
  border-color: var(--pf-cyan-dark);
  color: var(--pf-navy);
}

/* ================================================================
   RESPONSIVE RULES FOR MODALS (MOBILE & TABLET)
================================================================ */
@media (max-width: 680px) {
  .pf-modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }

  .pf-modal-card {
    max-height: 94vh;
    border-radius: 20px 20px 14px 14px;
    width: 100%;
  }

  .pf-modal-header {
    padding: 12px 16px;
  }

  .pf-modal-title {
    font-size: 1.05rem;
  }

  .pf-modal-close {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Product Quick View Modal on Mobile */
  .pf-modal-body {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 14px;
  }

  .pf-modal-img {
    height: 180px;
  }

  .pf-modal-desc {
    font-size: 0.80rem;
    margin-bottom: 10px;
  }

  .pf-spec-table {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .pf-spec-table td {
    padding: 6px 10px;
  }

  .pf-modal-action-card {
    padding: 10px 12px;
  }

  .pf-modal-detail-actions .pf-modal-btn-subrow .pf-modal-action-btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 0.76rem;
    text-align: center;
    justify-content: center;
  }

  /* Order Review Modal on Mobile - Transforms Table to Sleek Cards */
  .pf-order-table-scroll {
    padding: 10px 12px;
  }

  .pf-order-table thead {
    display: none;
  }

  .pf-order-table,
  .pf-order-table tbody {
    display: block;
    width: 100%;
  }

  .pf-order-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "prod del"
      "pack del"
      "qty  total" !important;
    row-gap: 6px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
  }

  .pf-order-row td {
    border: none;
    padding: 0;
  }

  .pf-td-prod {
    grid-area: prod;
    padding-right: 10px !important;
    margin-bottom: 2px;
  }

  .pf-order-name {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .pf-td-pack {
    grid-area: pack;
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 6px;
  }

  .pf-td-del {
    grid-area: del;
    justify-self: end;
    align-self: start;
    padding-top: 2px !important;
  }

  .pf-order-del-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .pf-mob-label {
    display: inline;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
  }

  .pf-td-mrp {
    display: none !important;
  }

  .pf-td-qty {
    grid-area: qty;
    justify-self: start;
    padding-top: 8px !important;
    border-top: 1px dashed #edf2f7;
    width: 100%;
  }

  .pf-td-total {
    grid-area: total;
    justify-self: end;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pf-red);
    padding-top: 8px !important;
    border-top: 1px dashed #edf2f7;
    width: 100%;
  }

  /* Footer on Mobile */
  .pf-modal-footer-box {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pf-modal-footer-summary {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .pf-modal-total-pill {
    justify-content: center;
  }

  .pf-total-pill-val {
    font-size: 1.25rem;
  }

  .pf-modal-disclaimer {
    font-size: 0.70rem;
    text-align: center;
  }

  .pf-modal-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .pf-modal-btn-group .pf-modal-action-btn.wa {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.88rem;
    order: 1;
  }

  .pf-modal-btn-subrow {
    width: 100%;
    display: flex;
    gap: 8px;
    order: 2;
  }

  .pf-modal-btn-subrow .pf-modal-action-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .pf-modal-header {
    padding: 10px 12px;
  }

  .pf-modal-title {
    font-size: 0.95rem;
  }

  .pf-modal-body {
    padding: 10px 12px;
  }

  .pf-order-table-scroll {
    padding: 8px 10px;
  }

  .pf-modal-footer-box {
    padding: 10px 12px;
  }
}


/* Skeleton loader for products */
.pf-skeleton-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 14px;
  height: 290px;
}

.pf-skel-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pfShimmer 1.4s infinite;
  border-radius: var(--pf-radius-sm);
  margin-bottom: 12px;
}

.pf-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pfShimmer 1.4s infinite;
  margin-bottom: 8px;
}

@keyframes pfShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.pf-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1.5px dashed var(--pf-border);
  border-radius: var(--pf-radius-lg);
}

.pf-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.pf-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pf-navy);
  margin: 0 0 6px;
}

.pf-empty-sub {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  margin: 0;
}


/* Mobile offset for wa-float and toTop when on pharmaflow */
@media (max-width: 768px) {
  .wa-float {
    bottom: 84px !important;
  }
  #toTop {
    bottom: 148px !important;
  }
}


/* Mobile Sidebar Off-Canvas Drawer Rules */
@media (max-width: 1024px) {
  .pf-sidebar-header {
    display: flex;
  }

  .pf-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 24px 24px 0 !important;
    z-index: 9999 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease !important;
    box-shadow: none;
    padding: 24px 20px 80px !important;
  }

  .pf-sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 16px 0 50px rgba(5, 13, 36, 0.45) !important;
  }

  body.pf-sidebar-locked {
    overflow: hidden !important;
  }

  .pf-hero-main-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pf-hero-stats-band {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .pf-hero-showcase {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }

  .pf-hero-title {
    font-size: 1.85rem;
  }

  .pf-hero-stats-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  .pf-stat-divider {
    display: none;
  }
}
