:root {
    --stopit-tide-500: #39AED3;
    --stopit-tide-600: #0184AD;
    --stopit-navy-900: #3D5B78;
    --stopit-gold-500: #C9A24B;
    --stopit-max: 1200px;
}

.stopit-product-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: var(--stopit-navy-900);
}

.stopit-hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(20, 32, 30, .30),
            rgba(20, 32, 30, .62));
}

.stopit-hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--stopit-max);
    margin: 0 auto;
    padding: 44px 32px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}


/* =========================================================
   GALERIA
   ========================================================= */

.stopit-gallery-host {
    min-width: 0;
}

.stopit-gallery-host .woocommerce-product-gallery,
.stopit-gallery-host .wpgs,
.stopit-gallery-host .wpgs-for {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.stopit-gallery-host .wpgs-for {
    height: 416px;
}

.stopit-gallery-host img {
    border-radius: 10px;
}

.stopit-product-hero .slick-dots {
    display: none !important;
}

.stopit-product-hero .slick-slide img {
    border-radius: 14px !important;
}

.stopit-product-hero .woocommerce-product-gallery__image {
    margin-bottom: 14px !important;
}

.stopit-product-hero .slick-slide.thumbnail_image img {
    aspect-ratio: 1 / 1;
    border-radius: 8px !important;
    object-fit: contain;

}

.stopit-product-hero .slick-slide:not(.thumbnail_image) img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.wpgs-for .slick-arrow::before,
.wpgs-nav .slick-prev::before,
.wpgs-nav .slick-next::before {
    color: #fff !important;
}

.fancybox-button svg path {
    fill: #000 !important;
}

.fancybox-bg {
    background-color: #fff !important;
}


/* =========================================================
   TREŚĆ HERO
   ========================================================= */

.stopit-hero-eyebrow {
    display: block;
    margin-bottom: 10px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .64);
}

.stopit-stars {
    margin-bottom: 10px;

    font-size: 14px;
    line-height: 1;
    letter-spacing: 2px;

    color: var(--stopit-gold-500);
}

.stopit-hero-copy h1 {
    margin: 0 0 12px;

    font-family: 'Playfair Display', serif !important;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    font-weight: 500;

    color: #fff !important;
}

.stopit-product-sub,
.stopit-product-sub p {
    max-width: 470px;
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: rgba(255, 255, 255, .82);
}


/* =========================================================
   CENA
   ========================================================= */

.stopit-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;

    margin: 20px 0 16px;
}

.stopit-price-now,
.stopit-price-now .price,
.stopit-price-now .amount,
.stopit-price-now ins,
.stopit-price-now del {
    color: #fff;
}

.stopit-price-now {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.stopit-price-now .amount {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
}

.stopit-price-now del {
    opacity: .55;
    font-size: .7em;
}

.stopit-price-now ins {
    text-decoration: none;
}

.stopit-price-note {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .62);
}


/* =========================================================
   KOLORY
   ========================================================= */

.stopit-color-label {
    display: block;
    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .62);
}

.stopit-color-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 20px;
}

.stopit-swatch {
    width: 34px !important;
    height: 34px;

    padding: 0 !important;

    border: 2px solid rgba(255, 255, 255, .42) !important;
    border-radius: 50% !important;

    background: var(--swatch-color) !important;

    cursor: pointer !important;
    appearance: none !important;
}

.stopit-swatch.is-active {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px var(--swatch-color);
}

.stopit-swatch--text {
    width: auto;
    min-width: 60px;

    padding: 0 12px;

    border-radius: 17px;

    background: transparent;
    color: #fff;

    font-size: 12px;
}


/* =========================================================
   UKRYTE NATYWNE POLA WARIANTÓW
   ========================================================= */

.stopit-buy table.variations {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

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

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
    border: 0 !important;
}

