.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.cart-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.cart-drawer-close:hover {
  background: #f0f0f0;
}

.cart-drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-drawer-product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cart-drawer-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cart-drawer-product-info {
  flex: 1;
}

.cart-drawer-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-drawer-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #04155e;
  margin: 0 0 4px 0;
}

.cart-drawer-product-size {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.cart-drawer-summary {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.cart-drawer-shipping {
  font-size: 12px;
  color: #28a745;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-drawer-actions {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
}

.cart-drawer-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #04155e 0%, #020b40 100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-drawer-btn-primary:hover {
  background: linear-gradient(135deg, #0a2080 0%, #04155e 100%);
  color: #fff !important;
}

.cart-drawer-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #fff;
  color: #1a1a1a !important;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-drawer-btn-secondary:hover {
  background: #f5f5f5;
  color: #1a1a1a !important;
}

.cart-drawer-trust {
  padding: 12px 20px 18px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cart-drawer-trust span {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-drawer-just-added {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #28a745;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.cart-drawer-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 12px 0;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.cart-drawer-item-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 14px 0;
}

.cart-drawer-product + .cart-drawer-item-divider {
  margin: 14px 0;
}

.cart-drawer-qty {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0 0;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
}
