.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cart-backdrop.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}
.cart-panel {
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-backdrop.is-open .cart-panel {
  transform: translateX(0);
}
.cart-backdrop.is-closing .cart-panel {
  transform: translateX(100%);
}
.accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #ff5258 50%,
    transparent 100%
  );
  animation: slideAccent 2s ease-in-out infinite;
}
@keyframes slideAccent {
  0%, 100% {
    opacity: 0.6;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}
.panel-header {
  padding: 32px 28px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.panel-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
}
.close-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}
.close-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}
.panel-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.items-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 82, 88, 0.2) transparent;
}
.items-scroll::-webkit-scrollbar {
  width: 3px;
}
.items-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.items-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 82, 88, 0.2);
  border-radius: 10px;
}
.items-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 82, 88, 0.4);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 40px 24px;
}
.empty-graphic {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.1);
  position: relative;
}
.empty-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.05);
}
.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px 0;
  font-family: 'Poppins', sans-serif;
}
.empty-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
.items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.item-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}
.product-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.product-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variants-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.variant-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.variant-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 82, 88, 0.2);
}
.variant-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.variant-label {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  flex: 1;
  min-width: 0;
}
.variant-price {
  font-size: 18px;
  font-weight: 700;
  color: #ff5258;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.variant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 82, 88, 0.06);
  border: 1px solid rgba(255, 82, 88, 0.15);
  border-radius: 10px;
  padding: 6px 8px;
}
.qty-action {
  background: transparent;
  border: none;
  color: rgba(255, 82, 88, 0.7);
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  border-radius: 6px;
}
.qty-action:hover {
  color: #ff5258;
  background: rgba(255, 82, 88, 0.1);
}
.qty-action:active {
  transform: scale(0.9);
}
.qty-value {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}
.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-value[type=number] {
  -moz-appearance: textfield;
}
.delete-action {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: rgba(255, 107, 107, 0.7);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  border-radius: 10px;
}
.delete-action:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
  transform: scale(1.05);
}
.delete-action:active {
  transform: scale(0.95);
}
.panel-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.total-display {
  background: rgba(255, 82, 88, 0.06);
  border: 1px solid rgba(255, 82, 88, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}
.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.total-price {
  font-size: 24px;
  font-weight: 700;
  color: #ff5258;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.checkout-button {
  width: 100%;
  height: 56px;
  background: #ff5258;
  border: none;
  border-radius: 12px;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.checkout-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.checkout-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 82, 88, 0.4);
}
.checkout-button:hover:not(:disabled)::before {
  opacity: 1;
}
.checkout-button:active:not(:disabled) {
  transform: translateY(0);
}
.checkout-button:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
.checkout-button Icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}
.checkout-button:hover:not(:disabled) Icon {
  transform: translateX(4px);
}
.cart-slide-enter-active,
.cart-slide-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-slide-enter-active .cart-panel,
.cart-slide-leave-active .cart-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-slide-enter-from,
.cart-slide-leave-to {
  opacity: 0;
}
.cart-slide-enter-from .cart-panel,
.cart-slide-leave-to .cart-panel {
  transform: translateX(100%);
}
@media (max-width: 768px) {
  .cart-panel {
    width: 100vw;
  }
  .panel-header {
    padding: 28px 24px 20px;
  }
  .panel-title {
    font-size: 22px;
  }
  .items-scroll {
    padding: 20px 24px;
  }
  .items-wrapper {
    gap: 28px;
  }
  .variant-item {
    padding: 14px;
  }
  .panel-footer {
    padding: 14px 24px 20px;
  }
  .total-display {
    padding: 12px 14px;
  }
  .total-price {
    font-size: 22px;
  }
  .checkout-button {
    height: 52px;
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.item-group {
  animation: fadeSlideIn 0.3s ease-out backwards;
}
.item-group:nth-child(1) {
  animation-delay: 0.05s;
}
.item-group:nth-child(2) {
  animation-delay: 0.1s;
}
.item-group:nth-child(3) {
  animation-delay: 0.15s;
}
.item-group:nth-child(4) {
  animation-delay: 0.2s;
}
.item-group:nth-child(5) {
  animation-delay: 0.25s;
}
