/* =========================================================
   Panthermiki — site stylesheet
   Plain hand-written CSS, no framework/vendor dependency.
   ========================================================= */

:root {
  --color-bg: #f7f8f6;
  --color-bg-alt: #eef1ec;
  --color-surface: #ffffff;
  --color-ink: #121412;
  --color-forest: #0d2818;
  --color-forest-dark: #081c10;
  --color-green: #2f7a3d;
  --color-green-dark: #24602f;
  --color-green-tint: #eaf5ea;
  --color-mint: #d9f5cd;
  --color-mint-text: #1f5c2c;
  --color-rust: #a85a24;
  --color-rust-dark: #8c4a1c;
  --color-border: #e1e5df;
  --color-border-dark: #2a2f2a;
  --color-text: #1a1f1a;
  --color-text-muted: #5b6560;
  --color-text-on-dark: #f2f4f1;
  --color-text-on-dark-muted: #b7c0b8;

  --container-w: 1280px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
}

/* -------------------- Reset / base -------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

/* -------------------- Layout helpers -------------------- */

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0;
  }

  .section--tight {
    padding: var(--space-7) 0;
  }
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-text-on-dark);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--space-2);
}

.section-label--rule::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin-right: var(--space-2);
  vertical-align: middle;
}

.section-label--dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  margin-right: var(--space-2);
  vertical-align: middle;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-title--lg {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-head__intro {
  max-width: 420px;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: right;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--primary {
  background: var(--color-green);
  color: #fff;
}

.btn--rust {
  background: var(--color-rust);
  color: #fff;
}

.btn--dark {
  background: var(--color-ink);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: inherit;
}

.btn--outline-green {
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn--mint {
  background: var(--color-mint);
  color: var(--color-mint-text);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-green);
}

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-forest);
}

.site-header__brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-nav__list a {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--color-green);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__quote {
  display: none;
}

.site-header__account {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-forest);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header__account--named {
  width: auto;
  max-width: 160px;
  gap: 6px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-header__account--named .material-symbols-outlined {
  font-size: 18px;
}

.site-header__account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text);
}

@media (min-width: 992px) {
  .site-nav {
    display: block;
  }

  .site-header__quote {
    display: inline-flex;
  }

  .site-header__account {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }
}

/* -------------------- Mobile nav overlay -------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__top {
  display: flex;
  justify-content: flex-end;
}

.mobile-nav__close {
  background: none;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.mobile-nav__list a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.mobile-nav__list a.is-active {
  color: var(--color-mint);
}

.mobile-nav__quote {
  align-self: stretch;
  margin-top: var(--space-6);
}

.mobile-nav__account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-5);
  grid-template-columns: 1fr;
}

.site-footer__brand-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.site-footer__brand-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.site-footer__social {
  display: flex;
  gap: var(--space-2);
}

.site-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__heading {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__links a,
.site-footer__links address {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* -------------------- Hero (shared pattern: Home / Services) -------------------- */

.hero {
  position: relative;
  color: #fff;
  padding: var(--space-8) 0 var(--space-7);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 28, 16, 0.92) 0%, rgba(9, 28, 16, 0.75) 45%, rgba(9, 28, 16, 0.35) 100%);
}

.hero__inner {
  position: relative;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mint);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.hero__title em {
  font-style: normal;
  color: var(--color-mint);
}

.hero__text {
  color: var(--color-text-on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-5);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* -------------------- Hero slider (Home) -------------------- */

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, 92vh, 860px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 28, 16, 0.92) 0%, rgba(9, 28, 16, 0.75) 45%, rgba(9, 28, 16, 0.35) 100%);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.9s ease;
  z-index: 2;
}

.hero-slide .container {
  position: relative;
  width: 100%;
}

.hero-slider__nav {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 5;
  display: flex;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .hero-slider__nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
  }
}

.hero-slider__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.4);
}

.hero-slider__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: var(--space-2);
}

.hero-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-slider__dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-mint);
}

/* -------------------- Stat bar -------------------- */

.stat-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

.stat-bar__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-forest);
}

.stat-bar__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .stat-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------- Sector cards (home) -------------------- */

.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.sector-card {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: var(--space-4);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
}

