.catalog-quick-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px;
  background: #fff;
  transform: translateY(102%);
  transition: transform 0.25s ease;
  box-shadow: 0 -8px 24px #00000012;
}
.catalog-card:hover .catalog-quick-add,
.catalog-card:focus-within .catalog-quick-add {
  transform: translateY(0);
}
.catalog-quick-add > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.catalog-quick-add > div {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}
.catalog-size-button {
  position: relative;
  min-width: 39px;
  height: 38px;
  border: 1px solid #cbc7bf;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.catalog-size-button:hover,
.catalog-size-button:focus {
  border-color: #171714;
  background: #171714;
  color: #fff;
}
.catalog-size-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  text-decoration: line-through;
}
.catalog-size-button.loading {
  color: transparent !important;
  background: #171714;
}
.quick-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  animation: quickSpin 0.65s linear infinite;
}
.catalog-size-button.loading .quick-spinner {
  display: block;
}
.catalog-size-button.added {
  background: #171714;
  color: #d9ff43;
}
@keyframes quickSpin {
  to {
    transform: rotate(360deg);
  }
}
.global-bag-backdrop {
  position: fixed;
  inset: var(--bag-top, 76px) 0 0;
  z-index: 280;
  background: #0008;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.global-bag-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.global-bag-drawer {
  position: fixed;
  top: var(--bag-top, 76px);
  right: 0;
  z-index: 290;
  width: min(460px, 100vw);
  height: calc(100dvh - var(--bag-top, 76px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #fbfaf6;
  transform: translateX(102%);
  transition: transform 0.3s ease;
  box-shadow: -18px 0 40px #0002;
  overflow: hidden;
}
.global-bag-drawer.open {
  transform: translateX(0);
}
body.global-bag-open {
  overflow: hidden;
}
.global-bag-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #d8d3ca;
}
.global-bag-drawer > header h2 {
  margin: 0;
  font:
    400 32px Georgia,
    serif;
}
.global-bag-drawer > header button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
}
.global-bag-progress {
  padding: 16px 24px;
  border-bottom: 1px solid #d8d3ca;
}
.global-bag-progress strong {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
}
.global-bag-progress i {
  display: block;
  height: 4px;
  background: #dedbd4;
}
.global-bag-progress b {
  display: block;
  height: 100%;
  width: 0;
  background: #171714;
  transition: width 0.3s;
}
.global-bag-lines {
  min-height: 0;
  overflow: auto;
  padding: 0 24px;
  overscroll-behavior: contain;
}
.global-bag-line {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #d8d3ca;
}
.global-bag-line > img {
  width: 105px;
  height: 132px;
  object-fit: contain;
  background: #f1efea;
}
.global-bag-line h3 {
  margin: 4px 0 8px;
  font-size: 14px;
}
.global-bag-line p {
  margin: 0 0 9px;
  color: #716b63;
  font-size: 10px;
}
.global-bag-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}
.global-bag-qty button {
  height: 32px;
  min-width: 32px;
  border: 1px solid #d8d3ca;
  background: #fff;
  cursor: pointer;
}
.global-bag-qty .drawer-remove {
  width: auto;
  margin-left: auto;
  padding: 0 8px;
  color: #8a3028;
}
.global-bag-empty {
  padding: 60px 0;
  text-align: center;
}
.global-bag-empty h3 {
  font:
    400 30px Georgia,
    serif;
}
.global-bag-empty a {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 18px;
  background: #171714;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
}
.global-bag-drawer > footer {
  padding: 20px 24px;
  border-top: 1px solid #d8d3ca;
  background: #fff;
}
.global-bag-drawer > footer > div {
  display: flex;
  justify-content: space-between;
}
.global-bag-drawer > footer p {
  color: #716b63;
  font-size: 10px;
}
.global-bag-drawer > footer > a {
  display: block;
  padding: 15px;
  text-align: center;
  background: #171714;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.global-bag-drawer > footer .view-full-bag {
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  color: #171714;
  text-decoration: underline;
}
@media (max-width: 760px) {
  .catalog-quick-add {
    padding: 9px;
    transform: translateY(0);
    background: #fffffff2;
  }
  .catalog-quick-add > strong {
    display: none;
  }
  .catalog-size-button {
    min-width: 34px;
    height: 34px;
  }
  .global-bag-line {
    grid-template-columns: 88px 1fr;
  }
  .global-bag-line > img {
    width: 88px;
    height: 112px;
  }
  .global-bag-drawer {
    width: 100vw;
  }
}
