/* Single-product controls only. WooCommerce retains quantity/stock ownership. */
.single-product.woocommerce form.cart .quantity-button-wrapper.hn-quantity-fixed input.qty { display: none; }
.single-product.woocommerce form.cart .quantity-button-wrapper .button-qty:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.hn-fixed-quantity { font-weight: 700; text-align: center; align-self: center; }
.hn-fixed-quantity[hidden] { display: none; }
.single-product.woocommerce form.cart .hn-quantity-unavailable input.qty,
.single-product.woocommerce form.cart .hn-quantity-unavailable .hn-fixed-quantity {
    opacity: .45;
    cursor: not-allowed;
}
.single-product.woocommerce div.product form.hn-purchase-form,
.single-product.woocommerce div.product form.hn-purchase-form .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 12px;
}
.single-product.woocommerce form.hn-purchase-form > :is(.variations, .single_variation_wrap),
.single-product.woocommerce form.hn-purchase-form .woocommerce-variation {
    width: 100%;
    flex-basis: 100%;
}
.single-product.woocommerce div.product form.hn-purchase-form .quantity {
    flex: 0 0 auto; margin: 0 !important;
}
.single-product.woocommerce form.cart .quantity-button-wrapper {
    display: grid !important; grid-template-columns: 30px minmax(0, 1fr) 30px;
    width: 140px; height: 50px; border-radius: 8px; background: #f0f0f0;
    overflow: hidden; gap: 0;
}
.single-product.woocommerce form.cart .quantity-button-wrapper .button-qty {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px !important; min-width: 30px; height: 50px !important;
    flex: 0 0 30px !important; border: 0 !important;
    padding: 0 !important; margin: 0 !important; line-height: 1;
    background: transparent !important; color: #171717 !important;
    font-size: 20px !important;
}
.single-product.woocommerce form.cart .quantity-button-wrapper input.qty {
    width: 100% !important; min-width: 0; height: 50px !important;
    padding: 0 4px !important; margin: 0 !important; color: #171717;
    font-family: inherit; font-size: 14px; font-weight: 700;
    text-align: center; background: transparent !important;
    border: 0 !important; border-radius: 0 !important;
}
.single-product.woocommerce div.product form.hn-purchase-form :is(.single_add_to_cart_button, .hn-buy-now) {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    flex: 1 1 180px !important; width: auto !important; min-width: 0; min-height: 50px; margin: 0 !important; padding: 12px 18px !important;
    border: 1px solid #171717 !important; border-radius: 8px !important;
    background: #fff !important; color: #171717 !important;
    font: inherit; font-weight: 600; text-transform: none; line-height: 1.35;
    box-shadow: none !important; transition: background-color .3s ease, color .3s ease;
    transform: none !important; animation: none !important;
}
.single-product.woocommerce div.product form.hn-purchase-form .hn-buy-now {
    flex: 1 0 100% !important; width: 100% !important; background: #171717 !important; color: #fff !important;
}
.single-product.woocommerce form.hn-purchase-form .single_add_to_cart_button::before,
.single-product.woocommerce form.hn-purchase-form .single_add_to_cart_button::after { content: none !important; animation: none !important; }
.hn-purchase-motion { display: grid; overflow: hidden; }
.hn-purchase-line {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    grid-area: 1 / 1; transition: transform .4s cubic-bezier(.2,.65,.3,1);
}
.hn-purchase-line svg { flex: 0 0 20px; }
.hn-purchase-copy { transform: translateY(140%); }
.single-product.woocommerce form.hn-purchase-form :is(.single_add_to_cart_button, .hn-buy-now):is(:disabled, .disabled) {
    opacity: .45; cursor: not-allowed;
}
.single-product.woocommerce form.hn-purchase-form :is(.single_add_to_cart_button, .hn-buy-now):focus-visible {
    outline: 2px solid #171717; outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .single-product.woocommerce div.product form.hn-purchase-form :is(.single_add_to_cart_button, .hn-buy-now):hover:not(:disabled):not(.disabled) {
        background: #171717 !important; color: #fff !important;
    }
    .hn-purchase-form button:hover:not(:disabled):not(.disabled) .hn-purchase-line { transform: translateY(-140%); }
    .hn-purchase-form button:hover:not(:disabled):not(.disabled) .hn-purchase-copy { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hn-purchase-form .hn-purchase-line { transition: none; }
    .single-product.woocommerce div.product form.hn-purchase-form :is(.single_add_to_cart_button, .hn-buy-now) { transition: none; }
}