.sector-card--heat::before { background: linear-gradient(180deg, rgba(120, 58, 18, 0.6), rgba(80, 36, 8, 0.92)); }
.sector-card--cool::before { background: linear-gradient(180deg, rgba(47, 122, 61, 0.35), rgba(15, 61, 27, 0.85)); }
.sector-card--plumb { background-color: var(--color-bg-alt); color: var(--color-text); align-items: flex-start; }
.sector-card--plumb::before { background: linear-gradient(180deg, rgba(238, 241, 236, 0.55), rgba(225, 229, 223, 0.92)); }
.sector-card--vent { background-color: var(--color-ink); color: #fff; align-items: flex-start; }
.sector-card--vent::before { background: linear-gradient(180deg, rgba(18, 20, 18, 0.55), rgba(10, 11, 10, 0.92)); }
.sector-card--dhw { background-color: #7a3d14; }
.sector-card--dhw::before { background: linear-gradient(180deg, rgba(196, 98, 45, 0.55), rgba(110, 48, 14, 0.92)); }
.sector-card--water { background-color: #0f3d4a; }
.sector-card--water::before { background: linear-gradient(180deg, rgba(20, 96, 120, 0.4), rgba(8, 44, 58, 0.9)); }

a.sector-card {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.sector-card:hover,
a.sector-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sector-card__icon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  opacity: 0.5;
}

.sector-card__body {
  position: relative;
}

.sector-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.sector-card__text {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 320px;
}

@media (min-width: 768px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sector-card--heat {
    grid-column: span 1;
  }

  .sector-card--cool {
    grid-column: span 2;
  }

  .sector-card--plumb {
    grid-column: span 2;
  }

  .sector-card--vent {
    grid-column: span 1;
  }

  /* Third row repeats the first: narrow tile, then wide. */
  .sector-card--dhw {
    grid-column: span 1;
  }

  .sector-card--water {
    grid-column: span 2;
  }
}

/* -------------------- Feature list (icon + text) -------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list__item {
  display: flex;
  gap: var(--space-3);
}

.feature-list__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-green-tint);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.feature-list__text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* -------------------- Split section (image + content) -------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.split__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__quote {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: -20px;
  background: var(--color-rust);
  color: #fff;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 0.92rem;
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse > * {
    direction: ltr;
  }
}

/* -------------------- About preview (home) -------------------- */

.about-preview__media {
  position: relative;
  padding: 0 var(--space-4) var(--space-5) 0;
}

.about-preview__media-border {
  position: absolute;
  top: var(--space-4);
  right: 0;
  bottom: -30px;
  left: var(--space-4);
  border: 2px solid var(--color-green);
  border-radius: var(--radius-md);
  z-index: 0;
}

.about-preview__img-main {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-preview__img-secondary {
  position: absolute;
  z-index: 2;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  bottom: 0;
  left: -35px;
  border: 4px solid var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.about-preview__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.about-preview__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 220px;
}

.about-preview__feature-text {
  font-size: 0.88rem;
}

.about-preview__feature-text strong {
  display: block;
  color: var(--color-text);
}

.about-preview__feature-text span {
  color: var(--color-text-muted);
}

/* -------------------- Check list (FAQ) -------------------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.check-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
}

.check-list__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* -------------------- FAQ accordion -------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  color: var(--color-text);
}

.faq-item.is-open .faq-item__question {
  color: var(--color-green);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--color-green);
}

.faq-item__icon-minus {
  display: none;
}

.faq-item.is-open .faq-item__icon-plus {
  display: none;
}

.faq-item.is-open .faq-item__icon-minus {
  display: inline-block;
}

.faq-item__panel {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

.faq-item__panel p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}

.faq-item__panel img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* -------------------- Brand strip -------------------- */

.brand-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: var(--space-5);
  column-gap: var(--space-6);
}

.brand-strip img,
.brand-strip span {
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* -------------------- CTA banner -------------------- */

.cta-banner {
  background: var(--color-forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: space-between;
}

.cta-banner__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.cta-banner__text {
  color: var(--color-text-on-dark-muted);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
  }
}

/* -------------------- Cards: capability / product / info -------------------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .capability-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-green-tint);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.capability-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.capability-card__text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}

.capability-card__link {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-green);
}

/* Product grid */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.filter-pill.is-active {
  background: var(--color-green);
  color: #fff;
}

.search-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.search-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.search-row button {
  width: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fixed height so every card lines up; images are cropped to fill it. */
.product-card__media {
  position: relative;
  display: block;
  height: 350px;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 4px;
}

.product-card__badge--heating { background: var(--color-rust); }
.product-card__badge--cooling { background: var(--color-green); }
.product-card__badge--plumbing { background: var(--color-ink); }
.product-card__badge--ventilation { background: var(--color-text-muted); }

.product-card__bookmark {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__status {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
}

.product-card__status--green { background: var(--color-green); }
.product-card__status--blue { background: #2563a8; }

.product-card__tag {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(18, 20, 18, 0.72);
  color: #fff;
}

.product-card__highlight {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  background: var(--color-rust);
  color: #fff;
}

.product-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.product-card__series {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.product-card__title {
  font-weight: 700;
  color: inherit;
}

a.product-card__title:hover {
  color: var(--color-green);
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: pre-line; /* keep line breaks typed in the dashboard */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.product-card__specs dt {
  color: var(--color-text-muted);
}

.product-card__specs dd {
  margin: 0;
  font-weight: 600;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
}

.product-card__price {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.product-card__price-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.product-card__price-value {
  font-weight: 800;
  font-size: 0.95rem;
}

/* Contractor portal */

.portal-panel {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: grid;
  gap: var(--space-5);
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.portal-panel__stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.portal-panel__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.portal-panel__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
}

.portal-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.portal-form__title {
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-4);
}

.portal-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.portal-form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-on-dark-muted);
  margin-top: var(--space-3);
}

.portal-form__note a {
  color: var(--color-mint);
  font-weight: 600;
}

@media (min-width: 992px) {
  .portal-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* -------------------- Catalog browsing (Products) -------------------- */

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.catalog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
}

.catalog-breadcrumb .is-current {
  color: var(--color-green);
}

.catalog-breadcrumb .material-symbols-outlined {
  font-size: 16px;
}

.catalog-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-5);
}

.catalog-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.catalog-intro__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.catalog-intro__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.catalog-intro__title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.catalog-intro__text {
  color: var(--color-text-muted);
  max-width: 560px;
}

.helpdesk-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--color-text);
  max-width: 100%;
}

.helpdesk-card .material-symbols-outlined {
  color: var(--color-rust);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .helpdesk-card {
    white-space: nowrap;
  }
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-6);
}

.catalog-toolbar__search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.catalog-toolbar__search:focus-within {
  border-color: var(--color-green);
}

.catalog-toolbar__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  outline: none;
}

.catalog-toolbar__select-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.catalog-toolbar__select-control select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 220px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.catalog-toolbar__select-control .material-symbols-outlined {
  position: absolute;
  right: 8px;
  font-size: 16px;
  color: var(--color-text);
  pointer-events: none;
}

.catalog-toolbar__select {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.catalog-toolbar__select span.value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
}

.catalog-toolbar__reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: auto;
}

.catalog-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.catalog-section-label__text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 479px) {
  .category-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.category-card.is-active {
  border-color: var(--color-rust);
}

.category-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-rust);
  color: #fff;
  font-size: 13px;
}

.category-card.is-active .category-card__check {
  display: flex;
}

.category-card__img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.category-card__img--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.subcategory-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.subcategory-card__placeholder .material-symbols-outlined {
  font-size: 48px;
}

.catalog-empty {
  margin: var(--space-3) 0;
  padding: var(--space-5);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-align: center;
}

.catalog-empty a {
  color: var(--color-green);
  font-weight: 600;
}

.category-card__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.category-card__subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.subcategory-panel {
  display: none;
}

.subcategory-panel.is-active {
  display: block;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .subcategory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subcategory-card {
  display: block;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.subcategory-card:hover {
  border-color: var(--color-green);
}

.subcategory-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.subcategory-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-card__count {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  background: rgba(18, 20, 18, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.subcategory-card__body {
  padding: var(--space-3);
}

.subcategory-card__title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.subcategory-card__text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: pre-line; /* keep line breaks typed in the dashboard */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subcategory-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-green);
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
}

.catalog-heading__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.2rem;
  font-weight: 800;
}

.catalog-heading__title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--color-green);
  border-radius: 2px;
}

.catalog-heading__subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.advice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.advice-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.advice-bar__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-mint);
  color: var(--color-mint-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advice-bar__title {
  font-weight: 700;
}

.advice-bar__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 460px;
}

.advice-bar__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* -------------------- Forms (contact) -------------------- */

.form-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.form-notice--success {
  background: var(--color-green-tint);
  color: var(--color-mint-text);
}

.form-notice--error {
  background: #fdecea;
  color: #9a3b2e;
}

.form-field {
  margin-bottom: var(--space-3);
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
}

.info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card__title {
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.info-card__text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact-map__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row__label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-row__value {
  font-weight: 700;
  color: var(--color-green);
}

.contact-hotline {
  background: #fdf1e7;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
}

.contact-hotline__label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-rust-dark);
}

