/* Variations table layout */
table.variations {
    width: 100%;
    border-collapse: collapse;
}

table.variations tr {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

table.variations tr:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

table.variations th.label {
    border: none;
    padding: 10px 0 0 0;
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

table.variations td.value {
    border: none;
    padding: 0;
    flex: 1;
}

a.reset_variations {
    display: inline-block;
    margin-top: 8px !important;
    font-size: 14px;
}

/* Hide the native <select> but keep it in the DOM for WooCommerce JS */
.variation-selector-hidden {
    display: none !important;
}

/* Button group wrapper */
.variation-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

/* Individual option button — selectable / in stock */
.variation-btn {
    padding: 10px 16px;
    border: 1px solid #4B5563;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.4;
}

.variation-btn:hover {
    border-color: #444;
    color: #000;
}

/* Active / selected state — thick black border */
.variation-btn.active {
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-weight: 600;
}

/* ── Quantity stepper ── */
p.qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px 0;
}

/* Row: stepper + ATC button side by side */
.qty-atc-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

/* Stepper wrapper */
div.quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    /*height: 56px;*/
    box-sizing: border-box;
    flex-shrink: 0;
}

[class*=woocommerce] .quantity {
    margin: 0px!important;
}

/* − and + buttons */
.qty-btn {
    width: 52px;
    /*height: 56px;*/
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.qty-btn:hover {
    background: #f3f4f6;
}

/* Number input — specificity matches WooCommerce core: [class*=woocommerce] .quantity input[type=number] */
.woocommerce div.quantity input.qty,
.woocommerce-page div.quantity input.qty {
    max-width: none !important;
    width: 52px !important;
    /*height: 56px !important;*/
    border-radius: 0 !important;
    border: none !important;
    border-left: 1.5px solid #d1d5db !important;
    border-right: 1.5px solid #d1d5db !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #111 !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

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

/* ATC button — match stepper height */
.qty-atc-row .single_add_to_cart_button {
    /*height: 56px !important;*/
    padding: 0 32px !important;
    border-radius: 8px !important;
    font-size: 15px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    line-height: 1;
}

/* Disabled — out of stock: faded strikethrough, no border, unclickable */
.variation-btn.disabled,
.variation-btn[disabled] {
    border-color: transparent;
    background: transparent;
    color: #b0b8c4;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}
