/*Theme Name:  BrakeShop TwentyTwenty Child
 Theme URI:    http://brakeshop.ro/
 Description:  A child theme for Twenty Twenty.
 Author:       Pall-Tanko Robert-Szabolcs
 Author URI:   http://example.com
 Template:     twentytwenty
 Version:      1.0.12
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* header */
html, body{
    position: relative;
    max-width: 100%;
}
header svg.svg-icon {
    color: #FFF;
}
.mobile-nav-toggle span.toggle-text {
    visibility: hidden;
}
#site-header {
    width: 100%;
    height: auto;
    background: #1a3a84;
    color: white;
    padding-top: 12px;
    padding-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
	padding: 2px;
}
.custom-logo{
	width: auto;
	height: 45px;
}
.site-logo img {
	max-height: 4rem;
	margin: 0 auto;
	width: auto;
}

/* header cart */
.woo_header{
    display: none;
}
.site-header-cart {
    list-style-type: none;
    margin-left: 0;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    padding-top: 10px;
}
.site-header-cart .cart-contents {
    position: relative;
    display: flex; 
}
.site-header-cart .cart-contents::before {
    text-shadow: 0 0 0.1px;
    color: #0a472e; 
}
.site-header-cart .cart-contents .amount {
    color: #FFF;
    font-size: 14px;
    padding-left: 0px; 
}
span.minicart_discount {
    font-size: 14px;
    padding-left: 0px;
    display: block;
    color: #ff0001;
}
.site-header-cart .cart-contents .count {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 10px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background-color: #F81A0E;
    display: inline-block;
    position: absolute;
    top: -10px;
    left: 14px; 
}
.site-header-cart .widget_shopping_cart {
    display: none;
    background-color: #ffffff;
    padding: 2.2906835em 1.41575em 1.41575em; 
}
.site-header-cart .widget_shopping_cart .buttons {
    padding: 0; 
}
.site-header-cart .widget_shopping_cart .buttons .button {
    margin: 0; 
}
.site-header-cart .widget_shopping_cart {
    position: absolute;
    margin-top: 20px;
    top: 100%;
    width: 320px;
    z-index: 999999;
    right: -999em;
    display: block;
    border-width: 2px;
    border-style: solid;
}
.woo_header.header-inner .section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header-cart a {
    text-decoration: none;
    color: #FFF;
}
.site-header-cart i {
    font-size: 25px;
}
a.myaccount svg {
    color: #FFF;
}
a.myaccount {
    display: flex;
    align-items: flex-end;
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
    flex-direction: column;
}
a.discount_header {
    color: #FFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}
a.search_header {
    color: #FFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}
a.contact_header {
    color: #FFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}

/* header discount */
section.discounturi {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 10px;
    text-align: center;
}
.discount_heading {
    background: #ff0001;
    color: #FFF;
    width: 100%;
    padding: 6px;
    font-weight: 700;
}
.discounturi .logos {
    display: flex;
    gap: 5px;
    margin: 0 5px;
}
.discounturi .logos a{
    text-decoration: none;
}
.discounturi .logos a > span {
    background: #ff0001;
    color: #FFF;
    width: 100%;
    display: block;
    margin-top: 10px;
}
.discounturi .logos a > span > span {
    font-size: 32px;
    font-weight: 700;
}

section.categorii_home {
    background: url(/wp-content/uploads/img/home/car_home.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
}
section.categorii_home ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 10px;
}
section.categorii_home ul.products li {
    margin: 0;
}
.categorii_home ul.products img {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 0px;
    margin-bottom: 10px;
    width: 150px !important; /* Category images 150px */
    height: 150px !important;
    object-fit: cover;
}
.categorii_home ul.products li a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.home .content-area {
    padding: 0;
}
.home .bs_filter_fieldset{
    background: none;
    padding-top: 0;
}

.wpmenucart-contents i{
	font-size:  25px;
}
.woocommerce .content-area {
    padding: 2vw 6vw;
    margin: 0 auto;
}
.oferta-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
.btn, button {
    background: #222;
    border: 0 none;
    font-size: 13px;
    line-height: 30px;
    padding: 10px 12px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    height: 48px;
}
.btn:hover, button:hover {
    -moz-transition: background-color 0.5s ease;
    -webkit-transition: background-color 0.5s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
    background-color: #c30303;
    background-position: 0 -15px;
}
.primary-menu > li > a{
	font-size: 16px;
	line-height: 32px;
	text-transform: uppercase;
	color: #fff!important;
}
.entry-header{
	display: none;
}
.product_title .entry-title{
    font-size: 4rem;
}

h1.entry-title{
    font-size: 4rem;
    font-weight: 600;
}

.facetwp-facet-main_filter{
    background: rgba(255, 255, 255, 0.9);
    height: 150px;
    padding-top: 15px;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
border-radius: 10px;
	-webkit-box-shadow: 5px 5px 15px 5px rgba(125,125,125,0.59); 
box-shadow: 5px 5px 15px 5px rgba(125,125,125,0.59);
	
}
.facetwp-facet-main_filter select{
	margin: 30px;
    font-size: 15px;
    box-shadow: none;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 0;
    display: inline-block;
    padding: 6px 12px;
    line-height: 1.428571429;
    color: #111;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	opacity: 1;
}
select {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
}

.bs_filter_fieldset {
    background: url('/wp-content/uploads/2021/09/bg_brakes.jpg');
    background-position: center;
    /* width: 100%; */
    background-repeat: no-repeat;
    background-size: 100%;
    height: 300px;
    padding-top: 65px;
    margin-bottom: 65px;
    border: none
}

.bs-filters{background: rgba(255, 255, 255, 0.9);
    height: 150px;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 25px 0;
}

.woocommerce .content-area .site-main {
    margin: 0;
}

.woocommerce-breadcrumb  {
    font-weight:bold;
    font-size: 16px;
    text-transform: none;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: left;
}
.crumb img {
    float: none !important;
    margin-top: 0 !important;
    display: inline !important;
}
a.back_to {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: left !important;
    margin-bottom: 15px;
    width: 100%;
    float: left;
    clear: both;
}
a.change_car {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #1A3A84;
    border: 1px solid #1A3A84;
    border-radius: 10px;
    margin-left: 20px;
}

.woocommerce ul.products{
	justify-content: center !important;
	margin: 0 auto !important;
	max-width: 100% !important;
}
.parent-1-head {
    font-size: 18px;
    line-height: 23px;
    width: 10%;
    margin: 0 2% 2.992em 0;
	border-right: 2px solid #1a3a84;
	padding-top: 29px;
}
/*
.woocommerce-breadcrumb:nth-child(1) a {
    background: url('https://www.svgrepo.com/show/22031/home-icon-silhouette.svg');
    width: 24px;
    height: 24px;
    text-indent: -9999px !important;
    display: inline-block;
}

.woocommerce-breadcrumb .crumb:first-child a {
font-size: 18px
    text-decoration: none;
}

.woocommerce-breadcrumb:nth-child(2) .crumb{
    display: none;
}
*/

/*Footer menu*/

.footer {
    max-width: 1600px;
    padding: 0vw 6vw;
    margin: 0 auto;
}
.footer .container {
    padding-top: 50px;
}
.footer .col3{
	width: 30%;
	float: left;
	margin-right:35px;
}
.footer-title {
    background: url(/wp-content/uploads/2022/01/background-title.png) repeat-x scroll center 15px;
    margin-bottom: 20px;
}
.footer h3 {
    background-color: #fff;
    display: inline-block;
    font-size: 18px;
    margin: 0;
    padding-right: 10px;
    text-transform: uppercase;
}
.footer .footer-static-content li {
    margin: 0 0 15px;
    font-size: 13px;
    list-style: none;
}
.footer span.fa {
    background: #c30303;
    border-radius: 100%;
    color: #ffffff;
    float: left;
    font-size: 20px;
    height: 42px;
    line-height: 42px;
    margin-right: 10px;
    padding-left: 5px;
    text-align: center;
    width: 42px;
}
.fa-mobile:before{content:"\f10b"}

.add_to_cart_button {
	font-size:14px;
	border-radius:10px;
	background:#f76974;
}
.add_to_cart_button:hover {
	background:#c30303;	
}
.woocommerce-loop-product__title{
    color: #444444!important;
    font-size: 15px!important;
    text-transform: capitalize!important;
    display: block!important;
    min-height: 57px;
}
.filter-products-front-rear {
    background: #1a3a84;
    color: white;
    padding: 10px 10px;
    font-size: 20px;
    margin-bottom: 0;
} 




/* Mariam's changes */

.woocommerce ul.products.bs-categories-ul li.product {
    width: 100%;
    margin: 0; /* Remove margins for closer spacing */
    padding: 5px; /* Add small padding instead */
}

.woocommerce ul.products.bs-categories-ul li.product a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    line-height: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products.bs-categories-ul li.product a img {
    border: 1px solid #ddd;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    padding: 0px;
    width: 150px !important; /* Category images 150px */
    height: 150px !important;
    object-fit: cover;
    margin: 0; /* No margin for touching images */
}

.woocommerce ul.products.bs-categories-ul li.product.active a {
    color: #cd2653;
}

.bs-filters {
    overflow: hidden;
}

.bs-filters .bs-dropdown-container {
    width: 25%;
    float: left;
}


.bs-filters .danger {
    color: red;
}

.bs-select {
    max-width: 254px;
    background: transparent;
    padding: 7px 14px;
    font-size: 16px;
    min-width: 200px;
}

.primary-menu > li > .icon {display:none;}
.woocommerce-MyAccount-navigation-link--dashboard {display:none;}


/* end of Mariam's changes */


.woocommerce ul.products.bs-categories-ul li.product.active a img {
    border:3px solid #1a3a84;
    
}
ul.products.bs-categories-ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 0; /* No gap between images */
    max-width: 600px; /* Width for 4x150px images */
    margin: 0 auto; /* Center the entire grid */
}
ul.products.bs-categories-ul:before, ul.products.bs-categories-ul:after {
    display: none;
}

/*//////////////////////////////////////////////////////////////////////////////////////////////*/

/* search */
.oferta-container .search-form {
    background-color: #FFF;
    border-radius: 3px;
    box-shadow: 0px 0px 24px rgba(26, 26, 26, 0.1);
    display: flex;
    grid-column: span 2;
    height: 48px;
    overflow: hidden;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    max-width: 250px;
}

.oferta-container .search-field {
    border: none;
    padding: 0 20px;
    margin-bottom: 0;
}

.oferta-container .search-field::placeholder {
    color: #1A1A1A80;
}

.oferta-container button {
    align-items: center;
    background-color: transparent;
    color: #1A1A1A80;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    padding: 0;
    width: 58px;
}

/* product category */
h1.product_cat_title {
    font-size: 32px;
}
section.product_category {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}
.product_category_img {
    width: 20%;
    min-width: 20%;
    padding-top: 50px;
}
a.added_to_cart.wc-forward {
    display: none;
}
.products_front .woocommerce-ordering, .products_back .woocommerce-ordering, .products_other .woocommerce-ordering {    
    float: right;  
    position: relative; 
    top: -42px; 
    left: -43px; 
}
.woocommerce ul.products li.product {
    align-items: stretch; /* Stretch to align buttons at bottom */
    margin: 0 0 40px 0 !important; /* Even more vertical spacing */
    width: calc(20% - 21px) !important; /* 5 columns with maximum gap spacing - smaller products */
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce ul.products {
    gap: 35px; /* Maximum horizontal space between products */
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Center products relative to header */
    max-width: 100%;
    margin: 0 auto;
}

/* Align add to cart buttons at the bottom */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    flex-grow: 1;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link + * {
    margin-top: auto;
}

/* Ensure buttons are aligned at bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin-top: auto;
    align-self: flex-end;
    width: 100%;
}

/* Center the main content area relative to header */
.woocommerce .woocommerce-products-header,
.woocommerce .woocommerce-products-header + * {
    text-align: center;
}

/* Override centering for back button */
.woocommerce .woocommerce-products-header a.back_to {
    text-align: left !important;
}

/* Ensure product grid is centered */
.woocommerce .products_front,
.woocommerce .products_back,
.woocommerce .products_other {
    display: block;
    width: 100%;
    margin-bottom: 30px;
}

/* Center the product lists within each section */
.woocommerce .products_front ul.products,
.woocommerce .products_back ul.products,
.woocommerce .products_other ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 auto;
}


/* favorite */
form#yith-wcwl-form {
    width: 100% !important;
    max-width: max-content;
}
.wishlist_table .product-add-to-cart a.button {
    padding: 6px 25px !important;
    display: block !important;
    text-decoration: none !important;
}
.wishlist_table.mobile li .item-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.wishlist_table.mobile li {
    padding: 10px;
    margin: 0 7px;
}

/* compară - only for non-product_add_to_cart sections */
.compare:not(.product_add_to_cart .compare){
    margin-top: 15px;
    display: block;
}
.compare::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    content: "\f24e";
    margin-right: 10px;
}

