.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.drawer-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  padding-right: var(--scrollbar-width, 0px);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1140;
}

.drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-width, min(560px, 100vw));
  height: 100%;
  height: 100dvh;
  background: #fff;
  color: #000;
  z-index: 1150;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.72s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  will-change: transform;
  backface-visibility: hidden;
}

.site-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.site-drawer.is-closing {
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
}

.site-drawer .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  backface-visibility: hidden;
}

.site-drawer .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.products-filter-drawer .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  backface-visibility: hidden;
}

.products-filter-drawer .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer .reveal-on-scroll,
  .products-filter-drawer .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  min-height: 68px;
}

.drawer__header--tabs {
  align-items: flex-end;
  padding-bottom: 0;
  border-bottom: 1px solid #e8e8e8;
}

.drawer__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.drawer__tabs {
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: 2.25rem;
  margin: 0;
  padding: 0 0 16px;
}

.drawer__tab {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #b3b3b3;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.drawer__tab.is-active {
  color: #000;
}

.drawer__tab-count {
  font-family: var(--font-display);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  color: #000;
  vertical-align: super;
  margin-left: 2px;
}

.drawer__tab-count[hidden] {
  display: none;
}

.drawer__close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  margin-bottom: 2px;
}

.drawer__header--tabs .drawer__close {
  margin-bottom: 16px;
}

.drawer__close:hover {
  background: #f5f5f5;
}

.drawer__close svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  display: block;
  transition: transform 0.35s var(--ease);
}

.drawer__close:hover svg {
  transform: rotate(90deg);
}

.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer .drawer__body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-drawer .drawer__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px 24px;
  position: relative;
}

.cart-drawer--empty .drawer__scroll:not(:has(.recent-panel.is-active)) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 420px);
}

.cart-drawer .drawer__scroll:has(.recent-panel.is-active) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 24px 16px;
  min-height: min(52vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.cart-drawer--recent-loading .drawer__body {
  position: relative;
  flex: 1;
  min-height: min(65vh, 520px);
}

.cart-drawer--recent-loading .drawer__scroll {
  flex: 1;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  visibility: hidden;
}

.cart-drawer--recent-loading .drawer__scroll > .cart-panel,
.cart-drawer--recent-loading .drawer__scroll > .recent-panel {
  display: none !important;
}

#cart-drawer.cart-drawer--recent-loading .recent-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(160px, 48vw);
  height: 3px;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.cart-drawer .drawer__scroll:has(.recent-panel.is-active .recent-empty:not([hidden])) {
  align-items: center;
  justify-content: center;
}

.cart-drawer--has-items .drawer__scroll {
  padding: 8px 24px 16px;
  min-height: 0;
}

.cart-drawer--empty .drawer__scroll--cart-panels,
.drawer__scroll:has(.cart-empty:not([hidden])) {
  padding: 28px 24px;
}

.cart-drawer--has-items .cart-empty {
  display: none !important;
}

.cart-drawer--has-items .cart-lines {
  padding-top: 0;
}

.drawer__scroll--cart-panels {
  position: relative;
  min-height: 280px;
}

.drawer__scroll:not(.drawer__scroll--search) {
  padding: 28px;
}

.drawer__scroll--search {
  padding: 24px 28px 28px;
}

.drawer__footer {
  padding: 20px 28px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.icon-link {
  position: relative;
}

/* Search drawer — index.shop style */
.search-drawer .drawer__body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-drawer__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.search-drawer__field {
  width: 100%;
  position: relative;
}

.search-drawer__search-row {
  width: 100%;
  margin-bottom: 0;
}

.search-drawer__search--inline-clear {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #f3f3f3;
  padding: 0 42px 0 18px;
}

.search-drawer__search--inline-clear .search-drawer__input {
  width: 100%;
  background: transparent;
  padding: 17px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000;
  border: 0;
  outline: none;
}

.search-drawer__search--inline-clear .search-drawer__input::placeholder {
  color: #8a8a8a;
}

.search-drawer__search--inline-clear .search-drawer__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  opacity: 0.38;
  cursor: pointer;
}

.search-drawer__search--inline-clear .search-drawer__clear:hover,
.search-drawer__search--inline-clear .search-drawer__clear:focus-visible {
  opacity: 0.62;
}

.search-drawer__search--inline-clear .search-drawer__clear svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke-width: 2;
}

