/*
Theme Name: Shoptimizer Child Theme
Theme URI:
Description: Child theme of Shoptimizer-2 (the actually-active parent). Holds Nuvole's small CSS overrides on top of the vendor theme so a parent update doesn't wipe them out.
Author: Nuvole
Author URI: https://www.nuvole.ro
Template: shoptimizer-2
Version: 1.3.3
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* -----------------------------------------------------------------
 * Single product page — stock indicator
 * Use a distinct green for in-stock so users don't confuse it with
 * the (pink/coral) sale price right above it.
 * ----------------------------------------------------------------- */
/* High-specificity selector to win against any theme override */
body .woocommerce div.product p.stock.in-stock,
body .woocommerce div.product .stock.in-stock,
body .woocommerce-page div.product .stock.in-stock,
body div.summary p.stock.in-stock,
body .product .stock.in-stock {
    color: #1f7a1f !important;
    font-weight: 500 !important;
}

/* Backorder + out-of-stock keep their natural urgency colors */
.woocommerce div.product p.stock.available-on-backorder,
.woocommerce div.product .stock.available-on-backorder {
    color: #b26a00 !important;
}
.woocommerce div.product p.stock.out-of-stock,
.woocommerce div.product .stock.out-of-stock {
    color: #b32d2e !important;
}

/* -----------------------------------------------------------------
 * Header cart — label so the total isn't mistaken for a product price
 * ----------------------------------------------------------------- */
.site-header-cart .cart-contents::before {
    content: "Coșul meu: ";
    font-weight: 500;
    margin-right: .25em;
}
/* On narrow screens drop the price (saves space) but keep the label
 * so the icon doesn't sit there with no caption. */
@media (max-width: 600px) {
    .site-header-cart .cart-contents .amount { display: none; }
}

/* -----------------------------------------------------------------
 * "Vezi coșul" link under Adaugă în coș, shown only after the user
 * adds an item (WooCommerce emits it natively; Shoptimizer hides it).
 * ----------------------------------------------------------------- */
.single_add_to_cart_button + .added_to_cart {
    display: inline-block !important;
    clear: both;
    margin-top: 12px;
    padding: 6px 14px;
    border: 1px solid #876069;
    border-radius: 4px;
    color: #876069 !important;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}
.single_add_to_cart_button + .added_to_cart:hover {
    background: #876069;
    color: #fff !important;
}

/* -----------------------------------------------------------------
 * Side cart vs. Complianz consent badge
 * The "Gestionează consimțământul" badge (z-index: 9998, fixed
 * bottom-right) was overlapping the side cart's Sub-total +
 * Finalizare button. Hide it while the cart drawer is open;
 * Shoptimizer adds body.drawer-open during the slide-in.
 * ----------------------------------------------------------------- */
body.drawer-open #cmplz-manage-consent {
    display: none !important;
}