.shop-masthead {
  display: none;
}

#product-detail .product-purchase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin: 0 0 22px;
}

#product-detail .product-purchase .quantity-control {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: 13px;
}

#product-detail .product-purchase input {
  width: 66px;
  font-size: 16px;
}

#product-detail .product-purchase button {
  min-height: 44px;
  margin: 0;
}

.product-specifications {
  margin: 16px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.product-specifications summary {
  display: list-item;
  min-height: 44px;
  padding: 10px 0;
  color: var(--jade);
  font-size: 14px;
}

.product-specifications .specs {
  margin: 0 0 10px;
}

#products .filtered-empty,
#products .filter-reset {
  grid-column: 1 / -1;
  justify-self: start;
}

#products .filtered-empty {
  margin: 4px 0 0;
}

.filter-reset {
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--jade);
}

@media (max-width: 600px) {
  body {
    --cream: #f8f5ee;
    --paper: #fffcf6;
    --line: #e0d8c9;
    --jade: #203d33;
  }

  body > header {
    background: var(--cream);
    border-bottom-color: var(--line);
  }

  .shop-masthead {
    display: block;
    padding: 0 0 13px;
    margin: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .shop-masthead p {
    margin: 0 0 2px;
    color: #65594a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .19em;
  }

  .shop-masthead .mobile-shop-title {
    margin: 0;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.25;
    letter-spacing: .06em;
  }

  #categories {
    background: transparent;
    border-color: var(--line);
  }

  #collection .search input {
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2358665e' stroke-width='1.5'%3E%3Ccircle cx='7.5' cy='7.5' r='4.25'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
    background-position: 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
  }

  #products {
    gap: 22px 12px;
  }

  #products .card {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  #products .product-photo {
    border-radius: 3px;
  }

  #products .card h3 {
    font-size: 17px;
    line-height: 1.42;
  }

  #products .stock-label,
  #products .card-sku {
    font-size: 11px;
  }

  #products .card > .product-permalink {
    display: none;
  }

  #products .card .favorite {
    right: 4px;
    top: 4px;
    border-color: transparent;
    background: radial-gradient(circle, var(--paper) 15px, transparent 16px);
  }

  #favorites-section .favorites-intro {
    display: block;
  }

  #favorites-section .editorial-photo {
    display: none;
  }

  #product-dialog {
    width: min(100% - 20px, 560px);
    max-height: 94dvh;
    padding: 14px 14px 22px;
  }

  #product-dialog > .close {
    margin: 0 0 8px 10px;
  }

  #product-detail .detail-layout {
    gap: 14px;
  }

  #product-detail .detail-layout h2 {
    font-size: 25px;
    line-height: 1.42;
    margin: 5px 0 10px;
  }

  #product-detail .detail-layout p {
    margin-bottom: 12px;
    line-height: 1.7;
  }
}
