[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .65rem clamp(.8rem, 3vw, 2.75rem);
  background: var(--paper);
}

.site-nav { justify-content: end; }
.skip-link { z-index: 4; }
section[id], #main { scroll-margin-top: 6rem; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }

.bag-button {
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  justify-self: end;
}

.bag-button:hover { background: #e7e4da; }

.bag-button span {
  display: inline-block;
  min-width: 1.5em;
  margin-left: .25rem;
  padding-inline: .22rem;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.hero-pickup { margin-top: .7rem; color: var(--muted); font-size: .9rem; }

.collection {
  padding: clamp(3.25rem, 7vw, 7rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  margin-bottom: 2rem;
}

.collection-heading > p { color: var(--muted); max-width: 42ch; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.65rem);
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-photo {
  aspect-ratio: 1.27;
  height: auto;
  object-fit: cover;
  background: #dedbd3;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(.85rem, 1.65vw, 1.4rem);
}

.product-fit {
  color: var(--rust);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product h3 {
  margin: .18rem 0 .4rem;
  font: 800 clamp(2.3rem, 3.2vw, 3.6rem)/.9 var(--display);
  text-transform: uppercase;
}

.product-description { flex: 1; color: var(--muted); }
.product-price { margin-top: .6rem; font-size: 1.3rem; font-weight: 700; }
.product-form { margin-top: 1.15rem; }
.product-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.product-form label, #order-form label, #email-view > label { display: grid; gap: .25rem; font-weight: 700; }
.product-form label { font-size: .875rem; }

select, input, textarea {
  min-width: 0;
  min-height: 2.65rem;
  border: 1px solid #909094;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: .35rem .5rem;
}

textarea { width: 100%; resize: vertical; }
select {
  appearance: none;
  padding-right: 1.55rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2317212d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right .5rem center;
  background-repeat: no-repeat;
  background-size: .65rem .45rem;
}

.product-form .button, .order-dialog .button { margin-top: .8rem; border: 0; }
.product-form .button { justify-content: center; width: 100%; }
.collection-note { margin-top: 1rem; color: var(--muted); font-size: .875rem; }

.pickup {
  background: var(--ink);
  color: var(--white);
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
}

.pickup h2 { margin-top: 0; font-size: clamp(3rem, 5.1vw, 5.4rem); }

.pickup ol {
  margin: 2rem 0 0;
  padding-inline-start: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem clamp(2.25rem, 6vw, 5.5rem);
}

.pickup li { padding-inline-start: .35rem; }
.pickup li::marker { color: var(--copper); font-weight: 700; }
.pickup li p { margin-top: .3rem; color: #eee7da; }
.pickup a { text-underline-offset: .2em; }

.shop-status {
  position: fixed;
  z-index: 4;
  inset: auto var(--gutter) 1.25rem;
  width: fit-content;
  max-width: calc(100vw - 2 * var(--gutter));
  margin-inline-start: auto;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--paper);
  padding: .65rem .9rem;
  pointer-events: none;
}

.shop-status:empty { opacity: 0; }
body:has(.order-dialog[open]) { overflow: hidden; }

.order-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  padding: clamp(1.15rem, 4vw, 2rem);
  background: var(--paper);
  color: var(--ink);
}

.order-dialog::backdrop { background: #17212dcf; }

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .6rem;
  margin-bottom: 1rem;
}

.dialog-header h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 0; }
.dialog-header h2:focus { outline: none; }

.dialog-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.bag-items, .request-summary { padding: 0; margin: 0 0 1rem; list-style: none; }
.bag-items li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .85rem;
  padding-block: .65rem;
  border-bottom: 1px solid var(--line);
}

.bag-controls { display: flex; align-items: center; gap: .7rem; }
.bag-controls select { margin-left: .2rem; }
.bag-line-price { font-size: .875rem; color: var(--muted); }
.order-total {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding-block: .65rem;
  margin-bottom: .65rem;
  border-top: 1px solid var(--line);
}

.text-button {
  border: 0;
  background: transparent;
  min-height: 2.75rem;
  padding: .3rem 0;
  font-weight: 700;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.order-terms { padding: .65rem .85rem; margin: .35rem 0 .75rem; background: #ebe8df; }
#order-form { display: grid; gap: .65rem; }
#order-form label small { font-size: .875rem; color: var(--muted); font-weight: 400; }
#order-form input, #order-form textarea { font-weight: 400; }
#order-form .button { justify-self: start; }
.email-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; margin: .9rem 0 1rem; }
.email-actions .button { margin-top: 0; }
#email-view > label { margin-bottom: .25rem; }
#copy-status { color: var(--muted); font-size: .875rem; }

@media (max-width: 62rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .site-header { grid-template-columns: 1fr auto; gap: .35rem .5rem; }
  .site-nav { justify-content: start; grid-column: 1 / -1; grid-row: 2; }
  .bag-button { grid-column: 2; grid-row: 1; }
  section[id], #main { scroll-margin-top: 7.75rem; }
  .pickup ol { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}
