/*=== MT MINI CART ===*/

/* Trigger + badge */
.mtmc-trigger {
  position: relative;
  display: inline-flex;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.mtmc-icon {
  width: 34px;
  height: auto;
}

.mtmc-count {
  position: absolute;
  right: -8px;
  bottom: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 50%;
  background-color: #ef4140;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.mtmc-count.is-zero {
  display: none;
}

/* Overlay */
.mtmc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.mtmc-open .mtmc-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.mtmc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 92vw;
  height: 100dvh;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

body.mtmc-open .mtmc-drawer {
  transform: translateX(0);
}

.mtmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 4px solid #000;
}

.mtmc-title {
  margin: 0;
  font-family: "Climate Crisis", "Roboto", sans-serif;
  font-size: 20px;
  color: #000;
}

.mtmc-close {
  padding: 0;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #000;
  cursor: pointer;
}

/* Items */
.mtmc-body {
  flex: 1;
  overflow-y: auto;
  padding: 5px 25px;
}

.mtmc-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtmc-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #efefef;
}

.mtmc-item-img {
  flex: 0 0 64px;
}

.mtmc-item-img img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #efefef;
}

.mtmc-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mtmc-item-title {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.mtmc-item-qty {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #000;
}

.mtmc-empty {
  padding: 30px 0;
  font-family: "Roboto", sans-serif;
  text-align: center;
  color: #000;
}

/* Footer */
.mtmc-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 25px;
  border-top: 4px solid #000;
}

.mtmc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.mtmc-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mtmc-btn:hover {
  opacity: 0.75;
}

.mtmc-btn--outline {
  background: none;
  border: 1px solid #000;
  color: #000;
}

.mtmc-btn--solid {
  background-color: #000;
  border: 1px solid #000;
  color: #fff;
}
