/* ---------------------------------------------------------------------------
   Astra Breadcrumbs Custom Styling
   --------------------------------------------------------------------------- */
.ast-breadcrumbs .trail-items {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

.ast-breadcrumbs .trail-items li {
    display: flex;
    align-items: center;
    gap: 6px;
}
#post-35 > div > div.wp-block-uagb-buttons.uagb-buttons__outer-wrap.uagb-btn__default-btn.uagb-btn-tablet__default-btn.uagb-btn-mobile__default-btn.uagb-block-547d1be8 > div > div > div > a:hover{
    opacity: 0.9 !important;
}

/* Links */
.ast-breadcrumbs a {
    color: var(--ast-global-color-3) !important;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-weight: 400;
}

.ast-breadcrumbs a:hover {
    opacity: 1;
    color: var(--ast-global-color-0) !important;
}

/* Current page */
.ast-breadcrumbs .trail-end {
    color: var(--ast-global-color-3);
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}
.ast-breadcrumbs .trail-end span {
    color: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.ast-breadcrumbs .trail-end:hover {
    opacity: 1;
}
.ast-breadcrumbs .trail-end:hover span {
    color: var(--ast-global-color-0) !important;
}

/* Separator (if generated via CSS or span) */
.ast-breadcrumbs .trail-items li:not(:last-child)::after {
    content: "/";
    color: var(--ast-global-color-3);
    opacity: 0.4;
}
.ast-breadcrumbs .astra-breadcrumb-separator {
    display: none; /* Hide default Astra separator if it outputs one */
}

p:has(span[data-name="acceptance-marketing"]){
    display:flex !important;
    gap:5px;
    padding-top:16px;
    border-top: 1px solid #979797;
    span{
        width:auto !important;
        border:none !important;
    }
    .wpcf7-acceptance{
        .wpcf7-list-item{
            margin:0 !important;
        }
        margin: 0 !important;
        padding:0 !important;
    }
}



#products-tabs {
    del {
        opacity: .5;
    }
}

.woocommerce-tabs ul.tabs {
    border-top: 1px solid #fff;
}
/* ---------------------------------------------------------------------------
   FiboSearch Bar Styling (dgwt-wcas-search-form)
   --------------------------------------------------------------------------- */


.dgwt-wcas-sf-wrapp {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.dgwt-wcas-search-form input[type="search"].dgwt-wcas-search-input {
        width: 100% !important;
        height: 40px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: 1px solid 
color-mix(in srgb, var(--ast-global-color-3) 50%, transparent);
        border-radius: 8px !important;
        color: var(--ast-global-color-3) !important;
        font-size: 14px !important;
        outline: none !important;
        transition: border-color 0.2s !important;
}

.dgwt-wcas-search-form input[type="search"].dgwt-wcas-search-input::placeholder {
    color: var(--ast-global-color-3);
    opacity: 0.6;
}

/* Position the magnifier icon on the right */
.dgwt-wcas-search-form .dgwt-wcas-ico-magnifier {
    position: absolute !important;
    margin:0 !important;
    right: 16px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    fill: var(--ast-global-color-3) !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    transition: fill 0.2s, opacity 0.2s !important;
}

.dgwt-wcas-search-form.dgwt-wcas-active .dgwt-wcas-ico-magnifier {
    fill: var(--ast-global-color-0) !important;
    opacity: 1 !important;
}



/* ---------------------------------------------------------------------------
   FiboSearch Dropdown & Details Panel (Product Card Style)
   --------------------------------------------------------------------------- */
.dgwt-wcas-suggestions-wrapp {
    background: var(--ast-global-color-5) !important;
    border: 1px solid #C3C3C3 !important;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.25) !important;
    margin-top: 8px !important;
    margin-right: 8px !important; /* Separate from details panel */
    overflow: hidden !important;
}

.dgwt-wcas-details-wrapp {
    background: var(--ast-global-color-5) !important;
    border: 1px solid #C3C3C3 !important;
    border-radius: 0 8px 8px 0 !important;
    border-left:none !important;
    box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.25) !important;
    margin-top: 8px !important;
    padding: 16px !important;
}

