/*
 Theme Name:   Kadence Child
 Template:     kadence
 Version:      1.0
*/

/* Poprawka wygładzania czcionek */
body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/* Linki i nawigacja */
a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
    text-decoration-style: dashed;
}

a:active {
    text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
    text-decoration: underline;
    text-decoration-style: solid;
}

/* Style przycisków Search i File Block */
.wp-block-search__button,
.wp-block-file .wp-block-file__button {
    background-color: var(--wp--preset--color--primary);
    border-radius: 0;
    border: 0 solid;
    color: var(--wp--preset--color--background);
    font-size: var(--wp--preset--font-size--medium);
    padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/* Hover dla przycisków */
.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
    opacity: 0.90;
}

/* Wyrównanie bloków */
.wp-site-blocks,
body>.is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"]>.wp-block-group,
.is-root-container .wp-block[data-align="full"]>.wp-block-cover {
    padding-left: var(--wp--custom--spacing--outer);
    padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks>.wp-block-group.has-background,
.wp-site-blocks>.wp-block-cover,
.wp-site-blocks>.wp-block-template-part>.wp-block-group.has-background,
.wp-site-blocks>.wp-block-template-part>.wp-block-cover,
body>.is-root-container>.wp-block-cover,
body>.is-root-container>.wp-block-template-part>.wp-block-group.has-background,
body>.is-root-container>.wp-block-template-part>.wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
    margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
    margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
    width: unset;
}

/* Bloki w kolumnach bez negatywnych marginesów */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"]>*:not(.wp-block-group) .wp-block[data-align="full"] {
    margin-left: auto !important;
    margin-right: auto !important;
    width: inherit;
}

/* Padding dla responsywnego menu */
.wp-block-navigation__responsive-container.is-menu-open {
    padding-top: var(--wp--custom--spacing--outer);
    padding-bottom: var(--wp--custom--spacing--large);
    padding-right: var(--wp--custom--spacing--outer);
    padding-left: var(--wp--custom--spacing--outer);
}

/* Spacing dla legacy Post Comments block */
.wp-block-post-comments ol.commentlist ul.children {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.wp-block-post-comments ol.commentlist li.comment:not(:last-child) {
    margin-bottom: 1rem;
}

.custom-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.custom-gallery img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.custom-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.custom-price {
    font-size: 1.5rem;
    color: #e74c3c;
}

.single_add_to_cart_button {
    background: #2c3e50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    transition: 0.3s;
}

.single_add_to_cart_button:hover {
    background: #34495e;
}

.custom-tabs,
.custom-related {
    margin-top: 40px;
}

@media(max-width:768px) {
    .custom-single-product {
        padding: 10px;
    }
}

.product-main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.custom-gallery {
    flex: 1 1 200px;
    /* małe zdjęcie */
}

.custom-gallery img {
    width: 100%;
    border-radius: 6px;
}

.custom-info {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.custom-price {
    font-size: 1.5rem;
    color: #e74c3c;
}

.single_add_to_cart_button {
    background: #2c3e50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    transition: 0.3s;
}

.single_add_to_cart_button:hover {
    background: #34495e;
}

.custom-tabs,
.custom-related {
    margin-top: 40px;
}

@media(max-width:768px) {
    .product-main {
        flex-direction: column;
    }
}

/* ===============================
   GLOBAL MENU
=============================== */
#podm-global-menu {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: calc(100% - 30px);
    max-width: 980px;
    padding: 6px 12px;
    border-radius: 16px;
    z-index: 9998;
    background-image: url('https://panodprodukcjimuzycznej.pl/wp-content/uploads/2025/07/2-1-e1758624435973.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

#podm-global-menu .podm-menu-left,
#podm-global-menu .podm-menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

#podm-global-menu .podm-menu-left {
    justify-content: flex-start;
}

#podm-global-menu .podm-menu-right {
    justify-content: flex-end;
}

#podm-global-menu .podm-menu-center {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 10px;
}

#podm-global-menu .podm-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.18s ease;
    position: relative;
}

#podm-global-menu .podm-menu-item:hover,
#podm-global-menu .podm-menu-item.podm-active {
    background: #ff0000;
    color: #fff;
}

/* LICZNIK KOSZYKA */
#podm-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO MENU */
#podm-global-menu .podm-menu-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ===============================
   POPUP KONTAKTOWY
=============================== */
#custom-contact-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 10000;
}

#custom-contact-form-overlay:target {
    display: flex;
}

.custom-contact-form-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

#close-contact-form {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #000;
    text-decoration: none;
}

/* INPUTY I BUTTON */
#custom-contact-form input,
#custom-contact-form textarea,
#custom-contact-form button {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#custom-contact-form button {
    background: #0073e6;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* RESPONSYWNOŚĆ */
@media(max-width:768px) {
    #podm-global-menu {
        width: calc(100% - 16px);
        padding: 6px 8px;
        bottom: 10px;
    }

    #podm-global-menu .podm-menu-item {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #podm-global-menu .podm-menu-logo img {
        width: 60px;
        height: 60px;
    }
}

.woocommerce-checkout .payment_method .button {
    color: #fff !important;
    /* biały tekst */
    background-color: #000 !important;
    /* czarne tło */
}

.woocommerce-checkout .payment_method .button:hover {
    background-color: #333 !important;
}
/* Globalne zabezpieczenie przed wychodzeniem elementów poza ekran */
html, body {
    max-width: 100vw;     /* ogranicza całą szerokość strony */
    overflow-x: hidden;   /* ukrywa wszystko co wystaje poza ekran */
}

/* Menu globalne */
#podm-global-menu {
    display: flex;
    flex-wrap: nowrap; /* nie pozwala zawijać wierszy */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Wszystkie ikony i linki w menu */
.podm-global-menu a, .podm-global-menu i {
    max-width: 100%;
    font-size: clamp(12px, 2vw, 20px); /* automatycznie zmienia się przy zmianie szerokości okna */
}

/* Formularze i przyciski */
input, textarea, button {
    width: 100%;
    max-width: 100%;
    font-size: clamp(12px, 1.5vw, 16px);
    padding: clamp(5px, 1vw, 15px);
    box-sizing: border-box;
}

/* Obrazy i logotypy */
img {
    max-width: 100%;
    height: auto;
}

/* Overlay formularza kontaktowego */
#custom-contact-form-overlay > div {
    max-width: 90%;
    width: 90%;
}

