:root {
  color-scheme: light;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: #18392e;
  background: #fcf8ef;
  --green: #18392e;
  --paper: #fcf8ef;
  --yellow: #f7c942;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1300px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 70px); }
.masthead { position: absolute; inset: 0 0 auto; z-index: 1; color: var(--paper); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; min-height: 106px; gap: 12px; padding-block: 7px; }
.brand { display: block; flex: 0 1 auto; }
.brand img { display: block; width: clamp(124px, 22vw, 188px); height: clamp(77px, 11vw, 100px); object-fit: contain; object-position: left center; }
.nav { text-underline-offset: 5px; font-weight: bold; background: #18392edb; padding: .5rem .75rem; border-radius: 7px; }
.storefront-top {
  display: grid;
  min-height: max(535px, 88svh);
  color: var(--paper);
  background: #18392e url('mayberry-boxers-closeup-hero.webp') center top / cover no-repeat;
}
.hero { display: flex; align-items: end; width: 100%; max-width: none; padding-block: 135px clamp(20px, 4vw, 52px); }
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  column-gap: clamp(16px, 3vw, 52px);
  row-gap: 12px;
  width: 100%;
  color: #fff;
  text-shadow: 0 1px 2px #141911, 0 2px 9px #141911, 0 3px 17px #141911;
}
.hero-heading { flex: 1 1 340px; }
.eyebrow { margin: 0 0 .32rem; font-weight: bold; color: #ffe17a; }
h1,h2 { font-family: Georgia, serif; line-height: 1.04; letter-spacing: -.052em; margin: 0; }
h1 { font-size: clamp(2.4rem, 4.5vw, 5rem); }
h2 { font-size: clamp(2.35rem, 5vw, 4rem); }
.hero-description { margin: 0; line-height: 1.5; max-width: 26ch; }
.button {
  display: inline-block;
  border-radius: 7px;
  padding: .85rem 1.1rem;
  background: var(--yellow);
  color: var(--green);
  font-weight: bold;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 2px 8px #14191169;
}
.collection { padding-block: 58px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
#result-count { margin: .45rem 0 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: bold; }
input,select { font: inherit; font-size: 1rem; background: white; color: var(--green); border: 1px solid #aeb9b1; border-radius: 7px; min-height: 44px; padding: .55rem .7rem; }
.products { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 224px),1fr)); gap: 18px; }
article { border: 1px solid #e0d9ca; border-radius: 12px; overflow: hidden; background: white; }
.photo { background: white; }
.photo img { width: 100%; height: auto; display: block; }
.card-content { padding: 14px; border-top: 1px solid #f0ece3; }
h3 { margin: 0; font-size: 1.1rem; }
.sku { margin: .35rem 0 .55rem; color: #45594f; font-size: .9rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.sizes li { background: #e7eee5; padding: .22rem .5rem; border-radius: 4px; font-size: .875rem; }
.footer { display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: space-between; padding-block: 24px; border-top: 1px solid #ddd5c6; }
:focus-visible { outline: 3px solid #ac4e23; outline-offset: 3px; }
@media (max-width: 650px) {
  .masthead-inner { min-height: 90px; }
}
@media (max-width: 900px) {
  .storefront-top {
    min-height: clamp(420px, 59vw, 535px);
  }
  .hero { align-items: end; padding-block: 105px 34px; }
  h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
}

@media (max-width: 540px) {
  .storefront-top { min-height: max(455px, 72svh); background-position: 58% top; }
  .intro { flex-direction: column; align-items: flex-start; }
  .hero-heading { flex-basis: auto; }
  .hero-description { max-width: 34ch; }
}

.shop-nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
button.nav { border: 1px solid #ffffff75; color: var(--paper); font: inherit; font-weight: bold; cursor: pointer; min-height: 44px; }
.product-price { font-weight: bold; font-size: 1.11rem; margin: 0 0 .65rem; }
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; }
.order-form select { width: 100%; }
.add-button { min-height: 44px; padding: .57rem .64rem; font: inherit; font-weight: bold; border: 0; cursor: pointer; box-shadow: none; }
.cart-panel { inset: 0 0 0 auto; width: min(100%, 27rem); height: 100%; max-height: 100%; max-width: 100%; padding: 1.35rem; margin: 0; border: 0; color: var(--green); background: var(--paper); }
.cart-panel::backdrop { background: #10261db0; }
.cart-heading,.cart-line,.cart-total { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.cart-heading { margin-bottom: 1rem; }
.cart-heading h2 { font-size: 2.6rem; }
.cart-line { border-top: 1px solid #ddd5c6; padding-block: .8rem; }
.cart-line span { display: block; font-size: .9rem; }
.quantity-controls { display: flex; align-items: center; gap: .45rem; }
.cart-control { border: 1px solid #aeb9b1; border-radius: 6px; background: white; color: var(--green); min-width: 44px; min-height: 44px; font: inherit; cursor: pointer; }
.cart-total { border-top: 1px solid #ddd5c6; padding-top: .8rem; }
#checkout { width: 100%; text-align: center; box-shadow: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 350px) { .shop-nav { gap: .3rem; } .shop-nav .nav { font-size: .875rem; padding-inline: .43rem; } }