/* Suggestions List Items */
.dgwt-wcas-suggestion {
    color: var(--ast-global-color-3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.dgwt-wcas-suggestion:last-child {
    border-bottom: none !important;
}
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion-selected {
    background: rgba(255,255,255,0.05) !important;
}
.dgwt-wcas-st-title, .dgwt-wcas-sku, .dgwt-wcas-pd-price .amount {
    color: var(--ast-global-color-3) !important;
}
.dgwt-wcas-st-title strong {
    color: var(--ast-global-color-0) !important;
}
.dgwt-wcas-sp .amount {
    color: var(--ast-global-color-0) !important;
}

/* Details Panel Typography */
.dgwt-wcas-details-inner {
    text-align: center !important;
}
.dgwt-wcas-details-inner * {
    text-align: center !important;
}
.dgwt-wcas-details-product-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: var(--ast-global-color-0) !important;
    display: block !important;
    text-decoration: none !important;
}
.dgwt-wcas-details-product-sku {
    color: rgba(255,255,255,0.7) !important;
    font-size: 12px !important;
    display: block !important;
    margin-bottom: 8px !important;
}
.dgwt-wcas-pd-price .amount {
    font-size: 1.2rem !important;
    color: var(--ast-global-color-0) !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 16px !important;
}
.dgwt-wcas-details-hr {
    display: none !important; /* Cleaner look without internal borders */
}

/* Details Panel Buttons */
.dgwt-wcas-pd-addtc-form {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 10px !important;
}
.dgwt-wcas-pd-addtc-form .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.dgwt-wcas-pd-addtc-form .quantity input {
    width: 40px !important;
    background: transparent !important;
    border: none !important;
    color: var(--ast-global-color-3) !important;
    text-align: center !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}
.dgwt-wcas-pd-addtc-form .quantity input::-webkit-outer-spin-button,
.dgwt-wcas-pd-addtc-form .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.dgwt-wcas-pd-addtc-form .quantity a {
    font-size: 22px !important;
    height: 40px !important;
    width: 32px !important;
    border: 1px solid #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    text-decoration: none !important;
    background: transparent !important;
    line-height: 1 !important;
}
.dgwt-wcas-pd-addtc-form .quantity a:hover {
    background: rgba(255,255,255,0.1) !important;
}
.dgwt-wcas-pd-addtc-form .add_to_cart_inline {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.dgwt-wcas-pd-addtc-form .button {
    background: var(--ast-global-color-0) !important;
    color: #FFF !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    border-radius: 8px !important;
    text-align: center !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    display: block !important;
    border: none !important;
    line-height: 1 !important;
}
.dgwt-wcas-pd-addtc-form .button:hover {
    opacity: 0.9 !important;
}

/* =============================================================================
   PRODUCT BADGES - Nowosc / Promocja (global layout)
   Colors & sizes are injected inline from Customizer - see class-ulfur-badges.php.
   ============================================================================= */

.ulfur-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.ulfur-badge {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: auto;
}

/* Positioning contexts for badges */
.astra-shop-thumbnail-wrap,
.wc-block-components-product-image,
.woocommerce div.product div.images {
    position: relative;
}
.wc-block-components-product-image {
    overflow: visible;
}

/* Single product page - slightly larger offset */
.woocommerce div.product div.images > .ulfur-badges {
    top: 16px;
    left: 16px;
    z-index: 10;
}

/* Hide default WC / Astra sale badge */
.woocommerce span.onsale,
span.ast-on-card-button.ast-onsale-card {
    display: none !important;
}

@media (max-width: 544px) {
    .ulfur-badges {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
}

/* Hide star ratings on product loops (matching main shop page layout) */
.woocommerce ul.products li.product .star-rating {
    display: none !important;
}

/* Percentage discount next to price */
.ulfur-price-discount {
    display: inline-block;
    background-color: #ef4444; /* red-500 */
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.ulfur-account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
}

.ulfur-sidebar .ulfur-account-badge {
    margin-left: 0;
    font-size: 9px;
}

.ulfur-account-badge--hurt {
    background: var(--ast-global-color-0) !important;
    color: #252525 !important;
}

.ulfur-account-badge--detal {
    background-color: #3f3f46;
    color: #d4d4d8;
}

/* -----------------------------------------------------------------------------
   Unified input style across the website (forced top-level specificity)
   Gray border by default (#979797), white border on focus / typing (#FCFCFC).
   Applies to text-like inputs, selects and textareas; button-style inputs
   excluded.
   ----------------------------------------------------------------------------- */
html body input[type="text"],
html body input[type="email"],
html body input[type="password"],
html body input[type="number"],
html body input[type="search"],
html body input[type="tel"],
html body input[type="url"],
html body input[type="date"],
html body input:not([type]),
html body select,
html body textarea {
    border: 1px solid #979797 !important;
    background: transparent !important;
    color: #FCFCFC !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    box-shadow: none !important;
    outline: none !important;
}

html body input[type="text"]:focus,
html body input[type="email"]:focus,
html body input[type="password"]:focus,
html body input[type="number"]:focus,
html body input[type="search"]:focus,
html body input[type="tel"]:focus,
html body input[type="url"]:focus,
html body input[type="date"]:focus,
html body input:not([type]):focus,
html body select:focus,
html body textarea:focus,
html body input[type="text"]:active,
html body input[type="email"]:active,
html body input[type="password"]:active,
html body textarea:active {
    border: 1px solid #FCFCFC !important;
    background: transparent !important;
    color: #FCFCFC !important;
    box-shadow: none !important;
    outline: none !important;
}

html body input::placeholder,
html body textarea::placeholder {
    color: #FCFCFC !important;
    opacity: 0.5 !important;
}

/* Exempt cart/qty inputs - they live inside their own stepper UI and must
   stay borderless / transparent. */
html body input.qty,
html body .quantity input[type="number"],
html body .quantity input.qty,
html body .ulfur-cart__item-qty input[type="number"],
html body .woocommerce-cart-form input.qty {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
}

html body input.qty:focus,
html body .quantity input[type="number"]:focus,
html body .ulfur-cart__item-qty input[type="number"]:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* -----------------------------------------------------------------------------
   Unified checkbox style - used everywhere (login, checkout, account, ...)
   Default: 20x20 gray-bordered, transparent fill
   Checked: white fill with dark check inside
   ----------------------------------------------------------------------------- */
html body input[type="checkbox"],
html body input.input-checkbox,
html body input.woocommerce-form__input-checkbox,
html body input#terms,
html body .wc-terms-and-conditions input[type="checkbox"],
html body p.form-row.terms input[type="checkbox"] {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #979797 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    display: inline-block;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    clip: auto !important;
    transition: border-color 0.2s, background 0.2s !important;
}

html body input[type="checkbox"]:hover,
html body input.input-checkbox:hover,
html body input.woocommerce-form__input-checkbox:hover {
    border-color: #FCFCFC !important;
}

html body input[type="checkbox"]:checked,
html body input.input-checkbox:checked,
html body input.woocommerce-form__input-checkbox:checked {
    border-color: #FCFCFC !important;
    background: #FCFCFC !important;
    background-color: #FCFCFC !important;
}

html body input[type="checkbox"]:checked::after,
html body input.input-checkbox:checked::after,
html body input.woocommerce-form__input-checkbox:checked::after {
    content: '\2713' !important;
    color: #252525 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* #terms has an ID, so the base "html body input#terms { background:transparent }"
   rule out-specifies the class-based :checked rules above - re-assert the checked
   state at ID specificity so the white fill + dark v actually show. */
html body input#terms:checked {
    border-color: #FCFCFC !important;
    background: #FCFCFC !important;
    background-color: #FCFCFC !important;
}
html body input#terms:checked::after {
    content: '\2713' !important;
    color: #252525 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

html body input[type="checkbox"]:focus,
html body input.input-checkbox:focus,
html body input.woocommerce-form__input-checkbox:focus {
    outline: none !important;
    border-color: #FCFCFC !important;
    box-shadow: none !important;
}

/* Terms-and-conditions row layout - keep checkbox + text aligned */
html body .wc-terms-and-conditions label,
html body .form-row.terms label,
html body p.form-row.terms label.checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}





/******FORM******/



.wpcf7 {
    background: var(--ast-global-color-5);
    border: 1px solid #C3C3C3;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 480px;
}
.wpcf7 .cf7-form-title {
    font-weight: 700;
    color: var(--ast-global-color-3);
    margin: 0 0 20px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    border: 1px solid #C3C3C3 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--ast-global-color-3);
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--ast-global-color-3);
    opacity: 0.5;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--ast-global-color-0) !important;
}
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}
.wpcf7 .cf7-required-note {
    color: var(--ast-global-color-3);
    opacity: 0.5;
    margin: 4px 0 16px;
}
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #C3C3C3;
}

/* Old checkbox block removed - superseded by the unified rule earlier in this file. */

/* ---------------------------------------------------------------------------
   Unified Input / Textarea Styles
   --------------------------------------------------------------------------- */
#content,
#masthead,
.ulfur-auth {

    .wpcf7-text,
    .dgwt-wcas-search-input,
    .dgwt-wcas-search-input-1,
    .ulfur-auth__field input {
        width: 100% !important;
        height: 40px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: 1px solid color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
        border-radius: 8px !important;
        color: var(--ast-global-color-3) !important;
        font-size: 14px !important;
        outline: none !important;
        transition: border-color 0.2s !important;
    }

    textarea {
        width: 100% !important;
        padding: 12px 16px !important;
        background: transparent !important;
        border: 1px solid color-mix(in srgb, var(--ast-global-color-3) 50%, transparent);
        border-radius: 8px !important;
        color: var(--ast-global-color-3) !important;
        font-size: 14px !important;
        outline: none !important;
        transition: border-color 0.2s !important;
    }

    .wpcf7-text,
    .dgwt-wcas-search-input,
    .dgwt-wcas-search-input-1,
    .ulfur-auth__field input {
        &::placeholder {
            color: color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
        }
    }

    #content .wpcf7-text,
    #content .dgwt-wcas-search-input,
    #content .dgwt-wcas-search-input-1,
    #content .ulfur-auth__field input {
        &:focus {
            border-color: color-mix(in srgb, var(--ast-global-color-3) 90%, transparent) !important;
        }
    }

}

/* =============================================================================
   SMART REVEAL HEADER - animation only
   ============================================================================= */

/* Real masthead stays in normal flow (scrolls with page, no layout jump). */
#masthead {
    position: static !important;
}

/* The clone is fixed, hidden above the viewport by default. */
.ulfur-header-clone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    /* Match the real #masthead background so the gaps between the topbar and
       main bar are opaque - otherwise the page scrolls through visibly. */
    background-color: #252525;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    will-change: transform;
    overflow: hidden;
}

