/* mini car */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* semi-transparent black */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 1000;
}
.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mini-cart-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: 418px;
  height: 100vh;
  min-height: 100%;
  background: var(--white1);
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.2s ease, width 0.4s ease;
  overflow: auto;
  scrollbar-width: none;
  z-index: 1000;
}

.mini-cart-wrapper.open {
  transform: translateX(0);
}

.mini-cart-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 32px 16px 24px;
}
/* upper part */
.mini-cart-upper-part {
    display: flex;
    align-items: center;
    gap: 13px;
    justify-content: space-between;
    margin-bottom: 24px;
}
.mini-cart-upper-part .body1 {
    display: flex;
    align-items: center;
    gap: 13px;
}
.mini-cart-upper-part img,
.mini-cart-upper-part picture {
    width: 22px;
    height: 22px;
    transition: width 0.4s ease, height 0.4s ease;
}
/* close btn */
.mini-cart-close {
    border: none;
    background: none;
    color: var(--black1);
    transition: color 0.4s ease;
}
.mini-cart-close:hover {
    color: var(--grey1);
    cursor: pointer;
}
/* Progress bar */
.mini-cart-headline {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    position: relative;
}
.mini-cart-headline::before {
    content: "";
    position: absolute;
    height: 100%;
    width: calc(100% + 32px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand1);
    z-index: -1;
}
.free-shipping-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    transition: gap 0.4s ease;
}
.progress-bar-bg {
    width: 100%;
    height: 4px;
    border-radius: 50px;
    background: var(--white1);
    overflow: hidden;
}
.progress-bar-fill {
    background: var(--black1);   
    height: 4px; 
}
.free-shipping-progress .button3 {
    color: var(--black1);
    width: max-content;
    border-bottom: 1px solid var(--black1);
}
/* cart items/item */
.my-mini-cart-items {
    display: flex;
    flex-direction: column;
}
.my-cart-item {
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.my-cart-item img,
.my-cart-item picture {
    border-radius: 4px;
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    object-fit: contain;
    object-position: center;
    transition: width 0.4s ease, height 0.4s ease;
}
.my-cart-item:not(:last-child) {
    border-bottom: 1px solid var(--brand1);
}
.my-cart-item .my-cart-item-info {
    display: flex;
    flex-direction: column;
}
.my-cart-item .my-cart-item-info a {
    color: var(--black1);
    margin-bottom: 8px;
}
.my-cart-item .my-cart-item-info .quantity {
    color: var(--grey1);
    margin-bottom: 10px;
}
/* bottom part */ 
.my-cart-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.my-cart-footer .black-btn {
    gap: 12px;
}
.my-cart-footer .black-btn svg {
    height: 18px;
    width: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .mini-cart-wrapper {
        width: 100%;
        box-shadow: none;
    }
    .free-shipping-progress {
        gap: 16px;
    }
    .mini-cart-upper-part img,
    .mini-cart-upper-part picture {
        width: 20px;
        height: 20px;
    }
    .my-cart-item img,
    .my-cart-item picture {
        min-width: 100px;
        min-height: 100px;
        width: 100px;
        height: 100px;
    }
}