/* Source-level replacement for Ecomus Add to Cart button */
.ecomus-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 4px;
    margin-top: 14px;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border: 0;
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ecomus-qty-stepper .qty-add,
.ecomus-qty-stepper .qty-action {
    appearance: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.ecomus-qty-stepper .qty-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
    width: 100%;
    font-weight: 600;
    text-transform: capitalize;
    color: #5a5328;
    transition: all 0.25s ease;
}

.ecomus-qty-stepper .qty-add__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #0E1A35;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 24px;
}

.ecomus-qty-stepper .qty-add:hover,
.ecomus-qty-stepper .qty-add:focus {
    background: #5a5328;
    color: #FFFFFF;
}

.ecomus-qty-stepper .qty-add:hover .qty-add__icon,
.ecomus-qty-stepper .qty-add:focus .qty-add__icon {
    background: #FFFFFF;
    color: #5a5328;
}

.ecomus-qty-stepper .qty-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #F4F4F4;
    color: #0E1A35;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.2s ease;
    flex: 0 0 34px;
}

.ecomus-qty-stepper .qty-action:hover,
.ecomus-qty-stepper .qty-action:focus {
    background: #5a5328;
    color: #FFFFFF;
}

.ecomus-qty-stepper .qty-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    font-weight: 700;
    color: #0E1A35;
    text-align: center;
}

.ecomus-qty-stepper.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* Remove Ecomus button visuals if any classes leak onto our markup */
.ecomus-qty-stepper.ecomus-button,
.ecomus-qty-stepper.product-loop-button,
.ecomus-qty-stepper.product-loop-button-atc {
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .ecomus-qty-stepper {
        min-height: 44px;
        margin-top: 12px;
    }

    .ecomus-qty-stepper .qty-add {
        padding: 0 10px;
        gap: 8px;
    }

    .ecomus-qty-stepper .qty-add__label {
        font-size: 14px;
        white-space: nowrap;
    }

    .ecomus-qty-stepper .qty-action {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}
