:root {
  --bg: #f5f4ef;
  --panel: #ffffff;
  --panel-alt: #f0efe9;
  --ink: #171c1e;
  --muted: #5a6368;
  --line: rgba(21, 29, 34, 0.09);
  --primary: #f26f1d;
  --primary-deep: #d85b10;
  --secondary: #224b42;
  --secondary-soft: #ecf3f0;
  --accent: #d9ebf5;
  --success: #1f8a63;
  --warning: #d9a136;
  --danger: #c85757;
  --shadow: 0 22px 48px rgba(15, 31, 35, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f9f6f1 0%, var(--bg) 18%, #f5f3ee 100%);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  display: none;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.right-links {
  justify-content: flex-end;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.7fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  max-width: 190px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  max-width: 170px;
  max-height: 44px;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #f6f5f2;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font-size: 0.9rem;
  outline: none;
}

.header-search input:focus {
  border-color: rgba(242,111,29,0.5);
  box-shadow: 0 0 0 4px rgba(242,111,29,0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.icon-btn,
.cart-pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #ff9c45);
  color: #fff;
  box-shadow: 0 12px 22px rgba(242,111,29,0.28);
  font-weight: 700;
}

.secondary-btn {
  background: rgba(34,75,66,0.08);
  color: var(--secondary);
  border: 1px solid rgba(34,75,66,0.12);
  font-weight: 600;
}

.ghost-btn,
.icon-btn,
.cart-pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.text-btn {
  background: transparent;
  color: var(--secondary);
  padding: 0;
  min-height: auto;
  font-weight: 600;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.cart-pill:hover,
.chip:hover {
  transform: translateY(-1px);
}

.large {
  min-height: 52px;
  padding-inline: 22px;
}

.hero {
  padding: 44px 0 30px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.lead {
  margin: 18px 0 24px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.hero-subactions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-subactions {
  margin-top: 14px;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 28px 0 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
}

.hero-stats strong {
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.photo-card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-card.large {
  inset: 52px 20px 36px 90px;
  background-image: linear-gradient(rgba(17,24,26,0.2), rgba(17,24,26,0.3)), url('assets/images/photo-1504307651254-35680f356dfd.jpg');
}

.photo-card.small {
  width: 200px;
  height: 180px;
  right: 0;
  bottom: 20px;
  background-image: linear-gradient(rgba(17,24,26,0.2), rgba(17,24,26,0.3)), url('assets/images/photo-1504307651254-35680f356dfd.jpg');
}

.floating-panel {
  position: absolute;
  left: 0;
  bottom: 65px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 20px 30px rgba(17,24,26,0.12);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(31,138,99,0.16);
}

.floating-panel strong {
  display: block;
  font-size: 0.92rem;
}

.floating-panel small {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
}

.section-heading.compact {
  align-items: center;
}

.page-hero {
  padding: 34px 0 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.3));
}

.page-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.06em;
}

.small-hero {
  padding-bottom: 16px;
}

.text-link {
  color: var(--secondary);
  font-weight: 700;
}

.cart-layout,
.quote-layout,
.support-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  padding: 28px 0 52px;
}

.cart-list-panel,
.form-panel,
.quote-summary-panel,
.faq-panel,
.cart-summary {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 16px 28px rgba(12,19,22,0.04);
  padding: 22px 18px;
}

.cart-items,
.quote-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.cart-item,
.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.cart-image {
  width: 86px;
  height: 86px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.cart-copy {
  flex: 1;
}

.cart-copy h3,
.quote-summary-panel h3,
.faq-panel h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cart-copy p,
.quote-item,
.faq-answer,
.success-message {
  color: var(--muted);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cart-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.cart-controls input,
.stacked-form input,
.stacked-form textarea,
.stacked-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafaf8;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
}

.stacked-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.stacked-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
}

.cart-summary {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cart-summary h3 {
  margin: 0;
}

.empty-state {
  border: 1px dashed rgba(17,24,26,0.14);
  border-radius: 18px;
  background: rgba(242,111,29,0.02);
  padding: 20px 18px;
  color: var(--muted);
}

.success-message {
  min-height: 24px;
  margin: 0;
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.checkout-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.checkout-form > label > input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafaf8;
  color: var(--ink);
  font: inherit;
}

.payment-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-options legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.payment-options label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(242,111,29,0.06);
}

.payment-options input {
  accent-color: var(--primary);
}

.payment-options label > span { display: grid; gap: 3px; }
.payment-options label > span > a { margin-top: 4px; color: var(--primary); font-size: .78rem; font-weight: 700; text-decoration: underline; }
.payment-options label > span > a:hover { color: var(--ink); }

.payment-options span {
  display: grid;
  gap: 2px;
}

.payment-options small,
.checkout-disclaimer {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.checkout-disclaimer {
  margin: 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  background: rgba(255,255,255,0.8);
}

.faq-question {
  width: 100%;
  background: transparent;
  text-align: left;
  min-height: 54px;
  color: var(--ink);
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 0 0 16px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

.quote-layout {
  align-items: start;
}

.quote-summary-panel {
  display: grid;
  gap: 14px;
}

.quote-item {
  justify-content: space-between;
  padding: 12px 14px;
}

.support-layout {
  align-items: start;
}

.faq-panel {
  display: grid;
  gap: 16px;
}

.category-strip,
.catalog-section,
.solutions,
.directory-section,
.vendor-section,
.workflow-section,
.portal-section,
.calculator-section {
  padding: 32px 0 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cat-card,
.solution-card,
.profile-card,
.portal-card,
.plan-card,
.step-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(12,19,22,0.04);
}

.cat-card {
  padding: 22px 18px 18px;
}

.cat-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #fffaf3, #f6efe5);
  border-radius: 16px;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.cat-card h3,
.solution-card h3,
.profile-card h3,
.portal-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.cat-card ul,
.solution-card ul,
.profile-card ul,
.portal-card ul,
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.chip.active {
  background: rgba(242,111,29,0.1);
  color: var(--primary-deep);
  border-color: rgba(242,111,29,0.2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 18px 30px rgba(15, 24, 29, 0.04);
}

.product-image {
  position: relative;
  height: 220px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
}

.product-price strong {
  font-size: 1.1rem;
}

.product-price span {
  font-size: 0.76rem;
  color: var(--muted);
}

.product-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 10px 0 16px;
}

.product-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-actions button {
  flex: 1 1 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.77rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  padding: 24px;
}

.solution-card.accent {
  background: linear-gradient(180deg, rgba(34,75,66,0.98), rgba(19,49,42,0.96));
  color: #fff;
}

.solution-card.accent p,
.solution-card.accent li {
  color: rgba(255,255,255,0.8);
}

.solution-card p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.7;
}

.solution-tag {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(242,111,29,0.09);
  color: var(--primary-deep);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.solution-card.accent .solution-tag {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.calc-copy {
  padding-top: 10px;
}

.calc-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.calc-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.calc-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 18px 28px rgba(12,19,22,0.04);
}

.calc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.calc-tab {
  border-radius: 999px;
  background: #f2f3f1;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
}

.calc-tab.active {
  background: rgba(242,111,29,0.1);
  color: var(--primary-deep);
}

.calc-form {
  display: none;
  gap: 14px;
}

.calc-form.active {
  display: grid;
}

.calc-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.calc-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #f8f8f6;
  border-radius: 12px;
  padding: 0 12px;
}

.result-box {
  margin-top: 8px;
  border-radius: 12px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-weight: 700;
  padding: 12px 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  padding: 20px 20px 18px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.profile-badge.verified {
  background: rgba(31,138,99,0.14);
  color: var(--success);
}

.profile-badge.pending {
  background: rgba(217,161,54,0.14);
  color: #9f6d17;
}

.vendor-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.vendor-panel {
  background: linear-gradient(135deg, #eaf4ef 0%, #eff5ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}

.vendor-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.vendor-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 20px;
}

.vendor-stats div {
  background: rgba(255,255,255,0.5);
  border-radius: 18px;
  padding: 14px 16px;
}

.vendor-stats strong {
  display: block;
  font-size: 1.8rem;
}

.vendor-stats span {
  color: var(--muted);
}

.vendor-list {
  display: grid;
  gap: 14px;
}

.vendor-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.vendor-name {
  font-weight: 700;
}

.vendor-meta {
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 20px 18px;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(242,111,29,0.12);
  color: var(--primary-deep);
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  padding: 20px 18px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.mini-stats div {
  background: #f9f5f0;
  border-radius: 15px;
  padding: 12px 10px;
}

.mini-stats strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.74rem;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.dot.green { background: var(--success); }
.dot.amber { background: var(--warning); }
.dot.blue { background: #4d79f1; }
.dot.purple { background: #8d5ef5; }
.dot.gray { background: #8a9299; }

.admin-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.admin-card th,
.admin-card td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.cta-band {
  padding: 24px 0 32px;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #11181a, #27373a);
  color: #fff;
  border-radius: 30px;
  padding: 28px 30px;
  box-shadow: 0 22px 40px rgba(15,24,26,0.12);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.5rem);
  letter-spacing: -0.05em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  padding: 30px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
}

.site-footer h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 80;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 26, 0.55);
}

.modal-card {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15,24,26,0.15);
  border: 1px solid var(--line);
  z-index: 10;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f8f6;
  color: var(--ink);
  font-size: 1.6rem;
  border: 1px solid var(--line);
  z-index: 2;
}

.modal-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  padding: 22px;
}

.modal-gallery {
  display: grid;
  gap: 12px;
}

.modal-image {
  min-height: 360px;
  border-radius: 26px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(24,30,33,0.12), rgba(24,30,33,0.18)), url('assets/images/photo-1504307651254-35680f356dfd.jpg');
}

.thumb-row {
  display: flex;
  gap: 10px;
}

.thumb {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242,111,29,0.18), rgba(34,75,66,0.15));
  border: 1px solid rgba(17,24,26,0.06);
}

.thumb.active {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
}

#modalSpecs {
  display: grid;
  gap: 8px;
  color: var(--ink);
  margin: 18px 0 20px;
  padding-left: 18px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    padding: 14px 0 18px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-grid,
  .category-grid,
  .solution-grid,
  .profile-grid,
  .portal-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-inner,
  .calculator-layout,
  .vendor-layout,
  .modal-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .utility-bar,
  .section-heading,
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-grid,
  .product-grid,
  .solution-grid,
  .profile-grid,
  .portal-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .photo-card.large {
    inset: 22px 10px 26px 28px;
  }

  .floating-panel {
    left: 24px;
    right: 24px;
    bottom: 16px;
  }

  .header-search {
    order: 3;
  }

  .header-actions {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .icon-btn,
  .cart-pill {
    width: 100%;
  }
}

.main-nav a[aria-current="page"] {
  color: var(--primary-deep);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--primary-deep);
}

