* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #f6f4ed;
  color: #253c32;
  font:
    14px Inter,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b66538;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.demo-bar {
  background: #253c32;
  color: #f6f4ed;
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4%;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.demo-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d4e891;
  border-radius: 50%;
  margin-right: 6px;
}
.demo-bar a {
  text-decoration: none;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f6f4edf5;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 4%;
  border-bottom: 1px solid #253c3220;
  gap: 20px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 33px;
  letter-spacing: -1.8px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span {
  font-style: italic;
  font-weight: normal;
}
.brand .brand-dot {
  color: #bd6c43;
  margin-left: 3px;
}
nav {
  display: flex;
  gap: 25px;
}
.nav {
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: #59655d;
  font-size: 12px;
}
.nav.active {
  color: #253c32;
  border-bottom: 2px solid #253c32;
}
.bag-button {
  padding: 10px 16px;
  border: 1px solid #253c3244;
  border-radius: 6px;
  background: none;
  font-weight: 600;
}
.bag-button span {
  border-radius: 50%;
  padding: 3px 7px;
  background: #253c32;
  color: white;
  margin-left: 8px;
  font-size: 11px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 4%;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 470px;
  padding: 36px 0 30px;
  gap: 5%;
}
.hero-copy {
  padding: 38px 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  margin: 0 0 22px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -3px;
  margin-bottom: 22px;
}
h1 em {
  font-weight: normal;
  color: #67764c;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
  color: #657065;
  margin-bottom: 25px;
}
.primary {
  background: #253c32;
  color: #fff9ed;
  border: 1px solid #253c32;
  border-radius: 5px;
  padding: 14px 20px;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  min-height: 45px;
}
.primary:hover {
  background: #405944;
}
.hero-notes {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  color: #66715e;
  font-size: 11px;
}
.hero-art {
  position: relative;
  background: #e8e4d8;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.hero-art > img {
  width: 100%;
  height: 100%;
  max-height: 455px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.sticker {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 109px;
  height: 109px;
  border-radius: 50%;
  background: #dbe5b2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #253c32ed;
  color: #fff9ed;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.value-strip {
  border-top: 1px solid #253c3230;
  border-bottom: 1px solid #253c3230;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 11px;
  color: #697361;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 24px;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
h2 {
  font:
    normal 36px Georgia,
    serif;
  letter-spacing: -1px;
  margin-bottom: 0;
}
.section-head > span {
  color: #6e766b;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #253c322e;
  border-radius: 5px;
  background: #fffdf7;
  padding: 0 14px;
  flex: 1;
}
.search > span {
  font-size: 26px;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  padding: 14px 0;
  min-width: 0;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid #67764c;
}
.toolbar select,
select {
  border: 1px solid #253c322e;
  background: #fffdf7;
  border-radius: 5px;
  color: #253c32;
  padding: 12px;
  min-height: 45px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 19px 0 24px;
}
#categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  border: 1px solid #253c322c;
  border-radius: 30px;
  padding: 9px 17px;
  font-size: 11px;
  color: #50604f;
  min-height: 38px;
}
.chip.selected {
  background: #253c32;
  color: white;
  border-color: #253c32;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #596751;
  font-size: 12px;
}
.check input {
  accent-color: #253c32;
  width: 16px;
  height: 16px;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.product {
  min-width: 0;
}
.product-image {
  position: relative;
  aspect-ratio: 1.12;
  background: #e9e6de;
  border-radius: 6px;
  overflow: hidden;
}
.product-image > button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product-image button:hover img {
  transform: scale(1.045);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  pointer-events: none;
  background: #fffdf5ed;
  color: #42513e;
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 3px;
}
.sold-badge {
  background: #253c32;
  color: white;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #77816d;
  margin: 14px 0 7px;
}
.product-title {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #253c32;
  line-height: 1.5;
  min-height: 39px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.price {
  font-size: 17px;
  font-weight: 600;
}
.add {
  border: 1px solid #253c3240;
  background: transparent;
  border-radius: 4px;
  padding: 10px 13px;
  min-height: 40px;
  color: #253c32;
  font-size: 11px;
}
.add:hover {
  background: #e5e8d9;
}
.empty {
  grid-column: 1/-1;
  padding: 40px;
  text-align: center;
  border: 1px dashed #253c3230;
  line-height: 1.8;
  color: #657065;
}
.seller-promo {
  background: #e5e9d8;
  margin: 58px 0 45px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  gap: 25px;
}
.seller-promo .eyebrow {
  margin-bottom: 12px;
}
.seller-promo p:not(.eyebrow) {
  line-height: 1.7;
  color: #65705c;
  margin: 14px 0 0;
}
footer {
  padding: 32px 4%;
  border-top: 1px solid #253c3225;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
footer p {
  font-size: 11px;
  line-height: 1.8;
  color: #6a7568;
  margin: 0;
}
footer > a:last-child {
  font-size: 11px;
}
dialog {
  border: 1px solid #d7d9cd;
  background: #f6f4ed;
  color: #253c32;
  border-radius: 10px;
  max-width: min(620px, 94vw);
  max-height: 90dvh;
  padding: 28px;
  overflow: auto;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #17241ec0;
  backdrop-filter: blur(3px);
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 480px;
  max-width: 100vw;
  border-radius: 0;
  padding: 28px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-head .eyebrow {
  margin-bottom: 8px;
}
.close {
  border: 1px solid #253c3228;
  background: none;
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: #253c32;
}
.bag-note,
.sandbox-note {
  font-size: 12px;
  line-height: 1.7;
  background: #e9ecdf;
  padding: 12px;
  border-radius: 4px;
}
.bag-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #253c3220;
  align-items: start;
}
.bag-line img {
  width: 64px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.bag-line h3 {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 5px;
}
.fine {
  font-size: 11px;
  line-height: 1.7;
  color: #6f7768;
}
.bag-line p {
  margin-bottom: 8px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #253c3240;
  background: none;
  border-radius: 3px;
  color: #253c32;
}
.remove {
  background: none;
  border: 0;
  text-decoration: underline;
  color: #63735f;
  font-size: 10px;
  padding: 8px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-weight: 600;
  font-size: 20px;
}
.full {
  width: 100%;
}
.error {
  color: #a23d24;
  font-size: 12px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
#receipt {
  padding: 24px 0;
}
#receipt h3 {
  font:
    30px Georgia,
    serif;
}
#detail-content > img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
}
#detail-content h3 {
  font:
    30px Georgia,
    serif;
  margin: 20px 0 12px;
}
#detail-content p {
  line-height: 1.8;
}
#listing-form > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 15px 0;
  font-size: 12px;
}
#listing-form > label.check {
  flex-direction: row;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
#listing-form input:not([type="checkbox"]),
textarea {
  padding: 12px;
  border: 1px solid #253c3233;
  background: #fffdf7;
  border-radius: 4px;
  min-width: 0;
  color: #253c32;
}
textarea {
  resize: vertical;
}
.seller-heading h1 {
  font-size: 58px;
  margin-bottom: 12px;
}
.seller-heading p {
  color: #66715f;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 25px;
}
.stat {
  background: #e9ecdf;
  padding: 22px;
  border-radius: 5px;
}
.stat strong {
  display: block;
  font:
    32px Georgia,
    serif;
  margin-bottom: 8px;
}
.stat span {
  font-size: 11px;
  color: #687561;
}
.seller-actions {
  display: flex;
  gap: 15px;
}
.secondary {
  border: 1px solid #253c3240;
  background: transparent;
  padding: 12px 17px;
  color: #253c32;
  border-radius: 4px;
}
.text-button {
  border: 0;
  background: none;
  color: #6c6e58;
  text-decoration: underline;
  min-height: 44px;
}
.seller-search {
  margin-bottom: 15px;
  max-width: 480px;
}
.seller-row {
  display: grid;
  grid-template-columns: 52px 1fr 100px 100px auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #253c3220;
}
.seller-row img {
  width: 52px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}
.seller-row h3 {
  font-size: 13px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.seller-row small {
  color: #718068;
  font-size: 10px;
}
.row-buttons {
  display: flex;
  gap: 8px;
}
.row-buttons button {
  padding: 10px;
  font-size: 11px;
}
.stock-label {
  font-size: 12px;
}
.order {
  border: 1px solid #253c3220;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 12px;
}
.order header {
  position: static;
  padding: 0 0 10px;
  background: none;
  z-index: auto;
  flex-wrap: wrap;
}
.order p {
  line-height: 1.7;
  margin: 12px 0 0;
  font-size: 12px;
}
#orders {
  margin-bottom: 45px;
}
.confirm-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 24px;
}
#confirm-reset p {
  line-height: 1.8;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #253c32;
  color: white;
  border-radius: 5px;
  padding: 14px 22px;
  z-index: 30;
  box-shadow: 0 6px 30px #0002;
  font-size: 12px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.visible {
  opacity: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  header,
  footer {
    padding-left: max(4%, calc((100vw - 1325px) / 2));
    padding-right: max(4%, calc((100vw - 1325px) / 2));
  }
}
@media (max-width: 850px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    min-height: 390px;
    gap: 24px;
  }
  .hero-copy {
    padding: 25px 0;
  }
  .hero-art > img {
    max-height: 420px;
  }
  .hero-notes {
    flex-direction: column;
    gap: 8px;
  }
  .value-strip span:last-child {
    display: none;
  }
  .seller-row {
    grid-template-columns: 45px 1fr 70px auto;
    gap: 10px;
  }
  .seller-row .stock-label {
    grid-column: 2;
  }
  .row-buttons {
    grid-column: 4;
    grid-row: 1/3;
  }
  .seller-row > img {
    grid-row: 1/3;
  }
  .seller-promo {
    padding: 25px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
}
@media (max-width: 560px) {
  .demo-bar {
    font-size: 8px;
    padding: 8px 5%;
  }
  .demo-bar > span:nth-child(2) {
    display: none;
  }
  header {
    flex-wrap: wrap;
    padding: 13px 5% 0;
    gap: 10px;
  }
  .brand {
    font-size: 29px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 36px;
  }
  .nav {
    font-size: 11px;
    padding: 12px 0;
  }
  main {
    padding: 0 5%;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0 22px;
  }
  .hero-copy {
    padding: 0;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 14px;
  }
  h1 {
    font-size: 56px;
    letter-spacing: -2px;
    margin-bottom: 17px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 13px;
    max-width: 300px;
    margin-bottom: 19px;
  }
  .hero-notes {
    flex-direction: row;
    gap: 18px;
    margin-top: 17px;
    font-size: 10px;
  }
  .hero-art {
    height: 255px;
  }
  .hero-art > img {
    height: 100%;
    object-position: center 47%;
  }
  .sticker {
    width: 86px;
    height: 86px;
    font-size: 8px;
    top: 14px;
    right: 15px;
  }
  .hero-caption {
    font-size: 7px;
    padding: 12px;
  }
  .value-strip {
    font-size: 10px;
    padding: 15px 0;
  }
  .value-strip span:nth-child(2) {
    display: none;
  }
  .section-head {
    margin: 30px 0 20px;
    align-items: center;
    gap: 12px;
  }
  h2 {
    font-size: 29px;
  }
  .section-head > span {
    font-size: 10px;
    max-width: 110px;
    text-align: right;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    padding: 10px;
  }
  .search input {
    font-size: 12px;
  }
  .filter-row {
    flex-direction: column;
    align-items: start;
    gap: 12px;
    margin: 15px 0 20px;
  }
  #categories {
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
  }
  .chip {
    padding: 9px 12px;
    font-size: 10px;
    white-space: nowrap;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 13px;
  }
  .product-image {
    aspect-ratio: 1;
  }
  .product-meta {
    font-size: 8px;
    gap: 6px;
  }
  .product-title {
    font-size: 12px;
    min-height: 36px;
  }
  .price {
    font-size: 15px;
  }
  .add {
    font-size: 10px;
    padding: 9px;
    min-height: 40px;
  }
  .badge {
    font-size: 8px;
    padding: 5px 7px;
    top: 8px;
    left: 8px;
  }
  .seller-promo {
    margin: 36px 0 28px;
    padding: 25px;
    align-items: start;
    flex-direction: column;
  }
  .seller-promo p:not(.eyebrow) {
    font-size: 12px;
  }
  .seller-promo .primary {
    width: 100%;
  }
  footer {
    padding: 25px 5%;
    flex-wrap: wrap;
    align-items: start;
  }
  footer p {
    order: 3;
    width: 100%;
  }
  .drawer {
    padding: 24px 20px;
  }
  .seller-heading {
    align-items: start;
    flex-direction: column;
  }
  .seller-heading h1 {
    font-size: 45px;
  }
  .seller-heading .primary {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 28px;
  }
  .seller-row {
    grid-template-columns: 44px 1fr 65px;
  }
  .row-buttons {
    grid-column: 2/4;
    grid-row: auto;
  }
  .seller-row .stock-label {
    grid-column: 2/4;
  }
  .seller-row > img {
    grid-row: 1/3;
  }
  .row-buttons button {
    flex: 1;
    min-height: 44px;
  }
  .seller-actions {
    gap: 8px;
    font-size: 11px;
  }
  .form-grid {
    gap: 12px;
  }
  dialog {
    padding: 22px;
  }
  .confirm-actions {
    flex-direction: column;
  }
  .bag-line {
    gap: 10px;
    grid-template-columns: 52px 1fr auto;
  }
  .bag-line img {
    width: 52px;
    height: 60px;
  }
  .order header {
    font-size: 11px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.product-meta > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-meta > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}
.product-title {
  overflow-wrap: anywhere;
}
.bag-line h3 {
  overflow-wrap: anywhere;
}
#receipt p {
  overflow-wrap: anywhere;
}
#receipt .summary-line {
  gap: 15px;
}
.seller-row > strong {
  font-size: 13px;
}
