/*
Theme Name:   Storefront Child
Theme URI:    https://woo.com/products/storefront/
Description:  Storefront Child Theme — include toate stilurile custom + layout Amazon
Author:       Custom
Template:     storefront
Version:      1.6.9
License:      GNU General Public License v3 or later
License URI:  http://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  storefront-child
*/

/* ================================================================
   CSS-UL TAU EXISTENT (mutat din Customizer — sterge-l de acolo!)
   ================================================================ */

button#site-navigation-menu-toggle {
    max-width: 26px; height: 46px; border-radius: 10px; padding: 21px;
}
button#site-navigation-menu-toggle > span { display: none; }
footer#colophon { margin-top: 66px; }
input[type=text], input[type=number], input[type=email], input[type=tel],
input[type=url], input[type=password], input[type=search], textarea, .input-text {
    background: rgb(13 171 90 / 16%); border-radius: 10px;
}
h3 { font-weight: 400; margin-top: 0 !important; }
.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header { margin-bottom: 0; }
.site-header .site-logo-anchor img, .site-header .site-logo-link img,
.site-header .custom-logo-link img { max-height: 50px; width: auto; }
.storefront-handheld-footer-bar {
    box-shadow: 0px -4px 16px rgba(0,0,0,.16);
}
.storefront-handheld-footer-bar ul li > a::before {
    content: '' !important;
    background-size: 24px; background-repeat: no-repeat; background-position: center;
    margin-bottom: 16px;
}
.storefront-handheld-footer-bar ul li.cart > a::before {
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/shopping-cart.svg);
}
.storefront-handheld-footer-bar ul li.articole > a::before {
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/typewriter.svg);
}
.storefront-handheld-footer-bar ul li.search > a::before {
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/search.svg);
}
.storefront-handheld-footer-bar ul li.my-account > a::before {
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/user.svg);
}
.storefront-handheld-footer-bar ul li.home > a::before {
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/home.svg);
}
.storefront-handheld-footer-bar {
    height: auto !important;
}
.storefront-handheld-footer-bar ul li {
    height: auto !important;
}
.storefront-handheld-footer-bar ul li > a {
    display: block !important;
    position: relative !important;
    text-indent: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.62rem;
    line-height: 1.2;
    color: inherit;
    padding: 6px 2px 4px !important;
    padding-top: 32px !important;    /* spatiu pentru iconita deasupra */
    width: 100%;
    box-sizing: border-box;
}
.storefront-handheld-footer-bar ul li > a::before {
    content: '' !important;
    position: absolute !important;
    top: 4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    background-size: 22px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}