.search-drawer__field--with-clear {
  display: none;
}

.search-drawer__footer {
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}

.search-drawer__see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.search-drawer__see-all-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-drawer__see-all.is-loading-dots .btn-loading-dots__dot {
  background: #fff;
}

.drawer__scroll--search {
  padding: 24px 28px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.search-results {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  flex-shrink: 0;
}

.search-result--collection .search-result__meta {
  cursor: pointer;
}

.search-empty-msg:not([hidden]) {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: 0;
}

.search-drawer__input {
  width: 100%;
  border: none;
  outline: none;
  background: #f3f3f3;
  padding: 17px 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000;
}

.search-drawer__input::placeholder {
  color: #8a8a8a;
}

.search-drawer__input::-webkit-search-decoration,
.search-drawer__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-drawer__input::-webkit-search-cancel-button {
  display: none;
}

.search-results__heading {
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.search-results__heading:first-child {
  margin-top: 0;
}

.search-result {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #efefef;
}

.search-result:first-of-type,
.search-results__heading + .search-result {
  border-top: none;
}

.search-result__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.search-result__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.search-result__title--collection {
  font-weight: 400;
  color: #111;
}

.drawer-ink-title {
  display: inline;
  width: auto;
  max-width: 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 0 1px;
  transition: background-size 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.search-result:hover .drawer-ink-title,
.search-result:focus-visible .drawer-ink-title,
.recent-line:hover .drawer-ink-title,
.recent-line:focus-within .drawer-ink-title,
.cart-line__title.drawer-ink-title:hover,
.cart-line__title.drawer-ink-title:focus-visible,
.cart-line__image:hover ~ .cart-line__info .cart-line__title.drawer-ink-title,
.sb-line__title.drawer-ink-title:hover,
.sb-line__title.drawer-ink-title:focus-visible,
.sb-line__image:hover ~ .sb-line__body .sb-line__title.drawer-ink-title {
  background-size: 100% 1px;
}

.search-result img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
}

.search-result__icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f3f3f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #666;
}

.search-result__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.search-result__price {
  font-size: 14px;
  color: #666;
}

.search-result__view {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: none;
  cursor: pointer;
}

.search-result__view:hover,
.search-result__view:focus,
.search-result__view:focus-visible,
.search-result__view:active {
  border: 0;
  outline: none;
  box-shadow: none;
  background: #111;
  color: #fff;
  opacity: 1;
  transform: none;
  filter: none;
}

.search-result--category img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.search-empty-state__icon {
  width: 72px;
  height: 72px;
  color: #8a8a8a;
  margin-bottom: 28px;
}

.search-empty-state__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-empty-state__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #111;
}

.search-empty-state__hint {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #666;
}

.search-empty-msg {
  margin-top: 0;
}

.search-drawer__form {
  position: relative;
  min-height: 120px;
}

.search-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin-top: 0;
  z-index: 2;
  pointer-events: none;
}

.search-loading[hidden] {
  display: none;
}

.search-loading__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #000;
  animation: search-loading-dot 0.9s ease-in-out infinite;
}

.search-loading__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.search-loading__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes search-loading-dot {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: scale(0.85);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cart drawer — index.shop style */
.cart-panel,
.recent-panel {
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-panel.is-loading #recent-list-vertical,
.recent-panel.is-loading #recent-empty {
  display: none !important;
}

#cart-drawer .recent-loading {
  display: block;
  width: min(200px, 56vw);
  height: 3px;
  pointer-events: none;
  margin: 0 auto;
  flex-shrink: 0;
}

#cart-drawer .recent-loading::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: center center;
  animation: recent-load-line 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  opacity: 1;
}

@keyframes recent-load-line {
  0% {
    transform: scaleX(0);
  }
  45% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.recent-loading[hidden] {
  display: none !important;
}

.recent-panel.is-loading::after {
  content: none;
}

.cart-panel:not(.is-active),
.recent-panel:not(.is-active) {
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  position: absolute;
  width: calc(100% - 48px);
  top: 0;
  left: 24px;
  visibility: hidden;
}

.cart-panel.is-active,
.recent-panel.is-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  position: relative;
  width: 100%;
  left: auto;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 0 36px;
  width: 100%;
  min-height: min(52vh, 420px);
  box-sizing: border-box;
}

