/* ============================================
   PRCSTOCK.COM — Brand Stylesheet
   ============================================ */

:root {
  --navy: #0F1B3D;
  --navy-deep: #0A0F1F;
  --silver: #C0C0C0;
  --steel: #3B6FA0;
  --steel-light: #5C8BC2;
  --ink: #0A0F1F;
  --cloud: #F7F9FC;
  --white: #FFFFFF;
  --slate: #6B7280;
  --slate-light: #E5E8EC;
  --border: #DDE2E8;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--steel);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ============ HEADER ============ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}
.logo img { height: 38px; width: auto; }
.logo .stock { color: var(--silver); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions a.login-link {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
}
.header-actions a.login-link:hover { color: var(--white); }

.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy .eyebrow { color: var(--silver); margin-bottom: 18px; display: block; }
.hero h1 {
  color: var(--white);
  font-size: 50px;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--silver);
  position: relative;
}
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* ---- Signature element: trade route line ---- */
.hero-visual {
  position: relative;
  height: 420px;
}
.route-svg { width: 100%; height: 100%; }
.route-line {
  fill: none;
  stroke: var(--steel-light);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-dashoffset: 1000;
  stroke-dasharray: 1000;
  animation: drawRoute 2.4s ease-out forwards 0.3s;
}
@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}
.route-node circle {
  fill: var(--navy);
  stroke: var(--silver);
  stroke-width: 1.5;
}
.route-node.active circle {
  fill: var(--steel-light);
  stroke: var(--white);
}
.route-node text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}
.route-dot {
  fill: var(--white);
  opacity: 0;
  animation: travelDot 2.4s ease-in-out infinite;
  animation-delay: 2.5s;
}
@keyframes travelDot {
  0% { opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-bottom-fade {
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--cloud));
  position: relative;
  z-index: 1;
}

/* ============ LOGO STRIP ============ */
.trust-strip {
  background: var(--cloud);
  padding: 36px 0 56px;
}
.trust-strip .label {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 22px;
  font-weight: 500;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.55;
}
.trust-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* ============ SECTION GENERAL ============ */
.section {
  padding: 96px 0;
}
.section-cloud { background: var(--cloud); }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-size: 36px;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--slate);
  font-size: 16.5px;
}

/* ============ HOW IT WORKS — dual path ============ */
.dual-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.path-col {
  padding: 44px 40px;
  position: relative;
}
.path-col.supplier { background: var(--white); border-right: 1px solid var(--border); }
.path-col.buyer { background: var(--white); }
.path-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 20px;
}
.path-tag.supplier-tag { background: rgba(59,111,160,0.1); color: var(--steel); }
.path-tag.buyer-tag { background: rgba(15,27,61,0.08); color: var(--navy); }
.path-col h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.path-steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.path-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.path-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  width: 24px;
  flex-shrink: 0;
  padding-top: 1px;
}
.path-step .step-text {
  font-size: 14.5px;
  color: var(--ink);
}
.path-step .step-text strong { display: block; margin-bottom: 2px; font-weight: 600; }
.path-step .step-text span { color: var(--slate); font-size: 13.5px; }
.path-divider-mid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--slate);
  font-family: var(--font-mono);
  z-index: 3;
}

/* ============ FEATURE GRID ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--white);
  padding: 36px 32px;
}
.feature-card .f-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--steel);
}
.feature-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--slate);
  font-size: 14.5px;
}

/* ============ CATEGORY STRIP ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-chip {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 22px 20px;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.cat-chip:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}
.cat-chip .cat-name { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.cat-chip .cat-count { font-size: 12.5px; color: var(--slate); font-family: var(--font-mono); }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  font-size: 16px;
}
.cta-band-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { max-width: 280px; color: rgba(255,255,255,0.45); font-size: 13.5px; }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .main-nav, .header-actions .login-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .hero h1 { font-size: 38px; }
  .dual-path { grid-template-columns: 1fr; }
  .path-col.supplier { border-right: none; border-bottom: 1px solid var(--border); }
  .path-divider-mid { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cta-band-actions { flex-direction: column; }
}

/* ============ AUTH PAGES (register / login) ============ */
.auth-page {
  background: var(--cloud);
  min-height: calc(100vh - 76px);
  padding: 56px 0 80px;
}
.auth-shell {
  max-width: 640px;
  margin: 0 auto;
}
.auth-head {
  text-align: center;
  margin-bottom: 32px;
}
.auth-head h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.auth-head p {
  color: var(--slate);
  font-size: 15.5px;
}
.auth-head p a { color: var(--steel); font-weight: 600; }

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 28px;
}
.role-toggle input { display: none; }
.role-toggle label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.role-toggle label .r-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.role-toggle label .r-sub {
  font-size: 12.5px;
  color: var(--slate);
}
.role-toggle input:checked + label {
  background: var(--navy);
}
.role-toggle input:checked + label .r-title,
.role-toggle input:checked + label .r-sub {
  color: var(--white);
}
.role-toggle input:checked + label .r-sub { color: rgba(255,255,255,0.7); }

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}
.form-section + .form-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.form-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title .opt {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate);
  font-size: 11.5px;
  background: var(--slate-light);
  padding: 2px 8px;
  border-radius: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--steel); }