.home-hero {
  padding: 60px 0 48px;
}

.home-visual {
  min-height: 520px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(17, 24, 26, 0.03), rgba(17, 24, 26, 0.36)),
    url("assets/images/photo-1504307651254-35680f356dfd.jpg") center / cover;
  box-shadow: var(--shadow);
}

.home-visual .floating-panel {
  left: 22px;
  bottom: 22px;
}

.home-pathways {
  padding-top: 28px;
  padding-bottom: 54px;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pathway-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(12, 19, 22, 0.04);
}

.pathway-card > span {
  color: var(--primary-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pathway-card h3 {
  margin: 24px 0 8px;
  font-size: 1.35rem;
}

.pathway-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.pathway-card strong {
  margin-top: auto;
  color: var(--secondary);
}

.home-image-band {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 26, 0.82), rgba(17, 24, 26, 0.22)),
    url("assets/images/photo-1504307651254-35680f356dfd.jpg") center 45% / cover;
}

.home-image-content {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-image-content .eyebrow {
  color: #ffd5b1;
}

.home-image-content h2 {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.06em;
}

.page-hero {
  color: #fff;
  background-color: #263538;
  background-position: center;
  background-size: cover;
}

.page-hero-inner {
  min-height: 350px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}

.page-hero .eyebrow {
  color: #ffd1ad;
}

.page-hero h1 {
  max-width: 760px;
}

.page-hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
}

.shop-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.88), rgba(13, 24, 27, 0.12)), url("assets/images/photo-1581092918056-0c4c3acd3789.jpg");
}

.category-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.84), rgba(13, 24, 27, 0.16)), url("assets/images/photo-1504307651254-35680f356dfd.jpg");
}

.projects-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.86), rgba(13, 24, 27, 0.18)), url("assets/images/african-house-construction.jpg");
}

.contractors-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.86), rgba(13, 24, 27, 0.15)), url("assets/images/african-house-construction.jpg");
}

.vendors-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.87), rgba(13, 24, 27, 0.16)), url("assets/images/photo-1586528116311-ad8dd3c8310d.jpg");
}

.services-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.87), rgba(13, 24, 27, 0.16)), url("assets/images/photo-1601584115197-04ecc0da31d7.jpg");
}

.about-hero {
  background-image: linear-gradient(90deg, rgba(13, 24, 27, 0.86), rgba(13, 24, 27, 0.16)), url("assets/images/photo-1504307651254-35680f356dfd.jpg");
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-layout .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-filters {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(12, 19, 22, 0.04);
}

.catalog-filters h3 {
  margin: 0;
}

.catalog-filters label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-filters select,
.service-request-section select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fafaf8;
  color: var(--ink);
}

.catalog-filters p,
.vendor-application p,
.service-request-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.cat-card-image {
  min-height: 310px;
  display: flex;
  align-items: end;
  padding: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cat-content {
  width: 100%;
  padding: 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 19, 0.88) 28%);
}

.cat-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ffd1ad;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cat-card-image h3 {
  color: #fff;
}

.cat-card-image ul {
  color: rgba(255, 255, 255, 0.84);
}

.solutions-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.solution-photo {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.solution-photo p,
.solution-photo li {
  color: rgba(255, 255, 255, 0.85);
}

.solution-photo.residential {
  background-image: linear-gradient(180deg, rgba(10, 17, 19, 0.08), rgba(10, 17, 19, 0.86)), url("assets/images/photo-1512917774080-9991f1c4c750.jpg");
}

.solution-photo.commercial {
  background-image: linear-gradient(180deg, rgba(10, 17, 19, 0.08), rgba(10, 17, 19, 0.86)), url("assets/images/photo-1486406146926-c627a92ad1ab.jpg");
}

.solution-photo.industrial {
  background-image: linear-gradient(180deg, rgba(10, 17, 19, 0.08), rgba(10, 17, 19, 0.86)), url("assets/images/photo-1486406146926-c627a92ad1ab.jpg");
}

.contractor-card {
  padding: 18px;
}

.contractor-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contractor-profile img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: cover;
  border-radius: 50%;
}

.contractor-profile h3 {
  margin-bottom: 4px;
}

