/* ─────────────────────────────────────────
   JJ NET WOO QUICK ADD — shop-loop.css
   Color scheme: cream background + orange
   ───────────────────────────────────────── */

/* ── Variable product form wrapper ── */
.jj-quick-variations {
    background: #fdf6ec;
    border: 1px solid #f0d9b5;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}

/* ── Variations container ── */
.jj-variations-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Single attribute group ── */
.jj-variation-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Attribute label pill ── */
.jj-variation-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    background: #e87c2a;
    border-radius: 4px;
    padding: 2px 8px;
    width: fit-content;
}

/* ── Radio grid ── */
.jj-radio-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.jj-radio-options input[type="radio"] {
    display: none !important;
}

.jj-radio-options label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 4px;
    border: 1.5px solid #e0c9a6;
    border-radius: 6px;
    background: #ffffff;
    color: #4a3728;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.jj-radio-options label:hover {
    border-color: #e87c2a;
    background: #fff4eb;
    color: #e87c2a;
}

.jj-radio-options input[type="radio"]:checked + label {
    background: #e87c2a;
    border-color: #e87c2a;
    color: #ffffff;
    font-weight: 700;
}

/* ── Hide the select (but keep in DOM for WC JS) ── */
.jj-quick-variations select,
.jj-variation-group select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* ── Add to cart row ── */
.jj-add-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

/* ── Qty stepper ── */
.jj-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0c9a6;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.jj-qty-btn {
    background: #fdf0e0;
    border: none;
    width: 28px;
    height: 32px;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    color: #e87c2a;
    font-weight: 700;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.jj-qty-btn:hover {
    background: #e87c2a;
    color: #fff;
}

.jj-qty-input {
    width: 34px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0c9a6;
    border-right: 1px solid #e0c9a6;
    font-size: 13px;
    font-weight: 600;
    color: #4a3728;
    background: #fff;
    -moz-appearance: textfield;
    outline: none;
}

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

/* ── Add to cart button ── */
.jj-add-btn {
    flex: 1;
    background: #e87c2a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    height: 32px;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px !important;
    white-space: nowrap;
}

.jj-add-btn:hover {
    background: #cf6820 !important;
}

.jj-add-btn:disabled,
.jj-add-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* ── Confirmation message ── */
p.confirm_add {
    font-size: 11px;
    color: #e87c2a;
    font-weight: 600;
    margin: 4px 0 0;
    text-align: center;
}

/* ── Simple product add row ── */
.woo-archive-loop .cart .jj-add-row,
.products .cart .jj-add-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
