:root {
  --wine: #350000;
  --wine-top: #2a0607;
  --wine-raised: #470b0e;
  --sand: #e6cba9;
  --cream: #fff1da;
  --warm-line: #754743;
}
html {
  scroll-padding-top: 78px;
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--wine-top);
  color: var(--cream);
  border-bottom: 1px solid #693632;
}
.mast {
  min-height: 65px;
}
.brand,
.site-head .phone,
.site-head .menu-opener {
  color: var(--cream);
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand small {
  color: var(--sand);
}
.site-head .menu-opener {
  background: transparent;
  border-color: var(--warm-line);
}
.site-head .menu-opener:hover {
  background: var(--wine-raised);
}
.main-nav,
.phone {
  color: #f0d9c6;
}
.cart-opener {
  background: var(--sand);
  color: var(--wine);
  border-radius: 7px;
  font-weight: 650;
  min-height: 44px;
}
.cart-opener:hover {
  background: #f5ddbf;
}
.cart-opener b {
  background: #cba887;
  color: #36070a;
}
#cart-amount {
  font-size: 0.8rem;
  padding-left: 9px;
  border-left: 1px solid #a78268;
}
#cart-amount[hidden] {
  display: none;
}
.storefront {
  color: var(--cream);
  background: var(--wine);
}
.storefront .wrap {
  max-width: 1320px;
}
.market-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #330506;
  border-bottom: 1px solid #815147;
}
.market-image {
  position: absolute;
  z-index: -2;
  right: 0;
  inset-block: 0;
  width: 79%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}
