/* ===== Sticky Add-to-Cart Bar ===== */
.af-sticky-bar{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #fff;
    border-top: 1px solid #e9edf3;
    box-shadow: 0 -6px 28px rgba(0,0,0,.07);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.af-sticky-bar.is-visible{
    transform: translateY(0);
}

/* Inner layout */
.af-sticky-bar__inner{
    max-width: 1486px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Row wrappers: transparent on desktop (flex children) */
.af-sticky-bar__row1,
.af-sticky-bar__actions{
    display: contents;
}

/* Thumbnail */
.af-sticky-bar__thumb{
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f8fc;
    border: 1px solid #eee;
}

.af-sticky-bar__thumb img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product info */
.af-sticky-bar__info{
    flex: 1;
    min-width: 0;
}

.af-sticky-bar__title{
    font-size: 14px;
    font-weight: 700;
    color: #0b1b3a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.af-sticky-bar__usps{
    display: flex;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.af-sticky-bar__usp{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.af-sticky-bar__usp::before{
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border-radius: 50%;
    background-color: #11c311;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}

/* Price */
.af-sticky-bar__price{
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.af-sticky-bar__price-amount{
    font-size: 24px;
    font-weight: 950;
    color: #0b1b3a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.af-sticky-bar__price-tax{
    display: block;
    font-size: 10px;
    color: #888;
    text-decoration: underline;
    margin-top: 1px;
}

/* Qty selector */
.af-sticky-bar__qty{
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 38px 44px 38px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
}

.af-sticky-bar__qty-btn{
    appearance: none;
    border: 0;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
}

.af-sticky-bar__qty-btn:hover{
    background: #546fe8;
    color: #fff;
}

.af-sticky-bar__qty-input{
    width: 100%;
    height: 100%;
    border: 0;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-weight: 900;
    font-size: 15px;
    background: #fff;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.af-sticky-bar__qty-input::-webkit-outer-spin-button,
.af-sticky-bar__qty-input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart button */
.af-sticky-bar__atc{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 32px;
    border-radius: 12px;
    background: #11c311;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .15s, transform .15s;
}

.af-sticky-bar__atc:hover{
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.af-sticky-bar__atc:disabled{
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.af-sticky-bar__atc svg{
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Offertelijst knop — icon only, fixed size */
.af-sticky-bar__quote{
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    padding: 0;
    overflow: hidden;
}

.af-sticky-bar__quote:hover{
    border-color: #546fe8;
    background: #f7f8fc;
}

.af-sticky-bar__quote svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #333;
    stroke-width: 1.5;
    flex: 0 0 20px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1100px){
    .af-sticky-bar__usps{
        display: none;
    }
    .af-sticky-bar__inner{
        gap: 16px;
        padding: 12px 20px;
    }
}

/* Mobile */
@media (max-width: 768px){
    .af-sticky-bar__inner{
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 0;
    }

    /* Row wrappers become real on mobile */
    .af-sticky-bar__row1{
        display: flex !important;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 14px;
        border-bottom: 1px solid #f0f0f0;
    }

    .af-sticky-bar__thumb{
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .af-sticky-bar__info{
        flex: 1;
        min-width: 0;
    }

    .af-sticky-bar__title{
        font-size: 12px;
        line-height: 1.2;
    }

    .af-sticky-bar__price{
        flex: 0 0 auto;
    }

    .af-sticky-bar__price-amount{
        font-size: 17px;
    }

    .af-sticky-bar__price-tax{
        font-size: 9px;
    }

    .af-sticky-bar__usps{
        display: none;
    }

    .af-sticky-bar__actions{
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 14px;
    }

    .af-sticky-bar__qty{
        flex: 0 0 auto;
        grid-template-columns: 34px 36px 34px;
        height: 40px;
        border-radius: 10px;
    }

    .af-sticky-bar__qty-btn{
        font-size: 16px;
    }

    .af-sticky-bar__qty-input{
        font-size: 14px;
    }

    .af-sticky-bar__atc{
        flex: 1;
        height: 40px;
        font-size: 13px;
        padding: 0 14px;
        border-radius: 10px;
        gap: 8px;
    }

    .af-sticky-bar__atc svg{
        width: 16px;
        height: 16px;
    }

    .af-sticky-bar__quote{
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        border-radius: 10px;
    }

    .af-sticky-bar__quote svg{
        width: 18px;
        height: 18px;
    }
}

/* Very small */
@media (max-width: 380px){
    .af-sticky-bar__thumb{
        display: none;
    }
}
