.new-minicart {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 10010;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.new-minicart.active {
    right: 0;
}

.new-minicart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.new-minicart-close {
    font-size: 2.5rem;
    cursor: pointer;
}

.new-minicart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 10009;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.new-minicart.active ~ .new-minicart-overlay {
    opacity: 1;
    pointer-events: auto;
}

.block-minicart {
    display: none !important;
}

.minicart-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.minicart-sidebar-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0 16px 0;
}
.minicart-sidebar-item:hover {
    background: #fafbfc;
    transition: background 0.2s;
}
.minicart-sidebar-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-right: 16px;
    background: #fff;
}
.minicart-sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.minicart-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.minicart-sidebar-price {
    color: #e67e22;
    font-size: 14px;
    font-weight: 500;
}
.minicart-sidebar-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.minicart-sidebar-btn {
    background: #f5f6fa;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.minicart-sidebar-btn:hover {
    background: #e0e7ef;
    border-color: #a0aec0;
    color: #222;
}
.minicart-sidebar-qty-input {
    width: 44px;
    height: 28px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    margin: 0 2px;
    outline: none;
    transition: border 0.2s;
}
.minicart-sidebar-qty-input:focus {
    border-color: #e67e22;
}
.minicart-sidebar-remove-form {
    margin-left: 12px;
}
.minicart-sidebar-remove {
    color: #fff;
    background: none !important;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(248,87,166,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.minicart-sidebar-remove:hover {
    background: none !important;
    box-shadow: 0 4px 16px rgba(248,87,166,0.16);
}
.minicart-sidebar-btn::before, .minicart-sidebar-btn::after,
.minicart-sidebar-remove::before, .minicart-sidebar-remove::after {
    display: none !important;
}

@media (max-width: 600px) {
    .new-minicart {
        width: 100vw !important;
        height: 100vh !important;
        right: -100vw;
        max-width: 100vw;
        min-width: 0;
        border-radius: 0;
    }
    .new-minicart.active {
        right: 0;
    }
    .minicart-sidebar-footer {
        padding-bottom: 24px !important;
    }
}