/* MINNUT cart side drawer — matches new theme/assets/js/cart-drawer.js */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #846044;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
#cart-pill { position: relative; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 24, 20, 0.42);
  opacity: 0;
  transition: opacity .28s ease;
}
.cart-drawer.is-open .cart-drawer-backdrop { opacity: 1; }

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  box-shadow: -12px 0 40px rgba(45, 45, 45, 0.12);
  font-family: Rajdhani, system-ui, sans-serif;
}
.cart-drawer.is-open .cart-drawer-panel { transform: translateX(0); }

.cart-drawer-head {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 48px 18px 20px;
  border-bottom: 1px solid #EFE8DF;
  text-align: center;
}
.cart-drawer-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1b2a4a;
}
.cart-drawer-close {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #2D2D2D;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.cart-drawer-close:hover { background: #F6F1EA; }

.cart-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 18px 18px;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  padding: 48px 12px;
  text-align: center;
  color: #6B6B6B;
}
.cart-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: #2D2D2D;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #F0EAE2;
}
.cart-line-img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #F7F3EE;
}
.cart-line-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cart-line-main { min-width: 0; }
.cart-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cart-line-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #2D2D2D;
  text-decoration: none;
}
.cart-line-title:hover { color: #846044; }
.cart-line-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #8A8A8A;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.cart-line-remove:hover { color: #2D2D2D; background: #F6F1EA; }
.cart-line-price {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #2D2D2D;
}
.cart-line-meta {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6B;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid #D9D0C4;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cart-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: #2D2D2D;
  cursor: pointer;
  line-height: 1;
}
.cart-qty button:hover { background: #F6F1EA; }
.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.cart-drawer-foot {
  flex: 0 0 auto;
  padding: 14px 18px 20px;
  border-top: 1px solid #EFE8DF;
  background: #fff;
}
.cart-drawer-foot.is-empty { display: none; }

.cart-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}
.cart-discount input {
  height: 44px;
  border: 1px solid #E2D8CC;
  border-radius: 999px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #2D2D2D;
  background: #FFFCFA;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.cart-discount input:focus {
  border-color: #C4A071;
  box-shadow: 0 0 0 3px rgba(196,160,113,.2);
}
.cart-discount button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #C4A071;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.cart-discount button:hover { background: #b38d5d; }

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1b2a4a;
}

.cart-emi {
  position: relative;
  background: #F3F3F3;
  border-radius: 10px;
  padding: 18px 14px 14px;
  margin-bottom: 14px;
}
.cart-emi-badge {
  position: absolute;
  top: -9px;
  left: 12px;
  background: #2F9E5B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.cart-emi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-emi-copy {
  font-size: 14px;
  font-weight: 600;
  color: #2D2D2D;
  line-height: 1.35;
}
.cart-emi-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #6B6B6B;
}
.cart-emi-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #C4A071;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cart-emi-btn:hover { background: #b38d5d; }

.cart-checkout {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #C4A071;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  box-sizing: border-box;
}
.cart-checkout:hover { background: #b38d5d; color: #fff; }
.cart-checkout-pay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.95;
}
.cart-checkout-pay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.22);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.cart-checkout .chev { font-size: 18px; margin-left: 2px; }

.cart-view-bag {
  width: 100%;
  height: 48px;
  border: 1.5px solid #2D2D2D;
  border-radius: 999px;
  background: #fff;
  color: #2D2D2D;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.cart-view-bag:hover { background: #FFFCFA; color: #2D2D2D; }

.cart-toast-mini {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #2D2D2D;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10050;
  font-family: Rajdhani, system-ui, sans-serif;
}
.cart-toast-mini.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.side-cart-open { overflow: hidden; }

@media (max-width: 480px) {
  .cart-drawer-panel { width: 100%; }
  .cart-line { grid-template-columns: 72px 1fr; gap: 12px; }
  .cart-line-img { width: 72px; height: 72px; }
}