/* Hide original buttons in summary section */
.single-product .summary .yith-wcwl-add-to-wishlist,
.single-product .summary .compare {
    display: none !important;
}

/* Hide YITH plugin's automatic compare button */
.single-product .summary .yith-woocompare-add-to-compare {
    display: none !important;
}

/* Hide ALL compare buttons except in product_add_to_cart and summary */
.single-product .compare:not(.product_add_to_cart .compare):not(.summary .compare) {
    display: none !important;
}

/* Hide YITH plugin's compare buttons but keep our custom ones */
.single-product .compare.link {
    display: none !important;
}

.single-product a[href*="yith-woocompare-add-product"]:not(.compare-static a) {
    display: none !important;
}

.single-product .yith-woocompare-add-to-compare {
    display: none !important;
}

/* Keep our custom compare button visible and aligned */
.single-product .compare-static {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    margin-right: 25px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    vertical-align: baseline !important;
    float: none !important;
    line-height: 1.4 !important;
}

/* Style the compare button link */
.single-product .compare-static .compare {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #dc3545 !important;
    font-size: 14px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    transition: all 0.3s ease !important;
    line-height: 1.4 !important;
    height: auto !important;
}

.single-product .compare-static .compare:hover {
    color: #c82333 !important;
    background: none !important;
}

