/* Organics UI Fixes v3.9 */

/* BUTOANE ADAUGA IN COS — CATEGORIE */
ul.products li.product .add_to_cart_button,
ul.products li.product a.button.product_type_simple {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 44px !important;
}

/* BUTON FINALIZARE — MINI-CART */
.shoptimizer-mini-cart-wrap a.checkout.wc-forward,
.widget_shopping_cart a.checkout.wc-forward,
a.button.checkout.wc-forward {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    min-height: 50px !important;
}

/* BUTON VEZI — CONTUL MEU */
.woocommerce-MyAccount-content .woocommerce-orders-table a.woocommerce-button.button.view,
.woocommerce-MyAccount-content .woocommerce-orders-table a.button.view {
    color: #fff !important;
    background-color: #15803d !important;
    border-color: #15803d !important;
    padding: 8px 20px !important;
    min-width: 80px !important;
    min-height: 38px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.woocommerce-MyAccount-content .woocommerce-orders-table a.button.view:hover {
    background-color: #166534 !important;
    color: #fff !important;
}

/* PRET PRODUS */
.single-product .summary .price { font-size: 34px !important; font-weight: 800 !important; margin-bottom: 10px !important; }
.single-product .summary .price ins { font-size: 32px !important; font-weight: 800 !important; color: #f26621 !important; text-decoration: none !important; }
.single-product .summary .price ins .woocommerce-Price-amount { font-size: 32px !important; font-weight: 800 !important; }
.single-product .summary .price del { font-size: 20px !important; color: #999 !important; font-weight: 400 !important; margin-right: 8px !important; }
.single-product .summary .price del .woocommerce-Price-amount { font-size: 20px !important; }
.single-product .summary .price > .woocommerce-Price-amount { font-size: 32px !important; font-weight: 800 !important; color: #f26621 !important; }

/* FOOTER */
.footer-organics__logo img, .footer-organics__brand img { max-height: 60px !important; width: auto !important; height: auto !important; }
@media (max-width: 768px) {
    .footer-organics__inner { gap: 12px !important; row-gap: 12px !important; padding-top: 24px !important; padding-bottom: 16px !important; }
    .footer-organics__heading, .footer-organics h3, .footer-organics h4 { margin-bottom: 4px !important; margin-top: 0 !important; font-size: 16px !important; }
    ul.footer-organics__links { margin: 0 !important; padding: 0 !important; }
    .footer-organics__links li, .footer-organics .textwidget li, footer.footer-organics li { padding: 0 !important; margin: 0 0 1px !important; line-height: 1.3 !important; }
    .footer-organics__links li a, .footer-organics .textwidget li a, footer.footer-organics li a { padding: 3px 0 !important; line-height: 1.3 !important; font-size: 14px !important; display: inline !important; }
    .footer-organics__brand { margin-bottom: 0 !important; }
    .footer-organics__brand p { margin-bottom: 8px !important; }
    .footer-organics__social { margin-top: 12px !important; }
    .footer-organics .widget_custom_html, .footer-organics .footer-widget { margin-bottom: 0 !important; }
}

/* COS VERDE MOBIL */
@media (max-width: 992px) {
    .site-header-cart .cart-contents, .site-header-cart a.cart-contents { color: #15803d !important; }
    .site-header-cart .cart-contents svg, .site-header-cart .cart-contents svg path { color: #15803d !important; stroke: #15803d !important; fill: none !important; }
    .site-header-cart .shoptimizer-cart a.cart-contents:not(:hover) .count,
    .shoptimizer-cart a.cart-contents:not(:hover) .count,
    .site-header-cart a.cart-contents:not(:hover) .count,
    .site-header-cart .cart-contents .count,
    .shoptimizer-cart .cart-contents .count { color: #15803d !important; border-color: #15803d !important; }
}

/* MENIU BURGER MOBIL */
@media (max-width: 992px) {
    button.menu-toggle { display: inline-flex !important; align-items: center !important; gap: 8px !important; }
    button.menu-toggle .bar-text { display: inline-flex !important; align-items: center !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; line-height: 1 !important; order: 4 !important; }
    button.menu-toggle .bar { flex-shrink: 0 !important; }
}

/* CARD DESCRIERE CATEGORIE — design 2026 */
header.woocommerce-products-header,
.shoptimizer-category-banner {
    background-color: rgba(21, 128, 61, 0.04) !important;
    border: 1px solid rgba(21, 128, 61, 0.08) !important;
    border-radius: 10px !important;
}
header.woocommerce-products-header .term-description {
    position: relative !important;
    padding: 1em !important;
}
/* Text limitat la 2 randuri cu max-height */
header.woocommerce-products-header .term-description > p:first-of-type {
    max-height: 3em !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}
/* "Mai mult" pozitionat absolut la finalul liniei 2, gradient scurt */
header.woocommerce-products-header .term-description .rmwr-wrapper {
    position: absolute !important;
    bottom: 1em !important;
    right: 1em !important;
    margin: 0 !important;
    padding-left: 1.5em !important;
    background: linear-gradient(to right, rgba(252,253,252,0) 0%, rgba(252,253,252,1) 50%) !important;
    line-height: 1.5 !important;
}

/* BUTON "MAI MULT" — stil curat global (categorie + descriere produs) */
.rmwr-wrapper .read-link {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #15803d !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-underline-offset: unset !important;
}
.rmwr-wrapper .read-link:hover,
.rmwr-wrapper .read-link:focus,
.rmwr-wrapper .read-link:active {
    color: #166534 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