.contact-hotline__value {
  font-weight: 700;
  color: var(--color-rust-dark);
}

/* -------------------- Page header (About/Blog/legacy pages) -------------------- */

.page-header {
  padding: var(--space-7) 0;
  background: var(--color-forest);
  color: #fff;
  text-align: center;
}

/* -------------------- Photo gallery (repairs) -------------------- */

.photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------- Listing page (subcategory detail) -------------------- */

.listing-head {
  padding: var(--space-6) 0 var(--space-5);
}

.listing-head__badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.listing-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.listing-badge--green {
  background: var(--color-green-tint);
  color: var(--color-mint-text);
}

.listing-badge--neutral {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.listing-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.listing-head__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.listing-head__text {
  color: var(--color-text-muted);
  max-width: 640px;
  white-space: pre-line; /* keep line breaks typed into the description in the dashboard */
}

.stock-box {
  flex-shrink: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.stock-box__label {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.stock-box__value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}

.stock-box__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-green);
}

.stock-box__note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.pill-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

.pill-row a.is-active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}

.listing-filters__group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.listing-filters__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.listing-filters__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.listing-filters--secondary {
  border-bottom: none;
  padding-top: 0;
  margin-bottom: var(--space-5);
}

/* -------------------- Mobile tab bar (Services mobile) -------------------- */

.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  padding: var(--space-2) 0;
}

.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.mobile-tabbar a.is-active {
  color: var(--color-green);
}

@media (min-width: 768px) {
  .mobile-tabbar {
    display: none;
  }
}

/* -------------------- Get a quote -------------------- */

.quote-page {
  --quote-danger: #c8284a;
  --quote-danger-tint: #fdf0f2;
  --quote-danger-border: #f4b8c4;
  --quote-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.quote-page [hidden] {
  display: none !important;
}

.quote-page .material-symbols-outlined {
  font-size: 20px;
}

.icon-whatsapp {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Focused header / footer */

.quote-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.quote-header__inner,
.quote-footer__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.quote-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.quote-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quote-header__back:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.quote-header__back .material-symbols-outlined {
  font-size: 18px;
}

.quote-header__brand {
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.quote-header__brand img {
  height: 30px;
  width: auto;
}

.quote-header__meta {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.quote-header__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quote-header__location .material-symbols-outlined {
  font-size: 16px;
  color: var(--color-green);
}

.quote-header__dot {
  color: var(--color-border);
}

.quote-header__hours {
  font-weight: 600;
  color: var(--color-text);
}

.quote-footer {
  margin-top: var(--space-7);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.quote-footer__inner {
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.quote-footer__copy {
  font-weight: 700;
  color: var(--color-text);
}

.quote-footer__links {
  display: flex;
  gap: var(--space-4);
}

.quote-footer__links a:hover {
  color: var(--color-text);
}

@media (min-width: 640px) {
  .quote-header__inner,
  .quote-footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .quote-header__left {
    gap: var(--space-5);
  }

  .quote-header__brand {
    padding-left: var(--space-5);
  }

  .quote-footer__inner {
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .quote-header__meta {
    display: flex;
  }
}

/* Layout */

.quote-main {
  flex: 1;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--space-5) 16px 0;
}

.quote-main--centered {
  max-width: 560px;
  padding-top: var(--space-6);
}

.quote-intro {
  margin-bottom: var(--space-5);
}

.quote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bfe3c4;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.quote-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
}

.quote-eyebrow--trade {
  border-color: #f0d3bd;
  background: #fdf1e7;
  color: var(--color-rust-dark);
}

.quote-eyebrow--trade::before {
  background: var(--color-rust);
}

.quote-intro__title {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.quote-intro__text {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 640px) {
  .quote-main {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .quote-main {
    padding-top: var(--space-6);
  }

  .quote-layout {
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
    gap: var(--space-6);
  }

  .quote-aside {
    position: sticky;
    top: calc(64px + var(--space-4));
  }
}

/* Form cards */

.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 2px rgba(18, 20, 18, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .quote-card {
    padding: var(--space-4);
  }
}

.quote-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.quote-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a948e;
}

.quote-card__label .quote-optional {
  text-transform: none;
  letter-spacing: 0;
}

.quote-card__sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quote-card__meta {
  font-size: 0.75rem;
  color: #8a948e;
  white-space: nowrap;
}

.quote-card.is-uploading {
  border: 2px solid var(--color-green);
  box-shadow: 0 6px 20px rgba(47, 122, 61, 0.12);
}

.quote-optional {
  font-weight: 400;
  color: #8a948e;
}

.quote-required {
  color: var(--color-green);
  font-weight: 700;
}

/* Selectable cards (role / request type) */

.quote-choices {
  display: grid;
  gap: 12px;
}

.quote-choices--2 {
  grid-template-columns: 1fr 1fr;
}

.quote-choices--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .quote-choices--2 {
    gap: var(--space-3);
  }

  .quote-choices--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--quote-radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-choice:hover {
  border-color: #c7cec8;
}

.quote-choice__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  margin-bottom: 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quote-choice__title {
  font-weight: 700;
  font-size: 1rem;
  padding-right: 24px;
}

.quote-choice__text {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.quote-choice__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #c7cec8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.quote-choice__check .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 20;
}

.quote-choice--compact .quote-choice__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.quote-choice--compact .quote-choice__title {
  font-size: 0.9rem;
  line-height: 1.3;
}

@media (max-width: 639px) {
  .quote-choice--compact {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .quote-choice--compact .quote-choice__icon {
    margin-bottom: 0;
  }

  .quote-choice--compact .quote-choice__text {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
}

.quote-choice:has(input:checked) {
  border: 2px solid var(--color-green);
  padding: 15px;
  background: #f4faf3;
}

.quote-choice:has(input:checked) .quote-choice__icon {
  background: var(--color-green);
  color: #fff;
}

.quote-choice:has(input:checked) .quote-choice__check {
  border-color: var(--color-green);
  background: var(--color-green);
  color: #fff;
  top: 13px;
  right: 13px;
}

.quote-choice:has(input:focus-visible),
.quote-chip:has(input:focus-visible),
.quote-method:has(input:focus-visible),
.quote-toggle:has(input:focus-visible) {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Fields */

.quote-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote-field > label,
.quote-field__label,
.quote-group legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.quote-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 6px;
}

.quote-field__head label,
.quote-field__head .quote-field__label {
  margin-bottom: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.quote-field__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-green);
}

.quote-counter {
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #8a948e;
}

.quote-field input[type="text"],
.quote-field input[type="email"],
.quote-field input[type="tel"],
.quote-field input[type="url"],
.quote-field select,
.quote-field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-field textarea {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #9aa39d;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus,
.quote-phone:focus-within {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(47, 122, 61, 0.18);
}

.quote-select {
  position: relative;
}

.quote-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.quote-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8a948e;
  border-bottom: 1.5px solid #8a948e;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.quote-phone {
  display: flex;
  max-width: 420px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-phone__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.quote-phone__cc {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.quote-field .quote-phone input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.quote-field__error {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--quote-danger);
}

.quote-field__error:empty {
  display: none;
}

.quote-field.is-invalid > label,
.quote-field.is-invalid .quote-field__head label,
.quote-field.is-invalid .quote-field__label {
  color: var(--quote-danger);
}

.quote-field.is-invalid input[type="text"],
.quote-field.is-invalid input[type="email"],
.quote-field.is-invalid textarea,
.quote-field.is-invalid .quote-phone {
  border: 2px solid var(--quote-danger);
  background: #fffafb;
}

.quote-field.is-invalid .quote-phone__prefix {
  background: var(--quote-danger-tint);
}

.quote-field.is-invalid .quote-dropzone {
  border-color: var(--quote-danger-border);
}

.quote-card.is-invalid .quote-dropzone {
  border-color: var(--quote-danger-border);
}

.quote-field.is-invalid input:focus,
.quote-field.is-invalid textarea:focus,
.quote-field.is-invalid .quote-phone:focus-within {
  box-shadow: 0 0 0 3px rgba(200, 40, 74, 0.15);
}

.quote-form .form-row {
  gap: var(--space-3);
}

/* When one column of a two-column row is hidden, let the other take the full width. */
.quote-form .form-row:has(> [hidden]) {
  grid-template-columns: 1fr;
}

.quote-pro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid #cfe8cf;
  border-radius: var(--quote-radius);
  background: #f6fbf5;
}

.quote-pro__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-mint-text);
}

.quote-pro__label .material-symbols-outlined {
  font-size: 18px;
}

/* Chips, options, suggestions */

.quote-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.quote-group legend {
  padding: 0;
  margin-bottom: 10px;
}

.quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-chip:hover {
  border-color: #c7cec8;
}

.quote-chip .material-symbols-outlined {
  display: none;
  font-size: 16px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 20;
}

.quote-chip:has(input:checked) {
  border: 2px solid var(--color-green);
  padding: 7px 13px;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-weight: 600;
}

.quote-chip:has(input:checked) .material-symbols-outlined {
  display: inline-block;
  color: var(--color-green);
}

.quote-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: -6px;
  font-size: 0.76rem;
}

.quote-suggest__label {
  color: #8a948e;
  margin-right: 2px;
}

.quote-suggest__btn {
  border: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.76rem;
  transition: background-color 0.15s ease;
}

.quote-suggest__btn:hover {
  background: #e2e7df;
}

.quote-suggest__btn.is-active {
  background: var(--color-mint);
  color: var(--color-mint-text);
  font-weight: 600;
}

/* Checkboxes & toggle */

.quote-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.quote-field > .quote-check {
  display: flex;
  margin: 12px 0 0;
  font-weight: 400;
}

.quote-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-green);
}

.quote-check a {
  color: var(--color-green);
  font-weight: 600;
  text-decoration: underline;
}

.quote-check--muted {
  color: #7b857f;
}

.quote-consents {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-consents .quote-field > .quote-check {
  margin-top: 0;
}

.quote-field.is-invalid .quote-check {
  color: var(--quote-danger);
}

.quote-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--quote-radius);
  background: var(--color-bg);
  cursor: pointer;
}

.quote-toggle__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.quote-toggle__text {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.quote-toggle__switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d5dbd6;
  transition: background-color 0.2s ease;
}

.quote-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.quote-toggle:has(input:checked) .quote-toggle__switch {
  background: var(--color-green);
}

.quote-toggle:has(input:checked) .quote-toggle__switch::after {
  transform: translateX(20px);
}

/* Contact method */

.quote-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quote-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quote-method .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-text-muted);
}

