/* ============================================================
   VitalyxBio — WooCommerce overrides
   Re-skin WC shop/single/cart/checkout/account to match the
   dark cyan design system in vbio.css.
   ============================================================ */

/* ----- Shop page (product archive) ---------------------------------- */
body.vbio-theme.woocommerce-page .woocommerce-products-header__title,
body.vbio-theme.post-type-archive-product .page-title {
    color: var(--vbio-text);
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin: 3rem 0 2rem;
}

body.vbio-theme.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 1024px) { body.vbio-theme.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { body.vbio-theme.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { body.vbio-theme.woocommerce ul.products { grid-template-columns: 1fr; } }

body.vbio-theme.woocommerce ul.products li.product {
    background: var(--vbio-surface);
    border: 1px solid var(--vbio-border);
    border-radius: var(--vbio-r-lg);
    padding: 1.25rem;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    text-align: center;
    transition: all 220ms var(--vbio-ease);
    position: relative;
}
body.vbio-theme.woocommerce ul.products li.product:hover {
    border-color: var(--vbio-cyan);
    transform: translateY(-3px);
    box-shadow: var(--vbio-cyan-glow);
}
body.vbio-theme.woocommerce ul.products li.product a {
    color: var(--vbio-text);
}
body.vbio-theme.woocommerce ul.products li.product img {
    border-radius: var(--vbio-r);
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #0A1722 0%, #050C13 100%);
}
body.vbio-theme.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--vbio-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.0625rem !important;
    font-weight: 800;
    padding: 0.25rem 0 0.5rem !important;
}
body.vbio-theme.woocommerce ul.products li.product .price {
    color: var(--vbio-cyan);
    font-family: var(--vbio-mono);
    font-size: 1rem;
    font-weight: 600;
}
body.vbio-theme.woocommerce ul.products li.product .price del { color: var(--vbio-text-dim); }
body.vbio-theme.woocommerce ul.products li.product .price ins {
    background: transparent;
    color: var(--vbio-cyan-2);
    text-decoration: none;
}

/* Add-to-cart buttons inherit our button styling */
body.vbio-theme.woocommerce a.button,
body.vbio-theme.woocommerce button.button,
body.vbio-theme.woocommerce input.button,
body.vbio-theme.woocommerce #respond input#submit,
body.vbio-theme.woocommerce ul.products li.product .button,
body.vbio-theme .vbio-add-to-cart {
    background: var(--vbio-cyan) !important;
    color: #04141A !important;
    border: 1px solid var(--vbio-cyan) !important;
    border-radius: var(--vbio-r) !important;
    padding: 0.75rem 1.25rem !important;
    font-family: var(--vbio-font) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: var(--vbio-cyan-glow);
    transition: all 200ms var(--vbio-ease);
}
body.vbio-theme.woocommerce a.button:hover,
body.vbio-theme.woocommerce button.button:hover,
body.vbio-theme.woocommerce input.button:hover,
body.vbio-theme.woocommerce ul.products li.product .button:hover,
body.vbio-theme .vbio-add-to-cart:hover {
    background: var(--vbio-cyan-2) !important;
    border-color: var(--vbio-cyan-2) !important;
    transform: translateY(-1px);
}
body.vbio-theme.woocommerce a.button.alt,
body.vbio-theme.woocommerce button.button.alt,
body.vbio-theme.woocommerce input.button.alt {
    background: var(--vbio-cyan) !important;
    color: #04141A !important;
}

/* Sale/featured badges */
body.vbio-theme.woocommerce span.onsale {
    background: var(--vbio-cyan);
    color: #04141A;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    min-height: 0;
    min-width: 0;
    line-height: 1.2;
    border: none;
}

/* ----- Single product page ----------------------------------------- */
body.vbio-theme.single-product div.product {
    padding: 2rem 0 4rem;
}
body.vbio-theme.single-product .product_title {
    color: var(--vbio-text);
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 1rem;
}
body.vbio-theme.single-product .woocommerce-product-details__short-description {
    color: var(--vbio-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
body.vbio-theme.single-product div.product p.price,
body.vbio-theme.single-product div.product span.price {
    color: var(--vbio-cyan) !important;
    font-family: var(--vbio-mono);
    font-size: 1.5rem !important;
    font-weight: 600;
}
body.vbio-theme.single-product .quantity input.qty {
    background: var(--vbio-surface);
    color: var(--vbio-text);
    border: 1px solid var(--vbio-border);
    border-radius: var(--vbio-r);
    padding: 0.5rem 0.75rem;
    width: 70px;
}

/* Tabs (Description / Reviews) */
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--vbio-border);
    padding: 0;
    margin-bottom: 1.5rem;
}
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
}
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--vbio-text-muted);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
}
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--vbio-cyan);
    border-bottom-color: var(--vbio-cyan);
}
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.vbio-theme.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

/* Related products */
body.vbio-theme.woocommerce .related > h2,
body.vbio-theme.woocommerce .upsells > h2 {
    color: var(--vbio-text);
    text-transform: uppercase;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: 3rem;
}

