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

.wd-product:not(.wd-hover-small) :is(.wd-product-img-link, .wd-product-img-hover) :is(picture, img) {
    width: auto !important;
    height: 200px !important;
}

.wd.wd .wd-loop-item-39801 .wd-product-wrapper {
    border: 1px solid #dedede !important;
    padding: 20px;
}

#wd-ce9dba4d,
body>div.wd-page-wrapper.website-wrapper>footer {
    display: none !important;
}




.ni_boks1 .wp-block-wd-button.btn {
    position: relative;
    display: inline-block;
    padding: 11px 22px;
    border: none;
    color: #fff;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
}

/* --- RAMKA --- */
.ni_boks1 .wp-block-wd-button.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(#dbb255 0 0) 100% 0 / 0% 1px no-repeat,
        /* top (od prawej) */
        linear-gradient(#dbb255 0 0) 100% 100% / 1px 0% no-repeat,
        /* right (od dołu) */
        linear-gradient(#dbb255 0 0) 0 100% / 0% 1px no-repeat,
        /* bottom (od lewej) */
        linear-gradient(#dbb255 0 0) 0 0 / 1px 0% no-repeat;
    /* left (od góry) */
    transition: background-size 0s;
}

/* Animacja ramki po najechaniu na cały blok */
.ni_boks1:hover .wp-block-wd-button.btn::before {
    animation: draw-border-ccw 0.5s linear forwards;
}

/* --- POŚWIATA (shine) --- */
.ni_boks1 .wp-block-wd-button.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

/* Shine aktywuje się przy hoverze NA SAM GUZIKU */
.ni_boks1 .wp-block-wd-button.btn:hover::after {
    opacity: 1;
    animation: shine-slide 1.2s ease forwards;
}

/* --- ANIMACJE --- */

/* Ramka – PRZECIWNIE do ruchu zegara z odwróconymi kierunkami */
@keyframes draw-border-ccw {
    0% {
        background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
    }

    25% {
        background-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%;
        /* lewa: od góry → dołu */
    }

    50% {
        background-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%;
        /* dół: od lewej → prawej */
    }

    75% {
        background-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%;
        /* prawa: od dołu → góry */
    }

    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
        /* góra: od prawej → lewej */
    }
}

/* Poświata prześlizgująca się w tle guzika */
@keyframes shine-slide {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}


.bezpieczne-zakupy {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 16px 0;
    padding: 14px 26px;
    /* border: 1px solid #e5e5e5; */
    /* border-radius: 8px; */
    align-items: flex-start;
    background: #f7f1e9;
}

.bz-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.bz-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #5a3e28;
    /* dopasuj do koloru marki */
}

.bz-item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bz-item a:hover {
    color: #5a3e28;
}


.ni_boks2 .wp-block-wd-button.btn {
    position: relative;
    display: inline-block;
    padding: 11px 22px;
    border: none;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    background: #D4A764;
    /* background: linear-gradient(302deg, rgba(212, 167, 100, 1) 0%, rgba(153, 117, 69, 1) 28%, rgba(162, 129, 81, 1) 53%, rgba(251, 247, 200, 1) 99%); */
    background: linear-gradient(135deg,
            rgba(248, 229, 163, 0.3) 0%,
            rgba(242, 201, 76, 0.3) 25%,
            rgba(212, 167, 67, 0.3) 50%,
            rgba(185, 138, 46, 0.3) 75%,
            rgba(246, 215, 107, 0.3) 100%);


}

/* --- RAMKA --- */
.ni_boks2 .wp-block-wd-button.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(#dbb255 0 0) 100% 0 / 0% 1px no-repeat,
        /* top (od prawej) */
        linear-gradient(#dbb255 0 0) 100% 100% / 1px 0% no-repeat,
        /* right (od dołu) */
        linear-gradient(#dbb255 0 0) 0 100% / 0% 1px no-repeat,
        /* bottom (od lewej) */
        linear-gradient(#dbb255 0 0) 0 0 / 1px 0% no-repeat;
    /* left (od góry) */
    transition: background-size 0s;
}

/* Animacja ramki po najechaniu na cały blok */
.ni_boks2:hover .wp-block-wd-button.btn::before {
    animation: draw-border-ccw 0.5s linear forwards;
}

/* --- POŚWIATA (shine) --- */
.ni_boks2 .wp-block-wd-button.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

/* Shine aktywuje się przy hoverze NA SAM GUZIKU */
.ni_boks2 .wp-block-wd-button.btn:hover::after {
    opacity: 1;
    animation: shine-slide 1.2s ease forwards;
}

/* --- ANIMACJE --- */

/* Ramka – PRZECIWNIE do ruchu zegara z odwróconymi kierunkami */
@keyframes draw-border-ccw {
    0% {
        background-size: 0% 2px, 2px 0%, 0% 2px, 2px 0%;
    }

    25% {
        background-size: 0% 2px, 2px 0%, 0% 2px, 2px 100%;
        /* lewa: od góry → dołu */
    }

    50% {
        background-size: 0% 2px, 2px 0%, 100% 2px, 2px 100%;
        /* dół: od lewej → prawej */
    }

    75% {
        background-size: 0% 2px, 2px 100%, 100% 2px, 2px 100%;
        /* prawa: od dołu → góry */
    }

    100% {
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
        /* góra: od prawej → lewej */
    }
}

/* Poświata prześlizgująca się w tle guzika */
@keyframes shine-slide {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}


body.single-product div.wpo-color-checkboxes {
    font-size: 13px;
}

.wpo-color-checkboxes .wpo-color-checkbox span.wpo-swatch-inner {

    background-size: 11px;
    height: 17px;
    width: 17px;
}

.wpo-color-checkboxes .wpo-color-checkbox {
    width: 44% !important;
}

.wpo-color-checkboxes .wpo-color-checkbox div {
    color: inherit;
    font-family: inherit;
    font-weight: 500;
    line-height: 17px;
    padding-left: 0;
    vertical-align: middle;
}

/* PODSTAWOWY STYL PRZYCISKU */
#wd-523c70ad .wp-block-wd-button.btn {
    position: relative;
    display: inline-block;
    padding: 11px 22px;
    border: none;
    color: #fff;
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
}

/* --- ZŁOTA RAMKA --- */
#wd-523c70ad .wp-block-wd-button.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(#dbb255 0 0) 100% 0 / 0% 1px no-repeat,
        /* top (od prawej do lewej) */
        linear-gradient(#dbb255 0 0) 100% 100% / 1px 0% no-repeat,
        /* right (od dołu do góry) */
        linear-gradient(#dbb255 0 0) 0 100% / 0% 1px no-repeat,
        /* bottom (od lewej do prawej) */
        linear-gradient(#dbb255 0 0) 0 0 / 1px 0% no-repeat;
    /* left (od góry do dołu) */
    transition: background-size 0s;
}

/* Animacja ramki przy hoverze NA CAŁYM BLOKU */
#wd-523c70ad:hover .wp-block-wd-button.btn::before {
    animation: draw-border-ccw3 0.5s linear forwards;
}

/* --- LEKKI BŁYSK (shine) --- */
#wd-523c70ad .wp-block-wd-button.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

/* Shine aktywny przy hoverze NA SAMYM PRZYCISKU */
#wd-523c70ad .wp-block-wd-button.btn:hover::after {
    opacity: 1;
    animation: shine-slide3 1.2s ease forwards;
}

/* --- ANIMACJE --- */

/* Ramka – przeciwnie do ruchu zegara, kierunki: 
   lewa G→D, dół L→P, prawa D→G, góra P→L */
@keyframes draw-border-ccw3 {
    0% {
        background-size: 0% 1px, 1px 0%, 0% 1px, 1px 0%;
    }

    25% {
        background-size: 0% 1px, 1px 0%, 0% 1px, 1px 100%;
        /* lewa: od góry → dołu */
    }

    50% {
        background-size: 0% 1px, 1px 0%, 100% 1px, 1px 100%;
        /* dół: od lewej → prawej */
    }

    75% {
        background-size: 0% 1px, 1px 100%, 100% 1px, 1px 100%;
        /* prawa: od dołu → góry */
    }

    100% {
        background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
        /* góra: od prawej → lewej */
    }
}

/* Efekt shine – przebłysk poziomy po najechaniu na guzik */
@keyframes shine-slide3 {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}



.easypack-visible-point-header {
    color: #fff;
    background: #9D7235;
}

.free-shipping-notice {
    background: #e8f5e9;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.cart-widget-side .free-shipping-notice {
    background-color: #00000000 !important;
    border-left: none !important;
}


#wd-5946082a:hover>#wd-45f4427d:hover>.wd-bg-overlay {

    /* height: 94% !important; */
}


.iconbox1 {
    height: 342px;
}

.iconbox1>.wp-block-wd-container {
    justify-content: flex-end;
}

.iconbox1 .wp-block-wd-button.btn {
    display: flex;
    max-width: 100%;
}


