/* GLOBAL */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce .single_add_to_cart_button {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: var(--color-main) !important;
    border: 1px solid var(--color-main) !important;
    color: #fff !important;
    transition: .3s !important;
    cursor: pointer !important;
    border-radius: 50px !important;
    font-size: .9rem !important;
    line-height: 110% !important;
    font-weight: 500 !important;
    text-align: center !important;
    font-family: var(--font-main) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .add_to_cart_button:hover,
.woocommerce .checkout-button:hover,
.woocommerce .single_add_to_cart_button:hover {
    color: #fff !important;
    background-color: #50865F !important;
    box-shadow: 0px 0px 13px rgba(0,0,0, .1) !important;
}
.woocommerce .quantity .qty,
.single-product .woocommerce-wrapper .summary input,
.woocommerce p input, 
.woocommerce p textarea, 
.woocommerce-ordering  select,
.woocommerce p select {
    font-family: var(--font-main) !important;
    border: 1px solid #DFDDDA !important;
    padding: 14px !important;
    border-radius: 25px !important;
}

.woocommerce a.remove {
    font-size: 0 !important;
    width: 35px !important;
    height: 35px !important;
    position: relative;
    border: 1px solid #000 !important;
    border-radius: 50%;
}
.woocommerce a.remove:hover {
    background-color: #000 !important;
}
.woocommerce a.remove:after {
    content: 'x';
    font-weight: 500;
    font-size: 16px;
    line-height: 112%;
    position: absolute;
    color: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s;
}
.woocommerce a.remove:hover:after {
    color: #fff !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
    font-weight: 500;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    font-weight: 700;
    opacity: .6;
    text-decoration: underline;
}
.woocommerce-notices-wrapper {
    width: 100%;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    border-top-color: var(--color-third) !important;
    width: 100%;
}
.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
    color: var(--color-third) !important;
}

.swcs-cart-item__quantity .quantity {
    border: none !important;
}
.swcs-account-auth__section {
    background-color: transparent !important;
}
.show-password-input {
    background-color: transparent;
    margin-top: 10px;
    padding: 0;
    border: 1px solid #000;
    width: 35px;
    height: 35px;
}
.show-password-input.display-password {
    background-color: #fff;
}
.show-password-input::after {
    content: "👁";
    font-size: 16px;
    transition: .3s;
}
.show-password-input.display-password::after {
    color: #000;
}
.swcs-active .woocommerce form label {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}
.swcs-checkbox input:checked + .swcs-checkmark::after {
    width: 4px !important;
}
.swcs-cart-item__info dl.variation dd {
    line-height: 120% !important;
}

.create-account.woocommerce-validated {
    font-size: 16px;
    font-weight: 500;
    color: var(--swcs-text, #1e1e1e);
}
.create-account.woocommerce-validated span {
    display: inline-block;
    margin-left: 10px;
}

@media(max-width: 767px) {
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        margin-bottom: 40px;
    }
    .woocommerce-MyAccount-navigation ul li {
        margin: 5px 10px;
    }

    .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .wc-forward, .woocommerce .add_to_cart_button, .woocommerce .checkout-button, .woocommerce .single_add_to_cart_button {
        font-size: .85rem !important;
        line-height: 110% !important;
        padding: 10px 15px !important;
    }
}

