/*
Theme Name: Thuya Sklep
Theme URI: http://www.thuya.pl/theme
Author: AMMStudio
Author URI: http://www.thuya.pl
Description: Fancy Lab is a compatible WooCommerce theme made with WordPress. It is the best theme for you to sell anything online, beautifuly designed and fully responsive.
Version: 1.0
Text Domain: thuya-sklep
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, blog, right-sidebar, sticky-post, threaded-comments
*/

@font-face {
    font-family: 'LeagueSpartan';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/LeagueSpartan/LeagueSpartan-Regular.woff2') format("woff2");
}

@font-face {
    font-family: 'LeagueSpartan';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('fonts/LeagueSpartan/LeagueSpartan-Medium.woff2') format("woff2");
}

@font-face {
    font-family: 'LeagueSpartan';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('fonts/LeagueSpartan/LeagueSpartan-SemiBold.woff2') format("woff2");
}

@font-face {
    font-family: 'LeagueSpartan';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('fonts/LeagueSpartan/LeagueSpartan-Bold.woff2') format("woff2");
}

@font-face {
    font-family: 'Parisienne-Regular';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('fonts/Parisienne/Parisienne-Regular.woff2') format("woff2");
}

html {
    scrollbar-gutter: stable;
}

body {
    --thuya-admin-bar-height: 0px;
    margin: 0;
    padding: 0;
    font-family: 'LeagueSpartan', sans-serif;
    font-weight: 400;
    min-height: calc(100vh - var(--thuya-admin-bar-height));
    min-height: calc(100dvh - var(--thuya-admin-bar-height));
    background: linear-gradient(to bottom, #f2f2f2 0%, #ffffff 100%);
    width: 100%;
}

/* Układ strony i stopka przy dolnej krawędzi krótkich stron. */
body.admin-bar {
    --thuya-admin-bar-height: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --thuya-admin-bar-height: 46px;
    }
}

#page.site {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--thuya-admin-bar-height));
    min-height: calc(100dvh - var(--thuya-admin-bar-height));
    min-width: 0;
    width: 100%;
}

#page>.hero-flex,
#page>.content-area {
    flex: 1 0 auto;
    min-width: 0;
}

#page>footer.footer {
    flex: 0 0 auto;
    margin-top: auto;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.3s;

}

a {
    color: #aa0b0b;
    text-decoration: none;
    font-weight: 500;
}

/* Nawigacja */
.main-menu {
    padding: 0;
}

.main-menu ul {
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    border-radius: 0;
}

.main-menu ul li {
    display: inline;
}

.main-menu>ul li a,
.navbar-light .navbar-nav .nav-link {
    color: #fff;
    text-decoration: none;
}

.main-menu ul li a.nav-link:first-child {
    padding-left: 0 !important;
}

.main-menu ul li ul {
    background-color: #ff0000;
}

.main-menu ul li ul li {
    margin: 0;
}

.main-menu ul li ul li a {
    color: #fff;
}

.main-menu .navbar-nav .active>.nav-link {
    color: #aa0b0b;
}

.main-menu .dropdown-item:focus,
.main-menu .dropdown-item:hover {
    color: #fff;
    background-color: #CA2424;
}

.main-menu .navbar-nav {
    display: flex;
    width: 100%;
    gap: 0;
}

.main-menu .navbar-nav li {
    flex: 1;
}

.main-menu span {
    white-space: nowrap;
}

.main-menu .dropdown-menu {
    position: absolute;
    display: block;
    min-width: 20vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.35);
    margin-top: 0;
}

.main-menu .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-menu .dropdown-item.active,
.main-menu .dropdown-item:active {
    background-color: #d2335b;
}

.main-menu .navbar-toggler {
    border: none;
    padding-right: 0;
}

.main-menu .dropdown-toggle::after {
    vertical-align: 0.155em;
}

.main-menu .navbar-toggler-icon {
    background-image: url('img/hamburger-menu.svg');
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;

}