.cart-empty__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: min(100%, 300px);
  margin-top: 4px;
}

.cart-empty__shop-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-empty__shop-btn--ghost {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.cart-empty__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  max-width: 18ch;
  margin: 0;
  color: #000;
}

.cart-empty__text {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #666;
  text-align: center;
  max-width: 28ch;
  margin: 0;
}

.cart-empty__collections {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px auto 0;
  width: 100%;
  max-width: min(100%, 300px);
  box-sizing: border-box;
}

.cart-empty-popular,
.cart-empty-secure {
  display: none !important;
}

.cart-empty-popular__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  text-align: left;
}

.cart-empty-popular__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cart-empty-popular__card {
  text-decoration: none;
  color: #000;
  display: block;
}

.cart-empty-popular__card .product-card__meta {
  padding: 6px 0 0;
}

.cart-empty-popular__card .product-card__name {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.12px;
}

.cart-empty-popular__card .product-card__price {
  font-size: 12px;
}

.cart-empty-popular__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  cursor: pointer;
}

.cart-empty-popular__more:hover,
.cart-empty-popular__more:focus-visible {
  opacity: 0.65;
  outline: none;
}

.cart-empty-secure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}

.cart-empty-secure__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
}

.cart-empty-secure__label svg {
  width: 15px;
  height: 15px;
}

.cart-empty-secure__icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cart-empty-secure__icon {
  display: inline-flex;
  width: 40px;
  height: 25px;
  overflow: hidden;
  border-radius: 2px;
}

.cart-empty-secure__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-empty__browse {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}

.cart-empty__browse a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drawer-collection {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 9px;
  background: #f3f3f3;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.drawer-collection:hover {
  background: #ebebeb;
}

.drawer-collection__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
}

.drawer-collection__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.drawer-collection__label {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000;
}

.drawer-collection__arrow {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  color: #000;
  opacity: 0.7;
  padding-right: 2px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #efefef;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cart-line--removing {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.cart-line.is-line-busy {
  position: relative;
  pointer-events: none;
}

.cart-line.is-line-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 2;
}

.cart-line__busy-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.cart-line__busy-dots .btn-loading-dots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: cart-line-busy-dot 0.9s ease-in-out infinite;
}

