/* LeadFitness Product Card */

.lf-product-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Ред 1: Цена и Размер */
.lf-row-1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile: Price on top, dropdown full width */
@media (max-width: 782px) {
    .lf-row-1 {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .lf-price {
        order: 1;
        text-align: left;
        font-size: 0.8rem !important;
        letter-spacing: 0;
    }
    
    .lf-variation-select {
        order: 2;
        width: 100%;
    }
}

.lf-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    white-space: pre-wrap;
    letter-spacing: -0.4px;
}

.sale .lf-price {
    display: flex;
    flex-direction: column;
}

.sale .wc-block-components-product-price del {
    color: #64748b !important;
    font-weight: 300;
}

.sale .wc-block-components-product-price {
    display: flex;
    flex-direction: column;
}

.lf-price del {
    opacity: 0.6;
}

.lf-price ins {
    text-decoration: none;
    font-weight: 600;
}

.lf-price .woocommerce-Price-amount {
    font-weight: inherit;
}

.lf-variation-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    background: white;
    cursor: pointer;
}

.lf-variation-select:focus {
    border-color: #9c0100;
    box-shadow: 0 0 0 3px rgba(156, 1, 0, 0.1);
}

/* Ред 2: Количество и Купи */
.lf-row-2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lf-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.lf-quantity button {
    padding: 0.5rem 0.75rem;
    border: 0;
    background: white;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lf-quantity button:hover {
    background: #f3f4f6;
    color: #9c0100;
}

.lf-qty-input {
    max-width: 1.7rem;
    text-align: center;
    border: 0;
    outline: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background: white;
    -moz-appearance: textfield;
    flex-shrink: 0;
}

.lf-qty-input::-webkit-outer-spin-button,
.lf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mobile: TINY 40px input with spinners */
@media (max-width: 782px) {
    .lf-row-2 {
        gap: 0.5rem;
    }
    
    .lf-quantity {
        flex-shrink: 0;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        max-height: 35px;
        border: 1px solid #d1d5db;
        background: white;
        padding: 0 !important;
    }
    
    .lf-quantity button {
        display: none !important;
    }
    
    .lf-qty-input {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 38px !important;
        font-size: 0.875rem !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        border: 0 !important;
        border-radius: 0.375rem !important;
    }
    
    /* FORCE show spinners on mobile */
    .lf-qty-input::-webkit-outer-spin-button,
    .lf-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: auto !important;
        appearance: auto !important;
        opacity: 1 !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .lf-add-to-cart-btn {
        flex: 1 !important;
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-width: 0 !important;
    }
}

.lf-add-to-cart-btn {
    flex: 1;
    padding: 0.625rem 1.5rem;
    background-color: #9c0100;
    color: white;
    border: 0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lf-add-to-cart-btn:hover:not(:disabled) {
    background-color: #7a0100;
}

.lf-add-to-cart-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.lf-add-to-cart-btn.loading {
    opacity: 0.7;
}

.lf-add-to-cart-btn.added {
    background-color: #16a34a !important;
}

/* Hide variations data */
.lf-variations-data {
    display: none;
}

/* Sizes list (always visible) */
.lf-sizes-list {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Mobile: Left-aligned size text on one line */
@media (max-width: 782px) {
    .lf-sizes-list {
        font-size: 0.688rem;
        color: #9ca3af;
        margin-top: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* AGGRESSIVELY hide ALL WooCommerce notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notices-wrapper,
div[role="alert"].woocommerce-message,
div[role="alert"].woocommerce-error,
div[role="alert"].woocommerce-info,
.wc-block-components-notice-banner,
.wp-block-woocommerce-cart .woocommerce-message,
.entry-content .woocommerce-message,
a.added_to_cart,
.added_to_cart.wc-forward {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}
