:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f4;
  color: #202124;
  --bg: #f6faf8;
  --surface: #ffffff;
  --ink: #15342d;
  --muted: #5d716b;
  --line: #dcebe5;
  --brand: #1f9d74;
  --brand-dark: #127556;
  --brand-soft: #e9f7f1;
  --warning-soft: #fff7e8;
  --danger: #9e3045;
  --danger-soft: #fbe8ed;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(22, 54, 46, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: #202124;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid #deded8;
  background: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid #deded8;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-groups a,
.footer-links a,
.button-link,
.back-link {
  text-decoration: none;
}

.nav-groups,
.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-groups a,
.nav-groups span,
.state-grid span {
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  padding: 0.375rem 0.625rem;
  background: #ffffff;
  color: #3f4652;
  font-size: 0.875rem;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 2rem;
  align-items: center;
  min-height: 420px;
  padding: 2rem 0 3rem;
}

.public-hero-copy {
  display: grid;
  gap: 1rem;
}

.public-hero-copy h1 {
  margin: 0;
  max-width: 13ch;
  font-size: 3rem;
  line-height: 1.08;
}

.public-hero-copy p {
  max-width: 42rem;
  margin: 0;
  color: #3f4652;
}

.eyebrow,
.placeholder-badge {
  margin: 0;
  color: #506f5d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero-media {
  overflow: hidden;
  border: 1px solid #d7d9d2;
  border-radius: 8px;
  background: #e8efe8;
}

.public-hero-media img,
.catalog-feature-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-band,
.public-page,
.auth-panel {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
}

.public-band.compact {
  padding-top: 1rem;
}

.section-heading h2,
.public-page h1,
.auth-panel h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.public-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.public-card,
.support-panel,
.auth-panel {
  border: 1px solid #deded8;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.public-card {
  display: grid;
  gap: 0.5rem;
}

.public-card span {
  color: #506f5d;
  font-weight: 700;
}

.public-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.public-card p,
.public-page p,
.auth-panel p,
.support-panel p {
  margin: 0;
  color: #3f4652;
}

.state-panel {
  display: grid;
  gap: 1rem;
}

.state-panel h1,
.catalog-heading h1,
.catalog-detail h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.catalog-shell,
.catalog-detail,
.order-shell {
  display: grid;
  gap: 1.5rem;
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 286px);
  gap: 1.25rem;
  align-items: center;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-heading.public-split {
  display: grid;
  align-items: center;
}

.catalog-query,
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.catalog-query label {
  display: grid;
  gap: 0.25rem;
}

.form-grid {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}

.catalog-query input,
.catalog-query select,
.form-grid input,
.auth-form input {
  border: 1px solid #b8bec8;
  border-radius: 4px;
  color: #202124;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
}

