:root {
  --green: #1f513f;
  --beige: #f4f2ed;
  --sage: #acb4a2;
  --black: #252525;
  --white: #ffffff;
  --line: rgba(37, 37, 37, 0.14);
  --line-strong: rgba(31, 81, 63, 0.26);
  --shadow: 0 18px 45px rgba(37, 37, 37, 0.12);
  --soft-shadow: 0 12px 30px rgba(37, 37, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--beige);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(31, 81, 63, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(37, 37, 37, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 42px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 44px;
  color: var(--white);
  background: var(--green);
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow);
}

.button.secondary {
  background: var(--beige);
  border-color: rgba(31, 81, 63, 0.24);
  color: var(--green);
}

.button.excel-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.button.whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.button.danger {
  background: transparent;
  border-color: rgba(37, 37, 37, 0.2);
  color: var(--black);
}

.button.full {
  width: 100%;
}

.hero-stats {
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 168px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  font-weight: 900;
  font-size: 20px;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-muted {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
  border-left: 4px solid var(--green);
  padding-left: 18px;
}

h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p {
  line-height: 1.6;
}

.benefit-grid,
.category-grid,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.category-grid article,
.terms-grid div,
.kit-panel,
.distributor-panel,
.summary {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.info-card {
  min-height: 230px;
  padding: 24px;
  border-top: 4px solid var(--green);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--green);
  font-weight: 900;
}

.category-grid article {
  padding: 24px;
  background: var(--white);
  border-top: 4px solid var(--sage);
}

.kit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 32px;
  align-items: start;
}

.kit-section > div:first-child {
  max-width: 700px;
}

.kit-panel {
  padding: 26px;
  border-left: 6px solid var(--green);
  background: var(--white);
}

.kit-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

.commercial {
  background: var(--green);
  color: var(--white);
}

.commercial h2 {
  color: var(--white);
}

.terms-grid div {
  min-height: 120px;
  padding: 22px;
  color: var(--black);
  border-top: 4px solid var(--sage);
}

.terms-grid strong,
.terms-grid span {
  display: block;
}

.terms-grid span {
  margin-top: 10px;
  color: rgba(37, 37, 37, 0.72);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.catalog-filters label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.catalog-filters input,
.catalog-filters select {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--black);
  background: var(--white);
  font: inherit;
}

.catalog-filters input:focus,
.catalog-filters select:focus,
.distributor-grid input:focus,
textarea:focus,
.quantity-input:focus {
  outline: 2px solid rgba(31, 81, 63, 0.22);
  border-color: var(--green);
}

.filter-clear {
  min-width: 150px;
  border-color: var(--line);
  background: var(--beige);
  color: var(--black);
}

.empty-catalog {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  color: rgba(37, 37, 37, 0.72);
  font-weight: 800;
}

.catalog-count {
  margin: 0;
  color: rgba(37, 37, 37, 0.68);
  font-size: 14px;
  font-weight: 900;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.added-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 9px 12px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
}

.added-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.quick-order-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.quick-order-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

.quick-order-table th,
.quick-order-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.quick-order-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--green);
  background: var(--beige);
  font-size: 12px;
  text-transform: uppercase;
}

.photo-cell {
  width: 76px;
}