.quote-method .icon-whatsapp {
  color: #1f9d55;
}

.quote-method:hover {
  border-color: #c7cec8;
}

.quote-method:has(input:checked) {
  border: 2px solid var(--color-green);
  padding: 9px 7px;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-weight: 600;
}

.quote-method:has(input:checked) .material-symbols-outlined {
  color: var(--color-green);
}

@media (min-width: 640px) {
  .quote-methods {
    gap: 12px;
  }

  .quote-method {
    flex-direction: row;
    gap: 8px;
  }
}

/* Uploads */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quote-dropzone {
  position: relative;
  padding: 20px 16px;
  border: 2px dashed var(--color-border);
  border-radius: var(--quote-radius);
  background: #fafbf9;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quote-dropzone:hover,
.quote-dropzone.is-dragover {
  background: var(--color-bg);
  border-color: #b9c2bb;
}

.quote-dropzone--accent {
  border-color: #bfe3c4;
  background: #f7fbf6;
}

.quote-dropzone--accent:hover,
.quote-dropzone--accent.is-dragover,
.quote-dropzone.is-dragover {
  border-color: var(--color-green);
  background: var(--color-green-tint);
}

.quote-dropzone__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  color: var(--color-green);
}

.quote-dropzone__title {
  font-size: 0.88rem;
  font-weight: 700;
}

.quote-dropzone__hint {
  max-width: 420px;
  margin: 4px auto 0;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.quote-dropzone__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.quote-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 1px 1px rgba(18, 20, 18, 0.04);
  transition: background-color 0.15s ease;
}

.quote-btn-ghost:hover {
  background: var(--color-bg-alt);
}

.quote-btn-ghost .material-symbols-outlined {
  font-size: 17px;
  color: var(--color-text-muted);
}

.quote-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-files:empty {
  display: none;
}

.quote-field--files .quote-files {
  margin-top: 10px;
}

.quote-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.quote-file__badge {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe8cf;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-size: 0.66rem;
  font-weight: 800;
}

.quote-file__badge--pdf {
  border-color: #f6cccc;
  background: #fdf0f0;
  color: #c0392b;
}

.quote-file__badge--dwg,
.quote-file__badge--dxf {
  border-color: #c9dcf5;
  background: #eff5fd;
  color: #2563b8;
}

.quote-file__badge--doc,
.quote-file__badge--docx {
  border-color: #d4d9f7;
  background: #f1f3fd;
  color: #3949ab;
}

.quote-file__name {
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-file__meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.quote-file__status {
  color: var(--color-green);
  font-weight: 600;
}

.quote-file__percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-green);
}

