/* ============================================================
   CART ICON + BADGE + POPUP
   ============================================================ */

/* CART BUTTON IN NAV */
.bu-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #1a1b26;
  flex-shrink: 0;
  margin-left: 0.5rem;
  text-decoration: none;
}
.bu-cart-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}
.bu-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #b23b2c;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* CART POPUP MODAL */
.bu-cart-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bu-cart-popup[hidden] { display: none; }
.bu-cart-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,27,38,0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.bu-cart-popup-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.bu-cart-popup--visible .bu-cart-popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.bu-cart-popup-check {
  width: 56px;
  height: 56px;
  background: rgba(178,59,44,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #b23b2c;
}
.bu-cart-popup-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1a1b26;
  margin: 0 0 0.3rem;
}
.bu-cart-popup-product {
  font-size: 0.85rem;
  color: rgba(26,27,38,0.55);
  margin: 0 0 1.75rem;
}
.bu-cart-popup-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.bu-cart-popup-submit {
  display: block;
  padding: 0.9rem 1.5rem;
  background: #b23b2c;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.bu-cart-popup-submit:hover { background: #961f12; }
.bu-cart-popup-keep {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: rgba(26,27,38,0.55);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid rgba(26,27,38,0.12);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.bu-cart-popup-keep:hover {
  border-color: rgba(26,27,38,0.3);
  color: #1a1b26;
}
.bu-cart-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgba(26,27,38,0.3);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.bu-cart-popup-close:hover { color: #1a1b26; }