.contractor-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contractor-project {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.vendor-photo-panel {
  background:
    linear-gradient(135deg, rgba(235, 246, 239, 0.94), rgba(240, 245, 255, 0.78)),
    url("assets/images/photo-1586528116311-ad8dd3c8310d.jpg") center / cover;
}

.vendor-visual-list .vendor-item {
  position: relative;
  min-height: 96px;
  padding-left: 82px;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
    url("assets/images/photo-1586528116311-ad8dd3c8310d.jpg") center / cover;
}

.vendor-thumb {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  object-fit: cover;
  border-radius: 12px;
}

.vendor-application {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.vendor-application h2 {
  margin: 0;
}

.about-image-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.about-image-caption span {
  color: var(--muted);
  font-size: 0.82rem;
}

.service-card {
  color: #fff;
  background-position: center;
  background-size: cover;
}

.service-card p,
.service-card .timeline p {
  color: rgba(255, 255, 255, 0.86);
}

.service-card.sourcing-service {
  background-image: linear-gradient(135deg, rgba(13, 24, 27, 0.88), rgba(13, 24, 27, 0.48)), url("assets/images/photo-1581092918056-0c4c3acd3789.jpg");
}

.service-card.delivery-service {
  background-image: linear-gradient(135deg, rgba(13, 24, 27, 0.88), rgba(13, 24, 27, 0.48)), url("assets/images/photo-1601584115197-04ecc0da31d7.jpg");
}

.service-card.trade-service {
  background-image: linear-gradient(135deg, rgba(13, 24, 27, 0.88), rgba(13, 24, 27, 0.48)), url("assets/images/photo-1504307651254-35680f356dfd.jpg");
}

.service-card .mini-stats div {
  color: var(--ink);
}

.service-request-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 26px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 56px;
}

.service-request-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.service-request-copy img {
  width: 100%;
  height: 300px;
  margin-top: 20px;
  object-fit: cover;
  border-radius: 24px;
}

.service-request-section .form-panel {
  display: grid;
  gap: 14px;
}

@media (max-width: 1100px) {
  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: 32px;
  }

  .home-visual {
    min-height: 360px;
  }

  .pathway-grid,
  .catalog-layout,
  .solutions-page-grid,
  .service-request-section {
    grid-template-columns: 1fr;
  }

  .catalog-layout .product-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    min-height: 320px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .vendor-application {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   MJENZI HARDWARE â€” PRODUCT-FIRST VISUAL UPGRADE
   Added without replacing existing layout or application logic.
   ============================================================ */

/* Real category imagery */
.category-material-card {
    overflow: hidden;
    min-height: 360px;
}

.category-material-card:hover {
    transform: translateY(-4px);
}

.cat-card-image {
    min-height: 360px;
}

/* Product images */
.product-card {
    overflow: hidden;
}

.product-image {
    min-height: 220px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f2;
}

.product-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-image-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

/* Category cards â€” premium material presentation */
.category-grid {
    align-items: stretch;
}

.cat-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 38px rgba(17, 24, 26, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cat-card-image:hover {
    box-shadow: 0 20px 48px rgba(17, 24, 26, 0.18);
}

.cat-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.02) 0%,
            rgba(10,17,19,0.08) 35%,
            rgba(10,17,19,0.88) 100%
        );
    pointer-events: none;
}

.cat-card-image .cat-content {
    position: relative;
    z-index: 2;
}

/* Project solution imagery */
.solution-photo {
    min-height: 430px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.solution-photo.residential {
    background-image:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.05),
            rgba(10,17,19,0.88)
        ),
        url("assets/images/photo-1512917774080-9991f1c4c750.jpg");
}

.solution-photo.commercial {
    background-image:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.05),
            rgba(10,17,19,0.88)
        ),
        url("assets/images/photo-1486406146926-c627a92ad1ab.jpg");
}

.solution-photo.industrial {
    background-image:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.05),
            rgba(10,17,19,0.88)
        ),
        url("assets/images/photo-1504307651254-35680f356dfd.jpg");
}

/* Service cards */
.service-card {
    min-height: 390px;
    box-shadow: 0 14px 36px rgba(17,24,26,0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(17,24,26,0.17);
}

/* About team */
.about-team-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-team-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 14px 36px rgba(17,24,26,0.10);
    border: 1px solid rgba(17,24,26,0.07);
}

.about-team-image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.about-team-image-kajanja {
    background-image:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.02),
            rgba(10,17,19,0.24)
        ),
        url("assets/images/pexels-african-2691608.jpg");
}

.about-team-image-arnold {
    background-image:
        linear-gradient(
            180deg,
            rgba(10,17,19,0.02),
            rgba(10,17,19,0.24)
        ),
        url("assets/images/pexels-african-3184325.jpg");
}

.about-team-copy {
    padding: 26px;
}

.about-team-copy h3 {
    margin: 6px 0 10px;
}

.about-team-copy p {
    margin: 0;
    color: #586366;
    line-height: 1.7;
}

/* Material-focused visual strip */
.material-visual-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.material-visual-item {
    min-height: 190px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

.material-visual-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,17,19,0.02),
        rgba(10,17,19,0.72)
    );
}

/* Better mobile behaviour */
@media (max-width: 820px) {

    .about-team-grid {
        grid-template-columns: 1fr;
    }

    .material-visual-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cat-card-image,
    .solution-photo,
    .service-card {
        min-height: 330px;
    }
}

@media (max-width: 560px) {

    .material-visual-strip {
        grid-template-columns: 1fr;
    }

    .about-team-image {
        min-height: 250px;
    }

    .product-image,
    .product-image img {
        min-height: 200px;
    }
}

/* ============================================================
   MJENZI HARDWARE â€” HIGH QUALITY VISUAL PRESENTATION
   Added by visual upgrade
   ============================================================ */

/* Prevent blurry/stretched catalogue imagery */
img {
    image-rendering: auto;
    max-width: 100%;
}

/* Main product imagery */
.product-card img,
.product-image img,
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Product image containers */
.product-card .product-image,
.product-image {
    overflow: hidden;
    background: #f4f5f6;
    min-height: 260px;
}

/* Preserve product proportions while making images feel premium */
.product-card .product-image img,
.product-image img {
    transition:
        transform .45s ease,
        filter .35s ease;
    backface-visibility: hidden;
}

/* Gentle professional zoom */
.product-card:hover .product-image img,
.product-image:hover img {
    transform: scale(1.035);
}

/* Category imagery */
.cat-card-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 240px;
}

