/* HCL desktop PDP sticky purchase bar — single owner. */

#hcl-pdp-sticky,
#hcl-pdp-sticky * {
    box-sizing:border-box;
}

#hcl-pdp-sticky {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:9998;
    background:#fff;
    border-top:1px solid #D3DAD3;
    box-shadow:0 -8px 28px rgba(24,63,49,.10);
    font-family:Montserrat,system-ui,sans-serif;
    transform:translateY(110%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        transform .16s ease,
        opacity .16s ease,
        visibility .16s;
}

#hcl-pdp-sticky.is-visible {
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

#hcl-pdp-sticky .hcl-sticky-shell {
    display:grid;
    grid-template-columns:
        minmax(0,1fr) 130px 190px 145px;
    align-items:center;
    gap:14px;
    max-width:1320px;
    min-height:94px;
    margin:auto;
    padding:12px 20px;
}

#hcl-pdp-sticky .hcl-sticky-product {
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
}

#hcl-pdp-sticky .hcl-sticky-img {
    flex:0 0 64px;
    width:64px;
    height:64px;
    padding:4px;
    object-fit:contain;
    border:1px solid #D3DAD3;
    border-radius:10px;
    background:#fff;
}

#hcl-pdp-sticky .hcl-sticky-meta {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    min-width:0;
}

#hcl-pdp-sticky .hcl-sticky-title {
    color:#183F31;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

#hcl-pdp-sticky .hcl-sticky-size {
    color:#587264;
    font-size:12px;
    font-weight:600;
    line-height:1.2;
}

#hcl-pdp-sticky .hcl-sticky-prices {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px 9px;
}

#hcl-pdp-sticky .hcl-sticky-price {
    color:#183F31;
    font-size:20px;
    font-weight:800;
}

#hcl-pdp-sticky .hcl-sticky-old {
    color:#758078;
    font-size:14px;
    font-weight:600;
    text-decoration:line-through;
}

#hcl-pdp-sticky .hcl-sticky-off {
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:4px 8px;
    border-radius:5px;
    background:#2F6B3D;
    color:#fff;
    font-size:12px;
    font-weight:800;
}

#hcl-pdp-sticky [hidden] {
    display:none!important;
}

#hcl-pdp-sticky .hcl-sticky-qty {
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:46px;
    padding:3px;
    border:1px solid #D3DAD3;
    border-radius:12px;
}

#hcl-pdp-sticky .hcl-sticky-step {
    flex:0 0 36px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    padding:0;
    background:transparent;
    color:#183F31;
    font:700 20px/1 Montserrat,system-ui,sans-serif;
    cursor:pointer;
}

#hcl-pdp-sticky .hcl-sticky-step:disabled {
    opacity:.35;
    cursor:default;
}

#hcl-pdp-sticky .hcl-sticky-value {
    flex:1;
    text-align:center;
    color:#183F31;
    font-size:17px;
    font-weight:700;
}

#hcl-pdp-sticky .hcl-sticky-btn {
    width:100%;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
    padding:0 12px;
    border-radius:12px;
    font:700 14px/1.2 Montserrat,system-ui,sans-serif;
    cursor:pointer;
}

#hcl-pdp-sticky .hcl-sticky-cart {
    background:#2F6B3D;
    color:#fff;
    border:1px solid #2F6B3D;
    font-weight:600;
}

#hcl-pdp-sticky .hcl-sticky-cart:hover {
    background:#183F31;
}

#hcl-pdp-sticky .hcl-sticky-cart:disabled {
    opacity:.5;
    cursor:not-allowed;
}

#hcl-pdp-sticky .hcl-sticky-buy {
    background:#fff;
    color:#183F31;
    border:1px solid #2F6B3D;
}

#hcl-pdp-sticky .hcl-sticky-buy:disabled {
    opacity:.45;
    cursor:not-allowed;
}

#hcl-pdp-sticky button:focus-visible {
    outline:3px solid #C9963D;
    outline-offset:2px;
}

/* Mobile/tablet: compact one-row controls; desktop unchanged. */
@media(max-width:1199px) {
    #hcl-pdp-sticky .hcl-sticky-product {
        display:none!important;
    }

    #hcl-pdp-sticky .hcl-sticky-shell {
        grid-template-columns:78px minmax(0,1fr) minmax(0,1fr);
        min-height:0;
        gap:6px;
        padding:6px max(8px, env(safe-area-inset-right))
            calc(6px + env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
    }

    #hcl-pdp-sticky .hcl-sticky-qty {
        width:78px;
        min-width:78px;
        height:44px;
        padding:1px 2px;
        border-radius:6px;
    }

    #hcl-pdp-sticky .hcl-sticky-step {
        flex:0 0 24px;
        width:24px;
        height:40px;
        font-size:17px;
    }

    #hcl-pdp-sticky .hcl-sticky-value {
        font-size:14px;
    }

    #hcl-pdp-sticky .hcl-sticky-btn {
        height:44px;
        padding:0 3px;
        border-radius:6px;
        font-size:13px;
        white-space:nowrap;
    }
}

/* Preserve existing desktop fine-pointer eligibility. */
@media(min-width:1200px) and (pointer:coarse) {
    #hcl-pdp-sticky {
        display:none!important;
    }
}

@media(min-width:1200px) and (max-width:1350px) {
    #hcl-pdp-sticky .hcl-sticky-shell {
        grid-template-columns:
            minmax(0,1fr) 110px 165px 130px;
        gap:10px;
    }

    #hcl-pdp-sticky .hcl-sticky-price {
        font-size:18px;
    }
}

@media(prefers-reduced-motion:reduce) {
    #hcl-pdp-sticky {
        transition:none;
    }
}