/* Slide the clone in when the real header has scrolled out of view. */
.ulfur-header-clone.is-visible {
    transform: translateY(0);
}

/* Remove any outer top spacing on the cloned masthead wrapper so there
   is no gap above the logo bar. Does NOT touch inner header layout. */
.ulfur-header-clone > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Topbar in clone: pure upward slide via margin-top (set by JS on scroll). */
.ulfur-header-clone .ast-above-header-wrap {
    transition: margin-top 0.3s ease;
    margin-top: 0;
}

/* Hide mobile header block inside clone on desktop. */
@media (min-width: 1101px) {
    .ulfur-header-clone [data-ulfur-hdr="mobile"] {
        display: none !important;
    }
}

/* Hide desktop header blocks inside clone on mobile. */
@media (max-width: 1100px) {
    .ulfur-header-clone [data-ulfur-hdr="desktop"] {
        display: none !important;
    }
}

/* Admin bar offset. */
body.admin-bar .ulfur-header-clone {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .ulfur-header-clone {
        top: 46px;
    }
}

/* =============================================================================
   RESPONSIVE - shared block components (tablet <=1100px, mobile <=767px)
   Astra breakpoints on this site: tablet = 1100px, mobile = 768px.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   WooCommerce "Product Collection" carousel (Polecane produkty / Nowosci)
   The homepage prints an inline rule
       #products-tabs .wc-block-product-template li { flex/width/max-width: 19% }
   hardcoding 5 columns. It uses an ID + !important, so the responsive override
   MUST also be ID-scoped (higher specificity) and reset width + max-width.
   Both showcase sections reuse id="products-tabs", so one rule covers both.
   NB: the inline rule carries an ID + !important, so these overrides need
   !important too - it's the one place it's unavoidable.
   --------------------------------------------------------------------------- */
/* Desktop (>1100px): show whole cards - no sliced peek. Cards carry a 20px
   right margin (gap), so each card must be 20% minus the gap that 5 cards share
   across 4 inner gutters: 5x(20% - 16px) + 4x20px = 100%. */
@media (min-width: 1101px) {
    #products-tabs .wc-block-product-template li.product {
        flex: 0 0 calc(20% - 16px) !important;
        width: calc(20% - 16px) !important;
        max-width: calc(20% - 16px) !important;
    }
}

@media (max-width: 1100px) {
    #products-tabs .wc-block-product-template li.product {
        flex: 0 0 calc(33.333% - 12px) !important;
        width: auto !important;
        max-width: none !important;
        min-width: 200px !important;
    }
}

@media (max-width: 767px) {
    #products-tabs .wc-block-product-template li.product {
        flex: 0 0 72% !important;
        width: auto !important;
        max-width: 260px !important;
        min-width: 0 !important;
    }
}

/* ---------------------------------------------------------------------------
   UAGB Tabs (category selector above the product carousels)
   Each .uagb-tab carries large default margins; flatten them, and lay the panel
   out as a wrapping row with tight gaps.
   --------------------------------------------------------------------------- */
.uagb-tab {
    margin: 0;
}

#content #products-tabs .uagb-tabs__panel {
    row-gap: 8px;
    column-gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: unset;
    flex-direction: row;
}

/* WooCommerce single-product tabs mobile layout moved to woocommerce.css
   (stacked full-width buttons instead of a scrollable row) - see the
   ".single-product .woocommerce-tabs ul.tabs" media query there. */

/* ---------------------------------------------------------------------------
   Content headings spacing - applies to .entry-content headings EXCEPT those
   inside #main (the post/page main content has its own per-template spacing).
   --------------------------------------------------------------------------- */
.entry-content:where(h1, h2, h3, h4, h5, h6):not(.home *) {

    margin-top: 35px !important;
    display:none !important
}

/* =============================================================================
   SPRINT 1 - HOVERY
   Uwaga: globalny override `button:hover, a:hover { opacity:1 !important }`
   zabija hovery oparte na opacity, dlatego uzywamy background/transform/filter.
   ============================================================================= */

