/* 商城通用样式：页头购物车、加购提示、套装卡片 */

.vl-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  color: var(--vl-ink);
  text-decoration: none;
  border: 1px solid var(--vl-line);
  border-radius: 50%;
  transition: background .25s var(--vl-ease), color .25s var(--vl-ease);
}

.vl-header__cart:hover {
  background: var(--vl-ink);
  color: var(--vl-paper);
}

.vl-header__cart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.vl-header__cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: var(--vl-paper);
  background: var(--vl-wine);
  border-radius: 9px;
}

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

.vl-pdp__bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.vl-pdp__cart {
  width: 34px;
  height: 34px;
  margin-right: 0;
  flex-shrink: 0;
}

.vl-pdp__cart svg {
  width: 16px;
  height: 16px;
}

.vl-fly-to-cart {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(23, 21, 18, .24);
  will-change: left, top, width, height, opacity, transform;
}

.vl-header__cart.is-receiving {
  animation: vl-cart-receive .7s cubic-bezier(.22, .61, .36, 1);
}

.vl-header__cart.is-receiving .vl-header__cart-count {
  animation: vl-cart-badge-pop .7s cubic-bezier(.22, .61, .36, 1);
}

@keyframes vl-cart-receive {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  70% { transform: scale(.94); }
  100% { transform: scale(1); }
}

@keyframes vl-cart-badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.vl-pdp__buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vl-pdp__buy-actions .vl-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 13px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
  border: 1px solid var(--vl-ink);
  background: transparent;
  cursor: pointer;
}

.vl-pdp__buy-actions .vl-btn--solid {
  color: var(--vl-paper);
  background: var(--vl-ink);
}

.vl-pdp__buy-actions .vl-btn--solid:hover {
  color: var(--vl-ink);
  background: transparent;
}

.vl-pdp__buy-actions .vl-btn:not(.vl-btn--solid):hover {
  color: var(--vl-paper);
  background: var(--vl-ink);
}

@media (max-width: 420px) {
  .vl-pdp__buy-actions .vl-btn {
    flex: 1 1 100%;
  }
}

.vl-btn[hidden] {
  display: none;
}

.vl-shop-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 9999;
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--vl-paper);
  background: var(--vl-ink);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s var(--vl-ease), transform .25s var(--vl-ease);
}

.vl-shop-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vl-bundles {
  padding: 0 0 80px;
}

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

.vl-bundles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.vl-bundle-card {
  display: flex;
  flex-direction: column;
  background: var(--vl-bone);
  border: 1px solid var(--vl-line);
}

.vl-bundle-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vl-sand);
}

.vl-bundle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--vl-ease-out);
}

.vl-bundle-card:hover .vl-bundle-card__media img {
  transform: scale(1.03);
}

.vl-bundle-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
}

.vl-bundle-card__title {
  margin: 0;
  font-family: var(--vl-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

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

.vl-order__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  font-family: var(--vl-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vl-paper);
  background: var(--vl-wine);
  vertical-align: middle;
}

.vl-order__tag--gift {
  background: var(--vl-gold);
  color: var(--vl-ink);
}

.vl-order__item-components {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.7;
  color: var(--vl-ink-soft);
}

.vl-order__address {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--vl-line);
}

.vl-order__address p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--vl-ink-soft);
}

.vl-order__address-method {
  margin-top: 12px !important;
  color: var(--vl-ink) !important;
}

.vl-bundle-card__components {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.8;
  color: var(--vl-ink-soft);
}

.vl-bundle-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.vl-bundle-card__price {
  font-family: var(--vl-serif);
  font-size: 22px;
}

.vl-bundle-card__price s {
  margin-left: 8px;
  font-size: 13px;
  color: var(--vl-ink-soft);
  opacity: .6;
}

.vl-bundle-card__add {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vl-paper);
  background: var(--vl-ink);
  border: 1px solid var(--vl-ink);
  cursor: pointer;
  transition: background .25s var(--vl-ease), color .25s var(--vl-ease);
}

.vl-bundle-card__add:hover {
  color: var(--vl-ink);
  background: transparent;
}

.vl-bundle-card__add[disabled] {
  cursor: not-allowed;
  opacity: .45;
}

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

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

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

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

  .vl-header__cart {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }
}