.quote-file__remove {
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa39d;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quote-file__remove:hover {
  background: var(--color-bg-alt);
  color: var(--quote-danger);
}

.quote-file__remove .material-symbols-outlined {
  font-size: 18px;
}

.quote-file__bar {
  display: none;
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.quote-file__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
  transition: width 0.2s ease;
}

.quote-file.is-uploading .quote-file__bar {
  display: block;
}

.quote-file.is-uploading .quote-file__remove {
  display: none;
}

.quote-file.is-complete {
  border-color: #bfe3c4;
  background: #f7fbf6;
}

.quote-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.quote-link .quote-field {
  width: 100%;
}

.quote-link__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-green);
  text-align: center;
}

.quote-link__toggle:hover {
  text-decoration: underline;
}

.quote-link__toggle .material-symbols-outlined {
  font-size: 16px;
}

.quote-form.is-submitting .quote-dropzone,
.quote-form.is-submitting .quote-link {
  pointer-events: none;
  opacity: 0.6;
}

/* Alert & submit */

.quote-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-3);
  border: 2px solid var(--quote-danger-border);
  border-radius: var(--quote-radius);
  background: var(--quote-danger-tint);
  color: #8f1d36;
}

.quote-alert:focus {
  outline: none;
}

.quote-alert__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--quote-danger);
  color: #fff;
}

.quote-alert__icon .material-symbols-outlined {
  font-size: 18px;
}

.quote-alert__title {
  font-size: 0.9rem;
  font-weight: 700;
}

.quote-alert__text {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--quote-danger);
}

.quote-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--color-green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(47, 122, 61, 0.22);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.quote-submit:hover {
  background: var(--color-green-dark);
}

.quote-submit:active {
  transform: scale(0.99);
}

.quote-submit.is-error {
  background: var(--quote-danger);
  box-shadow: 0 6px 14px rgba(200, 40, 74, 0.22);
}

.quote-submit.is-loading {
  background: #7aab80;
  box-shadow: none;
  cursor: progress;
}

.quote-submit__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: quote-spin 0.8s linear infinite;
}

.quote-submit.is-loading .quote-submit__spinner {
  display: inline-block;
}

.quote-submit.is-loading .quote-submit__arrow {
  display: none;
}

@keyframes quote-spin {
  to {
    transform: rotate(360deg);
  }
}

.quote-submit__note {
  margin-top: -6px;
  font-size: 0.78rem;
  text-align: center;
  color: #8a948e;
}

.quote-submit__note.is-error {
  color: var(--quote-danger);
}

.quote-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 0.74rem;
  color: #8a948e;
}

.quote-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quote-assurances .material-symbols-outlined {
  font-size: 15px;
  color: var(--color-green);
}

/* "What happens next" panel */

.quote-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quote-next {
  padding: var(--space-4);
  border-radius: 24px;
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  box-shadow: 0 18px 40px rgba(18, 20, 18, 0.18);
}

@media (min-width: 640px) {
  .quote-next {
    padding: 28px;
  }
}

.quote-next__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-dark);
}

.quote-next__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(105, 196, 120, 0.18);
  color: #8fdc9b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quote-next__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.quote-next__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #245f33;
  background: var(--color-forest);
  color: #8fdc9b;
}

.quote-next__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quote-next__steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: var(--color-border-dark);
}

.quote-next__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.quote-next__num {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green);
  box-shadow: 0 0 0 4px var(--color-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.quote-next__step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.quote-next__step p {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-on-dark-muted);
}

.quote-next__contact {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-dark);
}

.quote-next__contact-label {
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8c958e;
}

.quote-next__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quote-next__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #343a35;
  border-radius: 12px;
  background: #1f241f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.quote-next__btn:hover {
  background: #2a302a;
}

.quote-next__btn .material-symbols-outlined {
  font-size: 17px;
  color: #8fdc9b;
}

.quote-next__btn--whatsapp {
  border-color: #245f33;
  background: var(--color-forest);
  color: #8fdc9b;
}

.quote-next__btn--whatsapp:hover {
  background: #133a22;
}

.quote-next__address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  font-size: 0.72rem;
  color: #8c958e;
}

.quote-next__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cbb61;
}

.quote-trust {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quote-trust__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.quote-trust__title .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-green);
}

/* Success */

.quote-sent {
  padding: var(--space-5) 20px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 18px 40px rgba(18, 20, 18, 0.08);
  text-align: center;
}

.quote-sent:focus {
  outline: none;
}

@media (min-width: 640px) {
  .quote-sent {
    padding: var(--space-6) var(--space-5);
  }
}

.quote-sent__check {
  width: 76px;
  height: 76px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  box-shadow: 0 0 0 4px var(--color-green-tint);
  color: var(--color-green);
}

.quote-sent__check .material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 48;
}

.quote-sent__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.quote-sent__intro {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.quote-sent__intro strong {
  color: var(--color-text);
}

.quote-sent__ref {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-4);
  padding: 12px 16px;
  border: 1px solid #bfe3c4;
  border-radius: 16px;
  background: #f4faf3;
}

.quote-sent__ref-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.quote-sent__ref-code {
  padding: 4px 12px;
  border: 1px solid #bfe3c4;
  border-radius: 8px;
  background: var(--color-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-mint-text);
}

.quote-sent__summary {
  margin-top: var(--space-4);
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-bg);
  text-align: left;
}

.quote-sent__summary-title {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.quote-sent__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px var(--space-4);
  margin: 0;
}

@media (min-width: 480px) {
  .quote-sent__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-sent__grid dt,
.quote-sent__files-label {
  font-size: 0.72rem;
  color: #8a948e;
}

.quote-sent__grid dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.quote-sent__files {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.quote-sent__files ul {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-sent__files li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  word-break: break-all;
}

.quote-sent__files .material-symbols-outlined {
  font-size: 16px;
  color: var(--color-green);
}

.quote-sent__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: var(--space-4);
}

@media (min-width: 480px) {
  .quote-sent__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-sent__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.quote-sent__btn:hover {
  background: var(--color-bg);
}

.quote-sent__btn--primary {
  border-color: var(--color-green);
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 122, 61, 0.22);
}

.quote-sent__btn--primary:hover {
  background: var(--color-green-dark);
}

.quote-sent__note {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quote-sent__note a {
  color: var(--color-green);
  font-weight: 600;
  text-decoration: underline;
}

/* -------------------- Product details -------------------- */

.pd-top {
  padding: var(--space-6) 0;
}

.pd-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pd-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.pd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-gallery__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.pd-badge--green { background: var(--color-green); }
.pd-badge--blue { background: #2563a8; }
.pd-badge--rust { background: var(--color-rust); }
.pd-badge--dark { background: rgba(18, 20, 18, 0.72); }

.pd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pd-thumb {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
}

.pd-thumb.is-active {
  border-color: var(--color-green);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-delivery {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-4);
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.pd-delivery__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.pd-delivery__title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-delivery__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: pre-line;
}

.pd-links {
  display: grid;
  gap: 8px;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.pd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: inherit;
}

.pd-link:hover {
  border-color: var(--color-green);
}

.pd-link > .material-symbols-outlined:first-child {
  color: var(--color-green);
}

.pd-link__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.pd-link__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-link__host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.pd-link__open {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-text-muted);
}

.pd-summary__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.pd-summary__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
}

.pd-summary__sku strong {
  color: var(--color-ink);
}

.pd-summary__title {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
}

.pd-summary__desc {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.dash-field textarea[hidden] {
  display: none;
}

.pd-keyspecs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 var(--space-4);
}

.pd-keyspec {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}

.pd-keyspec dt {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.pd-keyspec dd {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-colors {
  margin: 0 0 var(--space-4);
}

.pd-colors__label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-colors__label span {
  font-weight: 500;
  color: var(--color-text-muted);
}

.pd-colors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.pd-color__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); /* keeps white swatches visible */
}

.pd-buy {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.pd-buy__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.pd-buy__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-ink);
}

