#msMiniCart {
    position: relative;
    cursor: pointer;
}

.mini-cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    background: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 1000;
}

#msMiniCart.open .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-products {
    max-height: 360px;
    overflow-y: auto;
}

.mini-cart-products::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-products::-webkit-scrollbar-thumb {
    background: #d5d5d5;
}

.mini-cart-products::-webkit-scrollbar-thumb:hover {
    background: #3781ce;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f3f3;
    transition: background .2s;
}

.mini-cart-item:hover {
    background: #fafafa;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-cart-info {
    flex: 1;
    min-width: 0;
}

.mini-cart-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.mini-cart-price {
    font-size: 13px;
    font-weight: 600;
    color: #3781ce;
}

.ms2_remove {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
}

.ms2_remove:hover {
    background: #3781ce;
    border-color: #3781ce;
    color: #fff;
}

.mini-cart-footer {
    padding: 18px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.mini-cart-buttons a,
.mini-cart-buttons button {
    flex: 1;
    height: 42px;
    border: 1px solid #3781ce;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    padding: 0 12px;
}

.mini-cart-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #3781ce;
    color: #fff;
}

.mini-cart-buttons a:hover {
    background: #2d6eb0;
    border-color: #2d6eb0;
}

.ms2_cart_clear {
    background: #fff;
    color: #3781ce;
}

.ms2_cart_clear:hover {
    background: #3781ce;
    color: #fff;
}

.mini-cart-empty {
    padding: 35px 20px;
    text-align: center;
    color: #777;
    font-size: 15px;
}