.main-menu ul li .dropdown-menu .dropdown>a::after {
    display: inline-block;
    margin-left: 0.355em;
    vertical-align: 0.2em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transform: rotate(-90deg);
}

.main-menu .dropdown-menu li {
    display: block;
    margin: 0px;
    padding: 0px;
}

.main-menu .dropdown-menu .dropdown-menu {
    top: -1px;
    left: 100%;
}

#o_nas {
    scroll-margin-top: 80px;
}

/* Nagłówek i ikony */
.top-bar {
    background: #ff0000;
    min-height: 111px;

}

.logo_thuya {
    max-height: 85px;
    width: auto;
}

.brand a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 95px;

}

.nav-link,
.navbar-nav {
    color: #ffffff;
}

.nav-link {
    margin-left: 1em;
}

.nav-link .register-icon {
    background: url('img/white_register.svg');

}

.nav-link .logout-icon {
    background: url('img/white_logout.svg');
}

.nav-link .search-icon {
    background: url('img/white_search.svg');
}

.search-form button {
    background-image: url('img/search.svg');
    height: 23px;
    width: 23px;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
}

.search-form input[type="search"] {
    background-color: #fff;
    border: none;
    font-weight: 500;
    font-size: 110%;
    padding: 0.3rem 1rem;
    margin-right: 0.3rem;
}

.cart-icon {
    background: url('img/cart.svg');
}

.cart-icon,
.search-icon,
.register-icon,
.logout-icon {
    background-repeat: no-repeat;
    height: 25px;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
}

/* Slider i sekcja hero */
.flex-control-nav {
    bottom: 10px !important;
    z-index: 10;
}

.slider-details-container {
    position: absolute;
    bottom: 25vh;
    left: 8vw;
    transform: none;
    width: min(900px, 90%);
    text-align: left;
    color: #fff;

}

.slider-details-container h1 a {
    font-family: 'Parisienne-Regular';

    font-size: clamp(2.5rem, 8vw, 7rem);

    line-height: 1;

    color: #850000;

    font-weight: 700;

    text-shadow: 2px 2px 6px rgba(255, 255, 255, .8);
}

.slider-details-container .subtitle p {
    font-size: clamp(1rem, 3vw, 3rem);

    line-height: 1.2;

    color: #fff;

    text-shadow: 2px 2px 6px rgba(0, 0, 0, .8);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.slider-details-container a:link,
.slider-details-container a:visited,
.subtitle a:link,
.subtitle a:visited {
    text-decoration: none;
}

.flex-control-paging li a {
    background: rgba(189, 189, 189, 0.5) !important;
    height: 10px !important;
    width: 15px !important;
}

.flex-control-paging li a.flex-active {
    background: #D2335B !important;
    width: 25px !important;
    z-index: 1000;
    opacity: 1;
}

.flex-control-nav li {
    margin: 0 2px !important;
}

.hero-flex {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#page>.hero-flex.hero-flex--home {
    flex: 0 0 auto;
    min-height: calc(100vh - var(--thuya-admin-bar-height));
    min-height: calc(100dvh - var(--thuya-admin-bar-height));
}

.hero-flex>header {
    flex-shrink: 0;
}

.hero-flex>.slider {
    flex: 1 1 auto;
    min-height: 0;

    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
}

.hero-flex>.content-area {
    flex: 1 0 auto;
}

@media (max-height: 480px) and (orientation: landscape) {
    .hero-flex>.slider {
        min-height: 260px;
    }
}

.flexslider {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent;
}

.flexslider .flex-viewport,
.flexslider .slides {
    height: 100% !important;
    margin: 0;
}

.flexslider .flex-viewport {
    transition: none !important;
}

.flexslider .slides {
    padding: 0 !important;
    position: relative !important;
}

.flexslider .slides>li {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    overflow: hidden;
}

.flexslider .slides li img.img-fluid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.flexslider .slides li .container {
    position: static !important;
    z-index: 2;
    height: 100%;
}

/* Karty produktów WooCommerce */
.wp-block-woocommerce-product-template {
    width: calc(100% + 24px);
    display: flex !important;
    flex-wrap: wrap !important;

    margin: 0 -12px !important;
    padding: 0 !important;

    list-style: none !important;
}

.wp-block-woocommerce-product-template>li {
    width: 25% !important;
    flex: 0 0 25% !important;

    padding: 12px !important;
    margin: 0 !important;
}

.wp-block-woocommerce-product-template .card {
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.2s ease;
}

.wp-block-woocommerce-product-template .card:hover {
    background: rgba(0, 0, 0, 0.08);
}

.card-body .card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;

    font-weight: 700;
    color: #ff0000;
    margin: 0;
    padding: 0;
}

