html {
  scrollbar-gutter: stable;
}
.announcement > span:first-child {
  display: inline;
}
.announcement {
  gap: 0;
}
.announcement {
  background: var(--gold);
  color: #000;
}
.size-advice dt {
  font-weight: 600;
  margin: 18px 0 6px;
}
.size-advice dd {
  margin: 0 0 16px;
  color: #555;
  font-size: 14px;
}
.size-advice {
  margin-bottom: 24px;
}
.category-tile:hover > div:last-child,
.category-tile:focus-within > div:last-child {
  border-bottom-color: var(--gold);
}
.category-tile svg,
.section-heading .text-link svg {
  color: #8a6a3a;
}
.color-choice:has(input:checked) {
  border-color: #8a6a3a;
  background: #f8f3e8;
}
.size-choice:has(input:checked) > span {
  background: var(--gold);
  color: #000;
  border-color: #8a6a3a;
}
.add-button svg,
.closing-section .button svg {
  color: var(--gold);
}
.advice-tab {
  position: fixed;
  top: clamp(140px, 40vh, 380px);
  right: 0;
  width: 48px;
  z-index: 8;
}
.advice-trigger {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: 48px;
  min-height: 168px;
  padding: 18px 12px;
  background: var(--gold);
  color: #000;
  border: 0;
  border-radius: 26px 0 0 26px;
  font:
    19px/1.2 Georgia,
    serif;
  box-shadow: -3px 5px 20px #00000010;
}
.advice-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 4px 0 0 -12px;
  padding: 0;
  border-radius: 50%;
  background: #f8f3e8;
  border: 0;
  color: #000;
}
.advice-close svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .advice-tab {
    top: clamp(145px, 22vh, 210px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .advice-tab:not([hidden]) {
    animation: advice-arrive 200ms ease-out;
  }
}
@keyframes advice-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body:has(dialog[open]) {
  overflow-x: visible;
  overflow-y: hidden;
}
.photo-pending {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 18px;
  background: linear-gradient(140deg, #f4f4f2, #ececea);
  color: #555;
}
.photo-pending > span:first-child {
  font-size: 11px;
}
.photo-pending strong {
  font:
    400 clamp(23px, 2.5vw, 36px)/1.15 Georgia,
    serif;
  color: #000;
  overflow-wrap: anywhere;
  max-width: 12ch;
}
.pending-label {
  font-size: 11px;
  padding-top: 12px;
  border-top: 1px solid #bbb;
}
.collection-photo-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: #fffffff2;
  font-size: 10px;
}
.quick-photo .photo-pending {
  min-height: 390px;
}
.header-inner,
.product-info,
.gallery,
.cart-item > div,
.quick-info,
.filters > label {
  min-width: 0;
}
.filters {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
}
.filters input,
.filters select {
  min-width: 0;
}
.text-link {
  min-height: 44px;
}
.quantity-control button {
  width: 44px;
  height: 44px;
}
.quick-view {
  min-height: 44px;
}
.card-photo > a {
  position: relative;
}
.card-photo img,
.card-photo > a:hover img {
  transform: none;
  transition: opacity 320ms ease;
}
.card-image-alternate {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.quick-view {
  opacity: 1;
  transform: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}
.card-photo .quick-view:focus-visible {
  position: absolute;
  z-index: 2;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .quick-view {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }
  .product-card:hover .quick-view,
  .product-card:focus-within .quick-view {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .product-card:hover .card-photo[data-alternate-ready] .card-image-alternate,
  .product-card:focus-within .card-photo[data-alternate-ready] .card-image-alternate {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-view {
    transform: none;
  }
  .card-photo img,
  .quick-view {
    transition: none;
  }
}
.product-info .size-choice > span {
  min-width: 44px;
  min-height: 44px;
}
.size-row {
  flex-wrap: wrap;
}
.card-details h3 {
  overflow-wrap: anywhere;
}
.card-details .card-category {
  font-size: 12px;
}
.card-price {
  font-size: 14px;
}
.card-variants > span:last-child {
  font-size: 11px;
}
dialog {
  overflow-y: auto;
  overflow-x: auto;
}
dialog .dialog-top {
  position: sticky;
  top: -28px;
  background: #fff;
  z-index: 8;
  padding: 8px 0;
  margin-top: -8px;
}
.cart-dialog .dialog-top,
.menu-dialog .dialog-top {
  top: -26px;
}
.quick-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.cart-item {
  grid-template-columns: 82px minmax(0, 1fr);
}
.cart-item h3,
.cart-item p {
  overflow-wrap: anywhere;
}
.cart-photo-pending {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: var(--light);
  color: #555;
  font-size: 11px;
}
.cart-item-controls {
  flex-wrap: wrap;
}
.cart-feedback:not(:empty) {
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: #f3eee3;
  color: #000;
}
.toast {
  width: max-content;
  text-align: center;
  background: #000;
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open]::backdrop {
    animation: backdrop-in 0.25s ease both;
  }
  dialog.is-closing::backdrop {
    animation: backdrop-out 0.18s ease both;
  }
}
@keyframes backdrop-in {
  from {
    background-color: #0000;
  }
  to {
    background-color: #0007;
  }
}
@keyframes backdrop-out {
  from {
    background-color: #0007;
  }
  to {
    background-color: #0000;
  }
}
@media (max-width: 1100px) {
  .filters {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .header-inner {
    height: 68px;
    gap: 8px;
  }
  .header-inner > .wordmark {
    font-size: 42px;
    margin-left: 4px;
  }
  .header-actions {
    gap: 2px;
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .gallery {
    max-width: 620px;
    width: 100%;
    margin: auto;
  }
  .product-info {
    max-width: 620px;
    width: 100%;
    margin: auto;
  }
  .gallery-image {
    aspect-ratio: 4/4.2;
  }
  .quick-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-photo img {
    height: 230px;
  }
  .quick-photo .photo-pending {
    min-height: 210px;
  }
  .filters input,
  .filters select,
  .search-row input,
  .quantity-label input {
    font-size: 16px;
  }
  .card-details h3 {
    font-size: 16px;
  }
  .card-variants > span:last-child {
    font-size: 11px;
  }
  .cart-item-controls {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .card-details {
    padding: 14px 0 8px;
  }
  .card-details h3 {
    font-size: 15px;
    line-height: 1.4;
  }
  .card-price {
    font-size: 13px;
  }
  .card-details .card-category {
    font-size: 11px;
  }
  .card-variants {
    row-gap: 8px;
  }
  .card-variants > span:last-child {
    flex-basis: 100%;
    margin-left: 0;
    font-size: 11px;
  }
  .color-dot {
    width: 14px;
    height: 14px;
  }
  .quick-view {
    font-size: 12px;
    padding: 10px;
  }
  .photo-pending {
    padding: 16px 12px 56px;
    gap: 12px;
  }
  .photo-pending > span:first-child,
  .pending-label {
    font-size: 10px;
  }
  .photo-pending strong {
    font-size: clamp(21px, 5.8vw, 26px);
  }
  .collection-photo-label {
    left: 6px;
    top: 6px;
    font-size: 9px;
    padding: 3px 5px;
  }
  .category-tabs {
    gap: 8px 18px;
  }
  .category-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .product-info .size-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .product-info h1 {
    font-size: 36px;
  }
  .gallery-thumbs button {
    width: 66px;
    height: 78px;
  }
  .quick-dialog {
    width: calc(100% - 24px);
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  dialog .dialog-top {
    top: -28px;
  }
  .quick-dialog .dialog-top {
    top: -18px;
  }
  .cart-dialog .dialog-top,
  .menu-dialog .dialog-top {
    top: -22px;
  }
  .quick-info h3 {
    font-size: 28px;
  }
  .quick-photo img {
    height: 160px;
  }
  .quick-photo .photo-pending {
    min-height: 160px;
  }
  .quick-info .product-form fieldset {
    margin-bottom: 12px;
  }
  .quick-info .quantity-label input {
    margin-bottom: 12px;
  }
  .quick-info .form-feedback:empty {
    display: none;
  }
  .quick-info .size-choice > span {
    min-width: 44px;
  }
  .search-dialog input {
    font-size: 16px;
  }
  .cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-item img {
    height: 96px;
  }
  .cart-item h3 {
    font-size: 15px;
  }
  .cart-item p {
    font-size: 12px;
  }
  .cart-summary p,
  .demo-copy {
    font-size: 12px;
  }
  .menu-dialog nav a {
    font-size: 21px;
    padding: 12px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog::backdrop {
    animation: none !important;
  }
}
.account-contact {
  margin-top: 24px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .header-actions .icon-button {
    width: 32px;
    min-width: 32px;
    padding: 4px;
  }
  .header-actions {
    gap: 0;
  }
}
