/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


:root {
    --primary: #031c26;
    --highlight: #d98943;
    --highlight-light: #edb481;

    --lightgrey: #efefef;
    --tertiary : rgb(166,123,86);
}

html {
    scroll-behavior: smooth;
}

li p {
    margin-bottom: 0;
}


.wooco_component_product_selection_list_item.wooco_item_selected,
.wooco_component_product_selection_grid_item.wooco_item_selected {
    border-color: var(--highlight) !important;
    border-width: 3px;
}

.wooco_component_product_selection_grid_item.wooco_item_selected:before,
.wooco_component_product_selection_grid_item:before{
    display: none;
    color: #ffffff;
    background-color: var(--highlight);
}

.wooco_component_product_selection_list_item_choose {
    display: none;
}

.wooco_component_product_selection_list .wooco_component_product_selection_list_item,
.wooco_component_product_selection .dd-select,
.wooco_component_product_selection_grid_item{
    border-radius: 10px;
}

input[name="ral"] {
    height: 108px;
}

.woocommerce-product-gallery.woocommerce-product-gallery--with-images {
    position: sticky;
    top: 100px;
}

.wooco_component_name {
    background-color: var(--lightgrey);
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 10px 15px;
    text-transform: uppercase;
    position: relative;
}

.wooco_component_name:hover {
    background-color: #cbcbcb;
    cursor: pointer;
}

.wooco_component_name:before {
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    content: "\f129";
    color: var(--primary);
    position: absolute;
    right: 15px;
    font-family: "woodmart-font";

    transform: rotate(0deg);
    transform-origin: center;
    transition: all 300ms;
}

.wooco_component_name.active:before {
    transform: rotate(180deg);
}

.wooco_component_product_selection_list .wooco_component_product_selection_list_item .wooco_component_product_selection_list_item_choose span:before {
    line-height: 24px;
    font-size: 11px;
}

.button.highlight {
    background-color: var(--highlight);
    color: #fff;
}

.info {
    border: 2px solid var(--highlight);
    font-size: 0.9rem;
    color: #fff;
    border-radius: 15px;
    background-color: #edb481;
    margin-bottom: 20px;
    padding: 20px;
}

.info h4 {
    color: #fff;
}

.single_add_to_cart_button {
    width: calc(100% - 90px);
}

/*------------- MENÜ ---------------- */

.wd-dropdown-menu > .container,
.wd-dropdown-menu > .container > div {
    height: 100%;
}

.wd-dropdown-menu .wp-block-wd-image img,
.wd-dropdown-menu .wp-block-image img{
    max-height: 200px;
    width: auto;
}

@media screen and (min-width: 1200px) {
    .wd-dropdown-menu .wp-block-wd-image img,
    .wd-dropdown-menu .wp-block-image img{
        object-fit: contain;
        width: auto;
        height: 200px;
    }
}

.wd-dropdown-menu .wp-block-wd-row {
    max-width: 100%;
}

.btn.btn-style-default:hover, .wp-block-button__link:hover {
    background-color: var(--highlight)!important;
}

.special-headline {
    font-size: 4.5rem !important;
    font-family: 'sora';
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
}
.special-headline em {
    font-style: normal;
    color: var(--highlight) !important;
}


.wp-block-table table td,
.wp-block-table table th {
    border: none;
    padding: 10px;
}

.wp-block-table table tr {
    border-width: 0px;
}

.wp-block-table table tr:nth-child(2n) td ,
.wp-block-table table tr:nth-child(2n) th{
    background-color: #efefef;
}

.wp-block-table table tr:hover td,
.wp-block-table table tr:hover th{
    background-color: var(light);
}

.small-content {
    max-width: 768px;
}

.wp-singular .wooco_components .wooco_component.wooco_component_required .wooco_component_name:after {
    color: var(--highlight);
}

.woocommerce-product-gallery .product-label.featured,
.wd-product-thumb .product-label.featured {
    background-color: var(--highlight);
}

.wd-carousel-item .product-labels {
    display: none;
}


/*------------- POPUP ---------------- */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 420px;
    max-width: calc(100% - 40px);
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.popup h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background: var(--highlight);
    color: white;
}

.btn-primary:hover {
    background: var(--primary);
}

.btn-secondary {
    background: #e5e5e5;
}

.btn-secondary:hover {
    background: #d3d3d3;
}
.offer-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

#loadingOverlay{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.85);
    display:none;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:99999;
}

#loadingOverlay.show{
    display:flex;
}

.loader{
    width:60px;
    height:60px;
    border:6px solid #e5e5e5;
    border-top:6px solid #4CAF50;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

#loadingOverlay p{
    margin-top:20px;
    font-size:16px;
    color:#333;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.wd-product .wd-product-thumb {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center !important;
}

.wd-product .product-element-bottom {
    flex-grow: 0 !important;
}

.bestprice {
    display: flex;
    color: var(--highlight);
    padding: 20px;
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
    border: 1px solid var(--highlight);
    border-radius: 15px;
}

.bestprice p:first-child {
    flex-shrink: 0;
}

.cky-btn  {
    border-color: var(--tertiary) !important;
}

.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-customize,
.cky-btn.cky-btn-preferences{
    color: var(--tertiary) !important;
}

.cky-btn.cky-btn-accept, .cky-revisit-bottom-left {
    background-color: var(--tertiary) !important;
}

.woocommerce-product-gallery__image  {
    align-items: center;
    display: flex;
    justify-content: center;
}
.woocommerce-product-gallery__image img {
    max-width: max-content;
}