/* -- Przyciski (wszystkie warianty) ----------------------------------------- */
.ast-button,
.button,
.wp-block-button__link,
button.single_add_to_cart_button,
.ulfur-order-sidebar__cta,
.ulfur-order-sidebar__coupon-btn,
.ulfur-addr-edit-actions__save,
.ulfur-addr-edit-actions__cancel,
.woocommerce #respond input#submit,
.wpcf7-submit,
.ulfur-auth__submit,
.ulfur-auth button[type="submit"],
.woocommerce-mini-cart__buttons .button {
    cursor: pointer;          /* Nr 30: kursor zawsze "pointer" */
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease,
                background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
button.single_add_to_cart_button:hover,
.ulfur-order-sidebar__cta:hover,
.ulfur-order-sidebar__coupon-btn:hover,
.ulfur-addr-edit-actions__save:hover,
.woocommerce #respond input#submit:hover,
.wpcf7-submit:hover,
.ulfur-auth__submit:hover,
.ulfur-auth button[type="submit"]:hover,
.woocommerce-mini-cart__buttons .button:hover {
    filter: brightness(0.9);
    /* statyczny hover - buttony sie NIE ruszaja (bez transform/cienia) */
}

/* -- Karty produktu - JEDNOLITY hover (strona glowna = sklep = karuzele):
   zolta ramka + mocniejszy cien + zolty tytul + zoom obrazka.
   BEZ translateY - karuzela ma overflow:hidden i ucinalaby uniesiona karte.
   Konteksty: A = .products li.product (siatka sklepu + karuzele kategorii,
   bo ich <ul> ma klase products), B = blok WC kolekcji na stronie glownej.
   Specyficznosc dobrana tak, by pobic nadrzedne style (#products-tabs .product,
   #page a{color:#FFF}). ------------------------------------------------------ */
.products li.product,
.wc-block-product-template li.product {
    transition: border-color .2s ease, box-shadow .2s ease !important;
}
.products li.product:hover,
.wc-block-product-template li.product:hover {
    border-color: var(--ast-global-color-0) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
}

/* Zolty tytul na hover karty (cel = naglowek tytulu + ewentualny link w srodku). */
.products li.product h2,
.products li.product h2 a,
.wc-block-product-template li.product h2,
.wc-block-product-template li.product h3,
.wc-block-product-template li.product .wp-block-post-title {
    transition: color .2s ease !important;
}
.products li.product:hover h2,
.products li.product:hover h2 a,
.products li.product:hover .woocommerce-loop-product__title,
.wc-block-product-template li.product:hover h2,
.wc-block-product-template li.product:hover h2 a,
.wc-block-product-template li.product:hover h3,
.wc-block-product-template li.product:hover h3 a,
.wc-block-product-template li.product:hover .wp-block-post-title,
.wc-block-product-template li.product:hover .wp-block-post-title a,
.wc-block-product-template li.product:hover .wc-block-components-product-title {
    color: var(--ast-global-color-0) !important;
}

/* Zoom obrazka na hover - wszystkie uklady. */
.wc-block-product-template li.product .wc-block-components-product-image,
.wc-block-product-template li.product .wp-block-woocommerce-product-image,
.products li.product .astra-shop-thumbnail-wrap {
    overflow: hidden;
    border-radius: 8px;
}
.wc-block-product-template li.product .wc-block-components-product-image img,
.wc-block-product-template li.product .wp-block-woocommerce-product-image img,
.products li.product .astra-shop-thumbnail-wrap img {
    transition: transform .35s ease !important;
}
.wc-block-product-template li.product:hover .wc-block-components-product-image img,
.wc-block-product-template li.product:hover .wp-block-woocommerce-product-image img,
.products li.product:hover .astra-shop-thumbnail-wrap img {
    transform: scale(1.06);
}

/* -- Baza karty bloku WC "Kolekcja produktow" - tak jak na stronie glownej,
   ale WSZEDZIE (posty/strony), nie tylko pod #products-tabs. Te reguly byly
   wczesniej tylko w front-page.css (#products-tabs), wiec wklejony gdzie indziej
   blok nie mial ramki ani wycentrowanej tresci. --------------------------- */
.wc-block-product-template li.product {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid #C3C3C3;
    padding: 15px;
    box-sizing: border-box;
}
.wc-block-product-template li.product img {
    margin: auto;
}
.wc-block-product-template li.product .wc-block-components-product-price,
.wc-block-product-template li.product .wp-block-post-title,
.wc-block-product-template li.product .wc-block-components-product-sku {
    text-align: center;
    justify-content: center;
}
/* Wyrownanie rzedow miedzy kartami: promocje maja dodatkowa linie "Poprzednia
   najnizsza cena", przez co tresc ma rozna wysokosc. Docisnij SKU (i przycisk)
   do dolu, by rzedy sie zgadzaly w calym wierszu. */
.wc-block-product-template li.product .wc-block-components-product-sku {
    margin-top: auto;
}
/* Przycisk "Dodaj do koszyka" bloku WC kolekcji - wyglad jak inne przyciski. */
.wc-block-product-template li.product .wc-block-components-product-button {
    margin-top: 12px;
    text-align: center;
}
.wc-block-product-template li.product .wc-block-components-product-button .wp-block-button__link,
.wc-block-product-template li.product .wc-block-components-product-button button {
    display: inline-block;
    width: 100%;
    background: var(--ast-global-color-0) !important;
    color: #252525 !important;
    border: none;
    border-radius: 6px;
    font-weight: 700;
}

/* 4 kolumny wypelniajace szerokosc + przewijanie w poziomie (gdy wiecej niz 4).
   Strona glowna ma wlasny uklad 5-kolumnowy pod #products-tabs (wyzsza
   specyficznosc), wiec jej to nie dotyczy. */
.wc-block-product-template {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;   /* rowne wysokosci kart (blok ustawia top) */
    gap: 20px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
/* Sekcja kolekcji = pelna szerokosc jak inne sekcje. Blok WC ma uklad "flow",
   ktory dodatkowo zweza tresc do content-width - znosimy ten limit. */
.wp-block-woocommerce-product-collection.is-layout-flow > *,
.wp-block-woocommerce-product-collection > .wc-block-product-template {
    max-width: none !important;
}
.wc-block-product-template li.product {
    flex: 0 0 calc((100% - 60px) / 4) !important;
    max-width: calc((100% - 60px) / 4) !important;
    scroll-snap-align: start;
}

/* -- Chevrony / strzalki karuzeli ------------------------------------------- */
.ulfur-carousel__arrow:not(:disabled):hover {
    color: var(--ast-global-color-0);
    transform: scale(1.12);
}
/* zapobiega ujawnieniu wylaczonej strzalki przez globalny opacity:1 na hover */
.ulfur-carousel__arrow:disabled:hover {
    opacity: 0 !important;
}

/* -- "Zobacz wszystkie" (wiecej w karuzeli + view-all kolekcji) ------------- */
.ulfur-carousel-section__more,
.wc-block-product-collection-view-all a,
#products-cta a {
    transition: color .2s ease, transform .2s ease, background-color .2s ease, filter .2s ease;
}
.ulfur-carousel-section__more:hover {
    color: var(--ast-global-color-0);
    transform: translateX(3px);
}
.wc-block-product-collection-view-all a:hover,
#products-cta a:hover {
    filter: brightness(0.9);   /* statyczny */
}

/* -- UAGB "Zobacz wszystkie" - hover: tekst zolty + chevron przesuwa sie w prawo.
   To .wp-block-button__link (wykluczony z globalnego zoltego hovera linkow),
   wiec obslugujemy go osobno. ----------------------------------------------- */
.uagb-buttons-repeater .uagb-button__link,
.uagb-buttons-repeater .uagb-button__icon,
.uagb-buttons-repeater .uagb-button__icon svg {
    transition: color .2s ease, transform .2s ease, fill .2s ease;
}
.uagb-buttons-repeater:hover .uagb-button__link {
    color: var(--ast-global-color-2) !important;
}
.uagb-buttons-repeater:hover .uagb-button__icon {
    transform: translateX(5px);
}
.uagb-buttons-repeater:hover .uagb-button__icon svg {
    fill: var(--ast-global-color-0) !important;
}

#products-tabs .uagb-tab:not(.uagb-tabs__active):hover {
    border-color: var(--ast-global-color-1) !important;
}
#products-tabs .uagb-tab:not(.uagb-tabs__active):hover .uagb-tabs-list,
#products-tabs .uagb-tab:not(.uagb-tabs__active):hover .uagb-tabs-list div {
    color: var(--ast-global-color-2) !important;
    font-weight: 700 !important;
}

/* -- Scroll-to-top ---------------------------------------------------------- */
#ast-scroll-top {
    transition: filter .2s ease;
}
#ast-scroll-top:hover {
    filter: brightness(0.9);   /* statyczny */
}

/* -- Wyszukiwarka (ramka na hover/focus) ------------------------------------ */
.dgwt-wcas-search-wrapp:hover .dgwt-wcas-search-input,
#masthead .dgwt-wcas-search-input:hover {
    border-color: var(--ast-global-color-3) !important;
}
.dgwt-wcas-search-form:hover .dgwt-wcas-ico-magnifier {
    fill: var(--ast-global-color-0) !important;
    opacity: 1 !important;
}

/* -- Inputy z borderem - HOVER jasniejsza ramka (jak focus, ktory juz dziala
   w bloku `html body input...:focus`). Prefiks `html body` bije bazowa regule
   `html body input[type=text] { border:#979797 !important }` (0,1,4), inaczej
   hover nie mial szans. Pola bez ramki (np. .quantity input - border:none)
   pozostaja nietkniete, bo border-color nie ma na nich efektu. -------------- */
html body input[type="text"]:hover,
html body input[type="email"]:hover,
html body input[type="tel"]:hover,
html body input[type="url"]:hover,
html body input[type="number"]:hover,
html body input[type="search"]:hover,
html body input[type="password"]:hover,
html body input[type="date"]:hover,
html body input:not([type]):hover,
html body select:hover,
html body textarea:hover,
html body .wpcf7-form-control:hover,
html body .wpcf7-form-control:focus {
    border-color: var(--ast-global-color-3) !important;
    transition: border-color .2s ease;
}
/* Wykluczenie: input ilosci (stepper) zostaje bez ramki takze na hover. */
html body input.qty:hover,
html body .quantity input[type="number"]:hover,
html body .ulfur-cart__item-qty input[type="number"]:hover {
    border-color: transparent !important;
}

/* -- Ikony w lewym menu sklepu - hover -------------------------------------
   Kazda ikona maluje sie inaczej (stroke vs fill), wiec celujemy precyzyjnie
   w atrybut zrodlowy. Dzieki temu outline'owy gear "Ustawienia" NIE wypelnia
   sie na zolto (wczesniej fill:yellow wypelnial go w calosci). -------------- */