.stopit-buy .reset_variations,
.stopit-buy .woocommerce-variation-price,
.stopit-buy .woocommerce-variation-availability,
.stopit-buy .woocommerce-variation-description {
    display: none !important;
}


/* =========================================================
   FORMULARZ KUPNA
   ========================================================= */

.stopit-buy form.cart {
    margin: 0 !important;
}

.stopit-buy form.cart::before {
    display: none !important;
}

.stopit-buy .single_variation_wrap {
    margin-top: 16px !important;
}

.stopit-buy .woocommerce-variation-add-to-cart {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 !important;
    align-items: flex-start !important;
}


/* =========================================================
   ILOŚĆ
   ========================================================= */

.stopit-buy .quantity.qty-row,
.stopit-buy .quantity.stopit-qty-ready {
    position: relative;

    display: inline-flex !important;
    align-items: center !important;

    width: fit-content !important;
    height: 38px;

    margin: 24px 0 0 !important;
    padding: 0 !important;
    gap: 0 !important;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;

    background: transparent;
    float: none !important;
    overflow: visible;
}

/* napis ILOŚĆ nad kontrolką */
.stopit-buy .quantity.qty-row::before,
.stopit-buy .quantity.stopit-qty-ready::before {
    content: "Ilość";

    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);

    display: block;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .62);
}

/* minus / plus */
.stopit-buy .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #fff !important;

    font-family: inherit;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1 !important;

    cursor: pointer;

    box-shadow: none !important;
    outline: none;
}

.stopit-buy .qty-btn:hover,
.stopit-buy .qty-btn:focus {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}

.stopit-buy .qty-minus,
.stopit-buy .qty-plus {
    border-radius: 0 !important;
}


/* środkowy input WooCommerce */
.stopit-buy .quantity input.qty.qty-val,
.stopit-buy .quantity .qty.qty-val {
    flex: 0 0 44px;

    width: 44px !important;
    height: 38px !important;

    min-width: 44px !important;
    min-height: 38px !important;
    max-width: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .25) !important;
    border-right: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #fff !important;

    font-family: inherit;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 38px !important;
    text-align: center !important;

    box-shadow: none !important;
    outline: none !important;

    appearance: textfield;
    -moz-appearance: textfield;
}

.stopit-buy .quantity input.qty.qty-val::-webkit-inner-spin-button,
.stopit-buy .quantity input.qty.qty-val::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}


/* =========================================================
   PRZYCISK ZAMAWIAM
   ========================================================= */

.stopit-buy .single_add_to_cart_button {
    min-height: 56.5px;

    margin: 0 !important;
    padding: 16px 34px !important;

    border: 0 !important;
    border-radius: 4px !important;

    background: var(--stopit-tide-500) !important;
    color: #fff !important;

    box-shadow: none !important;

    font-size: 15px !important;
    font-weight: 700 !important;
}

.stopit-buy .single_add_to_cart_button:hover {
    background: var(--stopit-tide-600) !important;
}

.stopit-buy .single_add_to_cart_button.disabled,
.stopit-buy .single_add_to_cart_button:disabled {
    opacity: .45 !important;
    cursor: not-allowed;
}


/* =========================================================
   STOCK / WYSYŁKA
   ========================================================= */

.stopit-stock-message {
    min-height: 18px;
    margin-top: 10px;

    font-size: 12px;

    color: rgba(255, 255, 255, .72);
}

.stopit-stock-message .stock {
    margin: 0;
    color: inherit;
}

.stopit-hero-ship {
    margin: 8px 0 0;

    font-size: 12px;

    color: rgba(255, 255, 255, .56);
}

.stopit-how-btn {
    padding: 16px 34px;
    font-size: 15px;
    position: absolute;
    bottom: 0;
    left: 190px;
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    height: 56.5px !important;
}

.stopit-how-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

.stopit-buy .single_add_to_cart_button {
    width: 174px !important;
}

.stopit-buy {
    position: relative;
}

