#custom-minicart {
  position: fixed;
  top: 120px;
  right: 100px;
  width: 0;
  height: 0;
  padding-top: 0;
  overflow: hidden;
  background-color: rgba(247, 246, 245, 0.99);
  z-index: 9999;
  transform-origin: top right;
  transition: width 0.25s ease, height 0.25s ease, padding 0.25s ease;
}

.minicart-products {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 0;
  max-height: 40vh;
}

#custom-minicart.active {
  width: 320px;
  height: auto;
}

@media (max-width: 1024px) {
  #custom-minicart {
    top: 71px;
    right: 50px;
  }
}

@media (max-width: 768px) {
  #custom-minicart {
    top: 71px;
    right: 20px;
  }

  #custom-minicart.active {
    width: 320px;
  }
}

#custom-minicart .cart-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
  padding: 0;
  height: 100%;
}

#custom-minicart .cart-item img {
  width: 45%;
  object-fit: cover;
  margin-right: 15px;
}

#custom-minicart .cart-item-info {
  width: 55%;
  padding: 10px 15px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
}

#custom-minicart .cart-item-info h4 {
  font-family: "ku uniforma", sans-serif;
  font-weight: 500;
  text-transform: lowercase;
  margin: 0;
  font-size: 14px;
  color: #5d5C59;
}

#custom-minicart .subtitel-size-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 20px 0;
  line-height: 1;
}




#custom-minicart .product-size-cart,
#custom-minicart .qty-controls button,
#custom-minicart .qty-controls span,
#custom-minicart .remove-btn,
#custom-minicart .product-price {
  font-family: "ku uniforma", sans-serif;
  font-weight: 200;
  font-size: 10px;
  color: #848277;
  text-transform: lowercase;
  line-height: 1;
  margin: 0;
  padding: 0;
}

  #custom-minicart .subtotal {
    font-family: "ku uniforma", sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 12px;
    margin-top: 40px;
    color: #848277;
  }

  #custom-minicart .subtotal .label,
  #custom-minicart .subtotal .amount {
    font-weight: 600;
    font-size: 12px;
    color: #848277;
  }

  #custom-minicart .subtitel-size-wrap small {
    font-family: "ku uniforma", sans-serif;
    font-weight: 200;
    text-transform: lowercase;
    font-size: 14px !important;
    line-height: 1;
    margin: 0;
    padding: 0;
  }

#custom-minicart .qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

#custom-minicart .qty-controls button {
  cursor: pointer;
  background: none;
  border: none;
}

#custom-minicart .remove-btn {
  text-decoration: underline;
  cursor: pointer;
}

#custom-minicart .item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

#custom-minicart .subtotal {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  font-size: 12px;
  margin-top: 40px;
}

.checkout-btn {
  background-color: rgb(199, 159, 120);
  color: white;
  font-weight: 400;
  font-family: "ku uniforma", sans-serif;
  font-size: 12px;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  border: none;
}

.checkout-btn:hover {
  color: white;
}

.open-minicart {
  cursor: pointer;
  pointer-events: auto;
}
.minicart-products {
  position: relative; 
}

.minicart-products::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(247,246,245,0.99));
  pointer-events: none;
  display: block;
}

