:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --text: #162033;
  --muted: #5e6878;
  --blue: #3f5379;
  --blue-dark: #243d73;
  --orange: #d86f12;
  --line: rgba(22, 32, 51, 0.12);
  --shadow: 0 12px 32px rgba(22, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--surface);
}

.header-strip {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.header-strip p {
  margin: 0.1rem 0;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 2rem;
  background: var(--surface);
}

.brand-badge {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
.call-button {
  background: var(--blue-dark);
  color: #fff;
}

.button.is-added {
  background: #1f9d57;
  color: #fff;
}

.hero-banner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.18));
  padding: 1rem 2rem;
  text-align: center;
}

.hero-overlay h1 {
  margin: 0;
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.page-shell,
.footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-section,
.inventory-section,
.quote-section,
.footer {
  background: var(--surface);
}

.intro-section,
.inventory-section,
.quote-section {
  margin-top: 1.4rem;
  padding: 1.6rem;
}

.intro-section {
  text-align: center;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.75rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue-dark);
}

h3 {
  font-size: 1.2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-button,
.search-field input,
.quote-form input,
.quote-form select,
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.filter-button {
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.filter-button.active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.search-field,
.quote-form label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.search-field span,
.quote-form span,
.contact-form span {
  font-size: 0.92rem;
  font-weight: 600;
}

.search-field input,
.quote-form input,
.quote-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
}

.inventory-groups {
  display: grid;
  gap: 2rem;
}

.inventory-group {
  display: grid;
  gap: 1rem;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.group-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.equipment-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  align-content: start;
}

.equipment-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.equipment-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  cursor: zoom-in;
}

.equipment-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.category-tag {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(36, 61, 115, 0.08);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.equipment-meta,
.equipment-description,
.quote-card p,
.contact-form span {
  color: var(--muted);
  line-height: 1.7;
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.pricing-row strong {
  color: var(--blue-dark);
  font-size: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.details-panel {
  padding: 1rem;
  background: #f7f8fb;
  border: 1px solid var(--line);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.details-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
}

.details-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.equipment-card button,
.equipment-card a {
  pointer-events: auto;
}

.button.ghost-button {
  border-color: var(--line);
  background: #f1f3f7;
  color: var(--text);
}

.cart-hero,
.cart-items-panel,
.cart-summary-panel {
  background: var(--surface);
  margin-top: 1.4rem;
  padding: 1.6rem;
}

.cart-hero h1 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue-dark);
}

.cart-hero p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1.4rem;
}

.section-heading-left {
  text-align: left;
}

.cart-list-page {
  display: grid;
  gap: 1rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.cart-item-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.cart-item-meta p,
.cart-empty,
.cart-summary-panel p,
.cart-item-controls span {
  color: var(--muted);
  line-height: 1.65;
}

.cart-item-meta p:last-child {
  margin-bottom: 0;
}

.cart-item-meta h3,
.cart-summary-panel h2 {
  color: var(--blue-dark);
}

.cart-item-controls {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  align-content: start;
}

.qty-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-inline input {
  width: 78px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.link-button,
.secondary-link {
  color: var(--blue-dark);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cart-summary-panel {
  align-self: start;
  position: sticky;
  top: 1rem;
}

.cart-summary-stats {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.2rem;
}

.cart-date-fields {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0.4rem;
}

.cart-date-fields label {
  display: grid;
  gap: 0.45rem;
}

.cart-date-fields span {
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-date-fields input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.cart-summary-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-summary-stats span {
  color: var(--muted);
}

.cart-summary-stats strong {
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.whatsapp-button {
  background: #1f9d57;
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 2rem));
  margin: 4rem auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.image-lightbox-panel {
  width: min(1100px, calc(100% - 2rem));
  padding: 1rem;
  background: #ffffff;
}

.image-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #eef1f6;
  font-size: 1.5rem;
  cursor: pointer;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.product-modal-image-wrap img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 1rem;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.modal-price-row strong {
  color: var(--blue-dark);
  font-size: 1.5rem;
}

.feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.feature-list div {
  padding: 0.8rem 0.9rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.modal-note {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  line-height: 1.6;
}

.quote-layout,
.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.quote-form,
.contact-form {
  display: grid;
  gap: 1rem;
}

.quote-section {
  border: 1px solid var(--line);
}

.quote-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.quote-note {
  margin: 0;
  padding: 1rem 1.05rem;
  background: #f7f8fb;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.quote-card {
  padding: 2rem;
  background: #fcfcfd;
  border: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.quote-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 0.95;
}

.quote-summary {
  display: grid;
  gap: 1rem;
  min-height: 100px;
}

.quote-summary strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue-dark);
}

.quote-summary > div,
.quote-summary > .estimate-empty {
  margin: 0;
}

.quote-summary span {
  color: var(--muted);
  line-height: 1.6;
}

.estimate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.estimate-item strong,
.estimate-item span {
  display: block;
}

.estimate-item-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.estimate-item-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.estimate-item-category,
.estimate-item-rate {
  font-size: 0.95rem;
  line-height: 1.55;
}

.estimate-item-category {
  margin-top: 0.1rem;
}

.estimate-item-rate {
  margin-top: 0.05rem;
}

.estimate-item-total {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
  text-align: right;
  color: var(--blue-dark);
  font-weight: 700;
}

.estimate-line-total {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--blue-dark);
}

.estimate-remove {
  min-height: 40px;
  min-width: 96px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f3f5f9;
  color: var(--blue-dark);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.estimate-remove:hover {
  background: #e8edf7;
  border-color: rgba(36, 61, 115, 0.24);
  transform: translateY(-1px);
}

.estimate-remove:focus-visible,
#quoteForm .button:focus-visible,
.quote-actions .button:focus-visible {
  outline: 3px solid rgba(36, 61, 115, 0.18);
  outline-offset: 2px;
}

.estimate-empty {
  padding: 1rem 1.05rem;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.quote-actions {
  display: grid;
  gap: 0.75rem;
}

#quoteAddItem {
  margin-top: 0.25rem;
}

#quoteForm .button,
.quote-actions .button {
  min-height: 60px;
  padding: 1rem 1.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

#quoteForm .button.primary,
.quote-actions .button.primary {
  box-shadow: 0 14px 24px rgba(36, 61, 115, 0.18);
}

#quoteForm .button.ghost-button,
.quote-actions .button.ghost-button {
  background: #f6f8fc;
  border-color: rgba(22, 32, 51, 0.1);
}

.full-width {
  width: 100%;
}

.footer {
  margin-top: 1.4rem;
  padding: 1.6rem;
}

@media (max-width: 980px) {
  .topbar,
  .hero-overlay,
  .toolbar,
  .inventory-grid,
  .quote-layout,
  .footer,
  .cart-page-layout,
  .product-modal-layout,
  .cart-item-card,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-items: start;
  }

  .topbar-links {
    justify-content: start;
  }

  .hero-overlay {
    gap: 1rem;
  }

  .cart-item-controls {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .footer {
    width: min(100% - 1rem, 100%);
  }

  .topbar {
    padding: 1rem;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-banner {
    min-height: 320px;
  }

  .hero-banner img {
    height: 320px;
  }

  .equipment-image-frame {
    height: 220px;
  }

  .quote-card {
    padding: 1.25rem;
  }

  .estimate-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .estimate-item-total {
    justify-items: start;
    text-align: left;
  }
}
