/* === PG-StickyAddToCartBar === */

/* Sticky Add to Cart - Codér */
#coder-sticky-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#coder-sticky-bar.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.plugin-fixed-header__container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 15px; 
    height: 64px;
}

/* Nastavení pro PC */
@media (min-width: 768px) {
    #coder-sticky-bar { top: 0; transform: translateY(-100%); }
    
    .plugin-fixed-header__image { width: 50px; height: 50px; margin-right: 15px; flex-shrink: 0; }
    .plugin-fixed-header__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
    
    .plugin-fixed-header__name { 
        display: flex !important; 
        align-items: baseline !important; 
        gap: 15px !important;
        flex-grow: 1; 
        font-weight: bold; 
        font-size: 14pt; 
        color: #4D4D4D;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        margin-right: 20px;
    }
    
    .plugin-fixed-header__availability { 
        display: inline-block !important; 
        font-size: 10pt !important; 
        font-weight: normal; 
        color: #28a745; 
        white-space: nowrap; 
        flex-shrink: 0;
    }
    
    .plugin-fixed-header__price { 
        font-size: 14pt; 
        font-weight: 800; 
        margin: 0 30px !important; 
        white-space: nowrap; 
        color: #4D4D4D; 
        flex-shrink: 0;
    }

    .plugin-fixed-header__basket { flex-shrink: 0; }
}

/* Nastavení pro Mobil */
@media (max-width: 767px) {
    #coder-sticky-bar { bottom: 0; transform: translateY(100%); border-top: 1px solid #eee; }
    .plugin-fixed-header__image, .plugin-fixed-header__name, .plugin-fixed-header__price { display: none; }
    .plugin-fixed-header__container { padding: 8px 10px; height: 64px; justify-content: center; }
    .plugin-fixed-header__basket { width: 100%; display: flex; justify-content: center; }
    
    #sticky-add-to-cart { 
        width: 100% !important; 
        height: 48px; 
        border-radius: 4px; 
        margin: 0; 
        font-size: 1.1rem; 
        text-transform: uppercase;
        display: flex; 
        align-items: center; 
        justify-content: center;
    }
}