:root {
  --ink: #18202a;
  --muted: #64707f;
  --soft: #8b96a3;
  --line: #dfe5ec;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --panel: #f1f4f7;
  --page: #f7f8fa;
  --brand: #16705f;
  --brand-dark: #0d4f43;
  --brand-soft: #e7f4f1;
  --accent: #c9792c;
  --accent-soft: #fff3e4;
  --danger: #b42318;
  --danger-soft: #fff1ef;
  --success: #167a42;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(18, 32, 47, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(22, 112, 95, 0.28);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  backdrop-filter: blur(14px);
}

.topbar,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  line-height: 1.08;
  font-weight: 850;
}

.brand::before {
  display: none;
}

.brand-logo {
  width: 220px;
  max-width: 58vw;
  max-height: 64px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-weight: 850;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a,
.nav button,
.chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav a:hover,
.nav button:hover,
.chip:hover {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-color: rgba(22, 112, 95, 0.18);
  background: var(--brand-soft);
}

.nav .button,
.nav-logout {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 37, 31, 0.86), rgba(11, 37, 31, 0.54)),
    url("../images/home/hero-1.jpg") center / cover;
  color: #fff;
  padding: 64px 0 56px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 30px;
  align-items: center;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 220px;
}

.hero-title {
  max-width: 680px;
  display: grid;
  gap: 8px;
  line-height: 1.06;
}

.hero-title span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 48px;
  font-weight: 850;
}

.hero-title strong {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-bottom: 14px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-title strong::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(201, 121, 44, 0.34);
}

.hero p {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.72;
}

.search-panel {
  display: grid;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2,
.page-title h1 {
  font-size: 26px;
  line-height: 1.25;
}

.company-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: center;
}

