/* ==========================================================================
   PAGINA DE SHOP (Magazin, Arhive, Categorii, Branduri)
   ========================================================================== */
.product-wrapper { height: 100% !important; display: flex !important; flex-direction: column !important; }
.product-wrapper .product-thumb img { height: 300px !important; object-fit: contain !important; width: 100% !important; margin-bottom: 10px !important; }
.product-wrapper .product-details { flex-grow: 1 !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; }
.product-wrapper .product-details .product-title { min-height: 60px !important; margin-bottom: 5px !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; }
.product-price { margin-top: auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-end !important; min-height: 50px !important; }
.woo-custom-stock-status, .out-of-stock { display: block !important; font-size: 13px !important; font-weight: 500 !important; margin-top: 5px !important; text-transform: uppercase !important; text-align: center !important; line-height: 1.2 !important; }
.product-wrapper:hover .product-thumb .primary-image { opacity: 0 !important; transition: all 0.3s ease; }
.product-wrapper:hover .product-thumb .secondary-image { opacity: 1 !important; transition: all 0.3s ease; }
button.buy_now_button, .elementor-widget-woocommerce-product-add-to-cart .buy_now_button, .product-buy-now, button[name="buy_now"], .wc-buy-now-btn { display: none !important; }
.product-wrapper .product-details .product-title { display: block !important; min-height: 55px !important; margin-bottom: 10px !important; }
.product-wrapper .product-details .product-title h5, .product-wrapper .product-details .product-title h5 a { font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.4 !important; text-align: center !important; margin: 0 !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: normal !important; }

#categories-1 ul { list-style-type: none; padding-left: 0; }
#categories-1 li { padding: 0px 0; border-bottom: 1px dotted #ccc; display: flex; justify-content: space-between; }
#categories-1 li a { text-decoration: none; font-weight: 444; }

.tax-product_brand .custom-brand-button a.button { background-color: #b67e53 !important; color: #ffffff !important; padding: 10px 20px !important; font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase !important; border-radius: 4px !important; display: inline-block !important; border: none !important; transition: all 0.3s ease !important; }
.tax-product_brand .custom-brand-button a.button:hover { background-color: #202020 !important; color: #ffffff !important; }
.tax-product_brand .product-price .price { display: flex !important; flex-direction: column !important; align-items: center !important; }
.tax-product_brand ul.products::before, .tax-product_brand ul.products::after { content: none !important; display: none !important; }
.tax-product_brand ul.products li.product .primary-image, .tax-product_brand ul.products li.product:hover .primary-image { display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; }
.tax-product_brand ul.products li.product .secondary-image, .tax-product_brand ul.products li.product:hover .secondary-image { display: none !important; opacity: 0 !important; visibility: hidden !important; }

@media (max-width: 768px) {
    .woocommerce ul.products li.product, .woocommerce ul.products li.product .product-wrapper { overflow: visible !important; }
    .woocommerce ul.products li.product .product-wrapper { padding-bottom: 60px !important; position: relative !important; display: flex !important; flex-direction: column !important; height: 100% !important; }
    .woocommerce ul.products li.product .product-thumb-content { position: absolute !important; bottom: 5px !important; left: 0 !important; right: 0 !important; opacity: 1 !important; visibility: visible !important; transform: none !important; display: block !important; z-index: 99 !important; padding: 0 56px !important; }
    .woocommerce ul.products li.product .product-buttons-wrapper, .woocommerce ul.products li.product .wc_inline_buttons, .woocommerce ul.products li.product .wcct_btn_wrapper { display: block !important; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
    .woocommerce ul.products li.product .add_to_cart_button { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 42px !important; background-color: #b67e53 !important; color: #ffffff !important; font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase !important; border-radius: 4px !important; border: none !important; margin: 0 !important; padding: 0 !important; }
    .woocommerce ul.products li.product .add_to_cart_button i, .woocommerce ul.products li.product .add_to_cart_button::before, .woocommerce ul.products li.product .add_to_cart_button::after, .woocommerce ul.products li.product .add_to_cart_button span { display: none !important; }
    .woocommerce ul.products li.product .product-buttons-wrapper a:not(.add_to_cart_button) { display: none !important; }
    .woocommerce ul.products li.product .product-thumb-content .add_to_cart_button.loading, .woocommerce ul.products li.product .product-thumb-content .add_to_cart_button.added { display: flex !important; opacity: 1 !important; visibility: visible !important; transform: none !important; background-color: #b67e53 !important; color: #ffffff !important; }
    .woocommerce ul.products li.product .product-thumb-content .added_to_cart { display: none !important; }
}