.catalog-pagination span {
  color: #3f4652;
  min-width: 2rem;
  text-align: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.catalog-card,
.cart-panel,
.catalog-detail,
.order-card {
  border: 1px solid #deded8;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.catalog-card {
  display: grid;
  gap: 1rem;
}

.order-card-list,
.order-detail-card,
.progress-list,
.summary-list {
  display: grid;
  gap: 1rem;
}

.order-card {
  display: grid;
  gap: 1rem;
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.summary-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.summary-list div {
  display: grid;
  gap: 0.25rem;
}

.summary-list dt,
.progress-list span {
  color: #586174;
  font-size: 0.875rem;
}

.summary-list dd {
  margin: 0;
  font-weight: 600;
}

.progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.progress-list li {
  align-items: center;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
}

.catalog-card h2,
.cart-panel h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.catalog-note,
.auth-note {
  color: #586174;
  font-size: 0.875rem;
}

.auth-error {
  margin: 0;
  color: #9e3045;
  font-weight: 760;
}

.auth-form {
  max-width: 560px;
  margin: 0 auto;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form .inline-check input,
.inline-check input {
  width: auto;
  min-height: auto;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

.catalog-code {
  margin: 0 0 0.375rem;
  color: #586174;
  font-size: 0.875rem;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.price {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 850;
}

.button-link,
button {
  border: 1px solid #335c81;
  border-radius: 4px;
  background: #ffffff;
  color: #1d3e5f;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 0.75rem;
}

.primary-action {
  background: #1d3e5f;
  color: #ffffff;
}

.empty-state {
  border: 1px dashed #b8bec8;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.staff-shell {
  gap: 1.25rem;
}

.staff-queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 18px;
}

/* Staff operations queues: ops.html density (server-driven filters/table). */
.section-head.compact {
  margin-bottom: 18px;
}

.notice {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid #f0dfbc;
  border-radius: 14px;
  background: var(--warning-soft);
  color: #69522a;
  font-size: 0.86rem;
}

.ops-filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbf9;
  min-width: 0;
}

.ops-filter-section {
  display: grid;
  gap: 8px;
}

.ops-filter-section h3 {
  margin: 0;
  font-size: 1rem;
}

.ops-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
  align-items: end;
}

.ops-filter-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.ops-filter-grid select,
.ops-filter-grid input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.ops-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.period-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.period-button.active,
.period-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.period-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.period-custom input[type="date"] {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.ops-table-wrap {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
}

.ops-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ops-table caption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.ops-table th,
.ops-table td {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.ops-table thead th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Numbered pager: <이전> 1 2 [3] 4 <다음>, shown above and below the table. */
.ops-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0.75rem 0;
}

.ops-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.ops-pagination a.page-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.ops-pagination .page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.ops-pagination .page-btn.disabled {
  color: var(--muted);
  background: var(--brand-soft);
  cursor: default;
}

.ops-table tbody th {
  font-weight: 800;
  white-space: nowrap;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.ops-status.warn {
  background: var(--warning-soft);
  color: #8a5b10;
}

.ops-status.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.ops-status.done {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.ops-status.muted {
  background: #eef2f0;
  color: var(--muted);
}

.ops-cell-list > summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 700;
}

.ops-cell-list > ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.ops-cell-list > ul > li {
  white-space: nowrap;
}

/* Category column-header filter dropdown (주문 경로 / 결제 상태 / 진행 상태). */
.ops-col-filter {
  display: inline-block;
  position: relative;
}

.ops-col-filter > summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  color: var(--brand-dark);
}

.ops-col-filter > summary::-webkit-details-marker {
  display: none;
}

.ops-col-filter > summary::after {
  content: " \25BE";
  font-size: 0.72em;
}

.ops-col-filter[open] > summary::after {
  content: " \25B4";
}

.ops-col-filter.active > summary {
  color: var(--brand);
  text-decoration: underline;
}

.ops-col-filter > ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 120px;
  max-height: 240px;
  overflow: auto;
  font-weight: 500;
  /* Overlay the dropdown so opening it does not stretch the header cell taller. */
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ops-col-filter > ul > li {
  margin: 0;
}

.ops-col-filter > ul a,
.ops-col-filter > ul .selected {
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--brand-dark);
}

.ops-col-filter > ul a:hover {
  background: var(--brand-soft);
}

.ops-col-filter > ul .selected {
  background: var(--brand);
  color: #fff;
}

.date-basis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Ascending/descending sort arrows in sortable column headers. */
.sort-arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.7;
  margin-left: 4px;
  vertical-align: middle;
}

.sort-arrow {
  font-size: 0.6rem;
  color: var(--muted);
  text-decoration: none;
}

.sort-arrow.active {
  color: var(--brand);
}

.ops-table td.empty-row {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}

/* Operations console: ops.html side-tab console shell (server-driven tabs). */
body[data-page="ops"] .page-shell {
  width: min(100%, 1808px);
}

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

.container.ops-wide-layout {
  width: min(1760px, calc(100% - 32px));
  grid-template-columns: 260px minmax(0, 1fr);
}

.mypage-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mypage-tabs a,
.mypage-tabs button,
.mypage-tab-disabled {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mypage-tabs h1 {
  margin: 4px 14px 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.mypage-tab-disabled {
  justify-content: space-between;
  cursor: default;
  opacity: 0.62;
}

.mypage-tab-disabled small {
  font-size: 0.72rem;
  font-weight: 700;
}

.mypage-tabs a.active,
.mypage-tabs a:hover,
.mypage-tabs button.active,
.mypage-tabs button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.mypage-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.mypage-section {
  padding-top: 28px;
}

.mypage-panel {
  min-width: 0;
}

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

.postcode-embed {
  display: none;
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.postcode-embed.open {
  display: block;
}

.postcode-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 960px) {
  .container.mypage-layout,
  .container.ops-wide-layout {
    grid-template-columns: 1fr;
  }

  .mypage-tabs {
    position: relative;
    top: auto;
  }
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid #d0d4dc;
  border-radius: 8px;
  background: #ffffff;
}

.staff-queue-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.staff-queue-table caption {
  padding: 0.75rem 1rem;
  color: #3f4652;
  font-weight: 700;
  text-align: left;
}

.staff-queue-table th,
.staff-queue-table td {
  border-top: 1px solid #e6e8ec;
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.staff-queue-table thead th {
  background: #f2f5f7;
  color: #3f4652;
  font-size: 0.8rem;
}

.staff-queue-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.staff-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Small pill buttons for the per-row 주문 상세 / 검사 상세 drill-down links. */
.staff-detail-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.staff-detail-link:hover {
  background: var(--brand);
  color: #fff;
}

.staff-detail-section {
  display: grid;
  gap: 1rem;
}

.staff-detail-section h2 {
  margin: 0;
}

.staff-action-grid {
  display: grid;
  gap: 0.75rem;
}

.staff-action-form {
  align-items: end;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
}

.staff-action-form label {
  display: grid;
  gap: 0.25rem;
}

.staff-action-form input,
.staff-action-form select {
  border: 1px solid #b8bec8;
  border-radius: 4px;
  color: #202124;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
}

.cart-panel ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

@media (max-width: 640px) {
  .footer-inner,
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-hero,
  .public-split {
    grid-template-columns: 1fr;
  }

  .public-hero-copy h1 {
    max-width: 100%;
    font-size: 2.25rem;
  }
}

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

body[data-page="home"] {
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

body[data-page="home"] .page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-symbol {
  display: block;
  width: auto;
  height: 38px;
  max-width: 190px;
  object-fit: contain;
}

.nav-links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 650;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-links span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
}

.button,
.button-link.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

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

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--brand-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 7px 12px;
  font-weight: 760;
  font-size: 0.9rem;
}

.hero {
  padding: 76px 0 48px;
}

.hero-banner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 92px 0;
  background: #edf2ef;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, 0.96) 0%, rgba(247, 250, 248, 0.88) 37%, rgba(247, 250, 248, 0.28) 72%),
    linear-gradient(180deg, rgba(247, 250, 248, 0.06), rgba(247, 250, 248, 0.18));
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0), var(--bg));
  pointer-events: none;
}