.category-grid .cat-card-image {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.categories-collection .category-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.categories-collection .category-intro h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.categories-collection .category-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.categories-collection .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.categories-collection .cat-card-image {
    aspect-ratio: auto;
    min-height: 430px;
}

.categories-collection .cat-card-image::after {
    background: linear-gradient(180deg, rgba(10,17,19,.02) 0%, rgba(10,17,19,.3) 36%, rgba(10,17,19,.94) 100%);
}

.categories-collection .cat-content {
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 26px 22px;
}

.categories-collection .cat-kicker {
    color: #f6bd60;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.categories-collection .cat-content h3 {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.2;
}

.categories-collection .cat-content p {
    max-width: 38ch;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .88rem;
    line-height: 1.6;
}

.categories-collection .category-products {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-collection .category-products li {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .7rem;
    line-height: 1.2;
}

.categories-collection .category-card-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.categories-collection .category-card-link:hover {
    transform: translateY(-2px);
    background: #f6bd60;
}

@media (max-width: 980px) {
    .categories-collection .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .categories-collection .category-grid { grid-template-columns: 1fr; }
    .categories-collection .cat-card-image { min-height: 400px; }
    .categories-collection .cat-content { padding: 24px 20px; }
}

/* Project solutions: project types, clear sourcing path and trust details */
.project-types-section,
.project-process-section {
    padding: 68px 0;
}

.project-types-section { background: #f7f8f5; }
.project-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.project-section-heading > div { max-width: 720px; }
.project-section-heading h2,
.project-final-cta h2 { margin: 7px 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.project-section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.project-section-heading.centered { justify-content: center; text-align: center; }
.project-image-note { margin: 0 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.project-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(17,24,26,.07); transition: transform .2s ease, box-shadow .2s ease; }
.project-case-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(17,24,26,.11); }
.project-case-card figure { margin: 0; background: #e8ece7; }
.project-case-card figure img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center; }
.project-case-card figcaption { padding: 9px 16px; color: #66706c; background: #f5f6f3; font-size: .68rem; line-height: 1.45; }
.project-case-card figcaption a { color: #46544e; text-decoration: underline; text-underline-offset: 2px; }
.project-case-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.project-case-copy .eyebrow { margin: 0 0 8px; color: var(--primary-deep); font-size: .72rem; }
.project-case-copy h3 { margin: 0 0 10px; font-size: 1.36rem; }
.project-case-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.project-material-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.project-material-list li { padding: 7px 10px; border: 1px solid #e5e8e2; border-radius: 999px; background: #f7f8f5; color: #414b47; font-size: .72rem; }
.project-card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 6px; color: var(--primary-deep); font-weight: 800; text-decoration: none; }
.project-card-link:hover { text-decoration: underline; }
.project-process-section { background: #fff; }
.project-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0; padding: 0; list-style: none; counter-reset: project-step; }
.project-process-grid li { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfa; }
.project-process-grid li > span { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f6bd60; color: #182221; font-size: .78rem; font-weight: 900; }
.project-process-grid h3 { margin: 17px 0 8px; font-size: 1.05rem; }
.project-process-grid p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.project-trust-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 22px; border-radius: 18px; background: #f3f6f1; }
.project-trust-panel > div { display: flex; align-items: flex-start; gap: 12px; }
.trust-mark { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dbe9db; color: #27613f; font-weight: 900; }
.project-trust-panel p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.project-trust-panel strong { color: var(--ink); }
.project-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding: 32px; border-radius: 24px; background: #182221; color: #fff; }
.project-final-cta > div:first-child { max-width: 610px; }
.project-final-cta .eyebrow { color: #f6bd60; }
.project-final-cta h2 { margin-bottom: 8px; }
.project-final-cta p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.project-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.project-cta-actions .secondary-btn { border-color: rgba(255,255,255,.3); color: #fff; }

@media (max-width: 980px) {
    .project-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-final-cta { align-items: flex-start; flex-direction: column; }
    .project-cta-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
    .project-types-section,
    .project-process-section { padding: 48px 0; }
    .project-section-heading { align-items: flex-start; flex-direction: column; }
    .project-case-grid,
    .project-process-grid,
    .project-trust-panel { grid-template-columns: 1fr; }
    .project-case-card figure img { height: 245px; }
    .project-case-copy { padding: 20px; }
    .project-process-grid li { min-height: 0; }
    .project-final-cta { padding: 24px 20px; }
    .project-cta-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .project-cta-actions > * { justify-content: center; }
}

/* Visual material showcase */
.mj-material-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 36px 0;
}

.mj-material-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 16px;
    background: #f2f3f4;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.mj-material-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.mj-material-card:hover img {
    transform: scale(1.045);
}

.mj-material-card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 48px 20px 20px;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.35),
        transparent
    );
}

.mj-material-card-content h3 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}

.mj-material-card-content p {
    margin: 0;
    opacity: .92;
    font-size: .92rem;
}

/* Large project photography */
.mj-project-visual {
    overflow: hidden;
    border-radius: 18px;
    background: #eee;
}

.mj-project-visual img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Better hero photography */
.home-hero,
.category-hero,
.projects-hero,
.contractors-hero,
.vendors-hero,
.services-hero,
.about-hero,
.shop-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Team photos */
.about-team img,
.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Material strips */
.mj-visual-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    margin: 40px 0;
}

.mj-visual-strip figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f3f3;
}

.mj-visual-strip img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
}

.mj-visual-strip figcaption {
    padding: 14px 16px;
    font-weight: 700;
    background: #fff;
}

/* Mobile */
@media (max-width: 900px) {
    .mj-material-showcase {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mj-visual-strip {
        grid-template-columns: 1fr;
    }

    .mj-project-visual img {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .mj-material-showcase {
        grid-template-columns: 1fr;
    }

    .mj-material-card,
    .mj-material-card img {
        height: 250px;
        min-height: 250px;
    }

    .product-card .product-image,
    .product-image {
        min-height: 220px;
    }

    .mj-project-visual img {
        height: 240px;
    }
}

.contractors-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/african-house-construction.jpg") !important;
}

.category-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/steel-reinforcement/rebar-1.jpg") !important;
}

.services-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/pexels-african-2691608.jpg") !important;
}

.shop-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/photo-1504307651254-35680f356dfd.jpg") !important;
}

.category-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/plumbing/pipes-1.jpg") !important;
}

.about-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/african-house-construction.jpg") !important;
}

.category-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/tools/tools-1.jpg") !important;
}

.vendors-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/photo-1586528116311-ad8dd3c8310d.jpg") !important;
}

.category-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/cement/cement-1.jpg") !important;
}

.projects-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.42)),
        url("assets/images/african-house-construction.jpg") !important;
}

/* ============================================================
   MJ HARDWARE â€” REAL STORE HOMEPAGE HERO
   Scoped only to the homepage hero.
   ============================================================ */

.home-hero {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            90deg,
            rgba(8, 15, 17, 0.78) 0%,
            rgba(8, 15, 17, 0.55) 38%,
            rgba(8, 15, 17, 0.18) 72%,
            rgba(8, 15, 17, 0.10) 100%
        ),
        url("assets/images/mj-hardware-store.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    animation: mjHardwareHeroZoom 18s ease-in-out infinite alternate;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.02) 45%,
            rgba(0, 0, 0, 0.32) 100%
        );
}

.home-hero .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: center;
}