.ulfur-sidebar__cat-link:hover .ulfur-sidebar__cat-icon,
.ulfur-sidebar__account-link:hover .ulfur-sidebar__account-icon {
    color: var(--ast-global-color-0);
}
/* Ikony inline o obrysie (Settings, Resize) - zolty stroke; o wypelnieniu
   (Moje konto, Wyloguj) - zolty fill. */
.ulfur-sidebar__account-link:hover .ulfur-sidebar__account-icon svg path[stroke="#FCFCFC"],
.ulfur-sidebar__toggle:hover .ulfur-sidebar__toggle-icon svg path {
    stroke: var(--ast-global-color-0) !important;
}
/* Toggle "Zwin" to <button> - globalny a:hover go nie obejmuje, wiec tekst osobno. */
.ulfur-sidebar__toggle:hover .ulfur-sidebar__toggle-text {
    color: var(--ast-global-color-0);
}
.ulfur-sidebar__account-link:hover .ulfur-sidebar__account-icon svg path[fill="#FCFCFC"] {
    fill: var(--ast-global-color-0) !important;
}
/* Wyloguj - ikona wypelniana (CSS wymusza fill/stroke #fff, wiec nadpisujemy oba). */
.ulfur-sidebar__logout-btn:hover .ulfur-sidebar__account-icon svg path {
    fill: var(--ast-global-color-0) !important;
    stroke: var(--ast-global-color-0) !important;
}
/* Ikony fallbackowe inline (currentColor) podazaja za kolorem linku - dziala juz
   przez .ulfur-sidebar__cat-link:hover { color } w woocommerce.css. */

/* Ikony z miniatury (img: kategorie + pozycje menu) - przebarwienie przez maske.
   img zastepujemy ::before maskowanym kolorem tla, sterowanym na hover. */
.ulfur-sidebar__cat-icon[style*="--ulfur-icon"] img {
    display: none;
}
.ulfur-sidebar__cat-icon[style*="--ulfur-icon"]::before {
    content: "";
    width: 28px;
    height: 28px;
    background-color: var(--ast-global-color-3);
    -webkit-mask: var(--ulfur-icon) center / contain no-repeat;
    mask: var(--ulfur-icon) center / contain no-repeat;
    transition: background-color .2s ease;
}
.ulfur-sidebar__cat-link:hover .ulfur-sidebar__cat-icon[style*="--ulfur-icon"]::before {
    background-color: var(--ast-global-color-0);
}

.ulfur-sidebar--collapsed .ulfur-sidebar__cat-link:hover,
.ulfur-sidebar--collapsed .ulfur-sidebar__account-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* -- Filtr "Cena" (i inne pola filtra) - spojny hover ----------------------- */
.ulfur-filter__apply {
    color: #252525 !important;
    background: var(--ast-global-color-0) !important;
    font-weight: 500 !important;
    transition: filter .2s ease;
}
.ulfur-filter__apply:hover {
    filter: brightness(0.92);
}
.ulfur-filter__price-field:hover {
    border-color: var(--ast-global-color-0);
}

/* -- Nr 31/48: stroke checkboxa nie znika po zaznaczeniu/odznaczeniu -----------
   W stanie ODZNACZONYM (tez po toggle, focusie, active) wymuszamy szary stroke,
   zeby nie gubil sie przez stan :focus. Zaznaczony pozostaje bialy z checkiem. */
html body input[type="checkbox"]:not(:checked),
html body input[type="checkbox"]:not(:checked):focus,
html body input[type="checkbox"]:not(:checked):active,
html body input.wpcf7-acceptance:not(:checked),
html body .wpcf7-acceptance input[type="checkbox"]:not(:checked) {
    border: 1px solid #979797 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* -- Nr 57: link wylogowania w headerze (obok konta) ------------------------ */
.ulfur-header-logout {
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ast-global-color-3);
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}
.ulfur-header-logout:hover {
    color: var(--ast-global-color-0);
}

/* =============================================================================
   LOGOUT CONFIRMATION MODAL - same visual pattern as the forgot-password
   modal (.ulfur-auth-modal in auth.css), but placed here since logout links
   appear site-wide (header, mobile sidebar, my-account card) while auth.css
   only loads on auth/checkout/account pages.
   ============================================================================= */