.pd-buy__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.pd-buy__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-green);
}

.pd-buy__stock--blue {
  color: #2563a8;
}

.pd-buy__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.pd-buy__cta {
  justify-content: center;
  width: 100%;
}

.pd-buy__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.pd-buy__secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.pd-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.pd-help .material-symbols-outlined {
  color: var(--color-green);
}

.pd-help a {
  font-weight: 700;
  color: var(--color-green);
}

.pd-details {
  padding: var(--space-7) 0;
  background: var(--color-bg-alt);
}

.pd-details__title {
  margin: 4px 0 var(--space-4);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 800;
  color: var(--color-ink);
}

.pd-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-4);
  padding: 4px;
  border-radius: 10px;
  background: var(--color-border);
}

.pd-tab {
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.pd-tab.is-active {
  background: var(--color-surface);
  color: var(--color-green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pd-panel {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.pd-panel[hidden] {
  display: none;
}

.pd-table-wrap {
  overflow-x: auto;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pd-table thead th {
  padding: 12px 16px;
  background: var(--color-forest);
  color: #fff;
  font-size: 0.8rem;
  text-align: left;
}

.pd-table thead th:first-child { border-radius: 8px 0 0 0; }
.pd-table thead th:last-child { border-radius: 0 8px 0 0; }

.pd-table tbody th,
.pd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.pd-table tbody th {
  width: 28%;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.pd-table__note {
  color: var(--color-text-muted);
}

.pd-files {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
}

.pd-file:hover {
  border-color: var(--color-green);
}

.pd-file__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.pd-file__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.pd-file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-file__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.pd-file__action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green);
}

.pd-specs-text {
  max-width: 860px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}

.pd-specs-text--after-table {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.pd-info {
  display: grid;
  gap: var(--space-4);
}

.pd-info__text {
  margin: 0;
  line-height: 1.7;
  color: var(--color-text);
  white-space: pre-line;
}

@media (max-width: 900px) {
  .pd-top__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .pd-keyspecs {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-file__action span:last-child {
    display: none;
  }

  .pd-table tbody th {
    width: auto;
  }
}

/* -------------------- Login -------------------- */

.login-section {
  display: flex;
  justify-content: center;
  padding: 72px 16px;
  background: var(--color-bg-alt);
}

.login-section .material-symbols-outlined {
  font-size: 20px;
}

.login-card {
  width: 100%;
  max-width: 456px;
  padding: 32px 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(13, 40, 24, 0.08);
  text-align: center;
}

.login-card__brand {
  display: inline-block;
  margin-bottom: 18px;
}

.login-card__brand img {
  height: 40px;
  width: auto;
}

.login-card__title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--color-ink);
}

.login-card__sub {
  margin: 0 auto 22px;
  max-width: 340px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.login-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f2f4;
  text-align: left;
}

.login-notice__icon {
  margin-top: 6px;
  color: var(--color-forest);
}

.login-notice__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-green-dark);
}

.login-notice__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

.login-notice__text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

.login-notice__text a {
  color: inherit;
}

.login-form {
  text-align: left;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
}

.login-field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.login-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-green-dark);
}

.login-link:hover {
  text-decoration: underline;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f1f2f4;
  color: #6b7280;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-input:focus-within {
  border-color: var(--color-green);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(47, 122, 61, 0.18);
}

.login-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 0.92rem;
  outline: none;
}

.login-input input::placeholder {
  color: #8b929b;
}

.login-input__toggle {
  display: flex;
  padding: 4px;
  border: 0;
  background: none;
  color: #6b7280;
  cursor: pointer;
}

.login-input__toggle:hover {
  color: var(--color-ink);
}

.login-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
}

.login-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-green);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.login-submit:hover {
  background: var(--color-green-dark);
}

.login-submit:active {
  transform: scale(0.99);
}

.login-submit:disabled {
  background: #7aab80;
  cursor: not-allowed;
  transform: none;
}

.login-submit.is-loading {
  cursor: progress;
}

.login-submit__spinner,
.login-status__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

.login-submit.is-loading .login-submit__spinner {
  display: inline-block;
}

.login-submit.is-loading .login-submit__arrow {
  display: none;
}

.login-status__spinner {
  display: block;
  width: 40px;
  height: 40px;
  margin: 8px auto 20px;
  border-color: var(--color-border);
  border-top-color: var(--color-green);
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.login-status__icon--danger {
  background: #fdf0f2;
  color: #c8284a;
}

.login-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--color-mint);
  border-radius: 8px;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.login-alert--error {
  border-color: #f4b8c4;
  background: #fdf0f2;
  color: #c8284a;
}

.login-alert[hidden] {
  display: none;
}

.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
}

.login-section .login-secure .material-symbols-outlined {
  font-size: 16px;
  color: var(--color-green);
}

.login-help {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f1f2f4;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
}

.login-help p {
  margin: 0;
}

.login-help a {
  color: var(--color-green-dark);
}

.login-help a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-section {
    padding: 32px 16px;
  }

  .login-card {
    padding: 24px 20px;
  }
}

/* -------------------- Dashboard -------------------- */

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.dash-head__user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: var(--space-3) 0 0;
}

.dash-role {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-mint);
  color: var(--color-mint-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.dash-signout:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.dash-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--color-green-tint);
  color: var(--color-green);
}

.dash-tile__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
}

.dash-tile__text {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-tile__soon {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a948e;
}

.dash-tile--link {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dash-tile--link:hover {
  border-color: var(--color-green);
  box-shadow: 0 10px 24px rgba(13, 40, 24, 0.08);
  transform: translateY(-2px);
}

.dash-tile__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-green);
}

