/**
 * SOULÉPUREVANA — Animated Cart Drawer Styles
 * ===========================================
 * Luxury slideover drawer with smooth cubic-bezier easing,
 * glassmorphic backdrop, item quantity modifiers, and checkout CTA.
 */

/* ── OVERLAY BACKDROP ── */
.pv-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pv-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── SLIDEOVER DRAWER CONTAINER ── */
.pv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--color-cream-base, #FAF7F0);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
  border-left: 1px solid var(--color-gold-base, #C9A227);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pv-drawer-overlay.is-open .pv-drawer {
  transform: translateX(0);
}

/* ── DRAWER HEADER ── */
.pv-drawer__header {
  background: var(--color-forest-deep, #072515);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-gold-base, #C9A227);
}

.pv-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv-drawer__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gold-bright, #E8C84A);
}

.pv-drawer__count-badge {
  background: rgba(201, 162, 39, 0.2);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-base, #C9A227);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
}

.pv-drawer__close-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.pv-drawer__close-btn:hover {
  background: var(--color-gold-base, #C9A227);
  color: #072515;
  border-color: var(--color-gold-bright, #E8C84A);
}

/* ── FREE SHIPPING DISCLOSURE BANNER ── */
.pv-drawer__shipping-banner {
  background: #DCFCE7;
  color: #14532D;
  border-bottom: 1px solid #86EFAC;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

/* ── DRAWER BODY / ITEMS LIST ── */
.pv-drawer__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Item Card */
.pv-cart-item {
  background: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 200ms ease;
}

.pv-cart-item:hover {
  border-color: var(--color-gold-base, #C9A227);
  box-shadow: 0 4px 14px rgba(13, 74, 42, 0.08);
}

.pv-cart-item__thumb-wrap {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at center, #FAF7F0 0%, #EFE8DA 100%);
  border-radius: var(--radius-sm, 6px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pv-cart-item__thumb {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.pv-cart-item__details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pv-cart-item__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-forest-deep, #072515);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted, #5A685F);
  margin-bottom: 8px;
}

.pv-cart-item__flavor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pv-cart-item__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pv-cart-item__price {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-forest-deep, #072515);
}

.pv-cart-item__remove-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pv-cart-item__remove-btn:hover {
  color: #E11D48;
}

/* Compact quantity pill inside cart item */
.pv-cart-item .pv-qty {
  height: 32px;
}

.pv-cart-item .pv-qty__btn {
  width: 28px;
  font-size: 0.95rem;
}

.pv-cart-item .pv-qty__input {
  width: 30px;
  font-size: 0.8125rem;
}

/* ── EMPTY STATE ── */
.pv-cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  margin: auto 0;
}

.pv-cart-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pv-cart-empty__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest-deep, #072515);
  margin-bottom: 6px;
}

.pv-cart-empty__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, #5A685F);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pv-cart-empty__cta {
  display: inline-block;
  background: var(--color-forest-base, #0D4A2A);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-base, #C9A227);
  padding: 10px 24px;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
}

.pv-cart-empty__cta:hover {
  background: var(--color-forest-light, #1A6E40);
  transform: translateY(-2px);
}

/* ── DRAWER FOOTER ── */
.pv-drawer__footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv-drawer__subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pv-drawer__subtotal-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-deep, #072515);
}

.pv-drawer__subtotal-amount {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-forest-deep, #072515);
}

.pv-drawer__shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #5A685F);
}

.pv-drawer__shipping-val {
  color: #166534;
  font-weight: 700;
}

.pv-drawer__guarantee-note {
  font-size: 0.75rem;
  color: #6B7280;
  text-align: center;
  line-height: 1.35;
}

.pv-drawer__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--color-forest-base, #0D4A2A);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-bright, #E8C84A);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 220ms ease;
  box-shadow: 0 4px 16px rgba(13, 74, 42, 0.3);
}

.pv-drawer__checkout-btn:hover {
  background: var(--color-forest-light, #1A6E40);
  box-shadow: 0 6px 22px rgba(13, 74, 42, 0.4), 0 0 16px rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.pv-drawer__continue-link {
  font-size: 0.75rem;
  color: var(--color-text-muted, #5A685F);
  text-align: center;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.pv-drawer__continue-link:hover {
  color: var(--color-forest-deep, #072515);
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .pv-drawer,
  .pv-drawer-overlay {
    transition: none !important;
  }
}
