div.almas-single-product-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

div.almas-single-product-action a.almas-archive-btn,
div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button,
div.almas-single-product-action a.almas-view-cart-btn {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 44px;
    font-size: 13px;
    padding: 0 16px;
    color: #fff;
    border-radius: var(--almas-radius-button, 10px);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.almas-single-product-action a.almas-archive-btn,
div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button {
    background: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

@media (hover: hover){
div.almas-single-product-action a.almas-archive-btn:hover,
div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
}

div.almas-single-product-action a.almas-view-cart-btn {
    background: #eab308 !important;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2) !important;
    color: #fff !important;
}

@media (hover: hover){
div.almas-single-product-action a.almas-view-cart-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4) !important;
    background: #ca8a04 !important;
}
}

div.almas-single-product-action a.almas-archive-btn.loading::after,
div.almas-single-product-action a.add_to_cart_button.loading::after {
    content: "" !important;
    position: absolute !important;
    top: calc(50% - 10px) !important;
    left: calc(50% - 10px) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: almas-btn-spin 0.8s linear infinite !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: inherit !important;
    background: transparent !important;
}

div.almas-single-product-action a.almas-archive-btn.loading,
div.almas-single-product-action a.add_to_cart_button.loading {
    opacity: 0.9 !important;
    pointer-events: none !important;
    color: transparent !important;
}

div.almas-single-product-action a.almas-archive-btn.added::after,
div.almas-single-product-action a.add_to_cart_button.added::after {
    content: none !important;
    display: none !important;
}

div.almas-single-product-action .added_to_cart { display: none; }

@keyframes almas-btn-spin { to { transform: rotate(360deg); } }

body.dark-mode div.almas-single-product-action a.almas-archive-btn,
body.dark-mode div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button { background: #4f46e5; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2); }
@media (hover: hover){
body.dark-mode div.almas-single-product-action a.almas-archive-btn:hover,
body.dark-mode div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button:hover { box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4); }
}
body.dark-mode div.almas-single-product-action a.almas-view-cart-btn { background: #ca8a04 !important; box-shadow: 0 4px 15px rgba(202, 138, 4, 0.2) !important; }
@media (hover: hover){
body.dark-mode div.almas-single-product-action a.almas-view-cart-btn:hover { box-shadow: 0 8px 20px rgba(202, 138, 4, 0.4) !important; background: #a16207 !important; }
}

@media (max-width: 768px) {
    div.almas-single-product-action a.almas-archive-btn,
    div.almas-single-product-action a.almas-archive-btn.button.add_to_cart_button,
    div.almas-single-product-action a.almas-view-cart-btn {
        height: 40px;
        font-size: 12px;
        padding: 0 12px;
        border-radius: var(--almas-radius-button, 8px);
    }
}