.dash-tile__open .material-symbols-outlined {
  font-size: 18px;
}

.dash-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.dash-back:hover {
  color: var(--color-green);
}

.dash-back .material-symbols-outlined {
  font-size: 18px;
}

.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.dash-empty__title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--color-ink);
}

.dash-empty a {
  color: var(--color-green);
  font-weight: 600;
}

.dash-messages {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.dash-message + .dash-message {
  border-top: 1px solid var(--color-border);
}

.dash-message__summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr) auto 24px;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.dash-message__summary::-webkit-details-marker {
  display: none;
}

.dash-message__summary:hover {
  background: var(--color-bg);
}

.dash-message[open] .dash-message__summary {
  background: var(--color-green-tint);
}

.dash-message__who,
.dash-message__subject {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-message__name {
  font-weight: 700;
  color: var(--color-ink);
}

.dash-message__email,
.dash-message__preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.dash-message__subject strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--color-text);
}

.dash-message__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dash-message__chevron {
  color: var(--color-text-muted);
  transition: transform 0.15s ease;
}

.dash-message[open] .dash-message__chevron {
  transform: rotate(180deg);
}

.dash-message__body {
  padding: 4px 20px 20px;
  background: var(--color-green-tint);
}

.dash-message__text {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--color-surface);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dash-message__reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green);
}

.dash-message__reply:hover {
  text-decoration: underline;
}

.dash-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.dash-badge--warn {
  background: #fdf0f2;
  color: #c8284a;
}

.dash-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.dash-badges:empty {
  display: none;
}

.dash-badges .dash-badge:not(.dash-badge--warn):not(.dash-badge--trade) {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.dash-badge--trade {
  background: #fbefe6;
  color: var(--color-rust-dark);
}

.dash-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 24px;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--color-surface);
}

.dash-details dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a948e;
}

.dash-details dd {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.dash-files {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.dash-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.86rem;
}

a.dash-file:hover {
  border-color: var(--color-green);
}

.dash-file > .material-symbols-outlined:first-child {
  color: var(--color-green);
}

.dash-file__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.dash-file__size {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dash-file__download {
  color: var(--color-text-muted);
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.dash-badge--muted {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.dash-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  padding: 12px 16px;
  border: 1px solid var(--color-mint);
  border-radius: 8px;
  background: var(--color-green-tint);
  color: var(--color-mint-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.dash-notice--error {
  border-color: #f4b8c4;
  background: #fdf0f2;
  color: #c8284a;
}

/* Catalogue browser */

.cat-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-4);
  align-items: start;
}

.cat-col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.cat-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.cat-col__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
}

.cat-col__empty {
  margin: 0;
  padding: 24px 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.cat-add {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.cat-add:hover {
  background: var(--color-green-dark);
}

.cat-add .material-symbols-outlined {
  font-size: 18px;
}

.cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-item {
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
}

.cat-item + .cat-item {
  border-top: 1px solid var(--color-border);
}

.cat-item.is-selected {
  border-left-color: var(--color-green);
  background: var(--color-green-tint);
}

.cat-item__main {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 13px;
  color: inherit;
}

.cat-item:not(.is-selected) .cat-item__main:hover {
  background: var(--color-bg);
}

.cat-thumb {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-green);
  overflow: hidden;
}

.cat-thumb--lg {
  width: 52px;
  height: 52px;
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-item__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.cat-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}

.cat-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cat-item__price {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink);
}

.cat-edit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 8px;
  color: var(--color-text-muted);
}

.cat-inline-form {
  display: contents;
}

button.cat-edit {
  margin-right: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.cat-edit:hover {
  background: var(--color-surface);
  color: var(--color-green);
}

.cat-edit .material-symbols-outlined {
  font-size: 18px;
}

/* Catalogue forms */

.dash-form {
  max-width: 860px;
}

.dash-form__card {
  display: grid;
  gap: 18px;
  margin-bottom: var(--space-4);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.dash-form__card.is-invalid {
  border-color: #f4b8c4;
}

.dash-form__title {
  margin: 0 0 -8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.dash-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dash-form__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dash-field > label,
.dash-field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
}

.dash-required {
  color: #c8284a;
}

.dash-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dash-field__head label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
}

.dash-counter {
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #8a948e;
}

.dash-field input[type="text"],
.dash-field input[type="number"],
.dash-field select,
.dash-field textarea,
.cat-spec input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-field textarea {
  height: auto;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus,
.cat-spec input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(47, 122, 61, 0.18);
}

.dash-field.is-invalid input,
.dash-field.is-invalid select,
.dash-field.is-invalid textarea {
  border-color: #c8284a;
}

.dash-field--narrow {
  max-width: 200px;
}

.dash-field__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.dash-field__hint a {
  color: var(--color-green);
  text-decoration: underline;
}

.dash-field__error {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8284a;
}

.dash-icon-input {
  position: relative;
}

.dash-icon-input .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--color-green);
  pointer-events: none;
}

.dash-field .dash-icon-input input {
  padding-left: 44px;
}

.dash-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
}

.dash-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-green);
}

.dash-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid var(--color-green);
  border-radius: 8px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-button:hover {
  background: var(--color-green-dark);
}

.dash-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.dash-button .material-symbols-outlined {
  font-size: 18px;
}

.dash-button--ghost {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.dash-button--ghost:hover {
  border-color: var(--color-green);
  background: var(--color-surface);
  color: var(--color-green);
}

.dash-button--danger {
  border-color: #c8284a;
  background: var(--color-surface);
  color: #c8284a;
}

.dash-button--danger:hover {
  background: #c8284a;
  color: #fff;
}

.dash-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-button--sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.dash-button--sm .material-symbols-outlined {
  font-size: 18px;
}

/* Dashboard brands */

.brand-admin {
  max-width: 860px;
}

.brand-admin > .dash-field__hint {
  margin-top: var(--space-3);
}

.brand-link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-4);
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-rust);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.brand-link-card > div {
  flex: 1 1 360px;
}

.brand-link-card__title {
  margin: 0 0 4px;
  font-weight: 700;
}

.brand-merge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dash-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin-top: var(--space-6);
  padding: 18px 24px;
  border: 1px solid #f4b8c4;
  border-radius: var(--radius-md);
  background: #fdf0f2;
}

.dash-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin-top: var(--space-6);
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.dash-secondary + .dash-danger {
  margin-top: var(--space-3);
}

.dash-secondary__title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--color-ink);
}

.dash-danger__title {
  margin: 0 0 2px;
  font-weight: 700;
  color: #c8284a;
}

/* Image fields */

.cat-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cat-image__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 110px;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: #9aa39d;
  overflow: hidden;
}

