.cart-float {
  align-items: center;
  animation: none;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  bottom: 28px;
  box-shadow: var(--shadow-hover);
  color: #fff;
  display: flex;
  height: 60px;
  justify-content: center;
  position: fixed;
  right: 28px;
  transition:
    background 200ms var(--transition-smooth),
    transform 200ms var(--transition-bounce);
  width: 60px;
  z-index: 70;
}

.cart-float svg {
  fill: currentColor;
  height: 25px;
  width: 25px;
}

.cart-float span {
  align-items: center;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -3px;
  top: -3px;
  width: 22px;
}

.cart-float.pulse {
  animation: pulse 460ms var(--transition-bounce);
}

.cart-drawer,
.chat-panel,
.favorites-drawer {
  background: color-mix(in srgb, var(--bg-primary) 96%, white 4%);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(var(--accent-rgb), 0.14);
  bottom: 0;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 260ms var(--transition-smooth);
  width: 380px;
  z-index: 90;
}

.cart-drawer.open,
.chat-panel.open,
.favorites-drawer.open {
  animation: slideInRight 260ms var(--transition-smooth);
  transform: translateX(0);
}

.drawer-header {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 0.96;
  margin: 0;
}

.drawer-close {
  background: var(--accent-soft);
  border: 0;
  border-radius: 50%;
  color: var(--text-primary);
  height: 42px;
  width: 42px;
}

.cart-items,
.favorite-items {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  overflow-y: auto;
}

.cart-line {
  display: grid;
  gap: 12px;
  grid-template-columns: 70px 1fr;
}

.favorite-line {
  display: grid;
  gap: 12px;
  grid-template-columns: auto 70px 1fr;
}

.favorite-line > input {
  align-self: start;
  margin-top: 28px;
}

.favorite-line img {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.favorite-line h3,
.favorite-line p {
  margin: 0;
}

.favorite-line h3 {
  font-size: 1rem;
}

.favorite-line p {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.favorite-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.favorite-controls select {
  background: var(--accent-soft);
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  min-height: 32px;
  padding: 0 10px;
}

.favorite-controls button {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  min-height: 32px;
  padding: 0 12px;
}

.favorite-controls .remove {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.cart-line img {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line h3,
.cart-line p {
  margin: 0;
}

.cart-line h3 {
  font-size: 1rem;
}

.cart-line p {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.cart-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cart-controls button {
  background: var(--accent-soft);
  border: 0;
  border-radius: 50%;
  height: 30px;
  width: 30px;
}

.cart-controls .remove {
  border-radius: var(--radius-pill);
  color: var(--accent-dark);
  margin-left: auto;
  padding: 0 10px;
  width: auto;
}

.cart-empty {
  color: var(--text-secondary);
  margin-top: 28px;
}

.cart-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.15);
  margin-top: auto;
  padding-top: 18px;
}

.cart-total {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-total strong {
  font-family: var(--font-mono);
}

.checkout-button {
  width: 100%;
}

.inquiry-button {
  width: 100%;
  background: var(--accent-dark);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 200ms var(--transition-smooth);
}

.inquiry-button:hover {
  background: var(--accent);
}

.inquiry-button:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .cart-float {
    bottom: 104px;
    right: 18px;
  }
}
