.cart {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
}

.cart-count {
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  background: #fff;
  color: var(--text, #111);
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: #111;
  color: #fff;
}

.button:disabled,
.button:disabled:hover {
  background: #fff;
  color: var(--text, #111);
  opacity: 0.5;
  cursor: default;
}

.cart-panel {
  position: fixed;
  top: 22px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #111;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 2000;
  display: none;
}

.cart-panel.is-open {
  display: block;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-close {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #666);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-meta {
  color: var(--muted, #666);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty {
  min-width: 18px;
  text-align: center;
}

.cart-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.cart-empty {
  color: var(--muted, #666);
  margin: 0;
}

.cart-footer {
  padding-top: 14px;
  border-top: 1px solid #e6e6e6;
}

.cart-total {
  margin-bottom: 12px;
  font-weight: 600;
}

.checkout-button {
  width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  .cart {
    top: 16px;
    right: 18px;
  }

  .cart-panel {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

.cart-panel {
  pointer-events: none;
}

.cart-panel.is-open {
  pointer-events: auto;
}