#almas-sticky-add-to-cart * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    line-height: normal;
}

#almas-sticky-add-to-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 430px;
    height: 60px;
    border-radius: var(--almas-radius-element, 20px);
    padding: 0 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px) scale(0.95) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    will-change: transform, opacity;
    contain: layout paint;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.dark-mode #almas-sticky-add-to-cart {
    background: rgba(20, 25, 35, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

#almas-sticky-add-to-cart.almas-show-sticky {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1) translateZ(0);
    pointer-events: auto;
}

#almas-sticky-add-to-cart .added_to_cart {
    display: none !important;
}

.almas-sticky-cart-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.almas-sticky-cart-info img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: var(--almas-radius-image, 10px) !important;
    object-fit: cover !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    flex-shrink: 0;
    background-color: transparent !important;
    display: block;
    margin: auto 0 !important;
}

.almas-s-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.almas-s-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.almas-s-price {
    font-size: 13px;
    font-weight: 800;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}

.almas-s-price ins { text-decoration: none !important; }
.almas-s-price del { font-size: 10px; color: #94a3b8; font-weight: 500; }
.almas-s-price .woocommerce-Price-currencySymbol { font-size: 10px; margin-right: 2px; }

.almas-sticky-btn {
    position: relative;
    z-index: 1;
    background: #3b82f6 !important;
    color: #fff !important;
    border-radius: var(--almas-radius-button, 12px) !important;
    padding: 0 16px !important;
    height: 38px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    border: none !important;
    will-change: transform;
}

.almas-sticky-btn:active { transform: scale(0.95); opacity: 0.9; }
.almas-sticky-btn.almas-view-cart { background: #10b981 !important; }

.almas-sticky-btn.loading {
    color: transparent !important;
    pointer-events: none;
}

.almas-sticky-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: almas-spin 0.8s linear infinite;
}

@keyframes almas-spin {
    to { transform: rotate(360deg); }
}

body[style*="overflow: hidden"] #almas-sticky-add-to-cart {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: translateY(60px) scale(0.95) translateZ(0) !important;
}

@media (min-width: 1025px) {
    #almas-sticky-add-to-cart {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        height: 70px;
        padding: 0 25px !important;
        border-radius: var(--almas-radius-element, 24px) var(--almas-radius-element, 24px) 0 0;
        transform: translateY(70px) scale(1) translateZ(0);
    }
    #almas-sticky-add-to-cart.almas-show-sticky {
        transform: translateY(0) scale(1) translateZ(0);
    }
    .almas-s-title { font-size: 14px; }
    .almas-s-price { font-size: 14px; }
    .almas-sticky-btn { height: 42px !important; font-size: 13.5px !important; padding: 0 28px !important; }
}

body.dark-mode .almas-s-title { color: #f3f4f6 !important; }