.ulfur-logout-modal {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ulfur-logout-modal.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.ulfur-logout-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.ulfur-logout-modal__dialog {
    position: relative; width: 90%; max-width: 400px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); overflow: hidden;
    transform: scale(0.95) translateY(15px); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.ulfur-logout-modal.is-active .ulfur-logout-modal__dialog { transform: scale(1) translateY(0); opacity: 1; }
.ulfur-logout-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid #e8e8e8;
}
.ulfur-logout-modal__title { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.ulfur-logout-modal__close {
    background: none; border: none; font-size: 24px; color: #999;
    cursor: pointer; padding: 0 4px; line-height: 1; transition: color 0.15s;
}
.ulfur-logout-modal__close:hover { color: #333; }
.ulfur-logout-modal__body { padding: 24px; }
.ulfur-logout-modal__body p { margin: 0; font-size: 14px; color: #555; line-height: 1.5; }
.ulfur-logout-modal__footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-top: 1px solid #e8e8e8;
}
.ulfur-logout-modal__cancel { background: none; border: none; color: #666; cursor: pointer; font-size: 14px; padding: 0; }
.ulfur-logout-modal__cancel:hover { color: #333; }
/* STAŁY rozmiar we wszystkich stanach — Astra zmienia padding na :focus/:active
   (przycisk kurczy się po kliknięciu), więc blokujemy geometrię z !important. */
.ulfur-logout-modal__confirm,
.ulfur-logout-modal__confirm:hover,
.ulfur-logout-modal__confirm:focus,
.ulfur-logout-modal__confirm:active {
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* -- Nr 20/21: nawigacja poprzedni/nastepny wpis - forma nieakceptowalna,
   ukrywamy do czasu ewentualnego redesignu (znika tez "wysrodkowany" link
   w najstarszym wpisie). */
body.single-post .post-navigation,
body.single-post nav.post-navigation {
    display: none !important;
}

/* -- Nr 68: licznik koszyka czytelny przy duzej ilosci (pill rosnacy) ------- */
.ast-cart-menu-wrap .count,
.ast-site-header-cart .count,
.ast-header-woo-cart .count,
.ast-cart-menu-wrap .ast-count-wrap,
.ast-addon-cart-wrap .ast-cart-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

/* -- Nr 61: minus steppera nieaktywny przy wartosci minimalnej -------------- */
.quantity .minus.ulfur-qty-disabled,
.ulfur-cart__qty-minus.ulfur-qty-disabled,
.ulfur-cart__qty-btn.ulfur-qty-disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.35;
}

/* -- Nr 7: caly kafel produktu klikalny (stretched-link) -------------------- */
.woocommerce ul.products li.product,
.wc-block-product-template li.product {
    position: relative;
}
/* sklep / archiwum (custom loop) - rozciagniety link tytulu */
.woocommerce ul.products li.product .ast-loop-product__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* bloki WC (strona glowna - kolekcja produktow) - rozciagniety link obrazka */
.wc-block-product-template li.product .wc-block-components-product-image a::after,
.wc-block-product-template li.product .wp-block-woocommerce-product-image a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* elementy interaktywne musza zostac nad overlayem */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .ulfur-badges,
.wc-block-product-template li.product .wp-block-button__link,
.wc-block-product-template li.product .wc-block-components-product-button {
    position: relative;
    z-index: 2;
}

/* -- Wylacz animacje "Dodaj do koszyka" (WooCommerce + Astra) ----------------
   Spinner (.loading::after), ptaszek po dodaniu (.added::after) oraz link
   "Zobacz koszyk" (.added_to_cart) sa zbedne - po dodaniu otwiera sie modal.
   Dotyczy sklepu, pojedynczego produktu, karuzel i bloku "Polecane". */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.woocommerce .add_to_cart_button.loading::after,
.woocommerce .button.added::after,
.woocommerce .add_to_cart_button.added::after,
.wc-block-components-product-button .wc-block-components-button.loading::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}
.woocommerce a.button.loading,
.woocommerce button.button.loading,
.woocommerce .add_to_cart_button.loading {
    opacity: 1 !important;
    animation: none !important;
}
.woocommerce a.added_to_cart.wc-forward {
    display: none !important;
}

/* -- Blokada "Dodaj do koszyka" w trakcie przetwarzania ----------------------
   WooCommerce dodaje klase .loading na czas zadania AJAX (nasz handler single
   tez). Przygaszamy (opacity) i blokujemy klik. Najwyzszy priorytet:
   html body + !important - zaden inny styl tego nie nadpisze. */
html body .woocommerce a.button.loading,
html body .woocommerce button.button.loading,
html body a.add_to_cart_button.loading,
html body button.add_to_cart_button.loading,
html body button.single_add_to_cart_button.loading,
html body .ast-on-card-button.loading,
html body .wc-block-components-button.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
/* Bez tego klik w ladujacy przycisk "przechodzi" do rozciagnietego linku karty
   (z-index) i przenosi na strone produktu. Wylaczamy link na czas ladowania. */
html body li.product:has(.add_to_cart_button.loading) .ast-loop-product__link,
html body li.product:has(.add_to_cart_button.loading) .woocommerce-LoopProduct-link,
html body li.product:has(.ast-on-card-button.loading) .ast-loop-product__link,
html body li.product:has(.ast-on-card-button.loading) .woocommerce-LoopProduct-link {
    pointer-events: none !important;
}

/* -- Akademia Ulfura (UAGB Post Grid) - hover na grafikach ------------------ */
.uagb-post-grid .uagb-post__image,
.uag-post-grid-wrapper .uagb-post__image {
    overflow: hidden;
}
.uagb-post-grid .uagb-post__image img,
.uag-post-grid-wrapper .uagb-post__image img {
    transition: transform .35s ease;
}
.uagb-post-grid article:hover .uagb-post__image img,
.uag-post-grid-wrapper article:hover .uagb-post__image img,
.uagb-post-grid .uagb-post__image:hover img {
    transform: scale(1.05);
}

/* -- #blog-grids - hover i klik na CALYM kaflu ------------------------------ */
#blog-grids .uagb-post__inner-wrap {
    position: relative;
}
/* stretched-link: link tytulu rozciagniety na caly kafel -> caly kafel klikalny */
#blog-grids .uagb-post__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* CTA "Dowiedz sie wiecej" zostaje klikalny nad overlayem */
#blog-grids .uagb-post__cta {
    position: relative;
    z-index: 2;
}
/* Hover calego kafla -> tytul i CTA na zolto (CTA to .wp-block-button__link,
   wykluczony z globalnego hovera linkow). */
#blog-grids .uagb-post__title a,
#blog-grids .uagb-post__cta a {
    transition: color .2s ease;
}
#blog-grids .uagb-post__inner-wrap:hover .uagb-post__title a,
#blog-grids .uagb-post__inner-wrap:hover .uagb-post__cta a {
    color: var(--ast-global-color-0) !important;
}

/* -- "Katalog produktow" - bento grid (zintegrowane superior CSS) ----------- */
.katalog-grid > .uagb-container-inner-blocks-wrap {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.2fr !important;
    grid-template-rows: 200px 200px 260px !important;
    grid-template-areas:
        "mik ped ped"
        "mik nar biu"
        "szc szc szc" !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 1200px;
    margin-inline: auto;
    align-items: stretch !important;
}
.katalog-grid .katalog-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: 100% !important;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.katalog-grid .item-mikrofibry { grid-area: mik !important; justify-content: flex-start; }
.katalog-grid .item-pedzelki   { grid-area: ped !important; }
.katalog-grid .item-narzedzia  { grid-area: nar !important; }
.katalog-grid .item-biurowe    { grid-area: biu !important; }
.katalog-grid .item-szczotki   { grid-area: szc !important; }
.katalog-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: 0.2s ease background;
    background: #0000004d;
    pointer-events: none;
}
.katalog-item:hover::before {
    background: #0000003b;
}
.katalog-item .wp-block-heading {
    position: relative;
    z-index: 2;
    margin: auto 0 0 0;
    padding: 18px 20px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.item-mikrofibry .wp-block-heading {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
@media (max-width: 768px) {
    .katalog-grid > .uagb-container-inner-blocks-wrap {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 150px 150px 180px !important;
        grid-template-areas:
            "mik ped"
            "nar biu"
            "szc szc" !important;
    }
    .item-mikrofibry .wp-block-heading { writing-mode: horizontal-tb; transform: none; }
    .katalog-item .wp-block-heading { font-size: 1.05rem; padding: 14px 16px; }
}

/* =============================================================================
   GLOBALNY SYSTEM LINKOW I HOVEROW  (zintegrowane "superior" CSS klienta)
   Bazowy kolor linkow bialy; hover zolty (+ fill svg, + zagniezdzone spany).
   WAZNE: pierwotnie wspolistnialy dwie sprzeczne reguly hover -
   `#page a:hover{color:yellow}` oraz `#content #page a:hover{color:#fff}`.
   Ta druga (2x ID) wygrywala i zabijala zolty hover ("kolor sie nie zmienia").
   Przy integracji ZACHOWUJEMY tylko wariant zolty.
   ============================================================================= */

/* Globalny override gaszacy hovery oparte na opacity (swiadomy wybor klienta). */
button:hover,
a:hover {
    opacity: 1 !important;
}

/* Plynne przejscia dla wszystkich linkow i ikon — bez „all" (patrz niżej:
   outline/ramka nie mają się animować, żeby obramowania nie skakały). */
a,
svg {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, fill .2s ease, opacity .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease !important;
}

/* Bazowy kolor linkow (poza przyciskami, zakladkami i sidebarem). */
#page a:where(:not(.button, .uagb-tabs-list, .wp-block-button__link, #ulfur-sidebar a)) {
    color: #FFF !important;
}

/* Hover linku -> zolty (+ ikony svg + spany, z wylaczeniem badge'y). */
#page a:where(:not(.button, .uagb-tabs-list, .wp-block-button__link, #ulfur-sidebar a)):hover {
    color: var(--ast-global-color-0) !important;
    transition: .2s ease all !important;
}
#page a:where(:not(.button, .uagb-tabs-list, .wp-block-button__link, #ulfur-sidebar a)):hover svg {
    transition: .2s ease fill !important;
}
#page a:where(:not(.button, .uagb-tabs-list, .wp-block-button__link, #ulfur-sidebar a)):hover span:not(.ulfur-badge) {
    color: var(--ast-global-color-0) !important;
    transition: .2s ease color !important;
}

