.top-form-minicart { position: relative; } .wrapp-minicart { position: absolute; right: 0; top: 100%; width: 320px; background: #fff; border: 1px solid #e1e1e1; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 9999; display: none; } .top-form-minicart:hover .wrapp-minicart { display: block; } .minicart-content { max-height: 300px; overflow-y: auto; padding: 10px 0; } .minicart-content li { display: flex; align-items: flex-start; margin-bottom: 10px; } .product-image img { max-width: 60px; height: auto; margin-right: 10px; } .detail-item { flex: 1; } .star { display: inline-block; width: 65px; height: 13px; background: url('/path/to/star-background.png') repeat-x; position: relative; } .star span { display: block; height: 100%; background: url('/path/to/star-foreground.png') repeat-x; position: absolute; top: 0; left: 0; } .cart-links a { display: inline-block; margin: 5px 0; padding: 6px 12px; background: #0073aa; color: #fff; text-decoration: none; border-radius: 3px; transition: background 0.3s; } .cart-links a:hover { background: #005d8f; }