/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


html, body {
    overflow-x: hidden;
}

a {
    color: #bf9a00;
}

/* NAGŁÓWEK LUPKA  */
.dgwt-wcas-ico-magnifier, .dgwt-wcas-ico-magnifier-handler {
    fill: white;
}

/* TĘCZOWY PRZYCISK  */
.rainbow-button-wrapper {
    position: relative;
    display: inline-block;
}

.rainbow-button {
    position: relative;
    text-decoration: none !important;
    z-index: 2;
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 0 30px;
    line-height: 60px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    white-space: nowrap;
    border: 1px solid black;
    transition: 0.5s;
}
.rainbow-button:hover {
    color: black;
    background-color: white;
}

.rainbow-glow {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 115%;
    height: 115%;
    margin: -20px;
    z-index: 1;
    background: linear-gradient(90deg,
    rgb(68, 255, 251) 0%,
    rgb(68, 176, 255) 25%,
    rgb(139, 68, 255) 50%,
    rgb(255, 102, 68) 75%,
    rgb(235, 255, 112) 100%
    );
    filter: blur(20px);
    opacity: 1;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.rainbow-button-wrapper:hover .rainbow-glow {
    filter: blur(26px);
    opacity: 1;
}


/* HOME - KARUZELA PRODUKTÓW  */

@media (max-width: 767px) {
    .home-new-products .swiper.elementor-loop-container.elementor-grid {
        padding: 40px 15px;
    }
}
@media (min-width: 768px) {
    .home-new-products .elementor-widget-woocommerce-product-title {
        min-height: 50px;
    }
    .home-new-products .swiper.elementor-loop-container.elementor-grid {
        padding: 40px 10px;
    }
    .home-new-products .swiper .swiper-slide {
        margin-right: 20px !important;
    }
}

/* ------- IFRAME NA STRONIE PRODUKTU — prosta, responsywna siatka ------- */

/* Domyślnie: 1 kolumna (telefony) */
.sp-iframe-embed-grid,
.custom-embed-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Komputery i większe tablety: 2 kolumny */
@media (min-width: 768px) {
    .sp-iframe-embed-grid,
    .custom-embed-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ujednolicenie wyglądu elementów osadzeń */
.sp-iframe-item,
.custom-embed-wrapper > * {
    width: 100%;
}

/* Iframe w pełnej szerokości z proporcjami 600x460 */
.sp-iframe-item iframe,
.custom-embed-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 460;
    border: 0;
    display: block;
}

/* Gdy WP owinie iframe w <p>, zachowaj siatkę bez rozjeżdżania */
.sp-iframe-embed-grid p,
.custom-embed-wrapper p {
    margin: 0;
}

/* Opcjonalnie: lekki zaokrąglony wygląd i cień */
.sp-iframe-item iframe,
.custom-embed-wrapper iframe {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}



.wp-embed-footer {
display: none!important;
}

/* NAPISY W KOLORACH NA PODSTRONIE PRODUKTU  */

@media only screen and (max-width: 768px) {
    @media (max-width: 767px) {
        .color-variable-item {
            width: 100% !important;
            min-height: 40px;
            padding: 12px;
            margin-bottom: 8px;
            background-color: #f5f5f5;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
            text-align: center;
            font-size: 16px;
            color: #000;
            font-weight: 500;
            position: relative;
        }
        .color-variable-item .color-label {
            width: 100%;
            text-align: center;
            position: absolute;
        }
        .color-variable-item::after {
            content: attr(data-title);
            display: block;
        }
    }

}

/* PODSTRONA KATEGORII WOOCOMMERCE  */

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    box-shadow: 3px 3px 10px 2px rgba(0, 0, 0, .5);
    padding: 12px;
}
.product-category.product a {
    display: flex;
    flex-direction: column-reverse;
}
.woocommerce-loop-category__title {
    color: #111827;
    font-size: 22px !important;
    text-align: center;
    align-content: center;
    min-height: 75px;
}
.woocommerce-loop-category__title .count {
    display: none;
}

.woocommerce ul.products li.product .button {
    border: solid 1px #111827;
    background-color: #111827;
    font-family: 'Inter';
    color: white;
    font-weight: 500;
    transition: 0.5s;
    font-size: 16px;
}
.woocommerce ul.products li.product .button:hover {
    background-color: white;
    color: #111827;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    padding: 15px !important;
}

.breadcrumb.breadcrumbs.woo-breadcrumbs {
    padding: 20px 0;
}
/*.woocommerce-shop li.product-category.product a[href^="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]:not([href="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]) {
    display: none;
}*/

/* Ukryj cały <li> jeśli <a> wewnątrz jest display: none */
/*.woocommerce-shop li.product-category.product a[href^="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]:not([href="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]) {
    display: none;
}
.woocommerce-shop li.product-category.product:has(a[href^="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]:not([href="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"])) {
    display: none;
}*/
.woocommerce-shop .woocommerce ul.products li.first, .woocommerce-shop .woocommerce-page ul.products li.first {
    clear: unset;
}
.woocommerce-shop .woocommerce ul.products li.last, .woocommerce-shop .woocommerce-page ul.products li.last {
    margin: 0 3.8% 2.992em 0;
}
/*.woocommerce ul.products li.product-category a[href^="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]:not([href="https://3dgdc.pl/kategoria-produktu/podswietlane-napisy/"]) {*/
/*    display: none;*/
/*}*/
@media (max-width: 767px) {
    .woocommerce ul.products li.product .woocommerce-loop-category__title {
        min-height: 103px;
    }
    .woocommerce ul.products li.product .button {
        font-size: 14px;
    }
}


body.archive ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

body.archive ul.products li.product {
  flex: 1 1 calc(25% - 23px);
  max-width: calc(25% - 23px);
  margin:0!important;
  height: auto;
}

body.archive ul.products:before {
  content:unset!important;
}

@media (min-width: 1025px) {
body.archive ul.products {
  gap: 30px;
}

body.archive ul.products li.product {
  flex: 1 1 calc(25% - 23px);
  max-width: calc(25% - 23px);
}
}

@media(max-width:991px) {
body.archive ul.products {
  gap: 20px;
}

body.archive ul.products li.product {
  flex: 1 1 calc(33.33% - 14px);
  max-width: calc(33.33% - 14px);
}

body.archive ul.products:before {
  content:unset!important;
}
}

@media(max-width:575px) {
body.archive ul.products {
  gap: 15px;
}

body.archive ul.products li.product {
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

body.archive ul.products:before {
  content:unset!important;
}
}

/* PODSTRONA PRODUKTU WOOCOMMERCE  */

.single-product #primary {
    max-width: 1200px;
    margin: 0 auto;
}

#add_payment_method table.cart img, .woocommerce-cart table.cart img {
    width: 165px !important;
}

.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    line-height: 0em !important;
}

.product .cart button {
    width: 100% !important;
    margin: 10px 0 !important;
    background-color: black !important;
    padding: 14px 0 !important;
    border-radius: 8px;
}

.product_meta .sku_wrapper {
    display: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: #ff9e04;
    font-size: 16px;
}

/* POZOSTAŁE  */

.wpgs-nav .slick-prev:before, .wpgs-nav .slick-next:before {
    font-size: 26px !important;
}

.woocommerce-breadcrumb {
    padding-top: 20px !important;
}

h2.woocommerce-loop-product__title {
    min-height: 55px !important;
    color: #111827;
}

@media (max-width: 767px) {
    .woo-variation-swatches .variable-items-wrapper {
        flex-direction: column;
    }
}