/* Linki w lewym menu sklepu -> tez zolte na hover. */
#page #content #ulfur-sidebar a:hover {
    color: var(--ast-global-color-0) !important;
    transition: .2s ease all !important;
}

/* =============================================================================
   ZINTEGROWANE "SUPERIOR" CSS (z wtyczki Custom CSS) - site-wide.
   Reguly nadrzedne; sekcja na koncu pliku, wiec wygrywa nad wczesniejszymi.
   ============================================================================= */

/* -- Layout / kontenery ----------------------------------------------------- */
#primary {
    margin: 0 !important;
}
.trail-items {
    margin-top: 60px !important;
}
.ast-container {
    padding-left: 35px;
    padding-right: 35px;
}
.ast-site-identity {
    padding: 0 !important;
}
.site-header {
    top: 0;
    position: sticky;
    width: 100% !important;
}
.site-above-header-wrap {
    display: flex;
}
.site-above-header-wrap > div {
    width: 100% !important;
}
.woocommerce-breadcrumb {
    display: none;
}
a {
    text-decoration: none !important;
}

/* -- Dekoracja "/" przed tytulami ------------------------------------------- */
.title-decal:before {
    content: "/";
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 10px;
    transform: translateY(-50%);
    color: var(--ast-global-color-0);
    font-size: 24px;
    font-weight: 700;
}
.title-decal2:before {
    content: "/";
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 10px;
    transform: translateY(-50%);
    color: var(--ast-global-color-0);
    font-size: 16px;
    font-weight: 700;
}

/* -- Mapy Google (UAGB) ----------------------------------------------------- */
.wp-block-uagb-google-map {
    border-radius: 8px;
    overflow: hidden;
}
.uagb-block-3e9bc6ce .uagb-google-map__iframe {
    height: 600px !important;
}

/* -- Kontakt ---------------------------------------------------------------- */
.contact-wrapper {
    display: flex;
    gap: 20px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
}
.contact-link svg {
    flex-shrink: 0;
}

/* -- GTranslate ------------------------------------------------------------- */
.gtranslate_wrapper {
    padding-left: 28px;
}
.gtranslate_wrapper a {
    color: #FFF !important;
}
.gt-current-lang {
    display: none;
}

/* -- Wyszukiwarka w headerze (FiboSearch / Astra) --------------------------- */
div[data-section="section-header-search"] {
    flex-grow: 1;
}
.ast-search-icon {
    display: none;
}
.dgwt-wcas-search-filled .dgwt-wcas-ico-magnifier {
    display: none;
}
#search-cta .dgwt-wcas-search-wrapp {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
#search-cta form {
    transform: none !important;
    position: static !important;
    border-radius: 8px !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 1px solid #929292 !important;
    max-width: 320px;
}
#search-cta form input {
    width: 100%;
    padding: 10px 15px !important;
    min-width: 200px;
    background: transparent !important;
    border: none;
}
#ast-desktop-header .ast-search-menu-icon {
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}
#ast-desktop-header .ast-search-menu-icon form {
    transform: none !important;
    position: static !important;
    border-radius: 8px !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 1px solid #929292 !important;
}
#ast-desktop-header .ast-search-menu-icon form input {
    width: 100%;
    padding: 10px 15px !important;
    min-width: 200px;
    background: transparent !important;
}
label[for="search-field"] {
    width: 100%;
}
#search-field {
    width: 100% !important;
}
#masthead .input[type=search],
#dgwt-wcas-search-input-1 {
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 1px solid color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
}
.dgwt-wcas-suggestions-wrapp {
    min-width: 300px;
    border-radius: 8px !important;
}
#dgwt-wcas-search-input-1:active,
#dgwt-wcas-search-input-2:active,
#dgwt-wcas-search-input-1:focus,
#dgwt-wcas-search-input-2:focus {
    border: 1px solid #FCFCFC !important;
    background: transparent !important;
    color: #FCFCFC !important;
    box-shadow: none !important;
    outline: none !important;
}

/* -- Reset obramowan/outline na focus (poza wybranymi przyciskami) ---------- */
a:where(:not(.ulfur-filter__btn, .ulfur-thankyou__btn--primary, .ulfur-thankyou__btn--outline, .ulfur-addr-dropdown__btn, .ulfur-reviews__add-btn)):focus,
input:not(.woocommerce-billing-fields__field-wrapper input):where(:not(.ulfur-filter__btn, .ulfur-thankyou__btn--primary, .ulfur-thankyou__btn--outline, .ulfur-addr-dropdown__btn, .ulfur-reviews__add-btn)):focus,
button:where(:not(.ulfur-filter__btn, .ulfur-thankyou__btn--primary, .ulfur-thankyou__btn--outline, .ulfur-addr-dropdown__btn, .ulfur-reviews__add-btn)):focus,
.button:where(:not(.ulfur-filter__btn, .ulfur-thankyou__btn--primary, .ulfur-thankyou__btn--outline, .ulfur-addr-dropdown__btn, .ulfur-reviews__add-btn)):focus {
    outline: none !important;
    border: none !important;
}

/* -- Drobne UAGB / bloki ---------------------------------------------------- */
.wp-block-uagb-tabs-child {
    padding: 0 !important;
}
.wc-block-grid__product-sku .wp-block-post-terms__prefix {
    display: none;
}
.uag-post-grid-wrapper {
    height: auto !important;
}
.uagb-post-grid-byline {
    padding: 0 !important;
}
.right-column-grid-wrapper img {
    max-width: 231px !important;
}
.custom-blocks {
    gap: 35px !important;
}
.custom-blocks > div {
    padding: 25px;
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    max-width: 350px;
}
.custom-blocks > div .uagb-ifb-image-content {
    margin: 0 auto;
}
.custom-blocks > div .uagb-ifb-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#blog-grids .uagb-post__cta {
    display: flex;
}
#blog-grids .uagb-ifb-content,
#blog-grids .uag-post-grid-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
#blog-grids img {
    border-radius: 8px;
}

/* -- MailPoet (newsletter - formularze obsluguje wtyczka) ------------------- */
.mailpoet_form * {
    font-family: Montserrat !important;
}
.mailpoet_checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 1.5px solid color-mix(in srgb, var(--ast-global-color-3) 80%, transparent) !important;
    border-radius: 2px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    vertical-align: middle;
    margin: 0;
}
.mailpoet_checkbox:checked {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: color-mix(in srgb, var(--ast-global-color-3) 80%, transparent) !important;
}
.mailpoet_checkbox:checked::after {
    content: '' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7L5.00029 13L13 1' stroke='%23FCFCFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* -- Mobile: padding naglowka mobilnego ------------------------------------- */
@media only screen and (max-width: 1100px) {
    .ast-mobile-header-wrap > div > div {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }
}

/* -- Kolor tytulow (wpis / naglowek archiwum) ------------------------------- */
.entry-title,
.ulfur-archive-header__title {
    color: var(--ast-global-color-0);
}

/* -- Stopka (colophon) + newsletter w stopce (MailPoet form 2) -------------- */
.site-footer-primary-section-1 {
    align-items: stretch !important;
}
.site-footer-primary-section-1 .uagb-container-inner-blocks-wrap {
    align-items: flex-start !important;
}
.site-footer-primary-section-1 .mailpoet_form_paragraph {
    margin-bottom: 10px !important;
}
.site-footer-primary-section-1 li.menu-item > a {
    color: var(--ast-global-color-2);
    font-weight: 400;
    font-size: 16px;
}
.site-footer-primary-section-1 form {
    padding: 0 !important;
}
aside:has(#block-10) {
    max-width: 300px;
}
#mailpoet_form_2 form.mailpoet_form {
    padding: 0 !important;
}
#mailpoet_form_2 .mailpoet_text {
    width: 100% !important;
    height: 36px;
    padding: 0 14px !important;
    box-sizing: border-box;
    background: transparent !important;
    border: 1.5px solid color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
    border-radius: 8px;
    color: var(--ast-global-color-3);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