.market-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #350508 0%,
    #350508 17%,
    #350508ea 28%,
    #350508a1 39%,
    #35050827 52%,
    transparent 65%
  );
}
.cover-content {
  min-height: clamp(215px, 18.5vw, 280px);
  padding: 22px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.cover-content h1 {
  font: 400 clamp(3.1rem, 4.25vw, 4.65rem)/0.96 var(--serif);
  letter-spacing: -0.048em;
  color: var(--cream);
}
.cover-content p {
  margin: 13px 0 0;
  color: #f0dccb;
  font-size: 0.96rem;
  line-height: 1.43;
}
#catalog {
  padding-top: 28px;
  scroll-margin-top: 6px;
}
.catalog-head h2 {
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  letter-spacing: -0.035em;
  color: var(--cream);
}
.catalog-head {
  position: relative;
}
.catalog-head::after {
  content: "";
  height: 1px;
  background: var(--warm-line);
  flex: 1;
  order: 1;
  margin: 0 9px;
}
.catalog-head .search {
  order: 2;
  width: 213px;
  background: var(--wine-raised);
  border-color: var(--warm-line);
  color: var(--sand);
}
.catalog-head .search input {
  width: 100%;
  color: var(--cream);
  background: transparent;
}
.catalog-head .search input::placeholder {
  color: #dfc6ba;
}
.filters {
  margin: 14px 0 20px;
  gap: 8px;
}
.shop .filter {
  min-height: 42px;
  background: transparent;
  border: 1px solid var(--warm-line);
  color: #f4dbc8;
  border-radius: 6px;
  padding: 0 15px;
}
.shop .filter.selected {
  color: var(--wine);
  background: var(--sand);
  border-color: var(--sand);
}
.shop .filter:not(.selected):hover {
  background: #541a1b;
}
.filter small {
  font-variant-numeric: tabular-nums;
}
.shop .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}
.product {
  display: flex;
  flex-direction: column;
}
.product-photo {
  aspect-ratio: 2/1;
  border: 1px solid #d7b493;
  border-radius: 19px;
  background: #481316;
  box-shadow: 0 3px 15px #18000240;
}
.product-photo:focus-visible,
.product-photo:hover {
  border-color: #ffe2bd;
}
.product-data {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 0 2px;
}
.prod-category {
  color: #dfbba4;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.025em;
  font-weight: 400;
  margin: 12px 0 3px;
}
.prod-category span {
  padding: 0 2px;
}
.product h3 {
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
  color: var(--cream);
  line-height: 1.12;
}
.product h3 button {
  color: inherit;
  min-height: 38px;
}
.product-bottom {
  margin-top: auto;
  padding-top: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
.product-bottom strong {
  font-size: 1.1rem;
  color: #fff2e2;
}
.product-bottom small,
.sold-out {
  color: #e3c6b4;
}
.product .add-btn,
.product .stepper {
  background: var(--sand);
  color: var(--wine);
  border: 1px solid var(--sand);
  border-radius: 6px;
  font-weight: 650;
}
.product .add-btn {
  padding: 0 14px;
  gap: 5px;
  min-height: 44px;
}
.product .add-btn:hover,
.product .stepper button:hover {
  background: #f6dfbf;
}
.stepper button {
  min-width: 42px;
  min-height: 42px;
}
.product.without-photo {
  border: 1px solid #754743;
  border-radius: 12px;
  padding: 14px 17px 16px;
  align-self: stretch;
  background: #3e0809;
}
.without-photo .prod-category {
  margin-top: 0;
}
.storefront .foot {
  color: #e4c9ba;
  border-color: var(--warm-line);
}
.storefront .foot-brand,
.storefront #product-grid .empty h3 {
  color: var(--cream);
}
.storefront .empty .secondary {
  display: inline-flex;
}
.shop {
  padding-bottom: 6px;
}
.drawer {
  width: min(560px, 100vw);
}
.drawer .dialog-head {
  margin-bottom: 8px;
}
.drawer .cart-row {
  padding-block: 12px;
}
.drawer .total {
  padding: 13px 0;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
#checkout-form {
  gap: 12px;
}
#checkout-form h3 {
  font: 400 1.5rem var(--serif);
  color: var(--accent);
}
#checkout-form .address-pair {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
}
.checkout-hint,
.local-hint {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}
.local-hint {
  font-size: 0.77rem;
  text-align: center;
}
#checkout-form .wide {
  margin-top: 0;
}
#toast {
  background: #fff4dd;
  border-color: #d6b194;
  color: #4c1820;
}
@media (min-width: 851px) and (max-height: 800px) {
  .cover-content {
    min-height: 190px;
    padding-block: 16px;
  }
  #catalog {
    padding-top: 20px;
  }
  .product-photo {
    aspect-ratio: 2.2;
  }
}
@media (max-width: 850px) {
  .shop .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .shop .filter {
    padding: 0 10px;
  }
  .market-image {
    width: 85%;
  }
  .cover-content h1 {
    font-size: 3rem;
  }
  .market-cover::before {
    background: linear-gradient(
      90deg,
      #350508 0%,
      #350508ee 23%,
      #3505088a 44%,
      transparent 70%
    );
  }
}
@media (max-width: 620px) {
  html {
    scroll-padding-top: 66px;
  }
  .mast {
    min-height: 58px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .site-head .menu-opener {
    min-width: 40px;
    min-height: 44px;
  }
  .cart-opener {
    gap: 5px;
    padding: 0 9px;
  }
  .cart-opener > span:not(#cart-amount) {
    display: inline;
  }
  #cart-amount {
    display: none;
  }
  .market-image {
    width: 100%;
    object-position: 63% 50%;
  }
  .market-cover::before {
    background: linear-gradient(
      90deg,
      #300207f0,
      #350508ca 35%,
      #3505084a 65%,
      #35050808
    );
  }
  .cover-content {
    min-height: 172px;
    padding: 15px 0 18px;
  }
  .cover-content h1 {
    font-size: clamp(2.4rem, 8vw, 3.15rem);
  }
  .cover-content p {
    font-size: 0.83rem;
    margin-top: 9px;
  }
  #catalog {
    padding-top: 19px;
  }
  .catalog-head {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .catalog-head h2 {
    font-size: 2.12rem;
  }
  .catalog-head .search {
    width: min(52%, 200px);
    height: 40px;
  }
  .catalog-head::after {
    display: none;
  }
  .shop .filters {
    margin: 9px -1px 9px;
    padding-block: 4px 6px;
  }
  .filters .filter {
    min-height: 42px;
    flex-shrink: 0;
  }
  .shop .grid {
    gap: 22px 12px;
  }
  .product-photo {
    aspect-ratio: 1.38;
    border-radius: 13px;
  }
  .prod-category {
    font-size: 0.72rem;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 9px 0 3px;
  }
  .product h3 {
    font-size: clamp(1.28rem, 5.3vw, 1.6rem);
  }
  .product h3 button {
    min-height: 29px;
  }
  .product-bottom {
    padding-top: 7px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .product-bottom > div:first-child {
    flex-basis: 100%;
  }
  .product .add-btn,
  .product .stepper {
    width: 100%;
    justify-content: center;
  }
  .product .stepper {
    justify-content: space-between;
  }
  .product .stepper button {
    width: 35%;
  }
  .product.without-photo {
    padding: 10px;
    border-radius: 9px;
  }
  .drawer {
    width: 100%;
    max-width: 100vw;
  }
}
@media (max-width: 359px) {
  .cart-opener > span:not(#cart-amount) {
    display: none;
  }
  .drawer .two,
  #checkout-form .address-pair {
    grid-template-columns: 1fr;
  }
}

.staff-entry {
  padding-block: clamp(28px, 6vw, 76px);
  max-width: 530px;
}
.staff-card {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.staff-card h1 {
  margin: 0;
  font: 500 clamp(30px, 5vw, 44px)/1.12 var(--serif);
}
.staff-card > p,
.reconcile {
  color: var(--muted);
  line-height: 1.55;
}
.staff-user {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.staff-user span {
  overflow-wrap: anywhere;
}
.staff-team .form {
  max-width: 430px;
  padding: 16px 20px;
}
.staff-team .form button {
  justify-self: start;
}
.reconcile {
  margin-block: 14px;
}
.reconcile summary {
  cursor: pointer;
}
.reconcile .field {
  margin-block: 10px;
}
.staff-card .error,
.staff-team .error {
  overflow-wrap: anywhere;
}