/* archive */
ul.products {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}
ul.products li {
    flex: 0 0 calc((100% - 90px) / 4) !important;
    max-width: calc((100% - 90px) / 4) !important;
    width: auto !important;
    padding: 0 15px !important;
    margin: 0 !important;
    padding: 25px !important;
    border: 1px solid #eaeaea;
    float: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.prodlist__items--cart ul.products li {
    max-width: calc(33.333% - 10px) !important;
    flex: 0 0 calc(33.333% - 10px) !important;
}
.prodlist__items--cart ul.products li .button {
    margin-top: 20px;
}
.prodlist__items--cart ul.products li .woocommerce-loop-product__title {
    margin-top: 20px;
}
ul.products li a {
    display: block;
    width: 100%;
}
ul.products li img {
    aspect-ratio: 5/6;
    object-fit: cover;
    transition: .3s;
    width: 100%;
}
ul.products li a:hover img {
    filter: brightness(80%);
}
ul.products li .woocommerce-loop-product__title {
    width: 100%;
    text-align: center;
    font-weight: 600 !important;
    font-size: 1.35rem !important;
    line-height: 130% !important;
}
ul.products li .price {
    font-weight: 400 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    line-height: 120% !important;
    color: #000 !important;
}
ul.products li .button {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    display: block !important;
    width: auto;
}


/* single */

.prodbox__info-wrapper {
    border: 1px solid #eaeaea;
    padding: 30px 20px;
}
.prodbox__info-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.prodbox__info-img {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 260px;
    max-width: 100%;
    margin-bottom: 20px;
}
.prodbox__info-img img {
    aspect-ratio: 5/7;
    width: 100%;
    object-fit: cover;
}
.prodbox__info-top .price {
    font-size: 1.35rem;
    line-height: 120%;
    margin-bottom: 20px;
    display: block;
}

.prodbox__info-lead {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    margin-top: 5px;
}
.prodbox__info-lead>img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 36px !important;
    height: auto !important;
    min-width: 36px !important;
    aspect-ratio: 1/1 !important;
}

.prodbox__info-bottom {
    padding-top: 20px;
}
.prodbox__info-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    width: 100%;
}
.prodbox__info-icon svg {
    height: auto;
    width: 20px;
    margin-right: 10px;
}
.prodbox__sep {
    display: inline-block;
    margin: 0 5px;
}

.prodbox__video {
    margin-bottom: 20px;
}
.prodbox__video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
}

.prodbox__item:not(:first-child) {
    margin-top: 20px;
}
.prodbox__item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 20px;
    border: none;
    background-color: var(--color-main);
    color: #000;
    --font-main: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 120%;
    text-align: left;
    width: 100%;
    padding: 15px 15px 15px 25px;
    cursor: pointer;
    position: relative;
}
.prodbox__item-title svg {
    width: 18px;
    height: auto;
    transition: .3s;
    transform: rotate(90deg);
}
.prodbox__item-title.active svg {
    transform: rotate(-90deg);
}

.prodbox__item-video {
    padding: 5px;
}
.prodbox__item-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    height: auto;
}

.prodbox__item-content {
    display: none;
}

@media(min-width: 993px) {
    .prodbox__info {
        padding-left: clamp(15px, 3vw, 80px);
    }
    .prodbox__info-wrapper {
        position: sticky;
        top: 120px;
    }
}

@media(max-width: 992px) {
    .prodbox__content {
        order: 0;
        margin-top: 30px;
    }
    .prodbox__info {
        order: 1;
    }
    .prodbox__items {
        order: 2;
    }
}

/* === Zablokowane lekcje === */
.prodbox__item--locked .prodbox__item-title {
    background-color: #f2f2f2;
    cursor: default;
    opacity: .65;
}
.prodbox__item--locked .prodbox__item-title .prodbox__arrow svg {
    transform: none;
}

/* === Thumbnail hover — galeria efektów === */
.prodbox__info-img {
    position: relative;
    overflow: hidden;
}
.js-prodbox-gallery {
    cursor: pointer;
}
.prodbox__gallery-item {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.prodbox__info-img img {
    transition: transform .3s;
}
.js-prodbox-gallery:hover img {
    transform: scale(1.07);
}
.prodbox__thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: rgba(0,0,0,.5);
    color: #fff;
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.js-prodbox-gallery:hover .prodbox__thumb-label {
    opacity: 1;
}

/* === CTA bar — dostęp do szkolenia === */
.prodbox__cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 30px;
    background: var(--color-bg);
    padding: 20px 25px;
    margin-bottom: 25px;
}
.prodbox__cta-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: .95rem;
    line-height: 140%;
}
.prodbox__cta-text svg {
    flex-shrink: 0;
    width: 22px;
    height: auto;
}