:root {
	--wd-text-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 15px;
	--wd-title-font: "Urbanist", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Urbanist", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Urbanist", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: none;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Urbanist", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 15px;
	--wd-brd-radius: 20px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(255,140,0);
	--wd-alternative-color: rgb(45,108,121);
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-font-weight: 900;
	--btn-accented-transform: uppercase;
	--btn-accented-bgcolor: rgb(126,220,65);
	--btn-accented-bgcolor-hover: rgb(56,188,0);
	--btn-transform: capitalize;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: rgb(0,122,255);
	--wd-link-color-hover: rgb(0,63,255);
	--wd-sticky-btn-height: 95px;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg, :is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg :is(.wd-product,.wd-cat) {
	--wd-prod-bg:rgb(255,255,255);
	--wd-bordered-bg:rgb(255,255,255);
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	font-size: 15px;
	text-transform: none;
}
html .product.wd-product del {
	font-weight: 300;
	font-size: 10px;
}
html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
	font-size: 30px;
	text-transform: capitalize;
}
html .wd-nav-mobile > li > a, html .wd-nav-mobile .wd-sub-menu li a, html .wd-nav.wd-layout-drilldown > li > a, html .wd-nav.wd-layout-drilldown > li [class*="sub-menu"] > :is(.menu-item,.wd-drilldown-back) > a, html .wd-nav.wd-layout-drilldown .woocommerce-MyAccount-navigation-link > a {
	text-transform: none;
}
html table th {
	text-transform: none;
}
html .wd-product .price {
	font-weight: 600;
	font-size: 13px;
}
:is(.page, .search-no-results, .error404) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,245,248);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,245,248);
	background-image: none;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,245,248);
	background-image: none;
}
.single-post :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,245,248);
	background-image: none;
}
html .btn.wd-buy-now-btn {
	color: rgb(0,0,0);
	background: rgb(126,220,65);
}
html .btn.wd-buy-now-btn:hover {
	color: rgb(255,255,255);
	background: rgb(102,141,50);
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-color: rgb(119,119,119);
	--wd-form-placeholder-color: rgb(119,119,119);
	--wd-form-bg: rgb(255,255,255);
}
.wd .product-label.onsale {
	background-color: rgb(126,220,65);
	color: rgb(0,0,0);
}
.wd .product-label.new {
	background-color: rgba(255,150,22,0.91);
	color: rgb(0,0,0);
}
.wd .product-label.featured {
	background-color: rgba(226,31,38,0.87);
}
.wd .product-label.out-of-stock {
	background-color: rgb(13,6,37);
	color: rgb(255,255,255);
}
.wd .product-label.attribute-label:not(.label-with-img) {
	background-color: rgb(30,115,190);
	color: rgb(255,255,255);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 800px;
}

