/**
 * Sticky Product Bar Styles
 * Sticky CTA bar that appears when user scrolls past buy-box
 *
 * @package WeGrowMagic
 */

.wgm-sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 94px;
    padding: 24px 40px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: none !important;
    align-items: center;
    justify-content: space-between;
}

.wgm-sticky-product-bar.active {
    display: none !important;
}

.wgm-sticky-product-bar__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.wgm-sticky-product-bar__product {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wgm-sticky-product-bar__image {
    width: 62px;
    height: 62px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.wgm-sticky-product-bar__title {
    color: #2E3F56;
    font-size: 24px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wgm-sticky-product-bar__actions {
    flex-shrink: 0;
}

.wgm-sticky-product-bar__form {
    margin: 0;
    padding: 0;
}

.wgm-sticky-product-bar__add-to-cart {
    padding: 16px 32px;
    background: #12679C;
    border-radius: 4px;
    border: none;
    color: white;
    font-size: 13.90px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0.70px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.wgm-sticky-product-bar__add-to-cart:hover {
    background: #0d5a7a;
}

.wgm-sticky-product-bar__add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .wgm-sticky-product-bar {
        padding: 16px 20px;
        height: auto;
        min-height: 80px;
    }
    
    .wgm-sticky-product-bar__inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .wgm-sticky-product-bar__product {
        width: 100%;
    }
    
    .wgm-sticky-product-bar__title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .wgm-sticky-product-bar__add-to-cart {
        width: 100%;
        padding: 14px 24px;
    }
}

