/* Cart Drawer 7 — Warm Care Studio pet shop · PETAL SLIDE */

.bsp-cart-drawer--7 {
  --bsp-cart-panel-closed: translateX(88px) scale(0.96) rotateY(-4deg);
  --bsp-cart-panel-open: translateX(0) scale(1);
  --bsp-cart-panel-opacity-closed: 0;
  --bsp-cart-panel-opacity-open: 1;
  --bsp-cart-panel-duration: 0.62s;
  --bsp-cart-panel-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bsp-h7-overlay-font: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--bsp-h7-overlay-font);
  color: var(--bsp-cart-text, #746c7c);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__overlay {
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  background: var(--bsp-cart-overlay, rgba(41, 35, 49, 0.52));
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.bsp-cart-drawer--7.is-open .bsp-cart-drawer__overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__panel {
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: auto;
  width: min(calc(100% - 36px), var(--bsp-cart-drawer-width, 440px));
  height: auto;
  border-radius: 28px;
  background: var(--bsp-cart-bg, #ffffff);
  border: 1px solid #e8dfec;
  box-shadow: 0 18px 48px rgba(78, 42, 97, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: right center;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__accent {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--bsp-cart-accent-line, #ff7a45) 12%,
    var(--bsp-cart-accent, #ff7a45) 50%,
    var(--bsp-cart-accent-line, #ff7a45) 88%,
    transparent
  );
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.bsp-cart-drawer--7.is-open .bsp-cart-drawer__accent {
  transform: scaleX(1);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__inner {
  height: auto;
  flex: 1;
  min-height: 0;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__header {
  background: var(--bsp-cart-header-bg, #6f3c8f);
  border-bottom: 0;
  padding: 18px 22px;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__title {
  color: var(--bsp-cart-title, #ffffff);
  font-family: var(--bsp-h7-overlay-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__close {
  color: rgba(255, 255, 255, 0.75);
  font-size: 26px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__shipping {
  background: #fff8ee;
  border-bottom: 1px solid #e8dfec;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__shipping-text {
  color: var(--bsp-cart-progress, #ff7a45);
  letter-spacing: 0;
  font-weight: 600;
  font-size: 13px;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__progress {
  height: 6px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bsp-cart-progress-bg, #e8dfec);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__progress-bar {
  background: var(--bsp-cart-progress, #ff7a45);
  border-radius: 14px;
  transform-origin: left center;
}

.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__progress-bar {
  animation: bspCd7Progress 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both 0.28s;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__item-thumb {
  background: #fff8ee;
  border-radius: 14px;
  border: 1px solid #e8dfec;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__item-name {
  color: #292331;
  font-weight: 600;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__item-price {
  color: var(--bsp-cart-price, #f04f78);
  font-weight: 700;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__qty {
  border-color: #e8dfec;
  border-radius: 14px;
  overflow: hidden;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__qty-btn:hover {
  background: #fff8ee;
  color: #6f3c8f;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__summary,
.bsp-cart-drawer--7 .bsp-cart-drawer__actions {
  background: #fff;
  border-top-color: #e8dfec;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__btn {
  border-radius: 14px;
  letter-spacing: 0.02em;
  font-family: var(--bsp-h7-overlay-font);
  font-weight: 700;
  text-transform: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__btn--checkout {
  background: var(--bsp-cart-checkout-bg, #6f3c8f);
  color: var(--bsp-cart-checkout-text, #ffffff);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__btn--checkout:hover {
  background: #ff7a45;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 122, 69, 0.3);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__btn--view {
  color: var(--bsp-cart-view-text, #6f3c8f);
  border-color: var(--bsp-cart-view-border, #6f3c8f);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__btn--view:hover {
  background: #fff8ee;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__upsell-title {
  font-family: var(--bsp-h7-overlay-font);
  font-size: 15px;
  font-weight: 700;
  color: #292331;
  letter-spacing: 0;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__upsell-btn {
  border-radius: 14px;
  background: var(--bsp-cart-upsell-btn-bg, #6f3c8f);
}

.bsp-cart-drawer--7 .bsp-cart-drawer__upsell-btn:hover {
  background: #ff7a45;
}

.bsp-cart-drawer--7 .bsp-cart-drawer__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px 16px;
  background: #fff8ee;
  border-top: 1px solid #e8dfec;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bsp-cart-secure-text, #746c7c);
  flex-shrink: 0;
}

.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__header {
  animation: bspCd7Header 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both 0.08s;
}

.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__shipping,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__empty,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__item,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__summary,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__actions,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__secure {
  animation: bspCd7Rise 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__shipping { animation-delay: 0.14s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__empty { animation-delay: 0.18s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__item:nth-child(1) { animation-delay: 0.18s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__item:nth-child(2) { animation-delay: 0.26s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__item:nth-child(3) { animation-delay: 0.34s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__summary { animation-delay: 0.28s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__actions { animation-delay: 0.36s; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__secure { animation-delay: 0.42s; }

@keyframes bspCd7Header {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bspCd7Rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bspCd7Progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 480px) {
  .bsp-cart-drawer--7 .bsp-cart-drawer__panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    border-left: 1px solid #e8dfec;
  }

  .bsp-cart-drawer--7 {
    --bsp-cart-panel-closed: translateX(100%);
    --bsp-cart-panel-open: translateX(0);
    --bsp-cart-panel-opacity-closed: 1;
    --bsp-cart-panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
}


/* Homepage 7 petal-slide finishing layer */
.bsp-cart-drawer--7 .bsp-cart-drawer__panel {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  box-shadow: -18px 24px 70px rgba(78, 42, 97, 0.24);
  transform-style: preserve-3d;
}
.bsp-cart-drawer--7 .bsp-cart-drawer__header {
  position: relative;
  background: linear-gradient(135deg, var(--bsp-cart-header-bg, #6f3c8f), #4c2366);
}
.bsp-cart-drawer--7 .bsp-cart-drawer__header::after {
  content: "\f1b0";
  position: absolute;
  right: 62px;
  top: 50%;
  color: rgba(255,255,255,.16);
  font-family: "Font Awesome 6 Free";
  font-size: 34px;
  font-weight: 900;
  transform: translateY(-50%) rotate(14deg);
}
.bsp-cart-drawer--7 .bsp-cart-drawer__btn { border-radius: 999px; }
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__shipping,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__empty,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__item,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__summary,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__actions,
.bsp-cart-drawer--7.is-entering .bsp-cart-drawer__secure { animation-name: bspCd7Petal; }
@keyframes bspCd7Petal {
  from { opacity: 0; transform: translateX(24px) translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}


@media (prefers-reduced-motion: reduce) {
  .is-entering * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}
