.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--announcement-height);
  padding-inline: var(--gutter);
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 94%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 5px 18px rgb(17 17 17 / 4%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  height: 100%;
  gap: var(--space-5);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: 178px;
  min-width: 0;
}

.brand-link img {
  width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  padding-block: 10px;
  font-size: 13px;
  font-weight: 600;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.locale-control {
  position: relative;
  display: inline-grid;
  width: 68px;
  height: 38px;
  grid-template-columns: 16px auto 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.locale-control:hover,
.locale-control:focus-within {
  border-color: var(--line-strong);
  background: var(--canvas);
}

.locale-control > svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

.locale-control > svg:last-child {
  width: 11px;
  height: 11px;
}

.locale-control strong {
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.locale-control select {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.icon-button:hover {
  background: var(--canvas);
}

.icon-button:active {
  transform: scale(.95);
}

.icon-button svg,
.button svg,
.text-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.count-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.mobile-menu-button {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button--dark {
  color: var(--paper);
  background: var(--ink);
}

.button--dark:hover {
  background: #30302e;
}

.button--light {
  color: var(--ink);
  background: var(--paper);
}

.button--light:hover {
  background: var(--canvas);
}

.button--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button--outline:hover {
  color: var(--paper);
  background: var(--ink);
}

.button--full {
  width: 100%;
}

.text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.product-card {
  min-width: 0;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f2ef;
}

.product-card__image-link {
  position: absolute;
  inset: 0;
  display: block;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 360ms ease,
    transform 800ms var(--ease-out);
}

.product-card__image--alt {
  opacity: 0;
}

.product-card:hover .product-card__image {
  transform: scale(1.018);
}

.product-card:hover .product-card__image--main {
  opacity: 0;
}

.product-card:hover .product-card__image--alt {
  opacity: 1;
}

.product-card__status {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 3px;
  color: var(--ink);
  background: rgb(255 255 255 / 90%);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.product-card__actions {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
}

.product-card__actions .icon-button {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 4px 14px rgb(17 17 17 / 6%);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    background-color 180ms ease;
}

.product-card:hover .product-card__actions .icon-button,
.product-card:focus-within .product-card__actions .icon-button {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  border-radius: 3px;
  color: var(--paper);
  background: rgb(17 17 17 / 94%);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background-color 180ms ease;
}

.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick:hover {
  background: #30302e;
}

.product-card__body {
  display: block;
  padding-top: 16px;
}

.product-card__content {
  min-width: 0;
}

.product-card__brand {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.product-card__name {
  margin-bottom: 9px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__price {
  display: grid;
  gap: 2px;
  margin: 0;
}

.product-card__price span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.product-card__price strong {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.product-card__meta {
  display: flex;
  min-height: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink-soft);
  font-size: 10px;
}

.product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-card__stock i,
.product-panel__facts dd i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--success);
}

.product-card__commerce {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card__order {
  min-height: 38px;
  padding: 8px 12px;
  border-color: var(--line-strong);
  font-size: 10px;
}

.product-card__order svg {
  width: 15px;
  height: 15px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgb(17 17 17 / 18%);
  border-radius: 50%;
  background: var(--swatch, #ddd);
}

button.swatch::after {
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
}

button.swatch:hover::after,
button.swatch.is-active::after {
  border-color: var(--ink);
}

.surface-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  background: rgb(17 17 17 / 44%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.surface-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  display: grid;
  width: min(460px, 100%);
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-drawer);
  transform: translateX(104%);
  transition: transform 340ms var(--ease-out);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer--left {
  right: auto;
  left: 0;
  transform: translateX(-104%);
}

html[dir="rtl"] .drawer {
  right: auto;
  left: 0;
  transform: translateX(-104%);
}

html[dir="rtl"] .drawer--left {
  right: 0;
  left: auto;
  transform: translateX(104%);
}

html[dir="rtl"] .drawer.is-open {
  transform: translateX(0);
}

html[dir="rtl"] .count-badge {
  right: auto;
  left: 3px;
}

.drawer__header,
.drawer__footer {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer__header h2 {
  margin: 0;
  font-size: 22px;
}

.drawer__body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.drawer__footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.drawer__summary strong {
  font-size: 19px;
}

.drawer__note {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.quote-list {
  display: grid;
  gap: 18px;
}

.quote-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-item img {
  width: 92px;
  height: 116px;
  object-fit: contain;
  background: var(--canvas);
}

.quote-item__name {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.quote-item__meta {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.quote-item__allocation {
  margin: -4px 0 10px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.quote-item__quantity {
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 650;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity-control button,
.quantity-control output {
  display: grid;
  height: 34px;
  place-items: center;
  font-size: 12px;
}

.quantity-control button:hover {
  background: var(--canvas);
}

.empty-state {
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state svg {
  width: 28px;
  height: 28px;
}

.modal {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(17 17 17 / 24%);
}

.modal::backdrop {
  background: rgb(17 17 17 / 55%);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 300ms var(--ease-out) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
}

.quick-view {
  display: grid;
  min-height: min(760px, calc(100dvh - 40px));
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
}

.quick-view__gallery {
  display: grid;
  min-height: 0;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--canvas);
}

.quick-view__thumbs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--paper);
}

.gallery-thumb.is-active {
  border-color: var(--ink);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-view__main {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
}

.quick-view__main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-view__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 5px 18px rgb(17 17 17 / 10%);
}

.quick-view__details {
  min-height: 0;
  overflow-y: auto;
  padding: 38px 38px 32px;
}

.quick-view__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  background: var(--paper);
}

.quick-view__brand {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.quick-view__title {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.05;
}

.quick-view__price {
  display: grid;
  gap: 3px;
  margin-bottom: 22px;
}

.quick-view__price span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.quick-view__price strong {
  font-size: 16px;
  font-weight: 650;
}

.quick-view__description {
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.detail-group {
  padding-block: 19px;
  border-top: 1px solid var(--line);
}

.detail-group__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 700;
}

.detail-group__value {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.quick-view__actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.detail-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  color: var(--ink-soft);
  background: var(--canvas);
  font-size: 11px;
  line-height: 1.45;
}

.detail-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.search-panel {
  position: fixed;
  z-index: 170;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgb(255 255 255 / 98%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 240ms ease,
    transform 240ms var(--ease-out);
}

.search-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-panel__top {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 920px) 1fr;
  align-items: center;
  min-height: 104px;
  gap: 18px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.search-panel__logo {
  width: 150px;
}

.search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}

.search-form svg {
  width: 21px;
  height: 21px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 17px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 22px;
}

.search-panel__close {
  justify-self: end;
}

.search-results {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 44px var(--gutter) 80px;
  overflow-y: auto;
}

.search-results__label {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.search-result img {
  width: 72px;
  height: 90px;
  object-fit: contain;
  background: var(--canvas);
}

.search-result h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.search-result p {
  color: var(--ink-soft);
  font-size: 11px;
}

.zoom-viewer {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px;
  color: var(--paper);
  background: rgb(10 10 10 / 96%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.zoom-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zoom-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 220ms ease;
}

.zoom-viewer.is-zoomed img {
  cursor: zoom-out;
  transform: scale(1.65);
}

.zoom-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--paper);
  background: rgb(255 255 255 / 12%);
}

.toast-region {
  position: fixed;
  z-index: 260;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100% - 40px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 600;
  animation: toast-in 250ms var(--ease-out) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