.hero-banner-media {
  position: absolute;
  inset: 0;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.8s ease;
}

.hero-banner-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-banner-content {
  position: relative;
  z-index: 3;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.hero-banner h1 {
  max-width: 900px;
  margin: 18px 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.25vw, 4.6rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-banner p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-banner-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-banner-dot {
  width: 42px;
  height: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 67, 55, 0.28);
  cursor: pointer;
}

.hero-banner-dot.is-active {
  background: var(--brand-dark);
}

.section {
  padding: 58px 0;
}

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

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section .lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

.service-flow {
  padding-top: 42px;
}

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

.step-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

.step-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  background: var(--brand-soft);
}

.step-card span {
  display: block;
  margin: 16px 16px 0;
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.step-card h3 {
  margin: 6px 16px 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.step-card p {
  margin: 0 16px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.icon-button {
  width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 42%);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}

.product-rail .product-card {
  scroll-snap-align: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

.product-card img {
  aspect-ratio: 1.25 / 1;
  object-fit: contain;
  background: #ffffff;
  padding: 12px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.rating {
  color: #9a650f;
  font-weight: 850;
  white-space: nowrap;
}

.footer {
  margin-top: 70px;
  padding: 42px 0;
  background: #102d26;
  color: #d9eee7;
}

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

.footer a {
  display: block;
  color: #bdd9cf;
  margin: 8px 0;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin-top: 0;
}

.company-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: #9bbdb2;
  font-size: 0.92rem;
}

.company-list li {
  margin: 4px 0;
}

/* Public content pages (about / magazine / contact), ported from the draft source. */
.page-title {
  padding: 56px 0 24px;
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-title p {
  max-width: 760px;
  color: var(--muted);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.content-page {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

.content-page h2 {
  margin-top: 32px;
}

.content-page h2:first-child {
  margin-top: 0;
}

/* Legal documents (terms / privacy), ported from the draft source. */
.legal-doc h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.legal-doc h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 22px;
}

.legal-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #f0dfbc;
  border-radius: 18px;
  background: var(--warning-soft);
  color: #69522a;
}

/* Products page (draft products.html): filters + product grid. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 750;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

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

/* Product detail page (draft product-detail.html): purchase panel + detail sections. */
.product-top-section {
  padding: 38px 0 46px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.product-gallery,
.product-purchase-panel {
  min-width: 0;
}

.product-main-image-button {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.product-main-image-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
}

.product-purchase-panel h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.product-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
}

.product-rating-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #9a650f;
  font-weight: 900;
}

.product-rating-line a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-price-box {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.regular-price-row,
.sale-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.regular-price-row {
  color: #9aa7a2;
  font-size: 1.08rem;
  font-weight: 800;
}

.regular-price-row del {
  color: #9aa7a2;
  text-decoration-thickness: 2px;
}

.sale-price-row {
  margin-top: 4px;
  color: #d70f2f;
}

.sale-price-row span {
  font-size: 1.42rem;
  font-weight: 950;
}

.sale-price-row strong {
  font-size: 1.95rem;
  line-height: 1;
}

.commerce-info-list {
  display: grid;
  gap: 0;
  margin: 14px 0 18px;
}

.commerce-info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.commerce-info-list dt {
  color: var(--muted);
  font-weight: 850;
}

.commerce-info-list dd {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
}

.commerce-info-list dd strong {
  color: var(--ink);
  font-weight: 900;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 18px;
}

.quantity-control button,
.quantity-control input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-weight: 850;
}

.quantity-control button {
  cursor: pointer;
}

.quantity-control button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.product-action-button,
.product-action-button:hover {
  min-height: 46px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font-weight: 850;
  white-space: nowrap;
}

.product-action-button:hover {
  background: var(--brand-soft);
}

.review-highlight-section {
  padding: 38px 0 44px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.review-highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.featured-review-grid,
.detail-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.featured-review-card,
.detail-feature-grid div,
.review-item,
.qna-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.detail-section .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-content,
.product-detail-copy {
  min-width: 0;
}

.detail-tabs {
  position: sticky;
  top: 86px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.detail-tabs a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 850;
}

.detail-tabs a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.review-list,
.qna-list {
  display: grid;
  gap: 12px;
}

.review-item p,
.qna-list p,
.product-detail-copy p {
  color: var(--muted);
}

.qna-list summary {
  cursor: pointer;
  font-weight: 850;
}

.cart-page-section {
  padding-top: 32px;
}

.cart-page-layout {
  display: grid;
  gap: 18px;
}

.cart-page-panel {
  max-width: 760px;
}

/* Customer portal (draft mypage.html + order-detail.html): scoped sidebar and dense cards. */
.customer-portal-section {
  padding-top: 28px;
}

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

.customer-portal-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.customer-portal-tabs a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.customer-portal-tabs a:hover,
.customer-portal-tabs a:focus-visible,
.customer-portal-tabs a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.customer-portal-main,
.customer-portal-main .order-shell,
.order-detail-stack {
  min-width: 0;
}

.customer-portal-layout > .customer-portal-main:first-child {
  grid-column: 1 / -1;
}

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

.customer-portal-page-actions {
  display: flex;
  justify-content: flex-end;
}

.customer-portal-main .catalog-heading {
  align-items: flex-start;
}

.customer-portal-main .catalog-heading h1 {
  margin-top: 6px;
}

.customer-portal-main .catalog-query {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.05);
}

.customer-portal-main .catalog-query label {
  gap: 7px;
}

.customer-portal-main .catalog-query input,
.customer-portal-main .catalog-query select {
  border-color: var(--line);
  border-radius: 14px;
  min-height: 46px;
}

.customer-portal-main .catalog-query button {
  min-height: 46px;
}

.customer-portal-main .order-card-list {
  gap: 14px;
}

.customer-portal-main .order-card {
  border-color: var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

.customer-portal-main .order-card-head {
  align-items: center;
  gap: 16px;
}

.customer-portal-main .order-card h2 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.customer-portal-main .summary-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.customer-portal-main .summary-list div,
.customer-flow-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.customer-portal-main .summary-list dt,
.customer-flow-summary dt {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.customer-portal-main .summary-list dd,
.customer-flow-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.customer-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 850;
}

.customer-portal-main .progress-list li {
  align-items: center;
  border-color: var(--line);
  border-radius: 12px;
  background: #f8fbfa;
}

.customer-portal-main .catalog-pagination {
  justify-content: flex-end;
}

.support-mailto {
  align-content: start;
}

.customer-flow-panel {
  max-width: 760px;
}

.customer-flow-panel .action-row {
  margin: 18px 0;
}

.customer-flow-list {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

/* Contact page (draft contact.html): info + inquiry form frame. */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(22, 54, 46, 0.06);
}

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

.form label {
  font-weight: 760;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 900px) {
  .cards,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .product-purchase-layout,
  .featured-review-grid,
  .detail-feature-grid {
    grid-template-columns: 1fr;
  }

  .customer-portal-layout {
    grid-template-columns: 1fr;
  }

  .customer-portal-tabs {
    position: relative;
    top: auto;
  }

  .customer-portal-main .catalog-query {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .step-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    order: 4;
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }

  .step-strip,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-banner {
    min-height: 520px;
    padding: 64px 0 48px;
  }

  .hero-banner-media::after {
    background: rgba(246, 250, 248, 0.82);
  }

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

  .step-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .customer-portal-main .catalog-heading,
  .customer-portal-main .order-card-head,
  .customer-portal-main .catalog-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-portal-main .catalog-query,
  .customer-portal-main .summary-list div,
  .customer-flow-summary {
    grid-template-columns: 1fr;
  }

  .purchase-actions,
  .detail-tabs {
    grid-template-columns: 1fr;
  }

  .customer-portal-main .summary-list dt,
  .customer-flow-summary dt {
    white-space: normal;
  }
}

/* Product detail: required purchase options, secondary actions, detail images. */
.option-select-field {
  display: grid;
  gap: 8px;
  margin: 8px 0 18px;
}

.option-select-field label {
  display: flex;
  gap: 4px;
  font-weight: 900;
}

.option-select-field label span,
.option-message {
  color: #9e3045;
}

.option-message {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.option-select-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.option-select-field.invalid select {
  border-color: #9e3045;
  background: #fbeef1;
}

.purchase-actions form,
.secondary-product-actions form {
  display: grid;
  margin: 0;
}

.secondary-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.detail-scroll-images {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.detail-scroll-images img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.customer-wishlist {
  margin-top: 22px;
}

.wishlist-card-list {
  display: grid;
  gap: 14px;
}

.wishlist-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.wishlist-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.wishlist-card-actions form {
  margin: 0;
}

@media (max-width: 720px) {
  .secondary-product-actions {
    grid-template-columns: 1fr;
  }
}

/* Cart and checkout: line items with an order-summary sidebar. */
.block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.cart-lines {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.cart-line-thumb img,
.wishlist-card-thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.cart-line-body h2 {
  margin: 4px 0;
  font-size: 1.1rem;
}

.cart-line-body h2 a,
.wishlist-card-body h2 a {
  color: var(--ink);
}

.cart-line-unit {
  margin: 0 0 10px;
  color: var(--muted);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cart-qty-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-qty-form input {
  width: 76px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
}

.cart-line-total {
  font-size: 1.15rem;
  white-space: nowrap;
}

.cart-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 52, 45, 0.06);
}

.cart-summary h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cart-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-list dt {
  color: var(--muted);
}

.cart-summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.cart-summary-total dd {
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.cart-summary-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-empty {
  display: grid;
  gap: 16px;
  width: 100%;
}

.cart-empty .empty-state {
  display: grid;
  width: 100%;
  min-height: 160px;
  margin: 0;
  place-items: center;
  text-align: center;
}

.checkout-order {
  display: grid;
  gap: 14px;
}

.checkout-line {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.checkout-line .cart-line-thumb img {
  width: 72px;
  height: 72px;
}

.checkout-back-link {
  display: inline-block;
  margin-top: 22px;
}

.wishlist-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.wishlist-card-thumb img {
  width: 108px;
  height: 108px;
}

@media (max-width: 900px) {
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .cart-line,
  .checkout-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-total {
    grid-column: 1 / -1;
    text-align: right;
  }

  .wishlist-card {
    grid-template-columns: 1fr;
  }
}

/* Checkout order page: delivery info and payment method selection. */
.checkout-delivery {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.field-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.button:disabled,
.button[disabled],
.quantity-control button:disabled,
.quantity-control input:disabled,
.option-select-field select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.product-purchase-disabled-note {
  margin: 12px 0;
}

.payment-method-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-method-group legend {
  padding: 0;
  margin-bottom: 4px;
  font-weight: 800;
}

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

.payment-method-option input {
  width: auto;
  min-height: auto;
}

/* Modal overlay (add-to-cart confirmation popup). */
[x-cloak] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 52, 45, 0.45);
}

.modal-dialog {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 24px 60px rgba(21, 52, 45, 0.25);
  text-align: center;
}

.cart-added-text {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-added-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* My Page profile + edit form. */
.mypage-form {
  max-width: 620px;
  margin-top: 6px;
}

.mypage-form h2 {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

.mypage-flash {
  max-width: 620px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 760;
}

/* Checkout: optional single-sample sex/age capture. */
.checkout-sample-info {
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.checkout-sample-info legend {
  padding: 0 6px;
  font-weight: 800;
}

.checkout-sample-fields {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.checkout-sample-fields label {
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checkout-sample-fields select,
.checkout-sample-fields input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

/* My Page: personal info + delivery address management. */
.mypage-container {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.identity-required-panel {
  max-width: 720px;
}

.mypage-card {
  display: grid;
  gap: 14px;
}

.section-head.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.section-head.compact h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mypage-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mypage-info-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.mypage-info-list dt {
  color: var(--muted);
}

.mypage-form,
.nested-form {
  max-width: none;
}

.mypage-form-actions {
  display: flex;
  gap: 10px;
}

.account-methods-intro {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
}

.account-method-list {
  border-top: 1px solid var(--line);
}

.account-method-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.account-method-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-method-name > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-method-name small,
.account-method-actions > p {
  color: var(--muted);
}

.account-method-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.account-method-actions form,
.account-method-actions > p {
  margin: 0;
}

.account-method-actions-stack {
  display: grid;
  justify-items: end;
}

.account-method-actions-stack form {
  width: 100%;
}

.account-method-actions-stack .button {
  width: 100%;
}

.account-method-form {
  margin: 0;
}

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

.account-local-form label,
.account-method-password {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-local-form input,
.account-method-password input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.account-method-password {
  min-width: 170px;
}

@media (max-width: 640px) {
  .account-method-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .account-method-actions,
  .account-method-actions-stack {
    justify-content: stretch;
    justify-items: stretch;
  }

  .account-method-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-method-actions form,
  .account-method-actions .button {
    width: 100%;
  }
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.address-body strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-body p {
  margin: 6px 0 0;
  color: var(--muted);
}

.address-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.address-actions form {
  margin: 0;
}

.delivery-default-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-delivery-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.checkout-delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.checkout-delivery-body {
  display: grid;
  gap: 3px;
}

.checkout-delivery-body span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.checkout-group:first-of-type {
  padding-top: 0;
  margin-top: 12px;
  border-top: 0;
}

.checkout-line-delivery {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkout-line-delivery select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
