/* Love Mandalas — Cart Drawer */

/* ── Overlay ── */
#lm-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lm-cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ── */
#lm-cart-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -8px 0 48px rgba(0,0,0,0.12);
}
#lm-cart-overlay.open #lm-cart-drawer {
  transform: translateX(0);
}

/* ── Header ── */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #E8E8E8;
  flex-shrink: 0;
}
.cart-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  line-height: 1;
}
.cart-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.cart-close:hover { color: #0A0A0A; }

/* ── Items ── */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 48px 28px;
  text-align: center;
}
.cart-empty p {
  font-size: 15px;
  color: #999;
}
.cart-empty a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1B5E3B;
  text-decoration: none;
}
.cart-empty a:hover { text-decoration: underline; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 28px;
  border-bottom: 1px solid #F2F2F2;
}
.cart-item:last-child { border-bottom: none; }

.ci-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 3px;
  overflow: hidden;
  background: #F8F8F8;
  flex-shrink: 0;
}
.ci-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-name {
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 4px;
}
.ci-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.ci-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #0A0A0A;
  line-height: 1;
}

.ci-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ci-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #E8E8E8;
  background: none;
  font-size: 16px;
  color: #0A0A0A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}
.ci-qty:hover { border-color: #0A0A0A; background: #0A0A0A; color: #fff; }
.ci-qty-val {
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  min-width: 20px;
  text-align: center;
}
.ci-remove {
  background: none;
  border: none;
  font-size: 12px;
  color: #CCC;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
  margin-top: 4px;
}
.ci-remove:hover { color: #999; }

/* ── Footer ── */
.cart-footer {
  padding: 24px 28px;
  border-top: 1px solid #E8E8E8;
  background: #F8F8F8;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.cart-total-row span:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}
.cart-total-row span:last-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #0A0A0A;
  line-height: 1;
}

.cart-shipping-note {
  font-size: 12px;
  color: #BBB;
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 18px;
  background: #0A0A0A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.cart-checkout-btn:hover { background: #1B5E3B; }
.cart-checkout-btn:disabled {
  background: #999;
  cursor: not-allowed;
}
.cart-checkout-btn span { font-size: 18px; }

.cart-secure {
  font-size: 11px;
  color: #BBB;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Nav cart trigger & badge ── */
.cart-trigger {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #0A0A0A;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.cart-trigger:hover { color: #1B5E3B; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #1B5E3B;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

@media (max-width: 480px) {
  #lm-cart-drawer { max-width: 100%; }
}
