Meta Description" name="description" />
<div class="custom-action-bar-container">
<div class="custom-action-bar">
<div class="action-item store-section">
<a href="/">
<img src="https://img.icons8.com/color/48/shop.png" alt="Store">
<span>Store</span>
</a>
</div>
<div class="action-item buy-now-section">
<button type="submit" name="add" class="custom-btn" onclick="document.querySelector('form[action$=\"/cart/add\"]').submit();">Buy Now</button>
</div>
<div class="action-item add-cart-section">
<button type="submit" name="add" class="custom-btn" onclick="document.querySelector('form[action$=\"/cart/add\"]').submit();">Add to Cart</button>
</div>
</div>
</div>
<style>
.custom-action-bar-container {
margin: 20px 0;
width: 100%;
}
.custom-action-bar {
display: flex;
height: 55px;
align-items: stretch;
background: #fff;
overflow: hidden;
}
.action-item {
display: flex;
align-items: center;
justify-content: center;
}
.store-section {
flex: 0.8;
border: 1px solid #eee;
}
.store-section a {
text-decoration: none;
color: #666;
font-size: 11px;
text-align: center;
line-height: 1.2;
}
.store-section img { width: 22px; display: block; margin: 0 auto 2px; }
.buy-now-section {
flex: 2;
background-color: #34c3eb;
clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
margin-left: -15px;
z-index: 1;
}
.add-cart-section {
flex: 2;
background: linear-gradient(90deg, #ff9100 0%, #ff6600 100%);
clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
margin-left: -15px;
z-index: 2;
}
.custom-btn {
width: 100%;
height: 100%;
background: none;
border: none;
color: white;
font-weight: bold;
font-size: 16px;
cursor: pointer;
padding-left: 15px;
}
</style>2
2
3KB
3KB
64.0ms
104.0ms
392.0ms