.wc-block-components-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wc-block-components-product-image a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wc-block-components-product-image img {
    margin: 0 auto;
    padding-top: 5px;
    display: block;
    width: 92%;
    max-height: 280px;
    object-fit: cover;
}

@media (max-width: 991px) {

    .wp-block-woocommerce-product-template>li {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

}

@media (max-width: 576px) {

    .wp-block-woocommerce-product-template>li {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

}

/* Sekcje strony głównej */
.home .delivery-section {
    min-height: 100vh;
    background: url('img/perfect_lashes.webp') center / cover no-repeat fixed;
}

.home .delivery-section .delivery {
    min-width: 70%;
    background-color: #fff;
    transform: rotate(3deg);
}

.home .content-delivery {
    max-width: 300px;
}

.my-big {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

#backToTop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    font-size: 24px;
    line-height: 1;
    background-color: #ff0000 !important;
    border: 0;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Stopka */
section.copyright {
    background-color: #171717;
    color: #fff !important;
}

footer .footer-social-section {
    padding-bottom: 20px;

}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-menu ul li a:hover,
.social-icons a:hover,
span.woocommerce-Price-amount bdi {
    color: #850000;
}

.footer-menu ul,
.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.footer-menu ul li {


    margin: 10px 0px;
}

.footer-menu ul li:last-child {
    margin: 0;
}

.footer-menu ul li a {
    color: #939393;
    text-decoration: none;
}

.footer .logo_thuya {
    padding: 5px 0;
}

.footer .address {
    font-size: .9rem;
}

.footer svg {
    vertical-align: middle;
}

/* Baner cookies */
.cookie-banner {
    box-sizing: border-box;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1.25rem 1.5rem;
    z-index: 99999;
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner__text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cookie-banner__text p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #666;
}

.cookie-banner__text a {
    color: #dc3545;
}

.cookie-banner__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__buttons {
        flex-direction: row;
    }

    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
    }
}

/* WooCommerce: produkty, koszyk i zamówienie */
.related.products .product.type-product {
    text-align: center;
}

.related.products .product.type-product .woocommerce-loop-product__title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.woocommerce .thuya_sklep_onsale {
    position: relative;
}

.woocommerce .thuya_sklep_onsale span {
    display: inline-flex;
    align-items: center;
    position: absolute;
    padding: .5rem .5rem .25rem;
    border-radius: 10px;
    border: 1px solid #000;
    top: 5px;
    left: 5px;
    z-index: 20;
    color: #676975;
    text-transform: uppercase;
    background-color: #fff;
    font-weight: 600;
    line-height: 1;
}

.woocommerce ul.products li.product .onsale {

    align-items: center;
    display: block;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: .5rem .5rem .25rem;
    border-radius: 10px;
    border: 1px solid #000;
    margin: 0;
    z-index: 20;
    min-height: 0;
    color: #676975;
    text-transform: uppercase;
    background-color: #fff;
    font-weight: 600;
    line-height: 1;

}

.woocommerce-product-gallery {
    position: relative;
}

.woocommerce .thuya_sklep_onsale .woocommerce-product-gallery__trigger span {

    display: none;
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 1rem;
    height: 1rem;
    background: url('img/zoom-in.svg') no-repeat center;
    background-size: contain;
    z-index: 20;
}

del {
    position: relative;
    text-decoration: none;
    opacity: 0.6;
}

del::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #ff0000;
    transform: translateY(-50%);
}

