.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #293832;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #8b4f55;
  outline-offset: 3px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

.catalogue-state {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #777169;
  text-align: center;
}

.catalogue-state p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.catalogue-retry {
  cursor: pointer;
  background: transparent;
}

.dynamic-product-image {
  background: #e7e1d8;
  overflow: hidden;
}

.dynamic-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s;
}

.dynamic-product-image:hover img {
  transform: scale(1.025);
}

.site-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 18px 24px;
  border: 1px solid #d9d0c6;
  background: #fff;
  box-shadow: 0 15px 50px #221d192e;
}

.site-toast:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-toast strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.site-toast span {
  color: #756e66;
  font-size: 10px;
  line-height: 1.55;
}

.product-loading,
.product-load-error {
  min-height: 430px;
  padding: 90px 20px;
  color: #756e66;
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
}

.product-load-error p {
  margin: 0 0 28px;
}

.product-gallery-main {
  overflow: hidden;
  background: #ece7df;
}

.product-gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynamic-gallery .gallery-thumbs button {
  width: 82px;
  height: 95px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #ece7df;
}

.dynamic-gallery .gallery-thumbs button.selected {
  border-color: #333;
}

.dynamic-gallery .gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#personalization-fields > label {
  display: block;
  margin: 14px 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

#personalization-fields input,
#personalization-fields textarea {
  width: 100%;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #cfc7bc;
  outline: none;
  background: #fffdfa;
}

#personalization-fields input {
  height: 47px;
}

#personalization-fields textarea {
  min-height: 82px;
  padding-top: 13px;
  resize: vertical;
}

#personalization-fields :is(input, textarea):focus {
  border-color: #6c7767;
  box-shadow: 0 0 0 2px #6c776721;
}

.personalization-form fieldset[hidden] {
  display: none;
}

.admin-product-thumb {
  overflow: hidden;
}

.admin-product-thumb img,
.admin-images span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-notice[data-kind="error"] {
  color: #7f3434;
  border-color: #d8b0aa;
  background: #fff0ed;
}

.admin-card label {
  min-width: 0;
}

.admin-editor form {
  display: block;
}

.admin-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

@media (width <= 1000px) {
  .store-header nav.mobile-nav-open {
    position: absolute;
    z-index: 30;
    top: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .store-header nav.mobile-nav-open a {
    padding: 12px 0;
  }

  .store-header nav.mobile-nav-open a::after {
    bottom: 7px;
  }
}

@media (width <= 680px) {
  .site-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .product-loading,
  .product-load-error {
    min-height: 340px;
  }
}