/* Style the compare button SVG icon */
.single-product .compare-static .compare svg {
    color: #dc3545 !important;
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
    stroke: #dc3545 !important;
}

.single-product .compare-static .compare:hover svg {
    color: #c82333 !important;
    stroke: #c82333 !important;
}

/* Remove any duplicate icons from compare button */
.single-product .compare-static .compare::before {
    display: none !important;
}

.single-product .compare-static .compare::after {
    display: none !important;
}

/* Hide compare buttons in footer */
.single-product .product_meta .compare {
    display: none !important;
}

/* Style the review count in parentheses */
.single-product .woocommerce-product-rating .woocommerce-review-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
    font-weight: normal;
}

/* wishlist button styling in summary */
.single-product .summary .yith-wcwl-add-to-wishlist .add_to_wishlist {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #dc3545 !important; /* text roșu */
    font-size: 14px;
    padding: 0;
    border: none !important; /* fără border */
    background: none !important; /* fără background */
    transition: all 0.3s ease;
}

.single-product .summary .yith-wcwl-add-to-wishlist .add_to_wishlist:hover {
    color: #c82333 !important; /* roșu mai închis la hover */
    background: none !important;
}

.single-product .summary .yith-wcwl-add-to-wishlist .add_to_wishlist svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke: #dc3545; /* iconița roșie */
}