ins {
    text-decoration-thickness: 2px;
    text-decoration-color: #850000;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.custom-breadcrumb-wrap {
    margin: 10px 0;
    font-size: 14px;
}

article>h1,
h1.page-title,
h3.wp-block-heading {
    color: #850000;
    font-weight: 600;
    margin-top: 0.5rem;
}

.wp-block-button__link,
.button.product_type_simple,
.button.product_type_variable {
    --c: #fff;

    background: linear-gradient(90deg, #0000 33%, #fff5, #0000 67%) var(--_p, 100%)/300% no-repeat,
        #850000;

    color: #0000;
    background-color: #ff0000 !important;

    border: none;
    transform: perspective(500px) rotateY(calc(20deg*var(--_i, -1)));
    text-shadow: calc(var(--_i, -1)* 0.08em) -.01em 0 var(--c),
        calc(var(--_i, -1)*-0.08em) .01em 2px #0004;
    outline-offset: .1em;
    transition: 0.3s;
    line-height: 1.5rem !important;
    border-radius: 0;
    font-weight: bold;
    font-size: 2rem;
    cursor: pointer;
    padding: .6rem;
    margin: .2rem;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.button.product_type_simple:hover,
.button.product_type_simple:focus-visible,
.button.product_type_variable:hover,
.button.product_type_variable:focus-visible {
    --_p: 0%;
    --_i: 1;
}

.wp-block-button__link:active,
.button.product_type_simple:active,
.button.product_type_variable:active {
    text-shadow: none;
    color: var(--c);
    box-shadow: inset 0 0 9e9q #0005;
    transition: 0s;
}

.shop-content a {
    color: #ff0000;
}

a.wp-block-button__link span {
    color: #0000;
}

a.wc-block-components-button {
    color: #fff !important;
}

.wp-element-button {
    background-color: #000;
}

svg.bi {
    width: 20px;
    max-height: 20px;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce ul.products li.product .button {
    background-color: #ff0000;
    color: #fff;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce ul.products li.product .button:hover {
    background-color: #bd3759;
}

.product_meta>span {
    display: block;
}

.woocommerce .summary h1.product_title {
    color: #850000;
    font-weight: 600;
    font-size: 2.1rem;
}

.woocommerce .product-description-body {
    line-height: 1.7rem;
}

.woocommerce .product-description-body p {
    margin: 0;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce-Price-amount {
    font-size: 25px;

    font-weight: 700;
}

form.cart,
.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single_add_to_cart_button {
    background-color: #850000 !important;
}

table.variations th.label {
    padding-right: 5px;
}

.product-description-section {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;

}

.section-title-wrapper {
    display: inline-block;
    position: relative;
    padding-top: 2.5rem;
}

.section-title-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;

    left: 0;
    right: 0;
    height: 2px;
    background-color: #dc3545;

}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #ffeb8a;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #ffe252;
}

.home .products.columns-4 li.product {
    position: relative;
}

.home .products.columns-4 li.product:not(:nth-child(4n))::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    height: 80%;
    width: 1px;
    background: #ddd;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 150px;
}

.cart-items {
    transition: transform 0.2s ease-in-out;
    color: #ff0000;

}

.woocommerce form .form-row {
    display: block;
}

.woocommerce-checkout #customer_details {
    margin-bottom: 20px;
}

.woocommerce table.shop_table {
    border-collapse: collapse;
}

.woocommerce table.shop_table thead {
    background-color: #D2335B;
    color: #fff;
}

.wc-block-components-button {
    background-color: #ff0000 !important;
}

.wc-block-components-radio-control__input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
}

