/* Cart icon badge + drawer styles. Scoped with vc- prefix to avoid
   clashing with Wix's CSS. */


.vidacom-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #d94a39;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
}
[data-hook="cart-icon-button"] { position: relative; }
[data-hook="cart-icon-button"].vc-pulse {
  animation: vcPulse 0.4s ease;
}
@keyframes vcPulse {
  50% { transform: scale(1.15); }
}

/* Drawer */
#vidacom-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
#vidacom-cart-drawer.vc-open {
  pointer-events: auto;
  visibility: visible;
}
.vc-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
#vidacom-cart-drawer.vc-open .vc-overlay { opacity: 1; }
.vc-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: #fff;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#vidacom-cart-drawer.vc-open .vc-panel { transform: translateX(0); }
.vc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #e5e7eb;
}
.vc-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.vc-close {
  background: none; border: none; font-size: 26px; line-height: 1;
  cursor: pointer; color: #6b7280; padding: 0 4px;
}
.vc-close:hover { color: #111827; }
.vc-items {
  list-style: none; margin: 0; padding: 0;
  flex: 1; overflow-y: auto;
}
.vc-empty {
  padding: 40px 22px; text-align: center; color: #6b7280;
}
.vc-item {
  display: flex; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid #f3f4f6;
}
.vc-thumb {
  width: 64px; height: 80px; object-fit: cover; border-radius: 4px;
  background: #f3f4f6; flex: 0 0 auto;
}
.vc-meta { flex: 1; min-width: 0; }
.vc-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.vc-variant { font-weight: 400; color: #6b7280; font-size: 13px; }
.vc-price { color: #374151; font-size: 14px; margin-top: 3px; }
.vc-qty {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 13px;
}
.vc-qty button {
  width: 26px; height: 26px;
  border: 1px solid #d1d5db; background: #fff; color: #374151;
  cursor: pointer; border-radius: 3px; font-size: 14px; line-height: 1;
}
.vc-qty button:hover { background: #f3f4f6; }
.vc-qty-input {
  width: 40px; height: 26px;
  border: 1px solid #d1d5db; border-radius: 3px;
  text-align: center; font-size: 13px;
  -moz-appearance: textfield;
}
.vc-qty-input::-webkit-outer-spin-button,
.vc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vc-remove {
  margin-left: auto; padding: 0 8px; color: #6b7280; font-size: 12px;
  background: none !important; border: none !important;
}
.vc-remove:hover { color: #d94a39; }
.vc-footer {
  padding: 16px 22px 22px; border-top: 1px solid #e5e7eb;
  background: #fafafa;
}
.vc-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; margin-bottom: 4px;
}
.vc-subtotal strong { font-size: 18px; }
.vc-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: #374151; margin-bottom: 4px;
}
.vc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; margin: 8px 0 4px;
  padding-top: 8px; border-top: 1px solid #e5e7eb;
}
.vc-total strong { font-size: 18px; }
.vc-shipping-note { font-size: 12px; color: #6b7280; margin: 8px 0 12px; }
.vc-shipping-note a { color: #1f3a5f; }
.vc-checkout {
  width: 100%; padding: 13px;
  background: #1f3a5f; color: #fff;
  border: none; border-radius: 4px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.vc-checkout:hover:not(:disabled) { background: #15294a; }
.vc-checkout:disabled { opacity: 0.7; cursor: wait; }
.vc-continue {
  width: 100%; padding: 10px;
  background: transparent; color: #374151;
  border: none; font-size: 13px; cursor: pointer;
  margin-top: 6px;
}
.vc-continue:hover { text-decoration: underline; }

/* Product-page variant select */
.vidacom-variant-block {
  margin: 0 0 16px;
}
.vidacom-variant-label {
  display: block; font-size: 13px; color: #374151; margin-bottom: 4px;
}
.vidacom-variant-select {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d1d5db; border-radius: 3px;
  background: #fff; font-size: 14px;
}
.vidacom-qty-block {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px;
}
.vidacom-qty-input {
  width: 60px; padding: 8px; text-align: center;
  border: 1px solid #d1d5db; border-radius: 3px;
}
