/* =====================================================
   Horsiq Product Card UX — single product only
   1) Wide columns (kill WC 48% floats inside theme grid)
   2) Compact variation attributes (label left, pills right)
   3) Quantity box with -/+ buttons
   4) No smooth-scroll anchor jumps on product page
   ===================================================== */

/* ---- 4) disable smooth anchor scrolling on product pages ---- */
@supports selector(html:has(body)) {
    html:has(body.single-product) {
        scroll-behavior: auto !important;
    }
}

/* ---- 1) columns: gallery + summary fill their grid tracks ---- */
@media (min-width: 769px) {
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product div.images,
    body.single-product div.product div.summary {
        width: 100% !important;
        float: none !important;
    }
    body.single-product div.product div.summary {
        margin-bottom: 0 !important;
    }
}

/* compact title / price / description */
body.single-product div.product .product_title {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}
body.single-product div.product .summary > p.price {
    margin-bottom: 12px !important;
}
body.single-product .woocommerce-product-details__short-description {
    margin-bottom: 14px !important;
    line-height: 1.6 !important;
    font-size: 0.95rem;
}

/* ---- 2) compact attributes: label left, options right ---- */
body.single-product div.product form.cart .variations-table-wrap {
    margin: 8px 0 0 !important;
}
body.single-product div.product form.cart table.variations tr {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    width: 100%;
    margin-bottom: 10px !important;
}
body.single-product div.product form.cart table.variations th.label {
    display: block !important;
    flex: 0 0 92px;
    width: auto !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    text-align: left;
}
body.single-product div.product form.cart table.variations td.value {
    display: block !important;
    flex: 1 1 200px;
    width: auto !important;
    padding: 0 !important;
}
body.single-product .ohochi-native-swatches {
    gap: 8px !important;
    margin: 0 !important;
    width: auto !important;
}
body.single-product .ohochi-swatch {
    min-width: 44px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    border-radius: 10px !important;
}
body.single-product .reset_variations {
    margin-top: 0 !important;
    font-size: 0.75rem;
}

/* tighter gap between attributes and qty/CTA row */
body.single-product div.product form.cart .woocommerce-variation-add-to-cart,
body.single-product div.product form.cart:not(.variations_form) {
    margin-top: 8px;
}

/* ---- 3) quantity -/+ box ---- */
body.single-product .ohochi-qty-box {
    display: inline-flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    border: 2px solid var(--color-border, #e5e0da);
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
}
body.single-product .ohochi-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 48px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}
body.single-product .ohochi-qty-btn:hover {
    color: var(--color-accent, #E8A9A0);
}
body.single-product div.product form.cart .ohochi-qty-box input.qty,
body.single-product div.product .ohochi-qty-box input[type=number] {
    width: 44px !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    background: transparent;
    color: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}
body.single-product .ohochi-qty-box input[type=number]::-webkit-outer-spin-button,
body.single-product .ohochi-qty-box input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