.product-thumb {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb span {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.product-thumb::after {
  content: "";
  position: absolute;
  left: 74px;
  top: 50%;
  z-index: 5;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(31, 81, 63, 0.22);
  background:
    var(--thumb-image) center / cover no-repeat,
    var(--beige);
  box-shadow: 0 18px 40px rgba(37, 37, 37, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.product-thumb:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.photo-cell-repeated .product-thumb {
  display: none;
}

.quick-order-table tr.is-selected {
  background: rgba(31, 81, 63, 0.06);
  box-shadow: inset 4px 0 0 var(--green);
}

.quick-order-table tr.is-selected td {
  border-bottom-color: rgba(31, 81, 63, 0.18);
}

.quick-order-table tr.is-selected .product-cell strong {
  color: var(--green);
}

.quick-order-table .product-cell strong {
  white-space: nowrap;
}

.quick-order-table .quantity-control {
  min-height: 40px;
}

.product-group-row {
  background: var(--white);
}

.product-group-row .group-toggle {
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.product-group-row .group-toggle:disabled {
  cursor: default;
  opacity: 0.72;
}

.direct-quantity-cell .quantity-control {
  margin-left: auto;
}

.size-detail-row td {
  padding: 0;
  background: rgba(244, 242, 237, 0.58);
}

.size-lines {
  display: grid;
  gap: 0;
  padding: 10px 12px 12px 92px;
}

.size-line {
  display: grid;
  grid-template-columns: 92px minmax(190px, 1fr) 170px 150px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 81, 63, 0.1);
}

.size-line:last-child {
  border-bottom: 0;
}

.size-line-head {
  color: rgba(37, 37, 37, 0.56);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.size-line.is-selected {
  background: rgba(31, 81, 63, 0.07);
}

.sku-value {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.line-total-value {
  font-weight: 900;
  text-align: right;
}

.empty-row {
  padding: 24px;
  color: rgba(37, 37, 37, 0.72);
  font-weight: 800;
  text-align: center;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(37, 37, 37, 0.12);
}

.product-image {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  background: var(--green);
  font-weight: 900;
}

.product-body {
  padding: 20px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
}

.product-meta span {
  color: rgba(37, 37, 37, 0.62);
}

.product-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--black);
}

.order-section {
  background: var(--white);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.order-main {
  display: grid;
  gap: 18px;
}

.distributor-panel {
  padding: 24px;
  border-top: 4px solid var(--green);
}

.distributor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.distributor-grid label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.wide-field {
  grid-column: 1 / -1;
}

.distributor-grid input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--black);
  background: var(--white);
  font: inherit;
}

.order-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  box-shadow: var(--soft-shadow);
}

.order-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.order-table th,
.order-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.order-table th {
  color: var(--green);
  background: var(--beige);
  font-size: 13px;
  text-transform: uppercase;
}

.product-cell strong,
.product-cell span {
  display: block;
}

.product-cell span {
  margin-top: 4px;
  color: rgba(37, 37, 37, 0.62);
  font-size: 13px;
}

.quantity-control {
  display: inline-flex;
  align-items: stretch;
  width: 132px;
  min-height: 46px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
}

.quantity-step {
  width: 38px;
  border: 0;
  background: rgba(172, 180, 162, 0.18);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.quantity-step:hover,
.quantity-step:focus-visible {
  background: rgba(31, 81, 63, 0.12);
}

.quantity-input {
  width: 56px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 4px;
  color: var(--black);
  font: inherit;
  text-align: center;
}

.summary {
  position: sticky;
  top: 88px;
  padding: 24px;
  border-top: 4px solid var(--green);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  color: var(--green);
  font-size: 22px;
}

.discount-note {
  margin: 8px 0 4px;
  color: rgba(37, 37, 37, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.minimum-status {
  margin: 18px 0;
  padding: 14px;
  background: var(--beige);
  color: var(--black);
  font-weight: 800;
}

.minimum-status.ok {
  background: var(--green);
  color: var(--white);
}

textarea {
  margin-bottom: 12px;
  resize: vertical;
}

.copy-feedback {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--green);
  font-weight: 800;
}

.autosave-note {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.volume-discounts {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.volume-discounts h4 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 15px;
}

.volume-discounts table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.volume-discounts th,
.volume-discounts td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.volume-discounts th {
  color: var(--green);
  background: var(--beige);
  font-weight: 900;
}

.volume-discounts p {
  margin: 10px 0 0;
  color: rgba(37, 37, 37, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--black);
}

.footer strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .benefit-grid,
  .category-grid,
  .catalog,
  .catalog-filters,
  .terms-grid,
  .kit-section,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero {
    min-height: auto;
    padding: 72px 18px 34px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .hero-stats div {
    width: 100%;
    padding: 14px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 19px;
  }

  .button {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 15px;
  }

  .filter-clear {
    width: 100%;
  }

  .catalog-filters,
  .distributor-panel,
  .summary {
    padding: 16px;
  }

  .catalog-filters {
    gap: 12px;
    margin-bottom: 16px;
  }

  .catalog-count {
    margin: 0;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .added-toggle {
    justify-content: flex-start;
  }

  .catalog-filters label,
  .distributor-grid label {
    gap: 7px;
    font-size: 13px;
  }

  .catalog-filters input,
  .catalog-filters select,
  .distributor-grid input,
  textarea {
    min-height: 52px;
    padding: 13px 12px;
    font-size: 16px;
  }

  .product-image {
    min-height: 150px;
  }

  .product-body {
    padding: 16px;
  }

  .product-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 14px;
  }

  .product-meta strong {
    overflow-wrap: anywhere;
  }

  .distributor-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section {
    padding: 48px 16px;
  }

  .order-table-wrap {
    overflow: visible;
    border: 0;
  }

  .quick-order-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .order-table,
  .quick-order-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
    font-size: 14px;
  }

  .order-table thead,
  .quick-order-table thead {
    display: none;
  }

  .order-table,
  .quick-order-table,
  .order-table tbody,
  .quick-order-table tbody,
  .order-table tr,
  .quick-order-table tr,
  .order-table td {
    display: block;
    width: 100%;
  }

  .quick-order-table td {
    display: block;
    width: 100%;
  }

  .order-table tr,
  .quick-order-table tr {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(37, 37, 37, 0.06);
  }

  .order-table td,
  .quick-order-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }

  .order-table td::before,
  .quick-order-table td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: rgba(37, 37, 37, 0.62);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .order-table td:last-child,
  .quick-order-table td:last-child {
    border-bottom: 0;
  }

  .order-table .product-cell,
  .quick-order-table .product-cell {
    display: block;
    text-align: left;
    padding-top: 12px;
  }

  .quick-order-table .photo-cell {
    justify-content: flex-start;
    padding-top: 12px;
  }

  .quick-order-table .photo-cell::before {
    display: none;
  }

  .quick-order-table .photo-cell-repeated .product-thumb {
    display: grid;
  }

  .product-group-row .group-toggle {
    width: 100%;
  }

  .size-detail-row {
    margin-top: -10px;
    border-top: 0 !important;
    box-shadow: none !important;
  }

  .quick-order-table .size-detail-row td {
    display: block;
    padding: 0 0 10px;
    border-bottom: 0;
    background: transparent;
  }

  .quick-order-table .size-detail-row td::before {
    display: none;
  }

  .size-lines {
    gap: 8px;
    padding: 0;
  }

  .size-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(31, 81, 63, 0.12);
    background: rgba(244, 242, 237, 0.76);
  }

  .size-line-head {
    display: none;
  }

  .size-line span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }

  .size-line span::before {
    content: attr(data-label);
    color: rgba(37, 37, 37, 0.62);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .size-line .quantity-value {
    align-items: center;
  }

  .product-thumb {
    width: 58px;
    height: 58px;
  }

  .product-thumb span {
    width: 38px;
    height: 38px;
  }

  .product-thumb::after {
    display: none;
  }

  .order-table .product-cell::before,
  .quick-order-table .product-cell::before {
    display: block;
    margin-bottom: 6px;
  }

  .product-cell span {
    overflow-wrap: anywhere;
  }

  .quantity-control {
    width: 138px;
    min-height: 44px;
  }

  .quantity-input {
    width: 58px;
    min-height: 42px;
    font-size: 16px;
    text-align: center;
  }

  .summary-line {
    padding: 12px 0;
  }

  .summary-line.total {
    font-size: 20px;
  }

  .minimum-status {
    margin: 16px 0;
  }

  .footer {
    flex-direction: column;
  }
}