@media(min-width: 992px) {
    .stopit-buy:has(.stopit-out-of-stock-form:not(.is-hidden)) {
        padding-bottom: 60px;
    }
}

.woocommerce-product-gallery .zoomtoo-container,
.woocommerce-product-gallery .thumbnail_image {
    background: #fff;
    border-radius: 14px;
}

.product-content {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#cena .btn-lg {
    color: #fff;
    margin-top: 24px;
}

.faq-list .fq {
    background-color: transparent !important;
    padding: 20px 0 !important;
}

.fa {
    display: block !important;
}

.fa p {
    font-weight: 400 !important;
}

.cta-sec .btn-tide {
    color: #fff !important;
    margin: 24px 0;
}

/* .fq-ico {
    max-width: 24px;
    min-width: 24px;
} */

.fq-txt {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.product .e-con-inner {
    padding-block-end: 0 !important;
    padding-block-start: 0 !important;
}

.product .story-grid img {
    object-position: initial;
}

.product .story-grid .media-ph {
    min-height: 280px;
}

.woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin: 18px 0 !important;
    padding: 16px 18px !important;

    border: 1px solid rgba(21, 46, 53, 0.12) !important;
    border-radius: 12px !important;

    background: #f7f8f6 !important;
    color: #17323a !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

.woocommerce-error {
    list-style: none !important;
}

.woocommerce-error li {
    margin: 0 !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #17323a !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: none !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 18px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #3D5B78 !important;
    color: #fff !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: absolute !important;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
    opacity: .88;
}

@media (max-width: 768px) {

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .woocommerce-message .button,
    .woocommerce-info .button,
    .woocommerce-error .button {
        width: 100%;
        position: static !important;
        transform: none;
    }

    .woocommerce-notices-wrapper {
        padding: 0 16px;
    }
}

@media (min-width: 1024px) {
    .slick-prev {
        left: -50px !important;
    }

    .slick-next {
        right: -20px !important;
    }
}

.cf,
.fluent_form_4,
.fluent_form_5 {
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    max-width: 520px;
    margin: 0 auto
}

.cf-row,
.ff-el-group {
    margin-bottom: 16px !important;
}

.cf label,
.ff-t-container label,
.ff-el-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px
}

.cf input,
.cf textarea,
.ff-el-group input:not(.ff-el-form-check-input),
.ff-el-group textarea,
.ff-default .ff-el-form-control {
    width: 100%;
    padding: 12px 16px !important;
    border: 1.5px solid var(--hairline) !important;
    border-radius: 6px !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: var(--ink-900) !important;
    transition: border-color .2s !important;
    background: #fbfbfc !important;
}

.ff-default .ff-el-form-control option {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: var(--ink-900) !important;
}

.cf input:focus,
.cf textarea:focus,
.ff-el-group input:focus,
.ff-el-group textarea:focus,
.ff-default .ff-el-form-control:focus {
    outline: none;
    border-color: var(--tide-500);
    background: #fff
}

.cf textarea,
.ff-el-group textarea {
    resize: vertical;
    min-height: 100px
}

.cf-check,
.ff-el-form-check-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px !important;
}

.cf-check input,
.ff-el-form-check-label input {
    width: auto;
    margin-top: 3px !important;
    accent-color: var(--tide-500);
    top: 0 !important;
    min-width: 16px;
    height: 16px;
}

.cf-check label,
.ff-el-form-check-label span {
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.55
}

.cf-submit {
    width: 100%
}

.cf-note {
    font-size: 12px;
    color: var(--ink-500);
    text-align: center;
    margin-top: 12px
}

.fluent_form_4 .ff-custom_html,
.fluent_form_5 .ff-custom_html {
    position: absolute;
    bottom: -30px;
    width: 100%;
}

.fluent_form_4 fieldset,
.fluent_form_5 fieldset {
    position: relative;
}

#fluentform_4_success,
#fluentform_5_success {
    max-width: 520px;
    margin: 20px auto;
    background: #fff;
    box-shadow: none;
}

