/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* -------------------------------------- CERIZA EDITS -------------------------------*/
.wd-copyrights{
	font-size:12px;
}
.wd-dropdown-menu.wd-design-default{
	--wd-dropdown-width: 300px;
	background-color: #f8f8f8;
}
@media (min-width: 1024px) {
	.cmplz-cookiebanner .cmplz-buttons .cmplz-btn{min-width: 200px !important;}
	.cmplz-cookiebanner .cmplz-buttons .cmplz-btn{
		min-height: 15px !important;
		padding: 0px !important;
	}
	.wd-breadcrumbs{font-size:12px !important;}
}
@media (max-width: 768px) {
	.product_title{font-size: 26px !important;}
	.wd-tabs-title{font-size: 24px !important;}
	.slider-title{font-size: 24px !important;}
	h2{font-size: 24px !important;}
	.elementor-5828 .elementor-element.elementor-element-4cfcf72 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item{margin-bottom: 12px;}
	.promo-banner{height: 500px;}
	.promo-banner .banner-image img{visibility:hidden;}
	.wd-breadcrumbs {font-size: 13px !important;}
	.wd-content-layout {padding-block: 20px;}
}
/************************************** end breakpoints **********************************************************/
.wd-products .wd-entities-title{font-weight:600;}
.wd-products .extva{font-weight:400 !important;}
.wd-products .extva .amount{font-weight:400 !important;}
.checkout-red-text{
	color: red;
	text-align:center;
}
.woocommerce-form-coupon-toggle .woocommerce-info{margin-bottom:0px !important;}
td.product-quantity{text-align: center;}
#shipping_method li p{
	font-size: 12px;
   
}
#smartbill_billing_type{
	background: #87181a;
    padding: 5px;
}
select#smartbill_billing_type{
	color: #ffffff !important;
	padding-right: 20px;
}
.fan-shipping-logo{visibility:hidden !important;}
.fan-shipping-logo img{display:none !important;}
.fan-courier-checkout-logo{display:none !important;}
.woocommerce-shipping-methods img{display:none !important;}
.find-postal-code {margin-top: 5px;}
.find-postal-code a{
	font-family: "Inter", sans-serif !important;
	font-weight:400;
	text-decoration: underline;
	font-size:12px;
}
.woocommerce-orders-table__cell-order-actions .woocommerce-button {margin-bottom:5px;}
.quantity .btn{background-color: #ffffff;}
.sku{font-size:12px !important;}
.price ins{color:#87181A !important;}
.extva .amount{
	color: #000000 !important;
	font-weight: 700 !important;
}
.extva{
	color: #000000 !important;
	font-weight: 700 !important;
	font-size:13px;
}
.woocommerce .product-grid-item .price{
	color: #000000 !important;
}
.woocommerce .product-grid-item .wd-entities-title{
	font-weight: 700 !important;
}
.special-product-icon {
    margin-top: 8px;
	display: flow;
}
.special-product-icon svg{
	width: auto;
    padding: 0px 15px 0px 5px;
}
.special-product-icon-retragere {
    font-family: "Inter", Sans-serif;
    font-size: 12px;
    line-height: 17px;
	margin: 0px 10px;
	border-bottom: 1px solid #e1e1e1;
}

.special-product-icon-retur {
    font-family: "Inter", Sans-serif;
    font-size: 12px;
    line-height: 17px;
	margin: 8px 10px;
}
.product-sgr-notice{
	font-family: "Inter", sans-serif !important;
	font-weight:400;
	font-size:14px;
	line-height: 20px;

}
.product_meta .meta-label{font-weight: 400;}
.product_meta{
	gap:0px !important;
	padding-bottom: 5px;
}
p.stock.wd-style-default:is(.available-on-backorder,.in-stock){color: green;}
/* sgr plugin css */
.product-sgr-notice .sgr-tooltip {
	position: relative;
	display: inline-block;
	cursor: help;
}
.sgr-tooltip-text p{margin-bottom:0px;}
.product-sgr-notice .sgr-tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	z-index: 9999;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 320px;
	padding: 20px 12px;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.4;
	background-color: #ffffff;
	border: 1px solid #e1e1e1;
	text-align: left;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.product-sgr-notice .sgr-tooltip:hover .sgr-tooltip-text {
	visibility: visible;
	opacity: 1;
}
.product-sgr-notice .sgr-tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #333 transparent transparent transparent;
}
#home-top-banner .content-banner{
	background-color: rgba(255,255,255,0.6);
	padding: 30px;
	border-radius: 10px;
}
#pwgc-redeem-button{color: #ffffff;}
.blog-design-masonry.blog-style-bg .wd-post-thumb{height:250px;}
.product-label.wd-shape-round.out-of-stock{
	max-width: 100px !important;
	background-color: #f8f8f8;
	min-height:10px;
	color: #871619;
}
.woosb-item-child .product-price {display:none;}
.woosb-item-child .wd-checkout-prod-total {display:none;}
.woosb-item-child .product-subtotal {display:none;}
/* ------------------------------------------ OLD EDITS -----------------------------*/
.archive.woocommerce .page-title {
	background:black;
	padding:10px;
}