.single-product .summary .yith-wcwl-add-to-wishlist .add_to_wishlist:hover svg {
    stroke: #c82333; /* iconița roșie mai închisă la hover */
}

/* compare button styling in summary */
.single-product .summary .compare {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
    color: #dc3545 !important; /* text roșu */
    font-size: 14px;
    padding: 0;
    border: none !important; /* fără border */
    background: none !important; /* fără background */
    transition: all 0.3s ease;
}

.single-product .summary .compare:hover {
    color: #c82333 !important; /* roșu mai închis la hover */
    background: none !important;
}

.single-product .summary .compare::before {
    color: #dc3545; /* iconița roșie */
    margin-right: 8px;
}

.single-product .summary .compare:hover::before {
    color: #c82333; /* iconița roșie mai închisă la hover */
}

/* wishlist and compare buttons container for summary section */
.summary .yith-wcwl-add-to-wishlist,
.summary .compare,
.summary .yith-wcwl-add-to-wishlist-static,
.summary .compare-static {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 25px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    vertical-align: baseline !important;
    float: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    line-height: 1.4 !important;
}

.summary .yith-wcwl-add-to-wishlist {
    margin-right: 30px !important;
}

/* wishlist button styling for summary */
.summary .yith-wcwl-add-to-wishlist .add_to_wishlist,
.summary .yith-wcwl-add-to-wishlist-static .add_to_wishlist {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #dc3545; /* text roșu */
    font-size: 14px;
    padding: 0;
    border: none; /* fără border */
    background: none; /* fără background */
    transition: all 0.3s ease;
    line-height: 1.4;
    height: auto;
}

