/* ===== Cart Page Styles (Geist font + border 2px, radius 12px) ===== */
.idl-cart-page {
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #000;
  font-size: 1rem;
  line-height: 1.5rem;
}

.idl-cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Item row */
.idl-cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 2px solid #BEBEBE;
  margin-bottom: 1rem;
}

.idl-cart-thumb {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 6px !important;
}

.idl-cart-info {
  flex: 1;
}

.idl-cart-title {
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

/* Pills for size/color */
.idl-cart-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.idl-cart-meta .idl-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 2px solid #BEBEBE;
  border-radius: 6px;
  font-size: 0.75rem; /* 14px */
  font-weight: 500;
  color: #000;
  background: #fff;
  font-family: Geist, sans-serif;
}


.idl-cart-price {
  margin-top: .25rem;
  font-weight: 500;
}

/* Actions */
.idl-cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.idl-qty-control {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.idl-qty-minus,
.idl-qty-plus {
  width: 40px;
  height: 40px;
  border: 2px solid #BEBEBE;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  font-family: inherit;
}

.idl-remove {
  border: none;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idl-remove .idl-trash-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Summary */
.idl-cart-summary {
  border: 2px solid #BEBEBE;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafafa;
}

.idl-cart-summary h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.idl-cart-summary p {
  display: flex;
  justify-content: space-between;
  margin: .25rem 0;
}

.idl-total {
  font-weight: 700;
  margin-top: 1rem;
}

.idl-checkout {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

/* Modal overlay */
.idl-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal box */
.idl-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  border: 2px solid #BEBEBE;
  font-family: Geist, sans-serif;
}

.idl-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.idl-modal-actions button {
  flex: 1;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid #BEBEBE;
  cursor: pointer;
  font-weight: 600;
}

#idl-confirm-remove {
  background: #000;
  color: #fff;
}

#idl-cancel-remove {
  background: #fff;
  color: #000;
}


/* Animation keyframes */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
.idl-cart-products {
  animation: fadeInLeft 2s ease-out;
}

.idl-cart-summary {
  animation: fadeInRight 2s ease-out;
}

.idl-empty-cart-global {
  display: flex;
  justify-content: center;
  height: 50vh;
  text-align: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  font-family: "Geist", sans-serif;
}