/* ----- Cart page --------------------------------------------------- */
body.vbio-theme.woocommerce-cart table.shop_table,
body.vbio-theme.woocommerce-checkout table.shop_table {
    background: var(--vbio-surface);
    border: 1px solid var(--vbio-border);
    border-radius: var(--vbio-r-lg);
    border-collapse: separate;
    border-spacing: 0;
    color: var(--vbio-text);
}
body.vbio-theme.woocommerce-cart table.shop_table th,
body.vbio-theme.woocommerce-checkout table.shop_table th {
    background: var(--vbio-bg-2);
    color: var(--vbio-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 1rem;
    border-bottom: 1px solid var(--vbio-border);
}
body.vbio-theme.woocommerce-cart table.shop_table td,
body.vbio-theme.woocommerce-checkout table.shop_table td {
    border-bottom: 1px solid var(--vbio-border);
    padding: 1rem;
}
body.vbio-theme.woocommerce-cart table.shop_table tr:last-child td,
body.vbio-theme.woocommerce-checkout table.shop_table tr:last-child td {
    border-bottom: none;
}
body.vbio-theme.woocommerce-cart .cart-collaterals .cart_totals h2,
body.vbio-theme.woocommerce-checkout #order_review_heading {
    color: var(--vbio-text);
    text-transform: uppercase;
    font-size: 1.25rem;
}

/* ----- Checkout ---------------------------------------------------- */
body.vbio-theme.woocommerce-checkout #customer_details h3,
body.vbio-theme.woocommerce-checkout #order_review_heading {
    color: var(--vbio-text);
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--vbio-border);
    padding-bottom: 0.5rem;
}
body.vbio-theme.woocommerce-checkout .form-row label {
    color: var(--vbio-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
body.vbio-theme.woocommerce-checkout .form-row input[type="text"],
body.vbio-theme.woocommerce-checkout .form-row input[type="email"],
body.vbio-theme.woocommerce-checkout .form-row input[type="tel"],
body.vbio-theme.woocommerce-checkout .form-row input[type="password"],
body.vbio-theme.woocommerce-checkout .form-row textarea,
body.vbio-theme.woocommerce-checkout .form-row select,
body.vbio-theme.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: var(--vbio-surface) !important;
    color: var(--vbio-text) !important;
    border: 1px solid var(--vbio-border) !important;
    border-radius: var(--vbio-r) !important;
    padding: 0.75rem 0.875rem !important;
    font-family: var(--vbio-font) !important;
    height: auto !important;
}
body.vbio-theme.woocommerce-checkout .form-row input:focus,
body.vbio-theme.woocommerce-checkout .form-row textarea:focus,
body.vbio-theme.woocommerce-checkout .form-row select:focus {
    outline: none !important;
    border-color: var(--vbio-cyan) !important;
    box-shadow: 0 0 0 3px rgba(61, 224, 224, 0.15) !important;
}
body.vbio-theme.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--vbio-text);
    line-height: 28px;
}

/* Payment methods */
body.vbio-theme.woocommerce-checkout #payment {
    background: var(--vbio-surface);
    border: 1px solid var(--vbio-border);
    border-radius: var(--vbio-r-lg);
}
body.vbio-theme.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--vbio-border);
    padding: 1.25rem;
}
body.vbio-theme.woocommerce-checkout #payment ul.payment_methods li {
    color: var(--vbio-text);
    margin-bottom: 0.75rem;
}
body.vbio-theme.woocommerce-checkout #payment ul.payment_methods li label {
    color: var(--vbio-text);
    font-weight: 600;
}
body.vbio-theme.woocommerce-checkout #payment div.payment_box {
    background: var(--vbio-bg-2);
    color: var(--vbio-text-muted);
    border-radius: var(--vbio-r);
    margin-top: 0.5rem;
}
body.vbio-theme.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--vbio-bg-2);
}

/* Research-use checkbox at checkout */
body.vbio-theme .vbio-research-ack {
    background: var(--vbio-bg-2);
    border: 1px solid var(--vbio-cyan);
    border-radius: var(--vbio-r);
    padding: 1rem;
    margin: 1rem 0;
}
body.vbio-theme .vbio-research-ack label,
body.vbio-theme .vbio-research-ack__label {
    color: var(--vbio-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
body.vbio-theme .vbio-research-ack input[type="checkbox"] {
    accent-color: var(--vbio-cyan);
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* ----- Notices ---------------------------------------------------- */
body.vbio-theme.woocommerce .woocommerce-message,
body.vbio-theme.woocommerce .woocommerce-info,
body.vbio-theme.woocommerce .woocommerce-error {
    background: var(--vbio-surface);
    color: var(--vbio-text);
    border-top: 3px solid var(--vbio-cyan);
    border-radius: var(--vbio-r);
    padding: 1rem 1.5rem;
}
body.vbio-theme.woocommerce .woocommerce-error {
    border-top-color: var(--vbio-danger);
}
body.vbio-theme.woocommerce .woocommerce-message a,
body.vbio-theme.woocommerce .woocommerce-info a {
    color: var(--vbio-cyan);
}
body.vbio-theme.woocommerce .woocommerce-message::before,
body.vbio-theme.woocommerce .woocommerce-info::before {
    color: var(--vbio-cyan);
}
body.vbio-theme.woocommerce .woocommerce-error::before {
    color: var(--vbio-danger);
}

/* ----- My account -------------------------------------------------- */
body.vbio-theme.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background: var(--vbio-surface);
    border: 1px solid var(--vbio-border);
    border-radius: var(--vbio-r-lg);
    list-style: none;
    padding: 0.5rem;
}
body.vbio-theme.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid var(--vbio-border);
}
body.vbio-theme.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
body.vbio-theme.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: var(--vbio-text-muted);
    padding: 0.75rem 1rem;
    display: block;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}
body.vbio-theme.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--vbio-cyan);
    background: var(--vbio-cyan-soft);
    border-radius: var(--vbio-r);
}

/* Order pay/received page (thank-you) */
body.vbio-theme.woocommerce-order-received .woocommerce-order h1,
body.vbio-theme.woocommerce-order-received .woocommerce-order h2 {
    color: var(--vbio-text);
    text-transform: uppercase;
}
body.vbio-theme.woocommerce-order-received .woocommerce-thankyou-order-received {
    color: var(--vbio-cyan);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