/* Moje konto */
.woocommerce-MyAccount-navigation a {
    color: #000000;
}

.woocommerce-MyAccount-navigation .is-active {
    font-weight: 700;
    background-color: #000000;
}

.woocommerce-MyAccount-navigation .is-active a {
    color: #fff;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border: 1px solid #f3f3f3;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f3f3f3;
    padding: 0.3rem 0.7rem;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: 0;
}

.woocommerce table.my_account_orders {
    font-size: inherit;
}

.woocommerce-button {
    background-color: #ff0000 !important;
    color: #fff !important;
}

/* Blog */
.blog article,
.archive article {
    margin-bottom: 3rem;
}

.blog article .title,
.archive article .title {
    font-weight: 600;
}

.blog article .meta,
.archive article .meta {
    font-weight: 700;
    margin: 1rem 0;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 1px solid #efefef;
    padding: 0 0 0.7rem 0;
    margin-bottom: 1rem;
}

.archive-title span {
    color: #b58e8e;
    font-weight: normal;
}

.blog .post-thumbnail,
.archive .post-thumbnail {
    margin: 1rem 0;
}

.nav-links {
    font-weight: 700;
}

.nav-links span,
.nav-links a {
    padding: 0.4rem;
}

.blog-card {
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}

.blog-card__img-wrap {
    overflow: hidden;
}

.blog-card__img-wrap img {
    display: block;
    width: 100%;
    transition: transform 1.5s ease;
}

.blog-card:hover .blog-card__img-wrap img {
    transform: scale(1.06);
}

.single header h1 {
    font-weight: 700;
}

.single .post-thumbnail {
    margin: 1rem 0;
}

.comments-area {
    border-top: 1px solid #eee;
    padding: 1rem 0 2rem;
    margin-top: 2rem;
}

.comment-form label {
    display: block;
}

.comment-form input[type="submit"] {
    background-color: #D2335B;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    padding: 0.8em;
    display: inline-block;
}

/* Elementy wspólne */
embed,
iframe,
object {
    max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
    background-color: #F6F6F6;
    padding: 5px 15px;
    border: 1px solid #e2e2e2;
    max-width: 100%;
}

summary,
p,
ul li a,
.nav-links a,
.nav-links span {
    font-size: 1.15rem;
}

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

#live-search {
    width: 100%;
    padding: 14px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#live-search:focus {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.live-search-item:hover {
    background: #fbfbff;
    transform: scale(1.08);
}

.live-search-item {
    display: flex;
    padding: 12px;
    gap: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;

}

.live-search-item img {
    max-width: 100%;
    height: auto;
}

.live-search-item .title {
    font-weight: 400;
}

.live-search-item .price {
    color: #ff0000;
    font-size: 14px;
    font-weight: 700;
}

/* Klasy WordPressa */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;

    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone,
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;

}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;

}

.main-menu .dropdown-menu li.dropdown {
    position: relative;
}