.intro-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.intro-visual img {
  width: 92%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.intro-copy {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.intro-copy h2 {
  font-size: 30px;
  line-height: 1.26;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-showcase {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.86fr);
  gap: 12px;
}

.home-showcase img {
  width: 100%;
  height: 184px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-title {
  padding: 34px 0 20px;
}

.page-title p {
  margin-top: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.account-stack {
  display: grid;
  gap: 16px;
}

.mypage-layout {
  grid-template-columns: minmax(0, 1fr);
}

.account-card {
  display: grid;
  gap: 18px;
}

.account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-card h1 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
}

.account-meta {
  display: grid;
  gap: 10px;
}

.account-meta p {
  display: grid;
  gap: 4px;
}

.account-meta span {
  color: var(--muted);
  font-size: 13px;
}

.account-form {
  display: grid;
  gap: 13px;
}

.account-edit-panel[hidden] {
  display: none;
}

.account-edit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-form-head h2 {
  font-size: 20px;
  line-height: 1.25;
}

.order-history-card {
  width: 100%;
}

.quote-history-row {
  cursor: pointer;
  transition: background 0.16s ease;
}

.quote-history-row:hover,
.quote-history-row:focus-visible,
.quote-history-row.is-open {
  background: #f7faf9;
}

.quote-history-date-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-history-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(22, 112, 95, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.quote-history-detail-row > td {
  padding: 0;
  background: #fbfcfd;
}

.quote-history-detail {
  padding: 14px;
}

.quote-history-items {
  box-shadow: none;
}

.quote-history-items .line-item {
  min-width: 220px;
}

.quote-history-deleted-badge {
  grid-column: 2;
  margin-top: 2px;
}

.quote-history-empty {
  margin: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 168px auto;
  gap: 9px;
  min-height: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover {
  border-color: rgba(22, 112, 95, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card .thumb,
.detail-image {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.product-card .thumb {
  position: relative;
  padding: 10px;
}

.product-card .thumb img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

.product-card > h3 {
  min-height: 28px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card h3 a:hover {
  color: var(--brand-dark);
}

.variant-chip-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf9;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.variant-chip[hidden] {
  display: none;
}

.variant-chip-more {
  flex: 0 0 auto;
  min-width: 32px;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  background: #fff;
  font-weight: 850;
}

.muted {
  color: var(--muted);
}

.price {
  font-weight: 850;
  color: var(--brand-dark);
}

.compact-input {
  max-width: 128px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button:hover {
  border-color: #cbd4df;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #ffd0ca;
}

.badge.danger {
  display: inline-flex;
  width: fit-content;
  background: var(--danger-soft);
  color: var(--danger);
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7dee7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 112, 95, 0.72);
  box-shadow: 0 0 0 3px rgba(22, 112, 95, 0.12);
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
  font-size: 14px;
}

label.field {
  font-weight: 800;
  font-size: 14px;
}

.search-history-field {
  position: relative;
}

.recent-search-panel[hidden] {
  display: none;
}

.recent-search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.recent-search-panel button {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.recent-search-panel button:hover {
  background: #eef6f3;
  color: var(--brand-dark);
}

.quote-items-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.quote-request-flow {
  grid-template-columns: minmax(0, 1fr);
}

.quote-request-flow #quote-form {
  max-width: none;
}

.quote-items-panel h2 {
  font-size: 24px;
  line-height: 1.25;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 220px) minmax(132px, 150px) 104px;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toolbar .field {
  gap: 6px;
}

.toolbar .button {
  min-height: 42px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: stretch;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.detail-title-block {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 270px;
}

.detail-title-block h1 {
  font-size: 34px;
  line-height: 1.2;
}

.detail-main-image {
  width: 100%;
  min-height: 270px;
  height: 100%;
  max-height: none;
}

.detail-action-panel {
  grid-column: 1 / -1;
  max-width: none;
}

.detail-variant-summary {
  display: grid;
  gap: 8px;
  align-self: end;
  margin-top: 6px;
}

.detail-variant-summary p {
  margin: 0;
  line-height: 1.45;
}

.variant-media-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.variant-media-strip img {
  width: 72px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.variant-browser {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.variant-browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.variant-browser-head h2,
.detail-service-forms h2 {
  font-size: 22px;
  line-height: 1.25;
}

.variant-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.variant-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px);
  gap: 10px;
  align-items: end;
}

.variant-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.variant-select-table {
  min-width: 960px;
  border: 0;
}

.variant-select-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8fa;
  box-shadow: inset 0 -1px 0 var(--line);
}

.variant-select-table th,
.variant-select-table td {
  vertical-align: middle;
}

.variant-select-table th:first-child,
.variant-select-table td:first-child {
  width: 58px;
  text-align: center;
}

.variant-select-table th:nth-child(2),
.variant-select-table td:nth-child(2) {
  width: 240px;
}

.variant-select-table th:nth-child(3),
.variant-select-table td:nth-child(3) {
  width: 240px;
  max-width: 240px;
}

.variant-select-table th:nth-child(4),
.variant-select-table td:nth-child(4),
.variant-select-table th:nth-child(5),
.variant-select-table td:nth-child(5),
.variant-select-table th:nth-child(6),
.variant-select-table td:nth-child(6) {
  width: 112px;
  white-space: nowrap;
}

.variant-select-table th:nth-child(7),
.variant-select-table td:nth-child(7) {
  width: 150px;
}

.variant-select-table tbody tr {
  transition: background 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer;
}

.variant-select-table tbody tr:hover,
.variant-select-table tbody tr.is-selected {
  background: #f3fbf8;
}

.variant-select-table tbody tr.is-selected {
  box-shadow: inset 3px 0 0 var(--brand);
}

.row-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.variant-quantity {
  width: 92px;
  min-height: 38px;
  padding: 7px 8px;
}

.variant-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.variant-pagination .pagination-buttons {
  justify-content: center;
}

.variant-action-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}

.selected-variant-inline {
  display: grid;
  gap: 4px;
}

.selected-variant-inline span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.selected-variant-inline strong {
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.3;
}

.variant-action-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 6px;
}

.variant-action-controls .field {
  gap: 5px;
}

.variant-action-controls .button {
  min-height: 42px;
  white-space: nowrap;
}

.purchase-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 120px 148px 168px;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.purchase-row .notice {
  min-height: 42px;
  padding: 9px 11px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.38);
}

.modal-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-panel h2 {
  font-size: 22px;
  line-height: 1.25;
}

.consultation-modal-panel {
  width: min(100%, 520px);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.agreement-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow-sm);
}

.agreement-panel.compact {
  gap: 8px;
  padding: 10px;
  box-shadow: none;
}

.agreement-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.agreement-panel-head strong {
  font-size: 16px;
  line-height: 1.35;
}

.agreement-panel-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.agreement-list {
  display: grid;
  gap: 8px;
}

.agreement-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agreement-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px 8px 12px;
}

.agreement-check {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  background: #f7fbfa;
  color: var(--ink);
  font-weight: 850;
}

.agreement-check.optional {
  color: var(--muted);
}

.agreement-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.agreement-check span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.agreement-check small,
.terms-box summary small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
}

.agreement-check.optional small {
  background: #f2f4f7;
  color: var(--muted);
}

.agreement-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(22, 112, 95, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.agreement-toggle:hover {
  background: var(--brand-soft);
}

.agreement-detail {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.agreement-detail[hidden] {
  display: none;
}

.agreement-detail p {
  margin: 0;
}

.terms-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.terms-box.compact {
  font-size: 13px;
}

.terms-box summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 40px 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.terms-box summary::-webkit-details-marker {
  display: none;
}

.terms-box summary::after {
  content: "";
  position: absolute;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.terms-box[open] summary::after {
  transform: rotate(225deg);
}

.terms-content {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.terms-box p {
  margin: 0;
}

.terms-box.compact .terms-content {
  padding: 10px 12px;
}

.has-admin-alert {
  position: relative;
}

.has-admin-alert::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45);
  animation: admin-alert-pulse 1.2s ease-in-out infinite;
}

@keyframes admin-alert-pulse {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0);
  }
}

.floating-consultation {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
}

.floating-consultation-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 77, 64, 0.24);
}

.product-media-section h2 {
  margin-bottom: 14px;
}

.product-spec-images {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.product-spec-image-group {
  display: grid;
  gap: 12px;
}

.product-spec-image-group h3 {
  font-size: 20px;
  line-height: 1.3;
}

.product-spec-image-sheet {
  display: grid;
  gap: 14px;
}

.product-spec-image-sheet img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.media-sheet {
  display: grid;
  gap: 16px;
}

.media-sheet img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-filter-panel {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category-filter-title {
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
}

.category-pill-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-menu-item {
  position: static;
}

.category-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.category-pill:hover,
.category-pill.is-active {
  border-color: rgba(22, 112, 95, 0.26);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.category-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 100%;
  max-height: 68vh;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 18px;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.category-mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.category-menu-item:hover .category-mega-menu,
.category-menu-item.is-open .category-mega-menu,
.category-menu-item:focus-within .category-mega-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.category-mega-section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.category-mega-section:last-child {
  border-right: 0;
}

.category-mega-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: #e3f4ee;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 850;
}

.category-mega-products {
  display: grid;
  gap: 8px;
}

.category-mega-product {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.category-mega-product:hover {
  color: var(--brand-dark);
}

.category-mega-product img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.category-mega-product span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-filter-help {
  color: var(--soft);
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pagination-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pagination-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-button {
  min-width: 42px;
  padding-inline: 11px;
}

.page-button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  grid-template-rows: 132px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.category-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  background: #f4f6f8;
  color: #3d4a55;
  font-size: 13px;
  font-weight: 850;
}

.line-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 180px;
  color: inherit;
}

.line-item-thumb {
  width: 64px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
}

.line-item strong {
  min-width: 0;
  line-height: 1.35;
}

.line-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.line-item-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-item:hover strong {
  color: var(--brand-dark);
}

.line-item.is-disabled {
  cursor: default;
}

.line-item.is-disabled:hover strong {
  color: inherit;
}

.cart-table .price {
  white-space: nowrap;
}

.cart-table tbody td {
  vertical-align: middle;
}

.cart-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cart-summary strong {
  color: var(--brand-dark);
  font-size: 20px;
}

.quote-total-summary {
  margin-top: 12px;
}

.notice,
.empty,
.error {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--muted);
}

.notice {
  border-color: #cce6dd;
  background: #f3fbf8;
  color: var(--brand-dark);
}

.empty {
  background: #f7f8fa;
}

.empty-state {
  display: grid;
  gap: 10px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 17px;
}

.error {
  border-color: #ffd0ca;
  background: var(--danger-soft);
  color: var(--danger);
}

.error-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding-left: 18px;
  line-height: 1.45;
}

.auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 69px);
  padding: 40px 16px;
}

