/**
 * V28 Regular Product — Single Product Page CSS
 * Non-QPC products only. Pixel-matched to QPC inline configurator.
 */

/* ─── Hide WC table, select, junk ────────────────────────── */
.woocommerce div.product form.variations_form table.variations { display: none !important; }
.v28-size-select  { display: none !important; }
.reset_variations { display: none !important; }
label[for="quantity"], .screen-reader-text { display: none !important; }

/* ─── Size section wrapper ────────────────────────────────── */
.v28-size-section {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px;
}
.v28-size-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.v28-size-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4a4545;
}

/* ─── Size pills — exact QPC match ───────────────────────── */
.v28-size-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
}
.woocommerce .v28-size-btn,
.v28-size-btns .v28-size-btn {
    height: 44px !important;
    padding: 8px 16px !important;
    min-width: 34px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: 0.86px solid #e0dede !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #363030 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.woocommerce .v28-size-btn:hover        { border-color: #363030 !important; background: #f7f6f4 !important; }
.woocommerce .v28-size-btn.selected     { background: #363030 !important; border-color: #363030 !important; color: #fff !important; }
.woocommerce .v28-size-btn.unavailable  { opacity: 0.35 !important; cursor: not-allowed !important; text-decoration: line-through !important; }

/* ─── Shake animation (no size selected on ATC click) ─────── */
@keyframes v28-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(6px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}
.v28-size-btns.v28-shake .v28-size-btn {
    animation: v28-shake 0.5s ease;
    border-color: #e63946 !important;
    color: #e63946 !important;
}

/* ─── Constrain form to match QPC .qpc-inline actual width ── */
.woocommerce div.product form.variations_form {
    max-width: 621px !important;
}

/* ─── Express wrapper + row padding override ──────────────── */
.v28-express-wrap { margin: 4px 0 16px !important; }
.v28-express-wrap .qpc-express-row { padding: 10px 12px !important; }

/* ─── Qty + ATC row — flex, full width ───────────────────── */
.woocommerce div.product .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .single_variation_wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-top: 4px !important;
}
.woocommerce div.product .quantity {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 138px !important;
    max-width: 138px !important;
}

/* Qty minus / plus — exact QPC: 46×46px square */
.woocommerce div.product .quantity .v28-qty-minus,
.woocommerce div.product .quantity .v28-qty-plus {
    height: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    margin: 0 !important;
    border: 0.86px solid #e0dede !important;
    background: #fafafa !important;
    color: #4a4545 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}
.woocommerce div.product .quantity .v28-qty-minus {
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
}
.woocommerce div.product .quantity .v28-qty-plus {
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
}
.woocommerce div.product .quantity .v28-qty-minus:hover,
.woocommerce div.product .quantity .v28-qty-plus:hover { background: #f0efed !important; }

/* Qty input — 46px tall, 46px wide, no side borders */
.woocommerce div.product .quantity input.qty {
    height: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    border-top: 0.86px solid #e0dede !important;
    border-bottom: 0.86px solid #e0dede !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #363030 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    outline: none !important;
}
.woocommerce div.product .quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none !important; }

/* ─── Add to Cart — exact QPC: h55, radius10, fs20 ────────── */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 55px !important;
    padding: 0 16px !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    box-shadow: none !important;
}
/* Always show active — WC adds .disabled class when no variation selected */
.woocommerce div.product .single_add_to_cart_button.disabled,
.woocommerce div.product .single_add_to_cart_button.wc-variation-selection-needed {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { filter: brightness(0.93) !important; }

/* ─── Price ────────────────────────────────────────────────── */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: block !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #363030 !important;
    margin: 0 0 20px !important;
    line-height: 1 !important;
}
.woocommerce-variation-price { display: none !important; }

/* ─── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .woocommerce .v28-size-btn { height: 44px !important; padding: 8px 14px !important; font-size: 13px !important; }

    /* Qty + ATC stay on same row — no wrapping */
    .woocommerce div.product .woocommerce-variation-add-to-cart,
    .woocommerce div.product form.cart .single_variation_wrap {
        flex-wrap: nowrap !important;
    }

    .woocommerce div.product .single_add_to_cart_button,
    .woocommerce div.product button.single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: 0 !important;
        height: 55px !important;
        font-size: 18px !important;
    }
}