/*.header-banner.color-scheme-dark > div > p{
	font-size:16px;
	color:white;
}*/

.whb-sticky-shadow.whb-sticked .whb-row:last-child{
	padding-bottom: 5px;
	padding-top: 5px;
}

@media (min-width: 1025px) {
	.menu-item{
		height: 30px;
	}
}


/*#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > h4,
#home-bottom-banner1 > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > h4,
#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div.banner-inner.reset-last-child.wd-fontsize-xs{
	background-color: rgba(255,255,255,0.6);
	padding: 10px;
	width: auto;
}

#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div.banner-inner.reset-last-child.wd-fontsize-xs{
	margin-top:0;
}

#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div.banner-btn-wrapper > div > a > span,
#home-bottom-banner1 > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div > div > a > span{
	text-transform:none;
}*/

/* 1. Ensure the H2 can contain a block-level element */
#is-home-blog h2.element-title {
    display: block !important;
    text-align: left; /* Or 'inherit' depending on your theme */
}

/* 2. Create the "paragraph" effect */
#is-home-blog h2.element-title::after {
    content: "Descoperă gama de pachete și coșuri cadou corporate și onomastice sau solicită o ofertă personalizată";
    
    /* This forces it to a new line */
    display: block; 
    clear: both;
    
    /* Styling to make it look like a p */
    margin-top: 10px;
    font-size: 1.0rem;
    font-weight: 400;
    color: #000;
    text-transform: none;
    line-height: 1.6;
    
    /* Matches the alignment of the title */
    text-align: left; 
}

#is-icons-home{
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
}

#is-icons-home > div > ul{
	display: flex;
	justify-content: space-between;
}

/* Blog section */
#is-blog-home{
	width: max-content;
	margin-left:-14px;
	max-width: 1206px;
}

.blog-post-loop .wd-entry-meta,
.blog-post-loop .hovered-social-icons,
.single-post .wd-post-meta {
    display: none;
}

/* 1. Make all Woodmart Swiper/Carousel tracks flex */
.wd-carousel-wrap {
    display: flex !important;
    height: auto;
}

/* 2. Target both Blog and Product items to stretch to full height */
.wd-carousel-item {
    display: flex;
    height: 100%;
}

/* 3. Ensure the inner container (for both Products and Posts) fills the space */
.wd-carousel-item > .wd-post,
.wd-carousel-item > .product-grid-item,
.wd-carousel-item > .wd-item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 4. Force the background/border wrapper to the bottom */
.wd-carousel-item .article-inner,
.wd-carousel-item .product-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

/* 5. Align content so buttons stay at the bottom */
.wd-carousel-item .wd-post-content,
.wd-carousel-item .wd-product-header,
.wd-carousel-item .product-element-top {
    flex-grow: 1;
}

