.woocommerce img, .woocommerce-page img {
    height: auto;
    max-width: 150px;
}

/* Czerwony przycisk z białym napisem + efekty hover */
.woocommerce a.button.alt, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: #FF2A3E !important;
    color: #ffffff !important;
    border: 2px solid #FF2A3E !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    transform: scale(1) !important;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2) !important;
    -webkit-font-smoothing: antialiased;
}

/* Efekt hover - biały przycisk z czerwonym napisem + scale */
.woocommerce a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    background-color: #ffffff !important;
    color: #FF2A3E !important;
    border: 2px solid #FF2A3E !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* Efekt aktywny (kliknięty) */
.woocommerce a.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:active,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:active {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.2) !important;
}

/* ===== SUBTELNE ULEPSZENIA - KOLORY DOPASOWANE DO STRONY ===== */
/* Paleta: czarny, biały, czerwony, szary */

/* Przyciski WPC (Popraw) - czarny motyw + wyrównane rozmiary */
.wpcuv-edit,
.wpcuv-cancel,
.wpcuv-update {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 2px solid #333333 !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    min-width: 80px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wpcuv-edit:hover,
.wpcuv-cancel:hover,
.wpcuv-update:hover {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* Ikona ołówka - zachowaj biały kolor */
.wpcuv-edit:before {
    color: #ffffff !important;
}

.wpcuv-edit:hover:before {
    color: #333333 !important;
}

/* Przycisk Anuluj - szary motyw, wyrównane rozmiary */
.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt),
.woocommerce input.button:not(.alt) {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border: 2px solid #6c757d !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    min-width: 80px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce a.button:not(.alt):hover,
.woocommerce button.button:not(.alt):hover,
.woocommerce input.button:not(.alt):hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Przycisk Zaktualizuj koszyk - wyrównane rozmiary */
.woocommerce table.cart input[name="update_cart"] {
    background-color: #868e96 !important;
    color: #ffffff !important;
    border: 2px solid #868e96 !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    min-width: 120px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce table.cart input[name="update_cart"]:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Przycisk Dodaj (kod kuponu) - wyrównane z polem input */
button[name="apply_coupon"],
input[name="apply_coupon"] {
    background-color: #495057 !important;
    color: #ffffff !important;
    border: 2px solid #495057 !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    min-width: 80px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Pole "Kod kuponu" - wyrównane z przyciskiem */
.woocommerce form.checkout_coupon input[type="text"],
.woocommerce .coupon input[type="text"],
input[name="coupon_code"] {
    height: 38px !important;
    line-height: 1.2 !important;
    padding: 8px 12px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

button[name="apply_coupon"]:hover,
input[name="apply_coupon"]:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 768px) {
    .wpcuv-edit, .wpcuv-cancel, .wpcuv-update,
    .woocommerce a.button:not(.alt),
    .woocommerce button.button:not(.alt),
    .woocommerce input.button:not(.alt),
    button[name="apply_coupon"],
    input[name="apply_coupon"] {
        height: 36px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }
    
    .woocommerce table.cart input[name="update_cart"] {
        height: 36px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        min-width: 100px !important;
    }
    
    .woocommerce form.checkout_coupon input[type="text"],
    .woocommerce .coupon input[type="text"],
    input[name="coupon_code"] {
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}
