:root {
  --ink: #1d2421;
  --muted: #647069;
  --paper: #f6f7f4;
  --panel: #ffffff;
  --soft: #eef0ed;
  --soft-2: #dfe5df;
  --line: #d7dfd8;
  --green: #2f765e;
  --green-deep: #1f5f49;
  --orange: #d98742;
  --amber: #f4c95d;
  --blue: #426f84;
  --coral: #e98163;
  --brown: #765946;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(27, 37, 31, .08);
  font-family: Inter, "SF Pro Text", "Segoe UI", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.text-link {
  color: var(--green-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 320px) auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(246, 247, 244, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 3px solid var(--orange);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff7ec;
  color: var(--ink);
  font-weight: 950;
  font-size: 21px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  right: 5px;
  top: 5px;
  background: var(--orange);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong,
.brand-text em {
  font-style: normal;
  font-weight: 950;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a,
.main-nav button,
.text-button {
  border: 0;
  background: transparent;
  color: #46534d;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav button:hover,
.text-button:hover {
  background: #e9eee9;
}

.header-search input,
.hero-search input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd7cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 118, 94, .14);
}

.header-actions {
  justify-content: flex-end;
  min-width: max-content;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  color: #59665f;
}

.lang-switch button.active {
  color: #fff;
  background: var(--green);
}

.account-button,
.cart-button,
.primary-action,
.secondary-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid #cfd8d1;
  background: #fff;
  color: var(--ink);
}

.primary-action {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.primary-action:hover {
  background: var(--green-deep);
}

.secondary-action:hover,
.account-button:hover,
.cart-button:hover {
  border-color: #b8c6bb;
  background: #fbfcfa;
}

.full {
  width: 100%;
}

.account-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf2ed;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff7ec;
  color: #9a541a;
  border: 1px solid #efc089;
}

.account-menu {
  position: fixed;
  left: 24px;
  top: 68px;
  width: 210px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 7px;
  display: none;
  z-index: 40;
}

.account-menu.open {
  display: grid;
}

.account-menu button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  text-align: left;
  padding: 9px 8px;
  color: #3f4d46;
  font-size: 14px;
  font-weight: 800;
}

.account-menu button:hover {
  background: #eef2ee;
}

.account-menu .danger {
  color: #b44731;
}

.login-only,
.guest-only,
.admin-only {
  display: none !important;
}

body.is-logged-in .login-only,
body.is-admin .admin-only {
  display: block !important;
}

body:not(.is-logged-in) .guest-only {
  display: block !important;
}

body.account-route #homePage {
  display: none;
}

body.account-route #accountPage {
  display: block;
  min-height: calc(100vh - 150px);
}

body.info-route #homePage,
body.info-route #accountPage {
  display: none;
}

body.info-route #infoPage {
  display: block;
  min-height: calc(100vh - 220px);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 14px;
}

.hero-copy {
  min-height: 390px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--soft);
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #cbd6ce;
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 6px 9px;
  color: #4f5d56;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-copy > * {
  min-width: 0;
  max-width: 100%;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 600px;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  background: #e4e9e5;
  border-radius: var(--radius);
  padding: 18px;
}