/* Limit Blog Carousel title to 3 lines */
.wd-carousel-item .wd-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number to show more/fewer lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.3em!important; /* Optional: forces a fixed height (approx 1.2em per line) */
}

/* Limit Blog Carousel excerpt to 3 lines */
.wd-carousel-item .wd-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number to show more/fewer lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.5em!important;
}

div.wd-post-content.article-body-container > h3{
	line-height: 1.1;
}

div.wd-post-content.article-body-container > .wd-post-excerpt {
	line-height: 1.2;
}

/* Force the blog grid containers to be equal height */
.wd-posts-element .wd-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* Ensure each article stretches to fill the row height */
.wd-posts-element .wd-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make the post content area grow to push the footer/button to the bottom */
.wd-posts-element .article-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.wd-posts-element .post-content {
    flex-grow: 1;
}

.wd-entities-title {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits title to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.3em; /* Ensures even 1-line titles take up 2 lines of space */
}

/* SGR section */
/* Target the SGR fee rows in Cart and Checkout tables */
tr.fee th, 
tr.fee td {
    color: #2d2d2d; /* Darker text for readability */
    font-size: 0.95em;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Optional: Add a subtle highlight to the SGR row */
tr.fee {
    background-color: rgba(0, 0, 0, 0.02); /* Very light grey */
    border-bottom: 1px dashed #ddd;
}

/* Make the label bold to distinguish from other taxes/fees */
tr.fee th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* END */

/* WoodMart submenu */
.wd-sub-menu .menu-item-object-product_cat{
	border-bottom: 0.5px solid lightgray;
}
.is-prod-description .tab-title-description{
	border-bottom: 1px solid lightgray;
}
.is-prod-description .tab-title-woosb_bundled{
	border-bottom: 1px solid lightgray;
}
.is-prod-description .wd-nav-wrapper.wd-nav-tabs-wrapper.text-left{
	/*border-bottom: 1px solid lightgray;*/
}
.is-prod-description .elementor-widget-container{
	display: flex;
	flex-direction: column-reverse;
}
.woosb-products .woosb-product{
	border-bottom:0px;
}
.woosb-products{
	border:0px;
}
.elementor-27432 .elementor-element.elementor-element-77c65f88{border-bottom:0px !important;}

#tab-description{
	color: black;
}

/* Custom submenu */
.is-woodmart-child-categories a{
	font-size: 14px;
	color: black;
}

.is-woodmart-child-categories li{
	line-height: 1;
}

.wd-dropdown-menu:has(.is-woodmart-child-categories) {
	padding: 12px;
}

/* Move all product labels (including discount percentage) to the left */
body .product-grid-item .product-labels {
    right: auto;
    left: 0; /* Adjust this value to change distance from the edge */
}


body .single-product-page .product-labels {
    right: auto;
    left: 0;
}

/* Target WoodMart's specific product image container */
.product-grid-item .product-element-top img {
    height: 200px !important;    /* Force the height */
    width: 100% !important;
    object-fit: contain !important; 
    background-color: transparent; 
}

