/* Cart drawer — matches official Pura Vida slide-out cart */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 1.25rem;
  flex-shrink: 0;
}

.cart-drawer__header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #241f20;
}

.cart-drawer__icon {
  width: 1.5rem;
  height: auto;
  display: block;
}

.cart-drawer__header button {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 0;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.cart-drawer__body::-webkit-scrollbar {
  display: none;
}

/* Shipping message + progress */
.cart-shipping {
  border-top: 1px solid #e5e5e5;
  padding: 1rem;
}

.cart-shipping__text {
  font-size: 0.875rem;
  color: #241f20;
}

.cart-shipping__text b {
  font-weight: 700;
}

.cart-progress {
  margin-top: 0.75rem;
  width: 100%;
  height: 0.5rem;
  background: #e5e5e5;
  border-radius: 9999px;
  overflow: hidden;
}

.cart-progress__bar {
  display: block;
  height: 100%;
  background: #00626d;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Empty state */
.cart-empty {
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100% - 4rem);
}

.cart-empty__title {
  padding: 1rem 1rem 0;
  font-weight: 700;
}

.cart-empty__nav {
  flex: 1;
  overflow-y: auto;
}

.cart-empty__links {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.cart-empty__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background 0.2s, color 0.2s;
}

.cart-empty__link--mint {
  background: #d4f5f0;
  color: #00626d;
}

.cart-empty__link--mint:hover {
  background: #241f20;
  color: #d4f5f0;
}

.cart-empty__link--pink {
  background: #fce4ec;
  color: #c2185b;
}

.cart-empty__link--pink:hover {
  background: #241f20;
  color: #fce4ec;
}

.cart-empty__link--orange {
  background: #fff3e0;
  color: #e65100;
}

.cart-empty__link--orange:hover {
  background: #241f20;
  color: #fff3e0;
}

.cart-empty__link--blue {
  background: #e3f2fd;
  color: #1565c0;
}

.cart-empty__link--blue:hover {
  background: #241f20;
  color: #e3f2fd;
}

.cart-empty__promos {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  scrollbar-width: none;
}

.cart-empty__promos::-webkit-scrollbar {
  display: none;
}

.cart-promo {
  flex: 0 0 83%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-promo__img-wrap {
  position: relative;
}

.cart-promo__img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.cart-promo__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: auto;
}

.cart-promo__body {
  padding: 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-promo__title {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.cart-promo__desc {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 1.5rem;
}

.cart-promo__meta {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.cart-promo__btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.8125rem;
  background: #241f20;
  color: #fff;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cart-promo__btn:hover {
  opacity: 0.85;
}

/* Filled cart */
.cart-filled {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-item__img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  background: #f5f5f5;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.cart-item__title a {
  color: inherit;
  text-decoration: none;
}

.cart-item__title a:hover {
  text-decoration: underline;
}

.cart-item__variant {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.375rem;
}

.cart-item__price {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 9999px;
  overflow: hidden;
}

.cart-qty button {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #241f20;
}

.cart-qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-qty span {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-item__remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.cart-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.875rem;
  background: #241f20;
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cart-checkout-btn:hover {
  opacity: 0.85;
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