.summary .yith-wcwl-add-to-wishlist .add_to_wishlist:hover,
.summary .yith-wcwl-add-to-wishlist-static .add_to_wishlist:hover {
    color: #c82333; /* roșu mai închis la hover */
    background: none;
}

.summary .yith-wcwl-add-to-wishlist .add_to_wishlist svg,
.summary .yith-wcwl-add-to-wishlist-static .add_to_wishlist svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke: #dc3545; /* iconița roșie */
}

.summary .yith-wcwl-add-to-wishlist .add_to_wishlist:hover svg,
.summary .yith-wcwl-add-to-wishlist-static .add_to_wishlist:hover svg {
    stroke: #c82333; /* iconița roșie mai închisă la hover */
}

/* compare button styling for summary */
.summary .compare,
.summary .compare-static .compare {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #dc3545; /* text roșu */
    font-size: 14px;
    padding: 0;
    border: none; /* fără border */
    background: none; /* fără background */
    transition: all 0.3s ease;
}

.summary .compare:hover,
.summary .compare-static .compare:hover {
    color: #c82333; /* roșu mai închis la hover */
    background: none;
}

.summary .compare::before,
.summary .compare-static .compare svg {
    color: #dc3545; /* iconița roșie */
    margin-right: 8px;
    width: 16px;
    height: 16px;
    stroke: #dc3545;
}

.summary .compare:hover::before,
.summary .compare-static .compare:hover svg {
    color: #c82333; /* iconița roșie mai închisă la hover */
    stroke: #c82333;
}