.auth-card {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.auth-card.wide {
  width: min(100%, 540px);
}

.auth-heading {
  display: grid;
  gap: 8px;
  text-align: center;
}

.auth-heading h1 {
  font-size: 28px;
  line-height: 1.22;
}

.auth-heading p {
  color: var(--muted);
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form .button {
  width: 100%;
}

.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.input-with-action .button {
  width: auto;
  min-height: 42px;
  white-space: nowrap;
}

.form-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-switch {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  width: 100%;
}

.auth-helper {
  padding: 11px 12px;
  border: 1px solid #ece3d6;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #6f451b;
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  background: #fff;
}

.business-footer {
  margin-top: 44px;
}

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

.footer-grid section {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.footer-grid p {
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.58;
}

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

.bank-logo {
  width: 120px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero .container,
  .detail-layout,
  .purchase-row,
  .pagination,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .category-grid,
  .company-intro,
  .home-showcase,
  .footer-grid,
  .toolbar,
  .variant-tools,
  .variant-action-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-title span {
    font-size: 38px;
  }

  .hero-title strong {
    font-size: 40px;
  }

  .pagination {
    align-items: center;
  }

  .category-menu-item {
    width: 100%;
  }

  .category-menu-item .category-pill {
    width: 100%;
  }

  .category-mega-menu {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
  }

  .category-mega-section {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pagination-buttons {
    justify-content: center;
  }

  .variant-pagination {
    align-items: center;
  }

  .variant-action-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .detail-title-block {
    min-height: 0;
  }

  .detail-main-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .variant-browser-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a,
  .nav button {
    min-height: 36px;
    padding: 7px 11px;
  }

  .hero {
    padding: 34px 0;
  }
}

@media (max-width: 560px) {
  .topbar,
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-title span {
    font-size: 31px;
  }

  .hero-title strong {
    font-size: 31px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 28px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card {
    padding: 22px;
  }

  .input-with-action {
    grid-template-columns: 1fr;
  }

  .input-with-action .button {
    width: 100%;
  }

  .account-card-head,
  .cart-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-edit-panel {
    grid-template-columns: 1fr;
  }
}
