/* Cart Drawer — Slide-over panel */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer--open {
  pointer-events: auto;
  opacity: 1;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.cart-drawer--open .cart-drawer__panel {
  transform: translateX(0);
}

/* Header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.cart-drawer__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
}

.cart-drawer__close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.cart-drawer__close:hover {
  opacity: 0.6;
}

/* Shipping Banner */
.cart-drawer__shipping-banner {
  background: var(--ova9-primary);
  padding: 12px 16px 16px;
  position: relative;
}

.shipping-banner__text {
  color: var(--ova9-primary-foreground);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.shipping-banner__progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: visible;
}

.shipping-banner__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: var(--ova9-primary-foreground);
  border-radius: 3px;
}

.shipping-banner__icon {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: var(--ova9-primary-foreground);
  color: var(--ova9-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Items Section */
.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  margin-bottom: 12px;
}

.drawer-item:last-child {
  margin-bottom: 0;
}

.drawer-item__image {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.drawer-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-item__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ova9-text);
}

.drawer-item__side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.drawer-item__badge {
  background: var(--ova9-success);
  color: var(--ova9-text);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.drawer-item__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.drawer-item__compare {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.drawer-item__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ova9-text);
}

.drawer-item__packs {
  font-size: 13px;
  color: var(--ova9-text);
  opacity: 0.7;
}

.drawer-item__packs:empty {
  display: none;
}

.drawer-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-item__stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--ova9-text);
  border-radius: 6px;
  overflow: hidden;
}

.drawer-item__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  color: var(--ova9-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-item__step:hover {
  background: var(--ova9-primary-tint);
}

.drawer-item__step-value {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ova9-text);
}

.drawer-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 6px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.drawer-item__remove:hover {
  color: var(--ova9-primary);
  background: var(--ova9-primary-tint);
}

.drawer-item .hide {
  display: none;
}

/* Info Section - Guarantee and Shipping */
.cart-drawer__info-section {
  background: #fafafa;
  border-top: 1px solid #ececec;
}

.info-section__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ova9-text);
}

.info-section__item + .info-section__item {
  border-top: 1px solid #ececec;
}

.info-section__item svg {
  flex-shrink: 0;
  color: var(--ova9-text);
}

.info-section__item .shipping-date__icon {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0 5px;
  border-radius: 50%;
  background: var(--ova9-text);
}

.shipping-date-highlight {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--ova9-text);
  color: #ffffff;
  font-weight: 600;
}

/* Order Bump */
.cart-drawer__bump {
  margin: 0 24px 20px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}

.bump__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.bump__icon {
  font-size: 16px;
}

.bump__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  flex: 1;
}

.bump__savings {
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 8px;
  border-radius: 4px;
}

.bump__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.bump__image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.bump__info {
  flex: 1;
}

.bump__product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.bump__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bump__original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.bump__current-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.bump__add-btn {
  background: #2a1810;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.bump__add-btn:hover {
  background: #1a1005;
}

/* Shipping Info */
.cart-drawer__shipping-info,
.cart-drawer__shipping-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 12px;
  font-size: 13px;
  color: #666;
}

.cart-drawer__shipping-info svg {
  flex-shrink: 0;
}

.shipping-date__icon {
  color: #4caf50;
  flex-shrink: 0;
}

.shipping-date__text strong {
  color: #1a1a1a;
}

/* Discounts + Subtotal */
.cart-drawer__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #ececec;
  background: #ffffff;
}

.cart-drawer__discounts,
.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discounts__header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.discounts__label,
.subtotal__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ova9-text);
}

.discounts__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f1f2;
  color: #5f6470;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.discounts__badge svg {
  flex-shrink: 0;
  color: #5f6470;
}

.discounts__amount {
  font-size: 15px;
  font-weight: 400;
  color: var(--ova9-text);
  white-space: nowrap;
}

.subtotal__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.subtotal__original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.subtotal__current {
  font-size: 16px;
  font-weight: 600;
  color: var(--ova9-text);
}

/* Footer */
.cart-drawer__footer {
  padding: 16px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
}

.cart-drawer__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--ova9-cta, #8a3431);
  color: var(--ova9-cta-foreground, #FEFAFA);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cart-drawer__checkout-btn:hover {
  background: var(--ova9-cta-hover, #6b2621);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 52, 49, 0.3);
}

.cart-drawer__checkout-btn svg {
  flex-shrink: 0;
}

.checkout-btn__price {
  font-size: 16px;
  font-weight: 600;
}

/* Empty State */
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.cart-drawer__empty svg {
  color: #ccc;
  margin-bottom: 20px;
}

.empty__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.empty__text {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
}

.empty__btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: var(--ova9-cta);
  color: var(--ova9-cta-foreground);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.empty__btn:hover {
  background: var(--ova9-cta-hover);
}

/* Responsive */
@media (max-width: 640px) {
  .cart-drawer__panel {
    max-width: 100%;
  }
  
  .item__discount-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}