.product-visual {
  position: relative;
  min-height: 180px;
  border-radius: 8px;
  border: 1px solid #d4ddd6;
  overflow: hidden;
  background:
    linear-gradient(135deg, #eef0ed 0 49%, #dfe5df 50% 100%);
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.product-visual.large {
  min-height: 420px;
}

.visual-chair::before {
  width: 52%;
  height: 28%;
  left: 24%;
  bottom: 29%;
  background: #dea863;
}

.visual-chair::after {
  width: 25%;
  height: 38%;
  left: 37%;
  bottom: 44%;
  background: #91a093;
  box-shadow: -31px 68px 0 -19px var(--brown), 45px 68px 0 -19px var(--brown);
}

.visual-books::before {
  width: 64%;
  height: 12%;
  left: 18%;
  bottom: 30%;
  background: var(--blue);
  box-shadow: 0 -22px 0 var(--coral), 0 -44px 0 var(--amber), 0 -66px 0 #7fa488;
}

.visual-books::after {
  width: 75%;
  height: 7px;
  left: 12%;
  bottom: 24%;
  background: #8b806c;
}

.visual-table::before {
  width: 62%;
  height: 18%;
  left: 19%;
  top: 44%;
  background: #ba7f51;
}

.visual-table::after {
  width: 8px;
  height: 64px;
  left: 30%;
  top: 58%;
  background: var(--brown);
  box-shadow: 86px 0 0 var(--brown);
}

.visual-lamp::before {
  width: 48%;
  height: 40%;
  left: 26%;
  top: 23%;
  background: #f4d96f;
  border-radius: 50% 50% 8px 8px;
}

.visual-lamp::after {
  width: 6px;
  height: 78px;
  left: calc(50% - 3px);
  top: 50%;
  background: #617068;
  box-shadow: -26px 79px 0 17px #bcc6bd;
}

.visual-bike::before {
  width: 54px;
  height: 54px;
  left: 17%;
  bottom: 24%;
  border: 7px solid #667b72;
  border-radius: 50%;
  box-shadow: 128px 0 0 -7px #eef0ed, 128px 0 0 0 #667b72;
}

.visual-bike::after {
  width: 138px;
  height: 58px;
  left: 28%;
  bottom: 42%;
  border-left: 7px solid var(--coral);
  border-bottom: 7px solid var(--coral);
  transform: skew(-25deg);
}

.visual-phone::before {
  width: 38%;
  height: 72%;
  left: 31%;
  top: 14%;
  border-radius: 17px;
  background: #293532;
  box-shadow: inset 0 0 0 7px #f4f7f3;
}

.visual-phone::after {
  width: 62%;
  height: 8px;
  left: 19%;
  bottom: 21%;
  background: #bec8c0;
}

.visual-bookshelf::before {
  width: 48%;
  height: 68%;
  left: 26%;
  top: 16%;
  background:
    linear-gradient(#8f7356 0 0) 0 24% / 100% 7px no-repeat,
    linear-gradient(#8f7356 0 0) 0 50% / 100% 7px no-repeat,
    linear-gradient(#8f7356 0 0) 0 76% / 100% 7px no-repeat,
    #d8a25f;
  border: 8px solid #9b704c;
}

.visual-bookshelf::after {
  width: 10%;
  height: 14%;
  left: 36%;
  top: 29%;
  background: #7fa488;
  box-shadow: 28px 0 0 var(--blue), 9px 42px 0 var(--coral), 39px 42px 0 var(--amber);
}

.visual-nightstand::before {
  width: 48%;
  height: 44%;
  left: 26%;
  top: 28%;
  background:
    linear-gradient(#8f7356 0 0) 0 50% / 100% 6px no-repeat,
    #d7a064;
  border-radius: 8px;
}

.visual-nightstand::after {
  width: 11px;
  height: 11px;
  left: 48%;
  top: 40%;
  background: #765946;
  border-radius: 999px;
  box-shadow: 0 44px 0 #765946, -43px 62px 0 0 #765946, 43px 62px 0 0 #765946;
}

.visual-dining-chairs::before {
  width: 18%;
  height: 34%;
  left: 19%;
  top: 26%;
  background: #e2a95f;
  border-radius: 9px;
  box-shadow: 43px 0 0 #91a093, 86px 0 0 #e2a95f, 129px 0 0 #91a093;
}

.visual-dining-chairs::after {
  width: 7px;
  height: 44px;
  left: 22%;
  top: 58%;
  background: var(--brown);
  box-shadow: 32px 0 0 var(--brown), 76px 0 0 var(--brown), 108px 0 0 var(--brown), 152px 0 0 var(--brown), 184px 0 0 var(--brown);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.trust-strip article,
.category-card,
.product-card,
.page-panel,
.filters,
.policy-band,
.checkout-step,
.admin-card,
.order-card,
.message-card,
.receipt-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-strip article {
  padding: 14px;
}

.trust-strip strong {
  display: block;
  margin-bottom: 3px;
}

.trust-strip span,
.category-card p,
.product-card p,
.form-note,
.message-line,
.muted {
  color: var(--muted);
}

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

.section-head.compact {
  align-items: center;
}

.product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

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

.product-heading .eyebrow {
  flex: 0 0 auto;
  padding: 5px 9px;
  font-size: 11.5px;
  line-height: 1.15;
}

.product-heading h2 {
  margin: 0;
  white-space: nowrap;
}

.product-toolbar select {
  justify-self: end;
  width: 100%;
  min-height: 41px;
}

.section-head h2,
.page-panel h2,
.drawer-head h2 {
  margin: 7px 0 0;
  font-size: 25px;
  letter-spacing: 0;
}

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

.category-card {
  text-align: left;
  padding: 14px;
  min-height: 120px;
}

.category-card.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(47, 118, 94, .12);
}

.category-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.category-card p {
  margin: 0;
  font-size: 12.5px;
}

.shop-section {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

label {
  display: grid;
  gap: 6px;
  color: #3f4c45;
  font-size: 13px;
  font-weight: 900;
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card .product-visual {
  min-height: 170px;
  border: 0;
  border-radius: 0;
}

.product-body {
  padding: 12px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.product-code,
.status-pill,
.condition-pill {
  color: #617069;
  font-size: 12px;
  font-weight: 900;
}

.product-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.22;
}

.product-card p {
  margin: 0;
  font-size: 12.5px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-list span,
.status-pill,
.condition-pill {
  border: 1px solid #dbe3dc;
  border-radius: 999px;
  background: #fbfcfa;
  padding: 4px 7px;
}

.product-card-tags {
  gap: 4px;
}

.product-card-tags span,
.preview-tags span {
  font-size: 11px;
  line-height: 1.15;
  padding: 3px 6px;
}

.product-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  color: var(--green-deep);
  font-weight: 950;
  font-size: 15px;
}

.small-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.small-actions button,
.small-button {
  border: 1px solid #cfd8d1;
  background: #fff;
  border-radius: 7px;
  min-height: 31px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.small-actions button {
  min-width: 38px;
  padding: 6px 7px;
}

.small-actions button:hover,
.small-button:hover {
  background: #eef2ee;
}

.danger-button {
  color: #b54735;
  border-color: #e6c3b9;
  background: #fff8f6;
}

.danger-button:hover {
  border-color: #b54735;
  background: #fff1ee;
}

.sold-mask {
  opacity: .58;
}

.policy-band {
  margin-top: 34px;
  padding: 22px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.policy-band h2 {
  margin: 8px 0 0;
}

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

.page-panel {
  margin-top: 26px;
  padding: 18px;
}

.info-copy {
  max-width: 820px;
  display: grid;
  gap: 12px;
  color: #46534d;
  font-size: 15px;
}

.info-copy p {
  margin: 0;
}

.page-panel-head,
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.cart-drawer:not(.open) .cart-panel {
  display: none;
}

.cart-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 24, .25);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 18px;
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.icon-button {
  min-width: 40px;
  padding: 0 12px;
  font-size: 22px;
  line-height: 1;
}

.cart-items {
  overflow: auto;
  display: grid;
  gap: 10px;
  flex: 1;
}

.cart-line,
.order-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  padding: 8px;
}

.cart-line .product-visual,
.order-line .product-visual {
  min-height: 64px;
  border-radius: 7px;
}

.cart-line h4,
.order-line h4 {
  margin: 0;
}

.cart-line p,
.order-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.totals {
  border: 1px solid #dde5de;
  background: #fbfcfa;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 7px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.totals .total {
  border-top: 1px solid #d7dfd8;
  padding-top: 8px;
  font-weight: 950;
  color: var(--green-deep);
}

.modal {
  width: min(960px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(17, 25, 21, .36);
}

.modal-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) 1fr;
  gap: 18px;
  padding: 18px;
}

.image-modal {
  width: min(920px, calc(100vw - 28px));
}

.image-modal-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
}

.image-modal-body img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #eef0ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-modal-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 22px;
}

.preview-info {
  display: grid;
  gap: 12px;
  padding-right: 28px;
}

.preview-info h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.detail-grid,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid span,
.admin-metric {
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid b,
.admin-metric b {
  display: block;
  color: var(--ink);
}

.checkout-modal {
  width: min(780px, calc(100vw - 28px));
}

.checkout-form,
.contact-form,
.receipt-shell {
  padding: 18px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #506058;
  font-size: 13px;
}

.site-footer > div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 950;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer a,
.site-footer button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: #445149;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 850;
}

.site-footer a:hover,
.site-footer button:hover {
  background: #e9eee9;
  border-color: var(--line);
}

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

.checkout-step {
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.checkout-step h3 {
  margin: 0;
}

.checkout-step label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.message-line {
  min-height: 22px;
}

.account-form,
.admin-form,
.contact-form {
  display: grid;
  gap: 12px;
}

.account-tabs,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.account-tabs button,
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
}

.account-tabs button.active,
.admin-tabs button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.admin-side {
  display: grid;
  gap: 7px;
  align-content: start;
}

.admin-side button {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 900;
}

.admin-side button.active {
  border-color: var(--green);
  background: #edf6f1;
}

.admin-main {
  min-width: 0;
}

.admin-card,
.order-card,
.message-card {
  padding: 12px;
  margin-bottom: 10px;
}

.opportunity-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.opportunity-card.invalid-source {
  border-color: #e6b7ac;
  background: #fff8f6;
}

.opportunity-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.opportunity-batch-bar p {
  flex-basis: 100%;
  margin: 0;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.check-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.source-warning {
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #e6b7ac;
  border-radius: 8px;
  background: #fff3ef;
  color: #9c3d2e;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}

.inline-source-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 8px 0 10px;
}

.inline-source-form input {
  min-width: 0;
}

.opportunity-card button:disabled,
.opportunity-card input:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.opportunity-check {
  margin-bottom: 8px;
}

.admin-record-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.opportunity-card .product-visual {
  min-height: 150px;
}

.opportunity-image,
.admin-product-image {
  width: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef0ed;
  border: 1px solid #d4ddd6;
  border-radius: 8px;
}

.admin-thumb-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.admin-thumb-button .product-visual {
  min-height: 150px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.admin-detail-grid span {
  min-width: 0;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-detail-grid b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 3px;
}

.product-visual.image-visual {
  display: grid;
  place-items: center;
  background: #eef0ed;
}

.product-visual.image-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.admin-card h3,
.order-card h3,
.message-card h3 {
  margin: 0 0 8px;
}

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

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

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}

.danger-text {
  color: #b44731;
}

.success-text {
  color: var(--green-deep);
}

.receipt {
  color: #202823;
}

.receipt h2 {
  margin: 0 0 8px;
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.receipt th,
.receipt td {
  text-align: left;
  border-bottom: 1px solid #dfe6e0;
  padding: 8px 6px;
}

.empty {
  border: 1px dashed #cdd7cf;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfa;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .hero,
  .policy-band,
  .modal-grid,
  .mock-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 12px 14px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  main {
    padding: 16px 14px 48px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-copy {
    min-height: 0;
    padding: 22px;
    width: 100%;
    max-width: 100%;
  }

  .hero,
  .hero-products,
  .policy-band {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-products,
  .trust-strip,
  .shop-section,
  .admin-layout,
  .admin-record-card,
  .opportunity-card,
  .checkout-grid,
  .form-grid,
  .admin-grid,
  .admin-detail-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

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

  .product-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .product-toolbar select {
    justify-self: stretch;
    max-width: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    grid-template-columns: auto auto;
    gap: 6px;
    align-items: baseline;
  }

  .main-nav a,
  .main-nav button {
    font-size: 13px;
    padding: 7px 8px;
  }

  .hero h1 {
    font-size: 31px;
    max-width: 10em;
  }

  .hero p {
    max-width: 22em;
    font-size: 14px;
  }

  .hero-search {
    flex-direction: column;
  }

  .product-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-card .product-visual {
    min-height: 210px;
  }

  .detail-grid,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .cart-line,
  .order-line {
    grid-template-columns: 62px 1fr;
  }

  .cart-line > .small-button,
  .order-line > .small-button {
    grid-column: 1 / -1;
  }
}