@media (max-width: 1024px) {
	:root {
		--wd-sticky-btn-height: 95px;
	}
	html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
		font-size: 24px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-sticky-btn-height: 50px;
	}
	html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
		font-size: 22px;
	}
	.woocommerce-product-gallery.thumbs-position-left {
		--wd-thumbs-width: 75px;
	}

}
:root{
--wd-container-w: 1660px;
--wd-form-brd-radius: 35px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #333;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}



.wd-page-title {
background-color: rgb(246,245,248);
}

/* =====================================================================
   KOMPLETNÉ CSS pre objednaj.online
   Obsahuje: single product galéria, testimonials, sonar tlačidlo,
   product-labels + VYHĽADÁVACÍ POPUP (funkčná verzia s novými vecami)

   Vlož celé do WoodMart → Custom CSS (nahradí to, čo tam máš).
   Paleta: oranžová #FF8800, petrolejová #2D6C79, biela
   ===================================================================== */


/* =====================================================================
   1. SINGLE PRODUCT — Vynútenie štvorca 1:1
   ===================================================================== */
.product-images-inner,
.woocommerce-product-gallery__wrapper {
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    min-height: 500px;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.woocommerce-product-gallery__image {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce-product-gallery__image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}


/* =====================================================================
   2. TESTIMONIALS — zmenšenie
   ===================================================================== */
div[class*="testimonial"] img,
div[class*="testim"] img,
.testimonial-avatar,
.wd-testim-avatar {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
    flex: 0 0 50px !important;
}

div[class*="testimonial-content"],
div[class*="testim-text"] {
    padding: 10px 15px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
}

div[class*="testimonial-name"],
div[class*="testim-name"] {
    font-size: 12px !important;
    margin-top: 5px !important;
}

.star-rating {
    font-size: 12px !important;
    width: 80px !important;
}

div[class*="testimonial"],
div[class*="testim"] {
    margin-bottom: 5px !important;
    padding-top: 0 !important;
}


/* =====================================================================
   3. VYHĽADÁVACÍ POPUP
   ===================================================================== */

/* Overlay pozadie */
#custom-search-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999999 !important;
    display: none; /* JS prepne na 'flex' */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Biely popup box */
.search-container-inner {
    background: #ffffff;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#custom-search-input {
    flex: 1;
    background: #f4f4f4;
    border: 1px solid #eee !important;
    border-radius: 8px;
    padding: 12px 20px !important;
    font-size: 18px !important;
    outline: none !important;
}

.search-close-btn {
    cursor: pointer;
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* Bočný panel */
.search-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.sidebar-title {
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Nadpis "Značky" — odstup od kategórií */
#custom-search-brands .sidebar-title,
#custom-search-brands-auto .sidebar-title {
    margin-top: 20px;
}

/* Kategórie a značky — hover */
.cat-item:hover,
.brand-item:hover {
    background: #f0f0f0;
}

/* Karta produktu */
.search-item {
    height: auto !important;
    max-height: 400px;
}

/* Zvýraznenie nájdenej zhody v názve */
#custom-search-results mark {
    background: #fff1a8;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* Plocha s výsledkami */
.search-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-filters {
    display: none !important;
}

#custom-search-results {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-right: 10px;
    min-height: 0 !important;
    position: relative;
    z-index: 10;
}

/* Hlavný layout */
.search-main-layout {
    display: flex;
    gap: 30px;
    flex: 1;
    overflow-y: auto;
    align-items: flex-start;
}

/* Scrollbar */
#custom-search-results::-webkit-scrollbar { width: 5px; }
#custom-search-results::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* Info riadok názov + SKU */
.product-info-inline {
    line-height: 1.3;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}
.product-info-inline span:first-child {
    display: inline;
}

@media (max-width: 768px) {
    .search-container-inner {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 15px;
    }
    .search-main-layout {
        flex-direction: column;
        overflow-y: auto;
    }
    .search-sidebar {
        width: 100%;
        max-height: 150px;
        margin-bottom: 10px;
    }
    #custom-search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-bottom: 100px !important;
    }
    .search-header {
        padding-top: 10px;
    }
    #custom-search-input {
        font-size: 16px !important;
    }
    #custom-search-results a.btn-color-primary {
        margin-bottom: 30px !important;
        display: inline-block !important;
    }
}

@media (max-width: 1024px) {
    /* Popup na celú obrazovku */
    #custom-search-modal {
        padding: 0 !important;
        align-items: flex-start !important;
        background: #ffffff !important;
        z-index: 10000000 !important;
    }

    .search-container-inner {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 10px !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
    }

    /* Hlavička (Input + X) */
    .search-header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    #custom-search-input {
        flex: 1 !important;
        font-size: 16px !important;
        padding: 10px 15px !important;
    }

    .search-close-btn {
        font-size: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .search-close-btn:before {
        content: "\2715";
        font-size: 28px !important;
        color: #333;
        font-weight: bold;
    }

    /* Zarovnanie produktov */
    #custom-search-results {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        display: grid !important;
        padding-bottom: 100px !important;
    }

    .search-item {
        display: flex !important;
        flex-direction: column !important;
        height: 220px !important;
        padding: 10px !important;
        justify-content: space-between !important;
    }

    /* Názov v jednom riadku s bodkami */
    .product-info-inline {
        height: 20px !important;
        margin: 5px 0 !important;
        overflow: hidden !important;
        display: block !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        text-align: center;
    }

    .product-info-inline span:first-child {
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    /* Skrytie SKU na mobile */
    .product-info-inline span:last-child {
        display: none !important;
    }

    .search-item img {
        max-height: 80px !important;
        object-fit: contain !important;
        margin-bottom: 5px !important;
    }

    /* Skrytie sidebar-u na mobile */
    .search-sidebar {
        display: none !important;
    }
}


/* =====================================================================
   4. SONAR ANIMÁCIA — tlačidlo Pridať do košíka
   ===================================================================== */
.single_add_to_cart_button,
.wd-sticky-add-to-cart .single_add_to_cart_button {
    position: relative;
    animation: sonarEffectOnly 2.0s infinite;
}

@keyframes sonarEffectOnly {
    0% {
        outline: 2px solid rgba(126, 220, 65, 1);
        outline-offset: 0px;
        opacity: 1;
    }
    100% {
        outline: 2px solid rgba(126, 220, 65, 0);
        outline-offset: 10px;
        opacity: 1;
    }
}


/* =====================================================================
   5. PRODUCT LABELS — poradie štítkov
   ===================================================================== */
.product-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.your-custom-label-class {
    order: -1;
    margin-bottom: 5px;
    max-width: fit-content;
}