.field label .hint {
  font-weight: 400;
  color: var(--slate);
  font-size: 12.5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--steel);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.field-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.field-checks input { accent-color: var(--steel); }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 30px;
  padding: 14px;
  font-size: 15.5px;
}
.auth-disclaimer {
  text-align: center;
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 16px;
}
.auth-foot-link {
  text-align: center;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--slate);
}
.auth-foot-link a { color: var(--steel); font-weight: 600; }

.demo-banner {
  background: var(--slate-light);
  border: 1px dashed var(--silver);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--slate);
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

/* ============ LOGIN PAGE ============ */
.login-card {
  max-width: 440px;
  margin: 0 auto;
}
.login-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
  margin-bottom: 22px;
  font-size: 13.5px;
}
.login-extra-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-weight: 400;
}
.login-extra-row a { color: var(--steel); font-weight: 600; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: var(--slate);
  font-size: 12.5px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.role-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.role-pick-row a {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.15s ease;
}
.role-pick-row a:hover { border-color: var(--steel); }

/* ============ CATALOGUE PAGE ============ */
.catalogue-header {
  background: var(--navy);
  padding: 36px 0 28px;
}
.catalogue-header h1 { color: var(--white); font-size: 28px; margin-bottom: 6px; }
.catalogue-header p { color: rgba(255,255,255,0.65); font-size: 14.5px; }

.catalogue-toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 76px;
  z-index: 50;
}
.toolbar-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.search-box {
  flex: 1;
  position: relative;
}
.search-box input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 16px 11px 38px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--cloud);
}
.search-box input:focus { outline: none; border-color: var(--steel); }
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate);
}
.toolbar-select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px;
}
.view-tabs button {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--slate);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-tabs button.active {
  background: var(--navy);
  color: var(--white);
}

.catalogue-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 32px 0 80px;
}
.filter-panel h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 700;
}
.filter-group { margin-bottom: 28px; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: pointer;
}
.filter-group input[type="checkbox"] { accent-color: var(--steel); }
.filter-count { color: var(--slate); font-size: 12.5px; margin-left: auto; }
.filter-clear {
  font-size: 13px;
  color: var(--steel);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--slate);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(15,27,61,0.08);
  transform: translateY(-2px);
}
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--slate-light), var(--cloud));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  position: relative;
}
.card-thumb svg { width: 46px; height: 46px; opacity: 0.5; }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 3px;
  font-weight: 500;
}
.card-badge.supplier { background: rgba(59,111,160,0.92); color: var(--white); }
.card-badge.buyer { background: rgba(15,27,61,0.92); color: var(--white); }
.card-badge.verified {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(27,107,58,0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
}
.card-body { padding: 16px; }
.card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--slate);
  margin-bottom: 12px;
}
.card-price {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--navy);
  font-size: 14px;
}
.card-price .locked {
  color: var(--steel);
  font-size: 12px;
  font-style: normal;
  cursor: pointer;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-foot .loc { font-size: 12px; color: var(--slate); }
.card-foot .btn { padding: 7px 14px; font-size: 13px; }

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--slate);
  grid-column: 1 / -1;
}
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 14px; opacity: 0.4; }