/* Force YITH buttons to be visible */
.summary .yith-wcwl-add-to-wishlist,
.summary .yith-wcwl-add-to-wishlist *,
.summary .compare,
.summary .compare * {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Ensure YITH buttons are not hidden by any parent elements */
.summary .yith-wcwl-add-to-wishlist {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.summary .compare {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

div#colorbox {
    max-width: 100%!important;
    position: relative!important;
}
#colorbox div {
    max-width: 100%!important;
}

/* product */
.product section.product_category {
    width: 100%;
    max-width: 100% !important;
}
.product_first_screen {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}
.star-rating span::before {
    content: "SSSSS";
    top: 0;
    position: absolute;
    left: 0;
    color: #FFC107;
}
.product_first_screen .star-rating, .product_first_screen .wc-block-grid__product-rating {
    font-size: 1.2em;
}
.single-product .woocommerce-product-rating {
    margin: -1rem 0 2rem;
}
.single-product .summary p.price {
    margin-bottom: .5em;
    font-weight: 600;
}
.product_add_to_cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.product_add_to_cart .product_solicita_detalii {
    display: flex;
    margin-top: 0;
    flex: 1;
}
/* .product_add_to_cart .product_price {
    display: flex;
    margin-top: 0;
    flex: 1;
} */
.product_add_to_cart .product_price {
    display: flex;
    margin-top: 0;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.product_add_to_cart .product_price p{
    margin-bottom: 0;
}
.product_solicita_detalii a.btn {
    padding: 10px 12px !important;
    display: block !important;
    width: 100%;
    text-align: center;
}
.product_add_to_cart form.cart {
    flex: 1;
    display: flex;
    max-width: 500px;
}
/* Remove flex: 1 for single product page buttons to allow width control */
.single-product button.single_add_to_cart_button.button.alt {
    flex: none;
}

/* Keep flex: 1 for listing buttons */
.woocommerce ul.products button.single_add_to_cart_button.button.alt {
    flex: 1;
}
.single-product form.cart input[type=number] {
    width: 5em;
    text-align: center;
}
p.stock.in-stock {
    color: green;
}
table.woocommerce-product-attributes.shop_attributes {
    margin: 1em 0;
    border: 0;
}
th.woocommerce-product-attributes-item__label, td.woocommerce-product-attributes-item__value {
    border: 0;
    font-size: 1.8rem;
    font-weight: 400;
    min-width: 80px;
}
table.woocommerce-product-attributes.shop_attributes tr:nth-child(odd) {
    background-color: #f2f2f2;
}
.products a.button.add_to_cart_button {
    margin-bottom: 10px;
    background-color: #1A3A84;
    background-image: url(assets/img/bs_btn.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    border-radius: 22px;
    display: block;
    width: 100%;
    text-align: left;
}
.product_details_mobile{
    display: none;
}
img.brand_logo {
    max-width: 150px;
    margin-bottom: 20px;
}
.product_first_screen .woocommerce-product-gallery__trigger {
    top: auto;
    bottom: 1rem;
}
/* .woocommerce-product-gallery > .flex-viewport {
    height: 100% !important;
} */
.woocommerce-product-gallery > .flex-viewport figure {
    display: flex;
    align-items: center;
    align-content: center;
    height: inherit;
}
.product_add_to_cart .product_price p.price {
    font-weight: 700;
    font-size: 22px;
}
/* Only target the single product page add to cart button - HIGH SPECIFICITY */
.single-product form.cart button.single_add_to_cart_button.button.alt {
    background-color: #1A3A84 !important;
    background-image: url(assets/img/bs_btn.png) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: right !important;
    border-radius: 22px !important;
    max-width: 250px !important;
    min-width: 180px !important;
    padding: 12px 20px !important;
    padding-right: 3em !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
         /* Button styling complete */
}

/* Add hover effect for single product button - same as listing buttons */
.single-product form.cart button.single_add_to_cart_button.button.alt:hover {
    background-color: #c30303 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Make button wider on larger screens - only for single product page */
@media(min-width: 768px){
    .single-product form.cart button.single_add_to_cart_button.button.alt {
        max-width: 280px !important;
        min-width: 200px !important;
        padding: 14px 25px !important;
        padding-right: 3em !important;
        font-size: 15px !important;
    }
}


/* page elements */
h1.page-title {
    font-size: 3em;
}
button.woocommerce-Button.button, button.woocommerce-button.button {
    font-size: 1.5rem;
}
.entry-content {
    font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
}
div#produse_ {
    padding-top: 70px;
    position: absolute;
    display: block;
}

/* my account */
form.woocommerce-ResetPassword.lost_reset_password {
    text-align: center;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* cart */
.woocommerce-cart-form .actions .input-text {
    padding-top: 0;
    padding-bottom: 0;
    height: 48px;
}
.woocommerce-cart-form .actions button {
    padding-top: 0;
    padding-bottom: 0;
}


/* responsive */
@media(min-width: 700px){
    h1, .heading-size-1, h2, .heading-size-2, h3, .heading-size-3 {
        margin: 1em 0;
    }
}

@media(min-width: 768px){
    section.categorii_home ul.products {
        max-width: 768px;
    }
}

@media(min-width: 769px){
    .oferta-container {
        display: flex!important;
    }
}

@media screen and (min-width: 1000px) {
    #site-header .header-inner {
        justify-content: space-evenly;
    }
    .primary-menu-wrapper {
        display: flex;
    }
    nav.primary-menu-wrapper li {
        padding-top: 10px;
    }
}

@media screen and (min-width: 1024px) {
    .product_add_to_cart {
        max-width: 50%;
        margin-left: auto;
    }
}



@media screen and (max-width: 1000px) {
    .woo_header{
        display: block;
        margin-top: 10px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    .bs_filter_fieldset {
        height: auto;
    }
    .bs-filters {
        height: auto;
        margin-bottom: 30px;
    }
    .bs-filters .bs-dropdown-container  {
        width: 100%;
        margin-top: 15px;
    }
    .bs-select{
        width: 100%;
    }
    .woocommerce ul.products.bs-categories-ul li.product {
        width: 25%;
        margin: 0 2% 0.992em 0;
    }
    .bs_filter_fieldset {
        height: auto;
    }
    .bs-filters {
        height: auto;
        margin-bottom: 30px;
    }
    .bs-filters .bs-dropdown-container  {
        width: 100%;
        margin-top: 15px;
    }
    .bs-select{
        width: 100%;
    }
    /* .home .bs-dropdown-container.filter_model, .home .bs-dropdown-container.filter_version, .home .bs-dropdown-container.filter_engine {
        display: none;
    } */
    .home .bs-dropdown-container.filter_model.selected, .home .bs-dropdown-container.filter_version.selected, .home .bs-dropdown-container.filter_engine.selected {
        display: flex;
    }
    .woocommerce ul.products.bs-categories-ul li.product {
        width: 100%;
        margin: 0 2% 0.992em 0;
    } 
    .bs-dropdown-container {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    .bs-dropdown-container label {
        min-width: 80px;
    }

}

@media(max-width: 1024px){
    .product_add_to_cart .product_price {
        flex: 1;
    }
    .product_add_to_cart {
        margin-top: 20px;
    }
}

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

    .woocommerce .woocommerce-breadcrumb, .woocommerce-page .woocommerce-breadcrumb {font-size:16px !important;}
    .parent-1-head {width:100% !important;}
    .footer .col3 {   width: 100%; float: none; margin-right: 0px;  } */

    section.product_category {
        flex-direction: column;
    }
    .product_category_img {
        width: 20%;
        padding-top: 10px;
    }
    .oferta-container {
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
        display: none;
        padding: 0 10px;
        grid-template-columns: repeat(1, 1fr);
    }
    .oferta-container .search-form {
        display: flex;
        height: 48px;
        overflow: hidden;
        position: relative;
        margin-top: auto;
        margin-bottom: auto;
        width: 100%;
        margin-left: 0;
        grid-column: auto;
    }
    .oferta-container a.btn.btn-primary {
        font-size: 10px;
        display: none;
    }
    .woocommerce ul.products.bs-categories-ul li.product {
        width: 100%;
    }
    .woocommerce ul.products li.product {
        align-items: center;
    } 
    .section-inner {
        width: calc(100% - 2rem);
    }
    h1.entry-title {
        font-size: 2rem;
    }
    .woocommerce .related.products ul.products, .woocommerce-page .related.products ul.products {
        flex-direction: row;
    }
    img.brand_logo {
        max-width: 75px;
    }
    .products_front .woocommerce-ordering, .products_back .woocommerce-ordering, .products_other .woocommerce-ordering {    
        top: -39px; 
    }
    /* .product_first_screen {
        flex-direction: column;
    } */
    .woocommerce-page div.product div.images {
        float: left;
        width: 48%;
    }
    .woocommerce ul.products.columns-6 li.product, .woocommerce-page ul.products.columns-6 li.product {
        width: calc(50% - 7.5px) !important; /* 2 columns on mobile */
    }
    
}

/* Responsive adjustments for product grid - smaller products with maximum spacing */
@media (max-width: 1200px) {
    .woocommerce ul.products li.product {
        width: calc(20% - 21px) !important; /* Keep 5 columns on large screens - smaller products */
        margin: 0 0 40px 0 !important; /* Maximum vertical spacing */
    }
}

@media (max-width: 992px) {
    .woocommerce ul.products li.product {
        width: calc(25% - 26.25px) !important; /* 4 columns on tablets - smaller products */
        margin: 0 0 40px 0 !important; /* Maximum vertical spacing */
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        width: calc(33.333% - 23.33px) !important; /* 3 columns on small tablets - smaller products */
        margin: 0 0 40px 0 !important; /* Maximum vertical spacing */
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products li.product {
        width: calc(50% - 17.5px) !important; /* 2 columns on mobile - smaller products */
        margin: 0 0 40px 0 !important; /* Maximum vertical spacing */
    }
}

@media(max-width: 600px){
    .single-product button.single_add_to_cart_button {
        min-width: 120px;
        text-align: left;
    }
    form.woocommerce-ordering select {
        font-size: 13px;
    }
    .filter-products-front-rear {
        font-size: 15px;
    }
}

@media(max-width: 490px){
    .single-product .summary {
        margin-bottom: 1rem;
    }
    .product_details_mobile{
        display: block;
    }
    .single-product .summary p.price, .single-product .summary p.stock, .single-product .summary table.woocommerce-product-attributes.shop_attributes, .single-product .summary .yith-wcwl-add-to-wishlist, .single-product .summary .compare, .single-product .summary .product_meta{
        display: none;
    }
    .product_details_mobile .price {
        font-weight: 600;
    }
    .product_details_mobile .compare {
        margin-bottom: 15px;
    }
    .single-product button.single_add_to_cart_button {
        font-size: .7em;
    }
    .single-product form.cart input[type=number] {
        width: 4em;
        text-align: center;
        padding-right: 1.8rem;
    }
}

@media(max-width: 391px){
    .product_add_to_cart .product_price p.price {
        font-size: 20px;
    }
    p.stock.in-stock {
        color: green;
        font-size: 14px;
    }
}

/* Stilizare pentru programul de ridicare din magazin */
.pickup-schedule-info {
    margin-top: 8px !important;
    font-size: 0.9em !important;
    color: #666 !important;
    font-style: italic !important;
    padding-left: 20px;
    position: relative;
}

.pickup-schedule-info::before {
    content: "🕒";
    position: absolute;
    left: 0;
    top: 0;
}

.pickup-schedule-text {
    font-weight: 500;
}
