/* /css/components/cart.css */
.cr-cart-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.35);
  transition: var(--t);
  border: 0;
}

.cr-cart-float:hover {
  transform: scale(1.08);
}

.cr-cart-float svg {
  width: 22px;
  height: 22px;
  fill: #0a0e17;
}

.cr-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transform: scale(0);
  transition: var(--t);
}

.cr-badge.vis {
  transform: scale(1);
}

.cr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}

.cr-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cr-side {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: 92vw;
  height: 91vh;
  background: var(--bg2);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--brd);
}

.cr-side.open {
  transform: translateX(0);
}

.cr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--brd);
}

.cr-head h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.cr-close {
  background: 0;
  border: 0;
  color: var(--txt3);
  font-size: 1.4rem;
  cursor: pointer;
}

.cr-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
}

.cr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--brd);
}

.cr-item-info {
  flex: 1;
  min-width: 0;
}

.cr-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-item-detail {
  font-size: 0.75rem;
  color: var(--txt3);
}

.cr-item-price {
  font-family: "Oswald", sans-serif;
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cr-item-remove {
  background: 0;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
}

.cr-empty {
  text-align: center;
  padding: 50px 0;
  color: var(--txt3);
}

.cr-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--brd);
}

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

.cr-total-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}

.cr-checkout-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  border: 0;
  border-radius: 8px;
  color: #0a0e17;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

