@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;800&family=Lora:wght@400;600&display=swap");

:root {
  --orange: #f15a24;
  --orange-dark: #c9471c;
  --ink: #242424;
  --muted: #697179;
  --line: #e7e0da;
  --soft: #f8f6f3;
  --cream: #fff7ed;
  --teal: #1d3837;
  --yellow: #fcf8d8;
  --shadow: 0 22px 70px rgba(36, 36, 36, 0.11);
}

* {
  box-sizing: border-box;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  width: min(270px, 52vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

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

@media (max-width: 760px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    width: 100%;
    gap: 10px 16px;
  }

  .top-nav a {
    font-size: 15px;
    line-height: 1.05;
  }
}

.support-band {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 64px);
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-band span {
  position: relative;
  white-space: nowrap;
}

.support-band span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(clamp(16px, 4vw, 64px) / -2);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) 0 42px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs strong {
  color: var(--orange);
}

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

.eyebrow,
.section-head span,
.summary-strip span,
.total-bar span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 8px 0 8px;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.intro-card {
  min-width: 220px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.intro-card strong,
.intro-card span,
.intro-card small {
  display: block;
}

.intro-card strong {
  margin-top: 4px;
  font-size: 30px;
}

.intro-card small {
  color: var(--muted);
  font-weight: 800;
}

.step-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.step-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.step-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.media-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.product-preview {
  display: grid;
  min-height: 420px;
  place-items: center;
  background: #f8f6f3;
}

.product-preview img {
  display: block;
  width: min(72%, 420px);
  max-height: 520px;
  object-fit: contain;
}

.summary-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.summary-strip div {
  padding: 16px 18px;
  background: #fff;
}

.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.3;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.trust-list span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.trust-list span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
}

.controls-panel {
  padding: clamp(20px, 3vw, 34px);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

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

.product-card {
  position: relative;
  display: grid;
  min-height: 156px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.product-card strong {
  font-size: 15px;
}

.product-card:has(input:checked) {
  border-color: var(--orange);
  background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(241, 90, 36, 0.18);
}

.control-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.control-block h3,
.quantity-head h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.pill-grid input {
  position: absolute;
  opacity: 0;
}

.pill-grid label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.size-list {
  display: grid;
  gap: 10px;
}

.size-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.size-card input {
  position: absolute;
  opacity: 0;
}

.size-card:has(input:checked) {
  border-color: var(--orange);
  background: var(--cream);
}

.size-card strong,
.size-card span {
  display: block;
}

.size-card span {
  color: var(--muted);
  font-size: 14px;
}

.size-card em {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 900;
}

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

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 38px 110px 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-stepper button,
.quantity-stepper input {
  min-height: 38px;
  border: 0;
  background: #fff;
  text-align: center;
  font-weight: 850;
}

.quantity-stepper button {
  background: var(--soft);
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.price-row:first-child {
  border-top: 0;
}

.price-header {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-option {
  background: #fff;
  text-align: left;
}

.price-option.active {
  background: var(--yellow);
}

.notes-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink);
  font-weight: 850;
}

.notes-field textarea,
.contact-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notes-field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 900;
}

.primary-action {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
}

.primary-action:hover {
  background: var(--orange-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.action-row .primary-action {
  margin-top: 0;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed #d7cbc2;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.drop-zone.dragging {
  border-color: var(--orange);
  background: var(--cream);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone strong {
  font-size: 22px;
}

.drop-zone span {
  color: var(--muted);
}

.drop-zone button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.file-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.overview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.overview-card dl {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  margin: 0;
}

.overview-card dt,
.overview-card dd {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.overview-card dt:nth-of-type(1),
.overview-card dd:nth-of-type(1) {
  border-top: 0;
}

.overview-card dt {
  color: var(--muted);
  font-weight: 850;
}

.overview-card dd {
  font-weight: 750;
}

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

.contact-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.contact-grid input {
  min-height: 44px;
  padding: 0 12px;
}

.saved-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--orange-dark);
  font-weight: 850;
}

.total-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 16px clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 34px rgba(36, 36, 36, 0.08);
}

.total-bar strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.total-bar small {
  display: block;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .intro,
  .site-header,
  .quantity-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .media-panel {
    position: static;
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1240px);
  }

  .step-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .product-choices,
  .trust-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 0.8fr 1fr 0.8fr;
    font-size: 14px;
  }

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

  .overview-card dd {
    border-top: 0;
  }

  .action-row,
  .total-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Unified compact public header, aligned with the WoodMart shop proportions. */
.site-header {
  position: relative !important;
  top: auto !important;
  z-index: 30;
  display: grid !important;
  grid-template-columns: minmax(360px, 31vw) minmax(0, 1fr) !important;
  height: 104px !important;
  min-height: 104px !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 clamp(22px, 4vw, 64px) !important;
  border-bottom: 3px solid var(--orange) !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  width: min(280px, 28vw) !important;
  min-width: 220px !important;
  max-width: 280px !important;
  transform: translateY(-1px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-nav {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(90px, 7vw, 105px) !important;
  position: absolute !important;
  top: 0 !important;
  left: calc(50vw - clamp(41px, 3.2vw, 50px) - clamp(22px, 4vw, 64px)) !important;
  width: auto !important;
  overflow: visible !important;
}

.top-nav-menu {
  position: relative;
  display: flex;
  height: 104px;
  align-items: center;
}

.top-nav > a,
.top-nav-trigger {
  position: relative;
  display: inline-flex;
  height: 104px;
  align-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: "Lato", Arial, Helvetica, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.1 !important;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transform: none;
  white-space: nowrap;
}

.top-nav-trigger {
  padding: 0;
  color: var(--orange);
  cursor: default;
}

.top-nav > a:hover,
.top-nav-trigger:hover,
.top-nav-menu:hover .top-nav-trigger,
.top-nav-menu:focus-within .top-nav-trigger {
  color: var(--orange);
}

.top-nav-trigger::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  vertical-align: middle;
}

.top-nav-dropdown {
  position: absolute;
  top: 104px;
  left: 50%;
  z-index: 80;
  width: 250px;
  padding: 12px 0;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  visibility: hidden;
}

.top-nav-menu:hover .top-nav-dropdown,
.top-nav-menu:focus-within .top-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.top-nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #777;
  font-family: "Lato", Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.4 !important;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transform: none;
  white-space: nowrap;
}

.top-nav-dropdown a:hover,
.top-nav-dropdown a:focus {
  color: var(--orange);
  background: #fff7f1;
}

.support-band {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 18px !important;
    padding: 20px 16px !important;
  }

  .brand {
    width: min(280px, 100%) !important;
    min-width: 0 !important;
  }

  .top-nav {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .top-nav-menu {
    height: auto;
  }

  .top-nav > a,
  .top-nav-trigger {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .top-nav-dropdown {
    top: 44px;
    left: 0;
    transform: none;
  }
}

@media (max-width: 420px) {
  .top-nav {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px 14px !important;
  }
}