/* Ensure the container doesn't collapse */
.product-grid-item .product-element-top {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Make the discounted price stand out 
.price ins .amount {
    font-size: 22px !important; /* Adjust size as needed
    font-weight: 700;           /* Makes it bold 
} */

.wd-prefooter {
	padding-bottom:0!important;
}

.category-short-description {
    margin-bottom: 30px;
    padding: 20px;
		width: 900px;
    clear: both;
    background: #f8f8f8;
    border-left: 4px solid #87181a;
}

.category-long-description {
    margin-top: 20px;
    padding: 30px 0;
}

/* Common styling for both */
.term-description {
    font-size: 16px;
    line-height: 1.6;
}

div.wd-post-read-more.wd-style-link.read-more-section > a{
	text-transform:none;
}

div.wd-post-content.article-body-container > div.wd-post-excerpt.entry-content{
	font-size:15px;
}

.woocommerce-billing-fields .optional,
.woocommerce-additional-fields .optional{
	top:unset;
}

/* order placed layout */
.woocommerce-bacs-bank-details > ul{
	display:block;
}

.woocommerce-bacs-bank-details > ul > li{
	text-align:left;
}

.wc-order-item-thumbnail img {
    border-radius: 5px; /* Matches WoodMart's modern look */
    border: 1px solid #eee;
    vertical-align: middle;
}
/* End */

/* Fix for Desktop Wrapping in WoodMart Order Table */
.shop_table.order_details td.product-name {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Forces image and text to stay side-by-side */
    gap: 15px; /* Modern way to handle spacing instead of margins */
    width: 100%;
    min-width: 600px; /* Adjust this number if your product names are very long */
}

.wc-order-item-thumbnail {
    flex: 0 0 60px; /* Fixed width: Don't grow, don't shrink, stay exactly 60px */
    width: 60px;
    height: 60px;
}

.wc-order-item-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Ensures the image doesn't look stretched */
    border-radius: 5px;
}

/* Ensure the text takes up the remaining space but doesn't vanish */
.shop_table.order_details td.product-name > a,
.shop_table.order_details td.product-name > span {
    flex: 1; 
    white-space: normal; /* Allows the text to wrap internally if it's HUGE, but keeps it next to the image */
    line-height: 1.4;
}

@media (max-width: 480px) {
    .shop_table.order_details td.product-name {
        min-width: 100% !important;
        gap: 10px;
    }
    .wc-order-item-thumbnail {
        flex: 0 0 45px; /* Slightly smaller image on mobile */
        width: 45px;
        height: 45px;
    }
}

.product-element-bottom{
	row-gap:7px!important;
}

#is-solicita-oferta > div > div.wd-button-wrapper.text-left > a > span{
	color: #87181a;
	text-transform:none;
	text-decoration: none;
	font-size:14px;
	font-weight:600;
}

#is-solicita-oferta > div > div.wd-button-wrapper.text-left > a{
	border:none;
}

/* Reset the last breadcrumb item to standard font weight */
.woocommerce-breadcrumb span:last-child, 
.woocommerce-breadcrumb a:last-of-type {
    font-weight: 400 !important;
    color: inherit;
}

/* Target both the widget and the heading inside */
.elementor-widget-wc-product-title,
.product_title,
.entry-title {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

/* Removes the checkmark icon from WoodMart stock status */
.single-product .stock:before {
    display: none !important;
    content: none !important;
}

.single-product .is-single-product-gallery .wd-gallery-thumb .wd-carousel-item img {
    height: 100px !important;
    object-fit: cover;
}

#mc-embedded-subscribe-form{
	margin:0!important;
}
/* --------------------------------- Breakpoints ------------------------------------------------*/
@media (max-width: 576px){
	.wd-wishlist-btn{
/*	width:40px;*/
	height:40px;
	align-items:center;
	justify-content:center;
}

div.product-labels.labels-rounded{
	top:10px;
}

#is-icons-home > div > ul{
	flex-direction: column;
}

#is-icons-home > div > ul > li{
	border: solid 1px #7a7a7a57;
	padding: 3px 5px;
	margin-left:auto;
	margin-right:auto;
	border-radius:5px;
	margin-bottom:6px;
}

.is-woodmart-child-categories a{
	padding: 5px 20px;
	line-height: 1.3;
}

#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div,
#home-bottom-banner1 > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div{
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
	margin-bottom: -10px;
	text-align: center;
}

#home-top-banner > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div.banner-btn-wrapper > div,
#home-bottom-banner1 > div > div > div > div.wrapper-content-banner.wd-fill.wd-items-middle.wd-justify-left > div > div > div{
	text-align: center;
}

#mc-embedded-subscribe-form{
	text-align: center!important;
}
}