.storefront-handheld-footer-bar ul li.search .site-search { bottom: -100%; }
ul#menu-mobil li { border-bottom: 1px solid; margin: 4px 0; padding: 4px 0; }
ul#menu-mobil li:last-child { border: none; }
ul#menu-mobil { background: #d8f1e4; }
.handheld-navigation {
    box-shadow: 100px 0 0 #d8f1e4, -100px 0 0 #d8f1e4;
    background: #d8f1e4; padding-bottom: 0; margin-top: 66px;
}
header#masthead { padding-top: 16px; }
button#site-navigation-menu-toggle[aria-expanded="false"] ~ .handheld-navigation { padding: 0; margin: 0; }
.storefront-sorting ul.subcategories-list {
    margin: 0 0 2rem 0; padding: 0; list-style: none;
    display: flex; gap: 1rem; align-items: baseline;
}
.storefront-sorting ul.subcategories-list li a {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    margin: 0; box-shadow: 0px 4px 16px rgba(0,0,0,.16);
    border-radius: 16px; align-items: baseline;
}
.storefront-sorting ul.subcategories-list li a p {
    position: absolute; bottom: 0; left: 0; background: white;
    padding: 4px 16px; font-weight: bold; border-radius: 10px; margin: 8px;
}
.storefront-sorting ul.subcategories-list li a img { max-height: 160px; width: auto; }
.theContent:empty { display: none; }
.theContent .ads {
    border-radius: 20px; padding: 16px 20px;
    align-items: center !important; display: flex; gap: 16px;
}
.theContent .ads h2 { font-size: 26px; }
.theContent .ads p { color: black; font-size: 14px; margin-bottom: 6px; }
.theContent .ads img { border-radius: 8px; }
.swiper-wrapper li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; }
button, input[type="button"], input[type="reset"], input[type="submit"],
.button, .widget a.button, .button.alt, .widget-area .widget a.button.alt,
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-noreviews, p.no-comments { border-radius: 8px; }
.woocommerce-info, .woocommerce-noreviews, p.no-comments {
    background: #0dab5a; filter: saturate(0);
}
.hentry .entry-content .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; }
.hentry .entry-content .woocommerce-MyAccount-navigation ul li {
    width: 50%; padding: 8px; margin: 0; border: none;
}
body .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; border: 1px solid; border-radius: 16px;
}
.woocommerce-MyAccount-navigation ul li a::before { margin-left: 0; opacity: 1; }
.woocommerce-MyAccount-navigation ul li.is-active a { background: #0dab5a; color: white; }
.storefront-primary-navigation { background: #fff; }
.site-branding { margin-bottom: 0 !important; }
.storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation {
    margin-bottom: 21px !important; margin-top: 6px;
}
.woocommerce-active .site-header .site-search { margin-bottom: 0 !important; margin-top: 3px; }
.site-header-cart .cart-contents::after {
    content: '' !important;
    background-image: url(https://lumeaporumbeilor.ro/wp-content/uploads/2023/10/shopping-cart.svg);
    background-size: contain; background-repeat: no-repeat; background-position: center;
    width: 20px; height: 20px; margin: 0 !important; transform: translate(0px, 3px);
}
h3 { margin-top: 66px !important; }
.site-header-cart .widget_shopping_cart {
    background-color: #0dab5a;
    border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; overflow: hidden;
}
.site-header-cart .widget_shopping_cart a { font-weight: 600; }
.site-header-cart .widget_shopping_cart a.remove::before { color: #263955; }
.site-header-cart .widget_shopping_cart .buttons,
.site-header-cart .widget_shopping_cart .total { background: #0dab5a; }
.site-header-cart .widget_shopping_cart .buttons a.button.wc-forward {
    background: transparent; border: 1px solid; color: #263955;
}
.site-header-cart .widget_shopping_cart .buttons a.button.wc-forward:last-child {
    background: white; border-color: white;
}
a.cart-contents:hover, .site-header-cart:hover > li > a { color: #0dab5a; }
.site-header-cart .widget_shopping_cart a:hover { color: #263955; }
.site-header-cart:hover .cart-contents::after { filter: hue-rotate(300deg) saturate(8.5); }
@media screen and (min-width: 768px) {
    .storefront-primary-navigation {
        background: #fff;
        box-shadow: inset 0 16px 12px -16px rgba(0,0,0,.16);
    }
}


/* ================================================================
   STILURI CARD PRODUS — DESKTOP
   Template: woocommerce/content-product.php
   ================================================================ */

/* Reset stiluri vechi care ar putea interfera */
ul.products li.product .title-price-rating-cart-wrapper,
ul.products li.product > a,
ul.products li.product > div { all: unset; }

/* --- Card: coloana flex, centrat, fara shadow --- */
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: none !important;               /* fara shadow */
    background: #d8f1e4;
    padding: 0 !important;
    margin-bottom: 1.5em;
    position: relative;
    box-sizing: border-box;
}

/* --- Imaginea: margine deasupra (16px de la top), centrata --- */
ul.products li.product .sf-product-image {
    width: 100%;
    padding-top: 16px;                          /* margine fata de top */
    display: flex;
    justify-content: center;
    align-items: center;
}

ul.products li.product .sf-product-image .sf-product-img-link {
    display: block;
    position: relative;
    width: 100%;
    text-align: center;
}

ul.products li.product .sf-product-image img.sf-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;                        /* imagine completa, necupata */
    display: block;
    margin: 0 auto;
    mix-blend-mode: darken;
    background: transparent;
}

/* Badge sale */
ul.products li.product .onsale {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 10;
    border-radius: 16px;
    background: white;
    color: #0dab5a;
    border-color: #0dab5a;
    font-size: 0.78rem;
}

/* --- Detalii: coloana, CENTRATE pe desktop --- */
ul.products li.product .sf-product-details {
    display: flex;
    flex-direction: column;
    align-items: center;                        /* centrat */
    text-align: center;                         /* centrat */
    padding: 12px 16px 16px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* Titlu */
ul.products li.product .sf-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

ul.products li.product h2.woocommerce-loop-product__title.sf-title {
    font-size: 1.05rem;
    font-weight: 600 !important;
    margin: 0;
    color: #1e2e44;
    line-height: 1.35;
    text-align: center;
}

/* Categorie */
ul.products li.product .sf-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0dab5a;
    background: white;
    border-radius: 4px;
    padding: 1px 8px;
    display: inline-block;
}

/* Rating */
ul.products li.product .sf-rating {
    display: flex;
    align-items: center;
    justify-content: center;                    /* centrat */
    gap: 6px;
    flex-wrap: wrap;
}

ul.products li.product .sf-rating .star-rating {
    float: none;
    margin: 0;
    font-size: 0.9rem;
}

ul.products li.product .sf-rating .sf-no-rating::before,
ul.products li.product .sf-rating .sf-no-rating span::before { color: #ccc; }

ul.products li.product .sf-rating .sf-rating-count {
    font-size: 0.8rem;
    color: #555;
}

ul.products li.product .sf-rating .sf-no-rating-text {
    font-size: 0.8rem;
    color: #aaa;
}

/* Descriere scurta desktop (max 3 randuri) */
ul.products li.product .sf-short-desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

/* Pret */
ul.products li.product .sf-price {
    margin: 0;
    text-align: center;
}

ul.products li.product .sf-price .price {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

ul.products li.product .sf-price .sf-shipping-cost {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
    font-weight: 500;
}

ul.products li.product .sf-price .price del {
    font-size: 0.82rem;
    font-weight: 400;
    color: #888;
}

ul.products li.product .sf-price .price ins {
    text-decoration: none;
    color: #B12704;
}

/* Container buton */
ul.products li.product .sf-cart {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

/* Butonul desktop — verde */
ul.products li.product .sf-cart a.button,
ul.products li.product .sf-cart a.add_to_cart_button,
ul.products li.product .sf-cart a.product_type_simple,
ul.products li.product .sf-cart a.product_type_variable,
ul.products li.product .sf-cart a.product_type_grouped,
ul.products li.product .sf-cart a.product_type_external {
    display: inline-block !important;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    background: #0dab5a !important;
    color: #1e2e44 !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s;
}

ul.products li.product .sf-cart a.added_to_cart {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

ul.products li.product .sf-cart a.button:hover,
ul.products li.product .sf-cart a.added_to_cart:hover,
ul.products li.product .sf-cart a.add_to_cart_button:hover {
    background: #ff6200 !important;
    color: #fff !important;
}

ul.products li.product .sf-cart a.product_type_variable,
ul.products li.product .sf-cart a.product_type_grouped,
ul.products li.product .sf-cart a.product_type_external {
    background: #fff !important;
    border: 1px solid #0dab5a !important;
    color: #0dab5a !important;
}


/* ================================================================
   MOBILE (≤768px): layout RAND — imagine stanga, detalii dreapta
   ================================================================ */

@media screen and (max-width: 768px) {

    /* Lista: o singura coloana */
    ul.products.columns-2,
    ul.products.columns-3,
    ul.products.columns-4,
    ul.products { display: block !important; }

    /* Card produs: flex RAND (imagine stanga | detalii dreapta) */
    ul.products li.product {
        flex-direction: row !important;
        align-items: stretch !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0 !important;
        padding: 10px !important;
        gap: 10px;
        overflow: visible !important;
    }

    ul.products li.product:last-child { border-bottom: none; }

    /* Imaginea: coloana stanga */
    ul.products li.product .sf-product-image {
        flex: 0 0 120px;
        width: 120px !important;
        min-width: 120px;
        padding-top: 0;
        justify-content: flex-start;
        display: flex;
    }

    ul.products li.product .sf-product-image .sf-product-img-link {
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
    }

    ul.products li.product .sf-product-image img.sf-img {
        width: 120px !important;
        height: 100% !important;
        max-height: none;
        border-radius: 6px;
        object-fit: cover;
    }

    /* Detalii: coloana dreapta, aliniate la STANGA */
    ul.products li.product .sf-product-details {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
        gap: 4px;
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Titlu: 16px, stanga, max 3 randuri, fara margine jos */
    ul.products li.product h2.woocommerce-loop-product__title.sf-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        text-align: left !important;
        color: #0f1111;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 !important;
        line-height: 1.4;
    }

    /* Categorie */
    ul.products li.product .sf-category {
        font-size: 0.7rem;
        background: none;
        padding: 0;
        color: #565959;
        text-transform: none;
        font-weight: normal;
    }

    /* Stele: mai pronuntate (portocaliu, mai mari) */
    ul.products li.product .sf-rating {
        justify-content: flex-start !important;
        gap: 5px;
        line-height: 12px;
    }

    ul.products li.product .sf-rating .star-rating {
        font-size: 12px !important;                /* inaltimea stelelor */
    }

    ul.products li.product .sf-rating .star-rating span::before {
        color: #ff6200 !important;                 /* culoarea celor colorate */
    }

    ul.products li.product .sf-rating .sf-no-rating {
        font-size: 12px !important;
    }

    /* Stele gri (fara recenzii) mai vizibile */
    ul.products li.product .sf-rating .sf-no-rating::before {
        color: #bbb !important;
        font-size: 12px !important;
    }

    ul.products li.product .sf-rating .sf-rating-count {
        font-size: 0.8rem;
        color: #0a7fbf;
        font-weight: 500;
    }

    /* Text "Fara recenzii" mai vizibil */
    ul.products li.product .sf-rating .sf-no-rating-text {
        font-size: 0.8rem;
        color: #888;
        font-weight: 500;
    }

    /* Descriere: stanga */
    ul.products li.product .sf-short-desc {
        font-size: 0.78rem;
        text-align: left !important;
        color: #666;
        -webkit-line-clamp: 3;
        margin: 0;
    }

    /* Pret */
    ul.products li.product .sf-price {
        text-align: left !important;
    }

    ul.products li.product .sf-price .price {
        font-size: 1.25rem !important;
        align-items: flex-start;
    }

    ul.products li.product .sf-price .sf-shipping-cost {
        font-size: 0.75rem;
    }

    /* Buton cos pe mobil — Amazon yellow, inline */
    ul.products li.product .sf-cart {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    ul.products li.product .sf-cart a.button,
    ul.products li.product .sf-cart a.added_to_cart,
    ul.products li.product .sf-cart a.add_to_cart_button,
    ul.products li.product .sf-cart a.product_type_simple,
    ul.products li.product .sf-cart a.product_type_variable,
    ul.products li.product .sf-cart a.product_type_grouped,
    ul.products li.product .sf-cart a.product_type_external {
        display: inline-block !important;
        width: auto !important;
        padding: 7px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 20px !important;
        background: #FFD814 !important;
        color: #0f1111 !important;
        border: 1px solid #FCD200 !important;
        box-shadow: 0 1px 2px rgba(213,217,217,.5) !important;
        font-weight: 600;
    }

    ul.products li.product .sf-cart a.added_to_cart {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
    }

    ul.products li.product .sf-cart a.product_type_variable,
    ul.products li.product .sf-cart a.product_type_grouped,
    ul.products li.product .sf-cart a.product_type_external {
        background: #fff !important;
        border-color: #D5D9D9 !important;
        color: #0f1111 !important;
    }

    /* Badge sale */
    ul.products li.product .onsale {
        top: 4px; left: 4px;
        font-size: 0.65rem;
    }
}

/* 481–768px: imagine usor mai mare */
@media screen and (min-width: 481px) and (max-width: 768px) {
    ul.products li.product .sf-product-image {
        flex: 0 0 140px; width: 140px !important; min-width: 140px;
    }
    ul.products li.product .sf-product-image img.sf-img {
        width: 140px !important; height: 100% !important;
    }
}