@media (max-width: 980px) {
  .catalogue-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .role-pick-row { grid-template-columns: 1fr; }
  .toolbar-row { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .auth-card { padding: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .role-toggle { grid-template-columns: 1fr; }
}

/* ============ PRODUCT DETAIL PAGE ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--slate);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--steel); }
.breadcrumb span { margin: 0 6px; }

.product-detail {
  padding: 24px 0 80px;
}
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
}
.pd-gallery-main {
  height: 380px;
  background: linear-gradient(135deg, var(--slate-light), var(--cloud));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  margin-bottom: 12px;
  position: relative;
}
.pd-gallery-main svg { width: 64px; height: 64px; opacity: 0.5; }
.pd-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.pd-thumb {
  height: 64px;
  background: var(--cloud);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  cursor: pointer;
}
.pd-thumb.active { border-color: var(--steel); }
.pd-thumb svg { width: 22px; height: 22px; opacity: 0.5; }

.pd-info-block {
  margin-top: 36px;
}
.pd-info-block h3 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.pd-spec-table { width: 100%; border-collapse: collapse; }
.pd-spec-table tr { border-bottom: 1px solid var(--border); }
.pd-spec-table td { padding: 10px 0; font-size: 14px; }
.pd-spec-table td:first-child { color: var(--slate); width: 200px; }
.pd-spec-table td:last-child { color: var(--ink); font-weight: 500; }
.pd-desc { font-size: 14.5px; color: var(--ink); line-height: 1.7; }

.pd-cat-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}
.pd-title { font-size: 26px; margin-bottom: 16px; line-height: 1.25; }
.pd-badges { display: flex; gap: 8px; margin-bottom: 20px; }
.pd-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
}
.pd-badge.verified { background: var(--cloud); color: var(--steel); border: 1px solid var(--border); }

.pd-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  align-self: flex-start;
  position: sticky;
  top: 96px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.pd-price-row .price { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--navy); }
.pd-price-row .unit { font-size: 13.5px; color: var(--slate); }
.pd-gate-note {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-quick-facts { margin-bottom: 22px; }
.pd-quick-facts .qf-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.pd-quick-facts .qf-row span:first-child { color: var(--slate); }
.pd-quick-facts .qf-row span:last-child { font-weight: 600; color: var(--ink); }

.pd-supplier-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--cloud);
  border-radius: 6px;
  margin-bottom: 18px;
}
.pd-supplier-avatar {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.pd-supplier-meta .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-supplier-meta .loc { font-size: 12.5px; color: var(--slate); }

.pd-contact-btn { width: 100%; justify-content: center; padding: 13px; margin-bottom: 10px; }

/* ============ DASHBOARD ============ */
.dash-shell {
  background: var(--cloud);
  min-height: calc(100vh - 76px);
  padding: 36px 0 80px;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.dash-head h1 { font-size: 26px; margin-bottom: 4px; }
.dash-head p { color: var(--slate); font-size: 14px; }

.dash-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
}
.dash-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  align-self: flex-start;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.dash-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-nav-item:hover { background: var(--cloud); }
.dash-nav-item.active { background: var(--navy); color: var(--white); }
.dash-nav-item .badge {
  margin-left: auto;
  background: var(--steel);
  color: var(--white);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 7px;
  border-radius: 10px;
}
.dash-nav-item.active .badge { background: rgba(255,255,255,0.25); }
.dash-nav-divider { height: 1px; background: var(--border); margin: 8px 6px; }

.dash-panel { display: none; }
.dash-panel.active { display: block; }

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dash-card-head h3 { font-size: 18px; }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  font-weight: 600;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}
.dash-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-thumb-sm {
  width: 40px; height: 40px;
  border-radius: 5px;
  background: var(--cloud);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  vertical-align: middle;
  margin-right: 10px;
}
.dash-thumb-sm svg { width: 18px; height: 18px; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
}
.status-pill.active { background: var(--cloud); color: var(--green); border: 1px solid #BFE0CB; }
.status-pill.paused { background: var(--cloud); color: var(--slate); border: 1px solid var(--border); }
.status-pill.expired { background: var(--cloud); color: #B85C00; border: 1px solid #F0D6B0; }
.row-actions { display: flex; gap: 8px; }
.row-actions button {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--steel);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.row-actions button.danger { color: #C0392B; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.stat-box .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); }
.stat-box .label { font-size: 12.5px; color: var(--slate); margin-top: 2px; }

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.upload-zone:hover { border-color: var(--steel); }
.upload-zone svg { width: 28px; height: 28px; margin: 0 auto 10px; opacity: 0.5; }
.upload-zone .hint { font-size: 12.5px; margin-top: 4px; }
.upload-preview-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.upload-preview {
  width: 64px; height: 64px;
  border-radius: 5px;
  background: var(--cloud);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 11px;
  position: relative;
}

.msg-thread-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.msg-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--white);
}
.msg-thread-item:last-child { border-bottom: none; }
.msg-thread-item:hover { background: var(--cloud); }
.msg-thread-item.unread { background: #F4F8FD; }
.msg-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--steel);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.msg-content { flex: 1; min-width: 0; }
.msg-top-row { display: flex; justify-content: space-between; }
.msg-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.msg-time { font-size: 12px; color: var(--slate); }
.msg-preview { font-size: 13px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-item.unread .msg-preview { color: var(--ink); font-weight: 500; }
.msg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--steel);
  flex-shrink: 0;
}

.profile-view-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.profile-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

@media (max-width: 980px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pd-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============ CHAT THREAD ============ */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 620px;
  background: var(--white);
}
.chat-list-col {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.chat-list-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.chat-main-col {
  display: flex;
  flex-direction: column;
}
.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-thread-head .name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chat-thread-head .ctx { font-size: 12.5px; color: var(--slate); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cloud);
}
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-bubble-row:not(.mine) .chat-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.chat-bubble-row.mine .chat-bubble {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 3px;
}
.chat-bubble-time {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
  display: block;
}
.chat-bubble-row.mine .chat-bubble-time { text-align: right; color: rgba(255,255,255,0.6); }
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--cloud);
}
.chat-input-row input:focus { outline: none; border-color: var(--steel); }
.chat-input-row button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-input-row button svg { width: 17px; height: 17px; }

@media (max-width: 980px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list-col { max-height: 240px; }
  .chat-messages { min-height: 320px; }
}