/* Formularz kodu dostępu */
.thuya-access-box {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.thuya-access-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.thuya-access-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.thuya-access-form button {
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
}

/* Nawigacja i układ mobilny */
@media (min-width: 768px) {
    .main-menu .dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-submenu:hover>.dropdown-menu,
    .menu-item-has-children:hover>.dropdown-menu {
        display: block;
    }
}

@media all and (max-width: 767.98px) {

    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 100%;
    }

    .slider-details-container {
        width: 95%;
        bottom: 5vh;
    }

    .slider-details-container .subtitle p {
        margin-bottom: 0;
    }

    .woocommerce .col2-set .col-1,
    .woocommerce .col2-set .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .brand {
        margin-bottom: 15px;
    }

    .main-menu {
        border-top: 2px solid #f2f2f2;
        padding: 10px;
        margin-top: 10px;
    }

    .main-menu ul li {
        margin: 0;
    }

    .main-menu .dropdown-menu {
        display: block;
        margin-left: 1rem;
    }

    .main-menu ul li .dropdown-menu .dropdown>a::before {
        display: inline-block;
        margin-right: .255em;
        vertical-align: .255em;
        content: "";
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
        transform: rotate(-90deg);
    }

    .main-menu ul li .dropdown-menu .dropdown>a::after {
        display: none;
    }

    .main-menu .dropdown-menu .dropdown-menu {
        margin-left: 0;
    }

    .main-menu .dropdown-menu .dropdown-menu a {
        padding-left: 1rem;
    }

    .main-menu ul li a,
    .navbar-light .navbar-nav .nav-link {
        padding: 8px 0;
    }

    .search input[type="search"] {
        width: 75px;
    }

    .search-form input[type="search"] {
        width: 45%;
    }


    .main-menu .dropdown-menu .dropdown-menu {
        display: none !important;
        position: static;
        float: none;
        inset: auto;
        transform: none;
        margin: 0.25rem 0 0 1rem;
        width: calc(100% - 1rem);
    }

    .main-menu .dropdown-menu .dropdown-menu.show {
        display: block !important;
    }

}

@media all and (max-width: 500px) {
    .woocommerce ul.products li.product a img {
        width: 100%;
    }

    form.cart {
        display: block;
        align-items: center;
    }

    form.cart>div.quantity {
        padding-bottom: 5px;
    }

    #backToTop {
        right: 50px !important;
        bottom: 5px !important;
    }

    .logo_thuya {
        max-height: 3rem;
    }

    .brand {
        margin-bottom: 2px;
    }
}

/* Szerokość galerii i podsumowania we własnych kolumnach Bootstrap. */
.woocommerce div.product .thuya-product-row .woocommerce-product-gallery,
.woocommerce div.product .thuya-product-row .summary {
    float: none;
    width: 100%;
}

/* Widoczny fokus klawiatury oraz stan blokady formularza dostępu. */
.navbar-toggler:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.thuya-access-form button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Poprawka mobilna: szerokość strony głównej i baner cookies. */
@media (max-width: 767.98px) {

    /* Lista pozostaje w szerokości rodzica, bez ujemnych marginesów. */
    .home .wp-block-woocommerce-product-template {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .home .wp-block-woocommerce-product-template>li {
        box-sizing: border-box;
        min-width: 0;
    }

    /* Obrót wysokiego panelu powiększał obszar przewijania w poziomie. */
    .home .delivery-section .delivery {
        min-width: 0;
        max-width: 100%;
        transform: none;
    }

    .home .delivery-section .delivery>.row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Zastępuje bootstrapowe m-5 wyłącznie na tych trzech kafelkach. */
    .home .delivery-section .content-delivery {
        flex: 0 1 300px;
        max-width: calc(100% - 2rem);
        margin: 1rem !important;
    }

    .home .delivery-section .content-delivery img {
        max-width: 100%;
        height: auto;
    }

    /* Dwie krawędzie zamiast centrowania transformacją. */
    .cookie-banner {
        box-sizing: border-box;
        left: 12px;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: 12px;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: 12px;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
        padding: 1rem;
        overflow-x: hidden;
        overflow-y: auto;
        transform: none;
        overscroll-behavior: contain;
        animation: cookieSlideUpMobile 0.4s ease;
    }

    .cookie-banner__inner {
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner__text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cookie-banner__buttons {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cookie-banner__buttons .btn {
        flex: 1 1 120px;
        min-width: 0;
        white-space: normal;
    }
}

@keyframes cookieSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ograniczenie animacji CSS zgodnie z preferencją użytkownika. */
@media (prefers-reduced-motion: reduce) {

    body.loaded,
    .main-menu .dropdown-menu,
    #backToTop,
    .blog-card,
    .blog-card__img-wrap img,
    #live-search,
    .live-search-item,
    .wp-block-button__link,
    .button.product_type_simple,
    .button.product_type_variable {
        transition: none;
    }

    .cookie-banner {
        animation: none;
    }
}