.cart-line__busy-dots .btn-loading-dots__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.cart-line__busy-dots .btn-loading-dots__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes cart-line-busy-dot {
  0%, 80%, 100% {
    opacity: 0.28;
    transform: scale(0.85);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.cart-line--updated .cart-line__price {
  animation: cart-price-flash 0.42s ease;
}

@keyframes cart-price-flash {
  0% { opacity: 0.35; }
  100% { opacity: 1; }
}

.cart-line:first-child {
  padding-top: 10px;
}

.cart-line__image {
  width: 92px;
  height: 115px;
  object-fit: cover;
  background: #f3f3f3;
}

.cart-line__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 2px;
  min-width: 0;
}

.cart-line__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.cart-line__title.drawer-ink-title {
  text-decoration: none;
  background-image: none !important;
}

.cart-line__title.drawer-ink-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

.cart-line__title.drawer-ink-title:hover::after,
.cart-line__title.drawer-ink-title:focus-visible::after,
.cart-line__image:hover ~ .cart-line__info .cart-line__title.drawer-ink-title::after {
  transform: scaleX(1);
}

.recent-line__meta,
.search-result__meta {
  align-items: flex-start;
}

.recent-line__title.drawer-ink-title,
.search-result__title.drawer-ink-title {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.cart-line__image {
  cursor: pointer;
}

.drawer__title-count {
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
  vertical-align: super;
}

.cart-drawer__footer--loading .cart-footer__subtotal-value {
  position: relative;
  color: transparent;
}

.cart-drawer__footer--loading .cart-footer__subtotal-value::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8e8e8 0%, #f7f7f7 50%, #e8e8e8 100%);
  background-size: 200% 100%;
  animation: cart-total-shimmer 1.1s ease-in-out infinite;
}

@keyframes cart-total-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.cart-line__variant {
  font-size: 13px;
  color: #888;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-line__variant-size,
.cart-line__variant-qty {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cart-line__price {
  font-size: 14px;
  color: #000;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.cart-line__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.cart-line__qty-select {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: 82px;
  background: #f3f3f3;
  border: none;
}

.cart-line__qty-value {
  width: 100%;
  min-width: 36px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  color: #000;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-line__qty-value::-webkit-outer-spin-button,
.cart-line__qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-line__qty-value:focus {
  outline: none;
}

.cart-line__qty-arrows {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

.cart-line__qty-btn {
  width: 28px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 9px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.cart-line__qty-btn:hover {
  background: #ebebeb;
}

.cart-line__remove {
  font-size: 12px;
  text-decoration: none;
  color: #000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.75;
  display: inline-block;
  width: fit-content;
  position: relative;
  transition: opacity 0.2s ease;
}

.cart-line__remove::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

.cart-line__remove:hover,
.cart-line__remove:focus-visible {
  opacity: 1;
}

.cart-line__remove:hover::after,
.cart-line__remove:focus-visible::after {
  transform: scaleX(1);
}

.cart-drawer__utilities {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #efefef;
  flex-shrink: 0;
}

.cart-drawer__utilities[hidden] {
  display: none !important;
}

.cart-utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #efefef;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.cart-utility:first-child {
  border-right: 1px solid #efefef;
}

.cart-utility:hover {
  background: #fafafa;
}

.cart-utility svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.recent-lines {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: 100%;
}

.recent-carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-carousel__toolbar {
  display: flex;
  justify-content: flex-end;
}

.recent-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  --carousel-card-w: calc((100% - 42px) / 4);
}

.recent-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.recent-product-card {
  flex: 0 0 var(--carousel-card-w, calc((100% - 42px) / 4));
  width: var(--carousel-card-w, calc((100% - 42px) / 4));
  max-width: var(--carousel-card-w, calc((100% - 42px) / 4));
  scroll-snap-align: start;
  text-decoration: none;
  color: #000;
}

.recent-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.recent-product-card:hover .recent-product-card__media,
.recent-product-card:focus-visible .recent-product-card__media {
  border-color: #000;
}

.recent-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
}

.recent-product-card__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.recent-product-card__price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-nav__btn {
  width: auto;
  height: auto;
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.carousel-nav__btn:hover:not(.is-disabled):not(:disabled) {
  opacity: 0.65;
}

.carousel-nav__btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.carousel-nav__btn.is-disabled,
.carousel-nav__btn:disabled {
  color: #c4c4c4;
  cursor: default;
  pointer-events: none;
}

.cart-drawer #recent-list-vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cart-drawer #recent-panel {
  padding-top: 4px;
}

.cart-drawer #recent-carousel {
  display: none !important;
}

.recent-panel.is-active {
  display: block;
  width: 100%;
  min-height: 0;
  overflow: visible;
  padding-top: 8px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.recent-empty:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  text-align: center;
  padding: 24px 0;
  margin: 0;
  box-sizing: border-box;
}

.recent-empty .search-empty-state {
  width: 100%;
}

.recent-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #efefef;
  align-items: center;
}

.recent-line:first-child {
  border-top: none;
  padding-top: 6px;
}

.recent-line__image {
  width: 72px;
  height: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
}

.recent-line__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-line__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.recent-line__price {
  font-size: 13px;
  color: #666;
}

.recent-line__view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 22px;
  background: #000;
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.recent-line__view:hover,
.recent-line__view:focus-visible {
  background: #000;
}

.recent-empty {
  font-size: 15px;
  line-height: 1.4;
  color: #666;
  padding-top: 8px;
}

.cart-utility.is-active {
  background: #f3f3f3;
}

.cart-utility-panel[hidden] {
  display: none !important;
}

.cart-utility-panel {
  border-top: 1px solid #efefef;
  background: #fff;
}

.cart-order-note-panel {
  padding: 16px 24px 12px;
}

.cart-order-note-panel[hidden] {
  display: none !important;
}

.cart-order-note-panel__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cart-order-note-panel__input {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 0;
  resize: vertical;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  color: #000;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cart-order-note-panel__input:focus {
  outline: none;
  border-color: #000;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}


.recent-list[hidden] {
  display: none !important;
}

.cart-drawer .reveal-on-scroll,
.cart-drawer .reveal-on-scroll.is-visible,
.cart-drawer .reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

.cart-drawer .reveal-on-scroll:not(.drawer-ink-title):not(.cart-line__remove):not(.cart-line__title) {
  transition: none !important;
}

.cart-drawer .reveal-on-scroll {
  transition:
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer .cart-footer__actions .drawer-btn.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.cart-drawer__footer {
  background: #f3f3f3;
  border-top: 1px solid #e8e8e8;
  padding: 18px 24px calc(20px + env(safe-area-inset-bottom));
}

.cart-footer__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.cart-footer__note {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  max-width: 18ch;
}

.cart-footer__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-footer__subtotal {
  text-align: right;
}

.cart-footer__subtotal-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.cart-footer__subtotal-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cart-footer__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid #000;
  cursor: pointer;
}

.drawer-btn__lock {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.drawer-btn--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.drawer-btn--primary:hover,
.drawer-btn--primary:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}

.drawer-btn--secondary {
  background: #e8e8e8;
  color: #000;
  border-color: #e8e8e8;
}

.drawer-btn--secondary:hover,
.drawer-btn--secondary:focus-visible {
  background: #e8e8e8;
  color: #000;
}

@media (max-width: 600px) {
  .site-drawer {
    width: 100%;
  }

  .drawer__header {
    padding: 16px 15px 14px;
    min-height: 58px;
  }

  .drawer__header--tabs {
    padding-bottom: 0;
  }

  .drawer__tab {
    font-size: clamp(1.25rem, 5vw, 1.35rem);
    padding-bottom: 12px;
  }

  .drawer__title {
    font-size: clamp(1.25rem, 5vw, 1.35rem);
  }

  .drawer__scroll,
  .drawer__footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .drawer__tabs {
    gap: 1.1rem;
  }

  .search-drawer__search--inline-clear .search-drawer__input {
    padding: 14px 0;
    font-size: 16px;
  }

  .search-drawer__search--inline-clear {
    padding-right: 38px;
    padding-left: 15px;
  }

  .cart-line {
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    padding: 14px 0;
  }

  .cart-line__image {
    width: 72px;
    height: 90px;
  }

  .recent-line {
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
  }

  .recent-line__image {
    width: 64px;
    height: 84px;
  }

  .recent-line__view {
    min-height: 36px;
    padding: 0 20px;
    font-size: 12px;
  }

  .search-drawer__see-all {
    min-height: 46px;
    font-size: 13px;
  }

  .search-results {
    margin-top: 16px;
  }

  .search-result {
    gap: 12px;
    padding: 12px 0;
  }

  .search-result__title {
    font-size: 13px;
  }

  .search-result__price {
    font-size: 13px;
  }

  .search-result__view {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }

  .cart-drawer .drawer__scroll:has(.cart-empty:not([hidden])) {
    padding: 20px 16px 24px;
  }

  .cart-empty {
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .cart-empty__title,
  .cart-empty__text {
    max-width: 26ch;
    width: 100%;
  }

  .cart-empty__collections {
    max-width: min(100%, 280px);
    width: 100%;
    gap: 6px;
    margin-top: 4px;
    padding: 0;
  }

  .drawer-collection {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 8px 12px 8px 8px;
    gap: 10px;
    border-radius: 5px;
  }

  .drawer-collection__icon {
    width: 44px;
    height: 44px;
  }

  .drawer-collection__icon svg {
    width: 26px;
    height: 26px;
  }

  .drawer-collection__label {
    font-size: 13px;
    line-height: 1.3;
  }

  .drawer-collection__arrow {
    font-size: 13px;
  }

  .search-empty-state {
    padding: 0 12px;
  }

  .search-empty-state__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .search-empty-state__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .search-empty-state__hint {
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: -0.005em;
  }

  .recent-empty:not([hidden]) {
    min-height: 220px;
    padding: 24px 0;
  }

  .recent-empty .search-empty-state {
    width: 100%;
    max-width: none;
  }

  .cart-empty__title {
    font-size: var(--mobile-heading-size, 1.35rem) !important;
    line-height: var(--mobile-heading-lh, 1.08);
    max-width: none;
  }

  .cart-empty__text {
    font-size: var(--mobile-body-size, 13px) !important;
    max-width: none;
  }

  .cart-line__title {
    font-size: 13px;
  }

  .cart-line__meta,
  .cart-line__price {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer,
  .drawer-overlay,
  .drawer__close svg,
  .cart-panel,
  .recent-panel {
    transition: none;
  }

  .drawer__close:hover svg {
    transform: none;
  }
}