.cat-image__preview.is-removed {
  opacity: 0.35;
}

.cat-image__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-image__preview .material-symbols-outlined {
  font-size: 36px;
}

.cat-image__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cat-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.cat-gallery:empty {
  display: none;
}

.cat-gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  overflow: hidden;
}

.cat-gallery__item.is-main {
  border: 2px solid var(--color-green);
}

.cat-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-gallery__main,
.cat-gallery__new {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.cat-gallery__main {
  display: none;
}

.cat-gallery__item.is-main .cat-gallery__main {
  display: block;
}

.cat-gallery__new {
  top: auto;
  bottom: 6px;
  background: var(--color-rust);
}

.cat-gallery__tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.cat-gallery__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cat-gallery__tool:hover {
  color: var(--color-green);
}

.cat-gallery__tool .material-symbols-outlined {
  font-size: 18px;
}

.cat-gallery__item.is-main [data-gallery-first] {
  display: none;
}

.cat-gallery__item[draggable="true"] {
  cursor: grab;
}

.cat-gallery__item.is-dragging {
  opacity: 0.4;
  border-style: dashed;
}

.cat-gallery__move {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.cat-gallery__tool:disabled {
  opacity: 0.35;
  cursor: default;
}

.cat-gallery__tool:disabled:hover {
  color: var(--color-text);
}

/* Spec rows */

.cat-specs {
  display: grid;
  gap: 8px;
}

.cat-spec {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto 36px;
  gap: 8px;
}

.cat-spec__handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-text-muted);
  cursor: grab;
  touch-action: none; /* let a finger drag the row instead of scrolling the page */
}

.cat-spec__handle:hover,
.cat-spec__handle:focus-visible {
  background: var(--color-green-tint);
  color: var(--color-green);
}

.cat-spec.is-dragging {
  opacity: 0.6;
}

.cat-spec.is-dragging .cat-spec__handle {
  cursor: grabbing;
}

.cat-spec__hint-icon {
  font-size: 16px;
  vertical-align: -3px;
}

/* Rich text editor (dashboard) */

.rte {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
}

.rte:focus-within {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(47, 122, 61, 0.18);
}

.dash-field.is-invalid .rte {
  border-color: #c8284a;
}

.rte__toolbar {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.rte__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.rte__btn:hover {
  background: var(--color-surface);
  color: var(--color-ink);
}

.rte__btn.is-active {
  background: var(--color-green-tint);
  color: var(--color-green);
}

.rte__btn .material-symbols-outlined {
  font-size: 20px;
}

.rte__editor {
  min-height: 120px;
  max-height: 360px;
  padding: 10px 12px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  outline: none;
}

/* Longer texts (textarea with data-rich-text="tall"). */
.rte__editor--tall {
  min-height: 320px;
  max-height: 720px;
}

/* Formatted text: the editor and wherever rich text is shown on the site */
.rte__editor p,
.rich-text p {
  margin: 0 0 0.6em;
}

.rte__editor p:last-child,
.rich-text p:last-child {
  margin-bottom: 0;
}

.rte__editor ul,
.rte__editor ol,
.rich-text ul,
.rich-text ol {
  margin: 0 0 0.6em;
  padding-left: 1.4em;
}

.rte__editor ul,
.rich-text ul {
  list-style: disc;
}

.rte__editor ol,
.rich-text ol {
  list-style: decimal;
}

.rte__editor b,
.rte__editor strong,
.rich-text b,
.rich-text strong {
  font-weight: 700;
  color: var(--color-ink);
}

.rte__editor u,
.rich-text u {
  text-decoration: underline;
}

/* Colour options (editor) */

.cat-colors {
  display: grid;
  gap: 8px;
}

.cat-colors:empty {
  display: none;
}

.cat-color {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.cat-color input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.cat-color input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
}

.cat-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 36px;
  gap: 8px;
  align-items: center;
}

.cat-link input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
}

.cat-link input:focus,
.cat-color input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(47, 122, 61, 0.18);
}

/* Product page tabs (editor) */

.cat-tab {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
}

.cat-tab__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* A second switch under the tab's main one, lined up with it (number width + gap). */
.cat-tab__subcheck {
  margin: -6px 0 0 38px;
}

.cat-tab__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.cat-tab__head .dash-check {
  font-weight: 600;
}

.cat-files {
  display: grid;
  gap: 8px;
}

.cat-files:empty {
  display: none;
}

.cat-file {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.cat-file > .material-symbols-outlined:first-child {
  color: var(--color-green);
}

.cat-file input[type="text"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.88rem;
}

.cat-file input[type="text"]:hover {
  border-color: var(--color-border);
}

.cat-file input[type="text"]:focus {
  outline: none;
  border-color: var(--color-green);
  background: var(--color-surface);
}

.cat-file__open {
  display: inline-flex;
  padding: 6px;
  color: var(--color-text-muted);
}

.cat-file__open:hover {
  color: var(--color-green);
}

.cat-file--new {
  grid-template-columns: 24px minmax(0, 1fr) auto 36px;
  border-style: dashed;
}

.cat-file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.cat-file__size {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cat-files--new .dash-field__error {
  grid-column: 1 / -1;
}

.cat-spec__show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.cat-spec__show input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-green);
}

.cat-spec.is-shown .cat-spec__show {
  border-color: var(--color-green);
  background: var(--color-green-tint);
  color: var(--color-green);
}

.cat-spec__show:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.cat-spec__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cat-spec__remove:hover {
  background: #fdf0f2;
  color: #c8284a;
}

@media (max-width: 1024px) {
  .cat-browser {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cat-col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cat-browser,
  .dash-form__grid,
  .dash-form__grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-form__card {
    padding: 18px;
  }

  .cat-spec {
    grid-template-columns: 28px minmax(0, 1fr) auto 36px;
  }

  /* The handle runs down the left of the row's three lines. */
  .cat-spec__handle {
    grid-row: span 3;
    height: auto;
  }

  .cat-spec input[name="specLabel"],
  .cat-spec input[name="specValue"] {
    grid-column: 2 / -1;
  }

  .cat-link {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .cat-link input[name="linkLabel"] {
    grid-column: 1 / -1;
  }
}

.dash-pager {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 760px) {
  .dash-message__summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 6px 12px;
    padding: 14px 16px;
  }

  .dash-message__who,
  .dash-message__subject,
  .dash-message__meta {
    grid-column: 1;
  }

  .dash-message__chevron {
    grid-column: 2;
    grid-row: 1;
  }

  .dash-message__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .dash-badges {
    justify-content: flex-start;
  }

  .dash-message__body {
    padding: 4px 16px 16px;
  }
}

/* -------------------- Utility -------------------- */

.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.is-collapsed { display: none !important; }