#mailpoet_form_2 .mailpoet_text::placeholder {
    color: color-mix(in srgb, var(--ast-global-color-3) 50%, transparent);
}
#mailpoet_form_2 .mailpoet_text:focus {
    border-color: color-mix(in srgb, var(--ast-global-color-3) 90%, transparent) !important;
}
#mailpoet_form_2 .mailpoet_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: color-mix(in srgb, var(--ast-global-color-3) 85%, transparent);
    line-height: 1.4;
    cursor: pointer;
}
#colophon #mailpoet_form_2 .mailpoet_submit {
    height: 40px;
    padding: 0 24px !important;
    width: auto !important;
    background: transparent !important;
    border: 1.5px solid color-mix(in srgb, var(--ast-global-color-3) 80%, transparent) !important;
    border-radius: 4px !important;
    color: var(--ast-global-color-3);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
#mailpoet_form_2 .mailpoet_submit:hover {
    background: color-mix(in srgb, var(--ast-global-color-3) 10%, transparent) !important;
}
#mailpoet_form_2 .mailpoet_paragraph {
    margin-bottom: 14px;
}
#mailpoet_form_2 .mailpoet_paragraph.last {
    margin-bottom: 0;
}

/* -- Pojedyncze bloki UAGB / responsywnosc stron ---------------------------- */
.uagb-block-1444419a {
    margin-bottom: 35px;
}
@media only screen and (min-width: 769px) {
    .wp-block-uagb-container.uagb-block-dd890637 {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}
@media only screen and (max-width: 768px) {
    .uagb-block-3095889c * {
        text-align: center;
        justify-content: center !important;
        align-items: center;
    }
    .uagb-block-3095889c .uagb-post__image > a {
        display: flex !important;
    }
    .wpcf7 {
        max-width: unset;
        margin-bottom: 35px;
    }
}
@media only screen and (max-width: 1100px) {
    #colophon * {
        width: auto !important;
        margin: auto !important;
        text-align: center;
    }
    #colophon .wp-block-uagb-container > p {
        margin-top: 35px !important;
        font-size: 1.25rem !important;
    }
    #colophon .wp-block-uagb-container > div {
        display: flex;
        flex-direction: column;
        max-width: 300px !important;
    }
    #colophon aside {
        margin: auto !important;
    }
    #blog-grids {
        margin-bottom: 35px !important;
    }
    .wp-block-uagb-container.uagb-block-448a45d1 {
        margin-bottom: 35px !important;
    }
}

/* =============================================================================
   ZINTEGROWANE "SUPERIOR" CSS - batch 2
   ============================================================================= */

/* Szybsze przejscia na przyciskach/linkach. NIE „all" — to animowało też
   outline/ramkę, przez co obramowania „skakały" przy focusie. Przechodzimy
   tylko właściwości wizualne (kolor, tło, opacity, cień, filtr, transform,
   border-color), z pominięciem outline i geometrii (szerokość ramki). */
button,
a,
.button {
    transition: color .1s ease, background-color .1s ease, border-color .1s ease, fill .1s ease, opacity .1s ease, box-shadow .1s ease, filter .1s ease, transform .1s ease !important;
}
button:hover,
a:hover,
.button:hover {
    transition: color .1s ease, background-color .1s ease, border-color .1s ease, fill .1s ease, opacity .1s ease, box-shadow .1s ease, filter .1s ease, transform .1s ease !important;
}

/* Pola filtra ceny - bez ramki (tez na focus) */
html body .ulfur-filter__price-inputs input,
html body .ulfur-filter__price-inputs input:focus {
    border: none !important;
}

/* Wyszukiwarka (wariant) - hover ramki */
#dgwt-wcas-search-input-thod:hover {
    border-color: var(--ast-global-color-1) !important;
}

/* Dropdowny w naglowku - linki na hover zolte (z dziecmi/svg) */
div[data-toggle-type="dropdown"] a {
    transition: all .2s linear !important;
    color: #FFF !important;
}
div[data-toggle-type="dropdown"] a:hover {
    transition: all .2s linear !important;
    color: var(--ast-global-color-0) !important;
}
div[data-toggle-type="dropdown"] a:hover * {
    color: var(--ast-global-color-0) !important;
    fill: var(--ast-global-color-0) !important;
}

/* Grafiki w gridach wpisow (UAGB) */
.uagb-post__image {
    border-radius: 12px !important;
    overflow: hidden;
    padding: 0 !important;
    margin-bottom: 15px;
}

/* Konto w naglowku - separator przed "Wyloguj sie" + uklad flex */
.ast-header-account {
    display: flex;
    gap: 10px;
}
.ast-header-account .ast-header-account-wrap {
    order: 0;
}
.ast-header-account .ulfur-header-logout {
    order: 2;
    margin: 0 !important;
}
.ast-header-account:has(.ulfur-header-logout)::after {
    content: "";
    width: 1px;
    order: 1;
    height: 16px;
    display: flex;
    background: #fff !important;
}
/* =============================================================================
   SIDEBAR - jednolite przejscia hover (0.2s ease) na wszystkich elementach.
   Nadpisuje globalne `a/button {transition:.1s}` (ID #ulfur-sidebar wygrywa).
   ============================================================================= */
#ulfur-sidebar a,
#ulfur-sidebar button,
#ulfur-sidebar svg,
#ulfur-sidebar .ulfur-sidebar__cat-link,
#ulfur-sidebar .ulfur-sidebar__cat-link *,
#ulfur-sidebar .ulfur-sidebar__account-link,
#ulfur-sidebar .ulfur-sidebar__account-link *,
#ulfur-sidebar .ulfur-sidebar__logout-btn,
#ulfur-sidebar .ulfur-sidebar__logout-btn *,
#ulfur-sidebar .ulfur-sidebar__toggle,
#ulfur-sidebar .ulfur-sidebar__toggle *,
#ulfur-sidebar .ulfur-sidebar__cat-icon,
#ulfur-sidebar .ulfur-sidebar__cat-icon::before {
    transition: all 0.2s ease !important;
}

/* Mobilny sidebar = szuflada (nie zwija się jak na PC), więc dolny przełącznik
   działa jak „zamknij" — odwracamy jego ikonę. Tekst („Zwiń") ustawia shop.js.
   Tylko <=1100px; wersja PC pozostaje bez zmian. */
@media (max-width: 1100px) {
    #ulfur-sidebar .ulfur-sidebar__toggle-icon {
        transform: scaleX(-1);
    }
}

.astra-shop-summary-wrap {
    margin-top: auto !important;
}


#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons.buttons>a:nth-child(1),
.ulfur-order-sidebar__coupon-btn {
    background-color: var(--ast-global-color-1) !important;

    color: var(--ast-global-color-2) !important;

}

html body [id^="dgwt-wcas-search-input-"]:hover {
    border-color: var(--ast-global-color-1) !important;
}