.stopit-stock-message {
    display: none;
}

.stopit-product-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    object-position: bottom;
}

.video-testi-grid {
    display: none !important;
}

/* ukryj galerię zanim Slick ją zainicjalizuje */
.stopit-gallery-host .wpgs-for:not(.slick-initialized),
.stopit-gallery-host .wpgs-nav:not(.slick-initialized) {
    opacity: 0;
}

/* zachowaj miejsce, żeby layout nie skakał */
.stopit-gallery-host .wpgs-for {
    min-height: 360px;
}

@media (max-width: 768px) {
    .stopit-gallery-host .wpgs-for {
        min-height: 260px;
    }
}

/* po inicjalizacji pokazujemy */
.stopit-gallery-host .wpgs-for.slick-initialized,
.stopit-gallery-host .wpgs-nav.slick-initialized {
    opacity: 1;
    transition: opacity .2s ease;
}

.stopit-product-hero .woolentor-product-badge-area {
    display: none !important;
}

.stopit-out-of-stock-form {
    margin-top: 16px;
    color: #fff;
}

.stopit-out-of-stock-form h3 {
    color: #fff !important;
    font-size: 18px;
    margin-bottom: 4px;
}

.stopit-out-of-stock-form p {
    font-size: 14px;
}

.stopit-out-of-stock-form .ff-el-input--label {
    display: none !important;
}

.stopit-out-of-stock-form fieldset {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stopit-out-of-stock-form .ff-btn-submit {
    padding: 11px 24px !important;
}

.stopit-buy:has(.stopit-out-of-stock-form) .stopit-how-btn {
    left: 0;
}

.stopit-buy:has(.stopit-out-of-stock-form.is-hidden) .stopit-how-btn {
    left: 190px;
}

.stopit-buy .disabled.wc-variation-is-unavailable {
    display: none !important;
}

.stopit-out-of-stock-form .ff-message-success {
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px;
    width: fit-content;
}

.stopit-out-of-stock-form .ff-message-success p {
    margin-bottom: 0px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .stopit-hero-grid {
        grid-template-columns: 1fr;
        gap: 72px;

        padding: 32px 24px 40px;
    }

    .stopit-gallery-host .wpgs-for {
        height: auto
    }

    .stopit-product-hero .slick-dots {
        display: block !important;
    }

    .slick-dots li button:before {
        background: #fff !important;
    }

    .slick-dots {
        bottom: -160px !important
    }

    .slick-dots button:hover {
        background-color: transparent;
    }

    .slick-prev,
    .slick-next {
        display: none !important;
    }

    .stopit-how-btn {
        position: static;
        display: block;
        width: fit-content;
        margin-top: 8px;
        padding: 16px 24px;
    }

    .stopit-buy:has(.stopit-out-of-stock-form.is-hidden) .stopit-how-btn {
        position: absolute;
    }

    .stopit-buy:has(.stopit-out-of-stock-form.is-hidden) .stopit-how-btn {
        left: 172px;
    }

    /* .slick-dotted.slick-slider {
        margin-bottom: 30px !important;
    } */

    .woocommerce-message,
    .woocommerce-error {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .woocommerce-message a,
    .woocommerce-error a {
        width: fit-content;
    }

    .slick-list {
        height: auto !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .stopit-hero-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stopit-buy .woocommerce-variation-add-to-cart {
        display: grid;
        grid-template-columns: 122px minmax(0, 1fr);
        align-items: end;

        width: 100%;
    }

    .stopit-buy .quantity.qty-row,
    .stopit-buy .quantity.stopit-qty-ready {
        width: 122px !important;
    }

    .stopit-buy .single_add_to_cart_button {
        width: 156px !important;
        padding: 0 16px !important;
    }
}

@media(min-width: 400px) and (max-width: 550px) {
    .slick-dots {
        bottom: -170px !important;
    }
}