/* 购物车页 */

.vl-cart-hero .vl-page-hero__inner {
  min-height: 0;
}

.vl-cart {
  padding: 0 0 100px;
}

.vl-cart__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.vl-cart__empty {
  max-width: 560px;
  padding: 80px 0;
}

.vl-cart__empty h2 {
  margin: 12px 0 18px;
  font-family: var(--vl-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
}

.vl-cart__empty h2 em {
  font-style: italic;
  color: var(--vl-wine);
}

.vl-cart__empty p {
  margin: 0 0 22px;
  color: var(--vl-ink-soft);
}

.vl-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr);
  gap: 64px;
  padding-top: 48px;
}

.vl-cart__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vl-ink-soft);
  border-bottom: 1px solid var(--vl-line);
}

.vl-cart-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--vl-line);
}

.vl-cart-line.is-invalid {
  background: rgba(106, 36, 54, .04);
}

.vl-cart-line__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vl-sand);
}

.vl-cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vl-cart-line__body {
  min-width: 0;
}

.vl-cart-line__type {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vl-wine);
}

.vl-cart-line__title {
  margin: 0;
  font-family: var(--vl-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.vl-cart-line__spec {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--vl-ink-soft);
}

.vl-cart-line__components {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--vl-ink-soft);
}

.vl-cart-line__components em {
  font-style: normal;
  opacity: .65;
}

.vl-cart-line__price {
  margin: 12px 0 0;
  font-size: 14px;
}

.vl-cart-line__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #a12b2b;
}

.vl-cart-line__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.vl-cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--vl-line);
}

.vl-cart-line__qty button {
  width: 32px;
  height: 34px;
  font-size: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.vl-cart-line__qty input {
  width: 38px;
  height: 34px;
  font-family: var(--vl-sans);
  font-size: 13px;
  text-align: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--vl-line);
  border-right: 1px solid var(--vl-line);
  -moz-appearance: textfield;
}

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

.vl-cart-line__remove {
  padding: 0;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vl-ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.vl-cart__gifts {
  margin-top: 32px;
  padding: 26px;
  background: var(--vl-bone);
  border: 1px solid var(--vl-line);
}

.vl-cart-gifts__head h3 {
  margin: 4px 0 18px;
  font-family: var(--vl-serif);
  font-size: 24px;
  font-weight: 400;
}

.vl-cart-gifts__auto {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vl-cart-gift {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vl-cart-gift img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  background: var(--vl-sand);
}

.vl-cart-gift b {
  display: block;
  font-family: var(--vl-serif);
  font-size: 17px;
  font-weight: 400;
}

.vl-cart-gift span {
  font-size: 12px;
  color: var(--vl-ink-soft);
}

.vl-cart-gift-choice {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--vl-line);
}

.vl-cart-gifts__note {
  margin: 14px 0 0;
  font-size: 11px;
  color: #a12b2b;
}

.vl-cart-gift-choice__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.vl-cart-gift-choice__title span {
  font-weight: 400;
  color: var(--vl-ink-soft);
}

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

.vl-cart-gift-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--vl-line);
  cursor: pointer;
}

.vl-cart-gift-option.is-disabled {
  cursor: not-allowed;
  opacity: .45;
}

.vl-cart-gift-option input {
  flex-shrink: 0;
}

.vl-cart-gift-option img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  background: var(--vl-sand);
}

.vl-cart-gift-option span {
  min-width: 0;
}

.vl-cart-gift-option b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.vl-cart-gift-option em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--vl-ink-soft);
}

.vl-cart__aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.vl-cart__block {
  padding: 22px 0;
  border-top: 1px solid var(--vl-line);
}

.vl-cart__block:first-child {
  padding-top: 0;
  border-top: 0;
}

.vl-cart__block-title {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vl-ink-soft);
}

.vl-cart__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.vl-field span {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--vl-ink-soft);
}

.vl-field input,
.vl-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--vl-sans);
  font-size: 13px;
  color: var(--vl-ink);
  background: transparent;
  border: 1px solid var(--vl-line);
  border-radius: 0;
  outline: none;
  transition: border-color .2s var(--vl-ease);
}

.vl-field input:focus,
.vl-field select:focus {
  border-color: var(--vl-ink);
}

.vl-cart-shipping {
  min-height: 56px;
  padding: 14px;
  background: var(--vl-bone);
  border: 1px solid var(--vl-line);
}

.vl-cart-shipping__state {
  margin: 0;
  font-size: 12px;
  color: var(--vl-ink-soft);
}

.vl-cart-shipping__quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vl-cart-shipping__quote b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.vl-cart-shipping__quote span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--vl-ink-soft);
}

.vl-cart-shipping__quote strong {
  font-family: var(--vl-serif);
  font-size: 18px;
  font-weight: 400;
}

.vl-cart-shipping__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--vl-ink-soft);
}

.vl-cart__free {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--vl-ink-soft);
}

.vl-cart__free b {
  color: var(--vl-wine);
}

.vl-cart__free.is-reached {
  color: var(--vl-wine);
}

.vl-cart__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vl-cart__totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--vl-ink-soft);
}

.vl-cart__totals b {
  font-weight: 500;
  color: var(--vl-ink);
}

.vl-cart__total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--vl-line);
  font-size: 15px !important;
}

.vl-cart__total b {
  font-family: var(--vl-serif);
  font-size: 24px;
  font-weight: 400 !important;
}

.vl-cart__policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--vl-ink-soft);
}

.vl-cart__policy input {
  margin-top: 2px;
}

.vl-cart__policy a {
  color: var(--vl-ink);
}

.vl-cart__channels {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.vl-cart-channel {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--vl-ink-soft);
  background: transparent;
  border: 1px solid var(--vl-line);
  cursor: pointer;
}

.vl-cart-channel.is-active {
  color: var(--vl-paper);
  background: var(--vl-ink);
  border-color: var(--vl-ink);
}

.vl-cart__paypal {
  min-height: 48px;
}

.vl-cart__paypal .vl-cart-pay__note {
  margin: 0;
  padding: 14px;
  font-size: 12px;
  color: var(--vl-ink-soft);
  background: var(--vl-bone);
  border: 1px solid var(--vl-line);
}

.vl-cart__wechat {
  width: 100%;
  margin-top: 4px;
}

.vl-cart__msg {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--vl-ink-soft);
}

.vl-cart__msg.is-error {
  color: #a12b2b;
}

.vl-cart.is-loading {
  opacity: .65;
  pointer-events: none;
  transition: opacity .2s var(--vl-ease);
}

@media (max-width: 1024px) {
  .vl-cart__inner {
    padding: 0 24px;
  }

  .vl-cart__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vl-cart__aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .vl-cart__inner {
    padding: 0 18px;
  }

  .vl-cart__layout {
    padding-top: 24px;
  }

  .vl-cart-line {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
  }

  .vl-cart-line__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .vl-cart__head {
    display: none;
  }

  .vl-cart-gift-choice__options {
    grid-template-columns: 1fr;
  }

  .vl-cart__grid {
    grid-template-columns: 1fr;
  }
}