.home-hero .hero-copy {
    max-width: 700px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.home-hero .hero-copy h1 {
    color: #fff;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.48);
}

.home-hero .hero-copy p,
.home-hero .hero-copy .lead {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.home-hero .hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    min-height: 82vh;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

@keyframes mjHardwareHeroZoom {
    0% {
        background-size: 100% auto;
        background-position: center center;
    }

    100% {
        background-size: 106% auto;
        background-position: center center;
    }
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 78vh;
        background-position: center center;
        animation: none;
        background-size: cover;
    }

    .home-hero .hero-inner {
        min-height: 78vh;
    }

    .home-hero .hero-visual {
        min-height: 78vh;
    }

    .home-hero .hero-copy {
        max-width: 620px;
    }
}

@media (max-width: 600px) {
    .home-hero {
        min-height: 76vh;
        background-position: 58% center;
    }

    .home-hero .hero-inner {
        min-height: 76vh;
    }

    .home-hero .hero-visual {
        min-height: 76vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero {
        animation: none;
    }
}

/* ============================================================
   MJ HARDWARE â€” HOMEPAGE PROJECTS + SUPPLY SECTIONS
   ============================================================ */

.mj-projects-home {
    padding: 96px 0;
    background: #f7f5f1;
}

.mj-supply-home {
    padding: 96px 0;
    background: #ffffff;
}

.mj-home-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.mj-home-heading h2 {
    margin-bottom: 16px;
}

.mj-home-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.mj-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.mj-project-card {
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(20, 28, 30, 0.10);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mj-project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(20, 28, 30, 0.16);
}

.mj-project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.mj-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.mj-project-card:hover .mj-project-image img {
    transform: scale(1.06);
}

.mj-project-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 53, 43, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.mj-project-content {
    padding: 24px;
}

.mj-project-content > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.mj-project-content h3 {
    margin: 8px 0 10px;
}

.mj-project-content p {
    margin: 0;
    color: #687175;
    line-height: 1.7;
}

.mj-home-action {
    margin-top: 42px;
    text-align: center;
}

.mj-supply-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mj-supply-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(25, 35, 38, .08);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(20, 28, 30, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mj-supply-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 28, 30, .12);
}

.mj-supply-card img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.mj-supply-card:hover img {
    transform: scale(1.05);
}

.mj-supply-card > div {
    padding: 20px;
}

.mj-supply-card span {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .1em;
}

.mj-supply-card h3 {
    margin: 7px 0 8px;
    font-size: 18px;
}

.mj-supply-card p {
    margin: 0;
    color: #6b7376;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .mj-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mj-supply-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .mj-projects-home,
    .mj-supply-home {
        padding: 70px 0;
    }

    .mj-project-grid,
    .mj-supply-grid {
        grid-template-columns: 1fr;
    }

    .mj-project-image {
        height: 250px;
    }
}


/* Page specific photography */
.home-hero {
    background-image:
        linear-gradient(90deg, rgba(8, 15, 17, .78) 0%, rgba(8, 15, 17, .5) 42%, rgba(8, 15, 17, .14) 100%),
        url("assets/images/mj-hardware-store.jpeg");
}

.home-project-starter { padding: 88px 0; background: #f1f5f0; }
.home-starter-layout { display: grid; grid-template-columns: 1fr minmax(320px, .85fr); gap: clamp(36px, 7vw, 90px); align-items: center; }
.home-starter-copy h2 { max-width: 560px; margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.home-starter-copy > p:not(.eyebrow) { max-width: 560px; color: #58665f; line-height: 1.75; }
.starter-benefits { display: grid; gap: 13px; margin: 26px 0 0; padding: 0; list-style: none; color: #31483b; font-weight: 650; }
.starter-benefits li { display: flex; align-items: center; gap: 11px; }
.starter-benefits li span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #d8e8d9; color: #24623c; }
.home-starter-form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(31, 61, 42, .1); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(20, 40, 28, .09); }
.home-starter-form label { display: grid; gap: 7px; color: #33423a; font-size: .9rem; font-weight: 700; }
.home-starter-form input, .home-starter-form select, .home-starter-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d8dfd9; border-radius: 9px; background: #fff; color: #1d2922; font: inherit; font-weight: 400; }
.home-starter-form textarea { resize: vertical; }
.home-starter-form small { color: #68746d; text-align: center; }
@media (max-width: 760px) { .home-project-starter { padding: 60px 0; } .home-starter-layout { grid-template-columns: 1fr; gap: 28px; } }

.home-hero .hero-actions .secondary-btn { color: #fff; border: 2px solid rgba(255,255,255,.95); background: rgba(8,15,17,.34); text-shadow: none; box-shadow: 0 3px 15px rgba(0,0,0,.2); }
.home-hero .hero-actions .secondary-btn:hover { color: #14231b; border-color: #fff; background: #fff; }
.mj-supply-card .category-price-note { display: inline-block; margin: 0 0 6px; padding: 5px 8px; border-radius: 999px; background: #f2f6ef; color: #325c3d; font-size: .72rem; font-weight: 700; }
.estimator-intro { margin: -4px 0 0; color: #5c6a62; font-size: .84rem; line-height: 1.55; }
.boq-preview { display: grid; gap: 6px; padding: 14px; border: 1px solid #dce7dd; border-radius: 12px; background: #f5f9f5; color: #405448; font-size: .85rem; line-height: 1.5; }
.boq-preview strong { color: #1d3525; }
.home-starter-form small { line-height: 1.5; }
.trade-portal-section { padding: 82px 0; background: #f1f5f0; }
.trade-portal-layout { display: grid; grid-template-columns: 1fr minmax(320px,.85fr); gap: clamp(36px,7vw,90px); align-items: center; }
.trade-portal-layout h2 { max-width: 560px; margin: 0 0 16px; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; }
.trade-portal-layout > div > p:not(.eyebrow) { max-width: 600px; color: #58665f; line-height: 1.75; }
.vendor-enquiry-form { display: grid; gap: 14px; margin-top: 28px; max-width: 680px; padding: 24px; border-radius: 18px; background: #f5f8f5; }
.project-package-section { padding: 54px 0; background: #f4f7f5; }
.project-package-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(24px,4vw,42px); border: 1px solid #dce7df; border-radius: 20px; background: #fff; }
.project-package-card > div { max-width: 780px; }
.project-package-card h2 { margin: 0 0 12px; }
.project-package-card p:not(.eyebrow) { color: #59666a; line-height: 1.65; }
.language-toggle { border: 1px solid currentColor; border-radius: 999px; padding: 5px 10px; color: inherit; background: transparent; font: inherit; font-size: .78rem; cursor: pointer; }
.stacked-form input[type="file"] { min-height: 46px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.stacked-form label small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
@media (max-width: 760px) { .trade-portal-section { padding: 58px 0; } .trade-portal-layout { grid-template-columns: 1fr; gap: 28px; } .project-package-card { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) {
  .home-hero .hero-actions .secondary-btn { border-width: 2px; background: rgba(8,15,17,.66); }
  .assistant-launcher, .whatsapp-float { width: 44px; min-height: 44px; padding: 0; }
  .assistant-launcher > span:last-child, .whatsapp-float > span { display: none; }
  .assistant-launcher { right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); }
  .whatsapp-float { left: max(12px,env(safe-area-inset-left)); bottom: max(12px,env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { .project-package-card .primary-btn { align-self: stretch; text-align: center; } }

.category-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .72), rgba(13, 24, 27, .2)),
        url("assets/images/blocks-masonry-tanzania.jpg") !important;
}

.shop-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/mj-hardware-store.jpeg") !important;
}

.materials-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/blocks-masonry-tanzania.jpg") !important;
}

.plumbing-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/plumbing/pipes-1.jpg") !important;
}

.roofing-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/roofing/roofing-1.jpg") !important;
}

.tools-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/power-tools/drill-1.jpg") !important;
}

.projects-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/african-house-construction.jpg") !important;
}

.contractors-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .72), rgba(13, 24, 27, .2)),
        url("assets/images/structural-works-tanzania.jpg") !important;
}

.vendors-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .18)),
        url("assets/images/projects-supply-tanzania.jpg") !important;
}

/* Vendor page: clear supplier information and responsive category cards */
.vendor-intro-section,.vendor-categories-section,.vendor-onboarding-section,.vendor-trust-section { padding:72px 0; }
.vendor-intro-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.vendor-intro-copy h2,.vendor-section-heading h2,.vendor-trust-grid h2 { margin:0 0 16px; font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.15; }
.vendor-intro-copy p:not(.eyebrow),.vendor-section-heading p:not(.eyebrow),.vendor-trust-grid p:not(.eyebrow) { color:#536168; line-height:1.75; }
.vendor-local-photo { margin:0; }
.vendor-local-photo img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:18px; }
.vendor-local-photo figcaption,.vendor-photo-credit { color:#69757a; font-size:.82rem; line-height:1.5; margin-top:10px; }
.vendor-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.vendor-section-heading.centered { justify-content:center; text-align:center; }
.vendor-section-heading.centered>div { max-width:720px; }
.vendor-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.vendor-category-card { overflow:hidden; border:1px solid #e5e9e8; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(20,40,35,.06); }
.vendor-category-card img { display:block; width:100%; height:190px; object-fit:cover; background:#f4f5f3; }
.vendor-category-card>div { padding:18px; }
.vendor-category-card h3 { margin:0 0 8px; font-size:1.08rem; }
.vendor-category-card p { margin:0; color:#5a6669; line-height:1.6; font-size:.94rem; }
.vendor-photo-credit a { color:#16724d; }
.vendor-onboarding-section { background:#f4f7f5; }
.vendor-onboarding-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:30px 0 0; padding:0; list-style:none; }
.vendor-onboarding-grid li { padding:24px; border:1px solid #e1e8e3; border-radius:16px; background:#fff; }
.vendor-onboarding-grid li>span { display:grid; place-items:center; width:42px; height:42px; margin-bottom:18px; border-radius:50%; background:#e5f3e9; color:#176b40; font-weight:800; }
.vendor-onboarding-grid h3 { margin:0 0 8px; font-size:1.05rem; }
.vendor-onboarding-grid p { margin:0; color:#59666a; line-height:1.6; font-size:.92rem; }
.vendor-trust-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:54px; align-items:center; }
.vendor-trust-grid ul { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.vendor-trust-grid li { display:grid; gap:5px; padding:17px 20px; border-left:4px solid #25834f; border-radius:0 12px 12px 0; background:#f4f7f5; }
.vendor-trust-grid li span { color:#59666a; line-height:1.55; }
.vendor-application { margin-top:32px; margin-bottom:72px; }
.service-points { display:grid; gap:9px; padding-left:20px; color:#536168; line-height:1.5; }
.delivery-options-section { padding:72px 0; background:#f4f7f5; }
.delivery-options-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.delivery-option-card { padding:24px; border:1px solid #e0e7e2; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(20,40,35,.05); }
.delivery-vehicle-photo { display:block; width:100%; height:205px; margin-bottom:18px; border-radius:12px; object-fit:cover; background:#eef1ee; }
.delivery-disclaimer a { color:#176b40; font-weight:700; }
.delivery-option-card h3 { margin:0 0 9px; font-size:1.35rem; }
.delivery-option-card p:not(.eyebrow) { color:#59666a; line-height:1.65; }
.delivery-capacity-note { display:inline-block; margin-top:6px; padding:7px 10px; border-radius:8px; background:#eff5f0; color:#326345; font-size:.82rem; font-weight:700; }
.delivery-disclaimer { margin:22px 0 0; color:#667276; text-align:center; font-size:.9rem; line-height:1.5; }

/* Product detail: image-led shopping layout with clear buying actions */
.product-detail-page { padding:38px 0 76px; background:linear-gradient(180deg,#f5f8f5 0,#fff 420px); }
.detail-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:30px; align-items:start; }
.product-gallery,.product-info,.product-specs,.related-products { min-width:0; }
.product-gallery { padding:18px; border:1px solid #e5ebe6; border-radius:22px; background:#fff; box-shadow:0 16px 42px rgba(23,47,33,.08); }
.detail-gallery-frame { position:relative; overflow:hidden; display:grid; place-items:center; min-height:420px; border-radius:16px; background:#f4f5f2; }
.main-visual { display:block; width:100%; height:420px; object-fit:contain; transition:transform .3s ease; }
.detail-gallery-frame:hover .main-visual { transform:scale(1.035); }
.detail-image-badge { position:absolute; z-index:1; top:16px; left:16px; padding:8px 12px; border-radius:999px; background:#1e7247; color:#fff; font-size:.78rem; font-weight:800; }
.gallery-caption { margin:12px 2px 10px; color:#748078; font-size:.83rem; }
.thumb-row { display:flex; gap:10px; overflow:auto; padding:2px 0 4px; }
.thumb { flex:0 0 72px; width:72px; height:66px; padding:3px; overflow:hidden; border:1px solid #dfe6e0; border-radius:10px; background:#fff; cursor:pointer; }
.thumb.active { border:2px solid #237548; }
.thumb img { width:100%; height:100%; object-fit:cover; border-radius:6px; }
.product-info { padding:26px; border:1px solid #e5ebe6; border-radius:22px; background:#fff; box-shadow:0 16px 42px rgba(23,47,33,.08); }
.detail-back-link { display:inline-block; margin-bottom:20px; color:#52625a; font-size:.88rem; font-weight:700; text-decoration:none; }
.product-info h1 { margin:8px 0 14px; font-size:clamp(1.8rem,3.3vw,2.8rem); line-height:1.1; }
.detail-meta-row { display:flex; flex-wrap:wrap; gap:9px; }
.detail-meta-row span { padding:7px 10px; border-radius:999px; background:#f0f5f1; color:#3d5d48; font-size:.8rem; font-weight:700; }
.detail-description { margin:20px 0 10px; color:#52605a; line-height:1.75; }
.detail-wink { margin:0 0 22px; color:#237548; font-size:.91rem; font-weight:700; }
.detail-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.detail-order-unit { display:grid; gap:7px; color:#39463f; font-size:.85rem; font-weight:700; }
.detail-order-unit input,.detail-order-unit select { width:100%; min-height:44px; padding:9px 11px; border:1px solid #d9e1da; border-radius:9px; background:#fff; }
.detail-actions .primary-btn,.detail-actions .secondary-btn { display:flex; align-items:center; justify-content:center; min-height:48px; text-align:center; }
.detail-actions .whatsapp-card-link { grid-column:1/-1; padding:11px 14px; border-radius:10px; background:#eff8f1; text-align:center; }
.info-box { margin-top:18px; padding:16px; border-radius:12px; background:#f4f7f4; }
.info-box strong { color:#234d34; }
.info-box p { margin:7px 0 0; color:#5c6961; line-height:1.6; }
.product-specs,.related-products { grid-column:1/-1; padding:24px; border:1px solid #e5ebe6; border-radius:20px; background:#fff; }
.product-specs h3,.related-products h3 { margin:0 0 14px; font-size:1.45rem; }
.product-specs ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.product-specs li { padding:13px; border-radius:10px; background:#f5f7f5; color:#52605a; line-height:1.5; }
.related-intro { margin:-6px 0 20px; color:#69756e; }
.related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.mini-product-card { overflow:hidden; border:1px solid #e6ebe6; border-radius:14px; background:#fff; }
.mini-product-image { display:grid; place-items:center; height:170px; overflow:hidden; background:#f4f5f2; }
.mini-product-image img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.mini-product-card:hover .mini-product-image img { transform:scale(1.04); }
.mini-product-card h4 { margin:14px 14px 5px; font-size:1rem; }
.mini-product-card p { margin:0 14px 12px; color:#707c75; font-size:.84rem; }
.mini-product-card a { display:inline-block; margin:0 14px 15px; color:#1c7045; font-weight:800; text-decoration:none; }
@media(max-width:760px) { .product-detail-page { padding:22px 0 48px; } .detail-layout { grid-template-columns:1fr; gap:16px; } .detail-gallery-frame,.main-visual { min-height:300px; height:300px; } .product-info { padding:20px; } .product-specs ul { grid-template-columns:1fr 1fr; } .related-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:480px) { .detail-actions { grid-template-columns:1fr; } .detail-actions .whatsapp-card-link { grid-column:auto; } .product-specs ul,.related-grid { grid-template-columns:1fr; } }
@media(max-width:980px) { .vendor-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .vendor-onboarding-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:680px) { .vendor-intro-section,.vendor-categories-section,.vendor-onboarding-section,.vendor-trust-section,.delivery-options-section { padding:48px 0; } .vendor-intro-grid,.vendor-trust-grid { grid-template-columns:1fr; gap:26px; } .vendor-category-grid,.vendor-onboarding-grid,.delivery-options-grid { grid-template-columns:1fr; } .vendor-section-heading { align-items:start; flex-direction:column; } .vendor-application { margin-top:0; margin-bottom:48px; } }

.services-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .78), rgba(13, 24, 27, .15)),
        url("assets/images/photo-1601584115197-04ecc0da31d7.jpg") !important;
}

.about-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .72), rgba(13, 24, 27, .2)),
        url("assets/images/mj-hardware-store.jpeg") !important;
}

/* Expanded About page: company story, project work and supply partners */
.about-story-section,.about-history-section,.about-projects-section,.about-partners-section,.about-values-section { padding:76px 0; }
.about-story-grid { display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.about-story-copy h2,.about-section-heading h2,.about-projects-intro h2,.about-values-grid h2 { margin:0 0 16px; font-size:clamp(1.9rem,3vw,2.8rem); line-height:1.15; }
.about-story-copy p:not(.eyebrow),.about-section-heading>p:last-child,.about-projects-intro p:not(.eyebrow),.about-values-grid>div>p:not(.eyebrow) { color:#566368; line-height:1.8; }
.about-store-photo { margin:0; }
.about-store-photo img { display:block; width:100%; height:440px; object-fit:cover; border-radius:20px; box-shadow:0 16px 40px rgba(20,40,35,.12); }
.about-store-photo figcaption { margin-top:9px; color:#667276; font-size:.85rem; }
.about-history-section,.about-values-section { background:#f4f7f5; }
.about-section-heading { max-width:760px; margin:0 auto 32px; text-align:center; }
.about-history-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.about-history-grid article,.about-partner-grid article { overflow:hidden; border:1px solid #e2e8e4; border-radius:16px; background:#fff; box-shadow:0 8px 26px rgba(17,35,25,.06); }
.about-history-grid img { display:block; width:100%; height:210px; object-fit:cover; }
.about-history-grid article>div { padding:22px; }
.about-history-grid article>div>span { color:#247448; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.about-history-grid h3,.about-partner-grid h3 { margin:9px 0; font-size:1.2rem; }
.about-history-grid p,.about-partner-grid p { margin:0; color:#59666a; line-height:1.65; }
.about-projects-intro { display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; margin-bottom:28px; }
.about-project-count { display:grid; justify-items:center; min-width:185px; padding:24px; border-radius:18px; background:#e8f2ea; color:#1b6841; text-align:center; }
.about-project-count strong { font-size:3.6rem; line-height:1; }
.about-project-count span { margin-top:8px; font-weight:700; font-size:.9rem; }
.about-project-photo-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.about-project-photo-grid figure { position:relative; margin:0; overflow:hidden; min-height:240px; border-radius:14px; background:#edf0ed; }
.about-project-photo-grid img { display:block; width:100%; height:270px; object-fit:cover; transition:transform .35s ease; }
.about-project-photo-grid figure:hover img { transform:scale(1.04); }
.about-project-photo-grid figcaption { padding:13px 15px; font-weight:700; color:#293639; }
.about-photo-note { margin:17px 0 0; color:#69757a; font-size:.84rem; line-height:1.55; }
.about-photo-note a,.about-partner-grid a { color:#176b40; font-weight:700; }
.about-partner-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.about-partner-grid article { display:grid; grid-template-columns:42% 1fr; min-height:230px; }
.about-partner-grid img { display:block; width:100%; height:100%; min-height:230px; object-fit:cover; }
.about-partner-grid article>div { display:flex; flex-direction:column; align-items:flex-start; padding:22px; }
.about-partner-grid a { margin-top:auto; padding-top:14px; text-decoration:none; }
.about-values-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:52px; align-items:center; }
.about-values-grid ul { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.about-values-grid li { display:grid; gap:5px; padding:17px 20px; border-left:4px solid #25834f; border-radius:0 12px 12px 0; background:#fff; }
.about-values-grid li span { color:#59666a; line-height:1.55; }
.about-location-section { padding:76px 0; }
.about-location-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:44px; align-items:center; }
.about-location-grid h2 { margin:0 0 14px; font-size:clamp(1.9rem,3vw,2.7rem); line-height:1.15; }
.about-location-grid>div:first-child p:not(.eyebrow) { margin:0 0 22px; color:#59666a; line-height:1.75; }
.about-location-map { overflow:hidden; border:1px solid #e0e6e2; border-radius:18px; background:#f2f4f2; box-shadow:0 10px 30px rgba(17,35,25,.08); }
.about-location-map iframe { display:block; width:100%; height:380px; border:0; }
.about-location-map p { margin:0; padding:10px 14px; color:#667276; font-size:.78rem; }
.about-location-map a { color:#176b40; }
@media(max-width:980px) { .about-project-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .about-partner-grid { grid-template-columns:1fr; } }
@media(max-width:680px) { .about-story-section,.about-history-section,.about-projects-section,.about-partners-section,.about-values-section,.about-location-section { padding:48px 0; } .about-story-grid,.about-values-grid,.about-location-grid { grid-template-columns:1fr; gap:28px; } .about-store-photo img { height:300px; } .about-history-grid,.about-project-photo-grid { grid-template-columns:1fr; } .about-projects-intro { grid-template-columns:1fr; } .about-project-count { justify-items:start; } .about-partner-grid article { grid-template-columns:1fr; } .about-partner-grid img { height:205px; min-height:0; } .about-location-map iframe { height:300px; } }

.cart-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .75), rgba(13, 24, 27, .22)),
        url("assets/images/photo-1601584115197-04ecc0da31d7.jpg") !important;
}

.quote-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .75), rgba(13, 24, 27, .22)),
        url("assets/images/projects-supply-tanzania.jpg") !important;
}

.support-hero {
    background-image:
        linear-gradient(90deg, rgba(13, 24, 27, .75), rgba(13, 24, 27, .22)),
        url("assets/images/electrical/electrical-1.jpg") !important;
}
/* Show full product photos without cropping away the item */
.product-card .product-image {
    background: #fff;
}

.product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: contain;
    padding: 12px;
    background: #fff;
}

/* Persistent catalogue assistant, WhatsApp handoff, and add-to-cart feedback */
.assistant-launcher,
.whatsapp-float {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(17,24,26,.2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.assistant-launcher { right: max(18px, env(safe-area-inset-right)); background: var(--primary); }
.assistant-launcher-icon { font-size: 1.1rem; }
.whatsapp-float { left: max(18px, env(safe-area-inset-left)); background: #168c54; }
.whatsapp-float svg { width: 21px; height: 21px; }

.assistant-panel {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 60px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100dvh - 108px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(17,24,26,.24);
}

.assistant-panel[hidden] { display: none; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; color: #fff; background: #204b42; }
.assistant-header > div { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 3px 9px; }
.assistant-header strong { font-size: .94rem; }
.assistant-header small { grid-column: 2; color: rgba(255,255,255,.76); font-size: .73rem; }
.assistant-status-dot { grid-row: span 2; width: 9px; height: 9px; border-radius: 50%; background: #70d59b; }
.assistant-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: transparent; font-size: 1.35rem; cursor: pointer; }
.assistant-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 130px; overflow-y: auto; padding: 15px; overscroll-behavior: contain; }
.assistant-message { max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 14px; color: var(--ink); background: #f3f5f2; font-size: .84rem; line-height: 1.5; }
.assistant-message.user { align-self: flex-end; color: #fff; background: #204b42; }
.assistant-product { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; }
.assistant-product > img { width: 62px; height: 62px; border-radius: 10px; object-fit: contain; background: #f5f5f2; }
.assistant-product > div { display: grid; min-width: 0; gap: 3px; }
.assistant-product strong { font-size: .81rem; line-height: 1.3; }
.assistant-product small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.assistant-product-actions { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
.assistant-product-actions a,
.assistant-add-button { color: var(--secondary); font: inherit; font-size: .76rem; font-weight: 700; }
.assistant-product-actions a { text-decoration: underline; text-underline-offset: 2px; }
.assistant-add-button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.assistant-whatsapp-link { align-self: flex-start; padding: 9px 12px; border-radius: 10px; color: #fff; background: #168c54; font-size: .82rem; font-weight: 700; text-decoration: none; }
.assistant-prompts { display: flex; gap: 7px; overflow-x: auto; padding: 0 13px 11px; }
.assistant-prompts button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; font-size: .72rem; cursor: pointer; }
.assistant-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; font: inherit; }
.assistant-form button { padding: 0 14px; border: 0; border-radius: 11px; color: #fff; background: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.assistant-disclaimer { margin: 0; padding: 0 13px 11px; color: var(--muted); font-size: .67rem; line-height: 1.4; }

.cart-toast { position: fixed; right: 18px; bottom: 82px; z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: min(440px,calc(100vw - 36px)); padding: 13px 15px; border-radius: 14px; color: #fff; background: #204b42; box-shadow: 0 12px 32px rgba(17,24,26,.22); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.cart-toast.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cart-toast span { display: grid; gap: 2px; font-size: .8rem; }
.cart-toast a { flex: 0 0 auto; color: #fff; font-size: .8rem; font-weight: 700; text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 520px) {
  .assistant-launcher, .whatsapp-float { bottom: max(12px, env(safe-area-inset-bottom)); min-height: 44px; padding: 0 12px; font-size: .79rem; }
  .assistant-launcher { right: max(12px, env(safe-area-inset-right)); }
  .whatsapp-float { left: max(12px, env(safe-area-inset-left)); }
  .assistant-panel { right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); width: calc(100vw - 24px); max-height: min(620px, calc(100dvh - 86px)); }
}

@media (prefers-reduced-motion: reduce) { .cart-toast { transition: none; } }

/* Compact, searchable storefront header */
.topbar .utility-bar { min-height: 28px; }
.main-header .site-logo { width: 142px; max-height: 50px; object-fit: contain; }
.main-header .nav-wrap { display: grid; grid-template-columns: 150px minmax(240px,1fr) auto; grid-template-rows: 54px 30px; gap: 2px 20px; min-height: 0; padding-block: 7px; }
.main-header .site-logo { grid-column: 1; grid-row: 1; }
.main-header .header-search { grid-column: 2; grid-row: 1; min-width: 0; }
.main-header .header-actions { grid-column: 3; grid-row: 1; flex-wrap: nowrap; gap: 8px; }
.main-header .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(10px,1.5vw,20px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.main-header .main-nav::-webkit-scrollbar { display: none; }
.main-header .header-actions > a,
.main-header .header-actions > button { min-height: 38px; padding-inline: 12px; font-size: .78rem; white-space: nowrap; }

@media (max-width: 1100px) and (min-width: 761px) {
  .main-header .nav-wrap { grid-template-columns: 125px minmax(160px,1fr) auto; grid-template-rows: 52px 28px; }
  .main-header .site-logo { width: 120px; }
  .main-header .main-nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .main-header .nav-wrap { grid-template-columns: 108px minmax(0,1fr); grid-template-rows: 44px 44px 30px; gap: 6px 10px; padding-block: 9px; }
  .main-header .site-logo { grid-column: 1; grid-row: 1; width: 106px; max-height: 40px; }
  .main-header .header-search { grid-column: 1 / -1; grid-row: 2; order: initial; }
  .main-header .header-search input { min-height: 42px; font-size: .86rem; }
  .main-header .header-actions { grid-column: 2; grid-row: 1; width: auto; justify-content: flex-end; gap: 6px; }
  .main-header .header-actions .primary-btn { display: none; }
  .main-header .header-actions [data-toggle-wishlist] { width: 38px; min-width: 38px; padding: 0; overflow: hidden; font-size: 0; }
  .main-header .header-actions [data-toggle-wishlist]::before { content: "♡"; font-size: 21px; line-height: 1; }
  .main-header .header-actions .cart-pill { width: auto; min-width: 76px; padding-inline: 10px; font-size: .75rem; }
  .main-header .main-nav { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: nowrap; gap: 16px; margin: 0; overflow-x: auto; white-space: nowrap; }
}

/* Search suggestions and catalogue controls */
.header-search { z-index: 40; }
.search-suggestions { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 120; max-height: min(70vh,560px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(17,24,26,.18); }
.search-suggestions[hidden] { display: none; }
.search-suggestion { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.search-suggestion:hover,
.search-suggestion:focus-visible { outline: none; background: #f5f6f2; }
.search-suggestion img { width: 48px; height: 48px; border-radius: 9px; object-fit: contain; background: #f7f7f4; }
.search-suggestion span { display: grid; min-width: 0; gap: 3px; }
.search-suggestion strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion small,
.search-suggestion em { color: var(--muted); font-size: .7rem; font-style: normal; }
.search-suggestion em { color: var(--primary-deep); font-weight: 700; white-space: nowrap; }
.search-category-link { display: inline-block; margin: 6px 4px 2px; padding: 7px 9px; border-radius: 999px; background: #f4f5f1; color: var(--secondary); font-size: .72rem; font-weight: 700; }
.search-no-match { margin: 8px; color: var(--muted); font-size: .82rem; }
.catalog-filters input[type="search"] { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf8; }
.catalog-filters .saved-filter { width: 100%; }
.catalog-filters .filter-note { margin: 0; font-size: .76rem; }
.catalog-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.catalog-result-count { margin: 0; color: var(--muted); font-size: .85rem; }
.catalog-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.catalog-toolbar select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.product-stock { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 5px 0 8px; color: var(--muted); font-size: .72rem; }
.availability-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #176849; background: #e8f4ed; font-weight: 700; }
.product-quantity-tools,
.cart-quantity-tools { display: inline-flex; align-items: center; gap: 5px; }
.product-quantity-tools button,
.cart-quantity-tools button { width: 30px; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 700; }
.product-quantity-tools input,
.cart-quantity-tools input { width: 48px; min-height: 34px; padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.product-quantity-tools select,
.cart-unit-label select { min-height: 34px; max-width: 122px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .72rem; }
.product-actions { align-items: center; }
.product-actions .product-quantity-tools { flex: 1 1 100%; justify-content: space-between; }
.product-actions [data-add-to-cart],
.product-actions > .primary-btn { flex: 1 1 42%; }
.product-save-button { flex: 0 0 auto !important; min-height: 34px !important; padding-inline: 8px !important; }
.whatsapp-card-link { flex: 1 1 100%; color: #168c54; font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.detail-order-unit { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; }
.detail-order-unit input,
.detail-order-unit select { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cart-unit-label { display: grid; gap: 5px; color: var(--muted); font-size: .73rem; }

/* Consistent product imagery: square framing and calm backgrounds */
.catalog-layout .product-card .product-image { height: auto; min-height: 0; max-height: none; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; border-radius: 14px; background: #f7f7f4; }
.catalog-layout .product-card .product-image img { width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: 1; object-fit: contain; padding: 10px; background: transparent; }
.catalog-layout .product-card .product-image-link { display: block; }
.catalog-layout .product-card { padding: 12px; border-radius: 18px; }
.catalog-layout .product-card > p { font-size: .84rem; }

@media (max-width: 760px) {
  .catalog-layout .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .catalog-filters h3,
  .catalog-filters p,
  .catalog-filters .saved-filter { grid-column: 1 / -1; }
  .catalog-filters label { align-self: end; }
  .product-quantity-tools select { max-width: 92px; }
}

@media (max-width: 480px) {
  .catalog-layout .product-grid { grid-template-columns: 1fr; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-filters h3,
  .catalog-filters p,
  .catalog-filters .saved-filter { grid-column: auto; }
}
