.my-mini-cart {
  position: relative;
  display: inline-block;
}

.my-mini-cart__toggle {
  background: transparent;
  border: none;
  cursor: pointer;
}

.my-mini-cart__content {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: 12px;
  z-index: 9999;
}

.my-mini-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.my-mini-cart__item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #ECF2F5;
}

.my-mini-cart__thumb img {
  max-width: 50px;
  height: auto;
  display: block;
}

.my-mini-cart__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* === FIX CART LAYOUT WITHOUT CHANGING HTML === */

.my-mini-cart__content {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

/* When active/open */
.my-mini-cart__content.active {
  transform: translateX(0);
}

.mini-your-cart span {
  font-family: "Poppins", Outfit, sans-serif;
  font-weight: 600;
  font-size: 20px;
  ;
  line-height: 30px;

}

button.my-mini-cart-close {
  text-transform: capitalize;
  font-size: 30px;
  font-weight: 300;
  padding: 0;
  display: flex;
  align-items: center;
  background: transparent;
  height: 21px;
}

/* Create visual "Your cart" title from pseudo-element */

.mini-your-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 20px 0;
}

/* === LIST AT THE TOP === */
.my-mini-cart__list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  flex: 0 0 auto;
  /* keep at top */
  border-bottom: none;
}

/* === EACH ITEM === */
.my-mini-cart__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0 0 0;
  margin-bottom: 15px;
}

.my-mini-cart__thumb img {
  border-radius: 10px;
  object-fit: cover;
  min-width: 50px;
  min-height: 50px;
}

.my-mini-cart__meta {
  flex: 1;
  order: 1;
}

.my-mini-cart__thumb {
  order: 1;
  align-self: start;
}

.my-mini-cart__name {
  font-size: 16px;
  font-weight: 500;
  color: #000a1a;
  margin-bottom: 0;
  line-height: 26px;
  margin-bottom: 5px;
}

.my-mini-cart__qty-price {
  font-size: 16px;
  color: #0A5ADB;
  line-height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  order: 4;
  font-weight: 600;
}

form.my-mini-cart__checkout-form {
  width: 100%;
}

.my-mini-cart a.my-mini-cart__remove img {
    transition: 0.3s all;
}
.my-mini-cart a.my-mini-cart__remove img:hover {
  filter: brightness(0) saturate(100%) invert(11%) sepia(89%) saturate(7008%) hue-rotate(359deg) brightness(101%) contrast(124%);
}

.my-mini-cart__checkout-form button {
  width: 100%;
  display: flex;
  justify-content: center;

}
.my-mini-cart__subtotal{
  color: #000a1a;
  font-size: 16px;
  line-height: 26px;
}

span.my-mini-cart__qty {
  color: #6B7280;
  display: none;
}

.my-mini-cart__category {
  line-height: 1;
}

.my-mini-cart__category a {
  color: #6B7280;
  font-size: 14px;
  line-height: 24px;
}

.my-mini-cart__remove {
  color: #999;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
  order: 1;
}

.my-mini-cart__remove:hover {
  color: #ff4d4d;
}

.my-mini-cart__subtotal-amount {
  color: #0a5adb;
}

/* === FOOTER STAYS AT BOTTOM === */
.my-mini-cart__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ECF2F5;
}

.my-mini-cart__subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 30px;
}

.my-mini-cart__actions .my-mini-cart__checkout {
  display: inline-block;
  width: 100%;
  background: #0a5adb !important;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.my-mini-cart__actions .my-mini-cart__checkout:hover {
  background: #0846AA !important;
}


/* === BACKDROP OVERLAY === */
.my-mini-cart__backdrop {
  content: "";
  position: fixed;
  inset: 0;
  background: #0000001A;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
}

.my-mini-cart__backdrop.active {
  opacity: 1;
  visibility: visible;
}

.my-mini-cart__empty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.my-mini-cart__empty p {
    color: #6B7280;
    
}

.my-mini-cart__empty .btn-pay-now {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
  width: 100%;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.my-mini-cart a.my-mini-cart__remove:focus-visible {
    outline: none;
}

@media (max-width:1024px) {
  .mini-your-cart span {
    font-size: 18px;
    line-height: 28px;
  }

  .my-mini-cart-close img {
    width: 15px;
  }
}

@media (max-width:767px) {
  .my-mini-cart__subtotal {
    margin-bottom: 20px;
  }

  .my-mini-cart__qty-price {
    width: 100%;
  }

  .my-mini-cart__item {
    flex-wrap: wrap;
    border-radius: 12px;
    gap: 20px;
  }

  .my-mini-cart__qty-price,
  .my-mini-cart__name,
  .my-mini-cart__subtotal {
    font-size: 16px;
  }
}

@media (max-width:500px) {
  .my-mini-cart__content {
    width: 370px;
  }
}

@media (max-width:390px) {
  .my-mini-cart__content {
    width: 300px;
  }
}