/* ==========================================================================
   AEC DESIGN - GŁÓWNY ARKUSZ STYLÓW (ZOPTYMALIZOWANY)
   ========================================================================== */

/* --- 1. STYLE WSPÓŁDZIELONE (PRZENIESIONE Z PHP) --- */

/* Efekt globalnego unoszenia (GPU optimized) */
.aec-hover-effect {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform, box-shadow;
}

.aec-hover-effect:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-8px) !important;
}

/* Skrzynka produktu Premium */
.aec-pro-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #C71648;
    padding: 25px;
    margin: 20px 0 30px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 0 8px 8px 0;
}

.aec-pro-box .aec-title {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.3;
}

.aec-pro-box .aec-desc {
    display: block;
    font-weight: 400;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.aec-pro-box .aec-price {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #C71648;
    margin-top: 5px;
}

.aec-pro-box .aec-btn,
.aec-category-global-offer .aec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C71648;
    color: #ffffff;
    width: fit-content;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.aec-pro-box .aec-btn {
    padding: 0 35px;
    height: 48px;
    font-size: 14px;
    letter-spacing: 0.8px;
    margin-top: 5px;
}

.aec-pro-box .aec-btn:hover {
    background-color: #333 !important;
    transform: translateX(5px) !important;
}

/* Baner oferty w kategoriach */
.aec-category-global-offer {
    background: #f9f9f9;
    border-left: 6px solid #C71648;
    padding: 25px 30px;
    margin: 0 0 35px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    clear: both;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.aec-category-global-offer h3 {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
}

.aec-category-global-offer p {
    display: block;
    font-weight: 400;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.aec-category-global-offer .aec-phone-anchor {
    font-weight: 700;
    color: #2c2c2c;
    text-decoration: none;
    white-space: nowrap;
}

.aec-category-global-offer .aec-btn {
    padding: 0 28px;
    height: 46px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: 8px;
}

.aec-category-global-offer .aec-btn:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
}

/* Skracanie opisu na karcie produktu */
.summary .product_title,
.summary .price {
    visibility: hidden;
}

.woocommerce-product-details__short-description .product_title,
.woocommerce-product-details__short-description .price {
    visibility: visible !important;
    display: block !important;
}

.woocommerce-product-details__short-description {
    position: relative !important;
    display: block !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    z-index: 1 !important;
}

@media (min-width: 769px) {
    .woocommerce-product-details__short-description {
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        padding: 25px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-product-details__short-description {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
}

.woocommerce-product-details__short-description .product_title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 22px !important;
}

.woocommerce-product-details__short-description .price {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.aec-text-limited-wrap {
    display: block !important;
    width: 100% !important;
}

.woocommerce-product-details__short-description.aec-is-truncated .aec-text-limited-wrap {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 11 !important;
    overflow: hidden !important;
}

.woocommerce-product-details__short-description.expanded .aec-text-limited-wrap {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.aec-fade-bottom-panel {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
    background: transparent !important;
    cursor: pointer !important;
}

.woocommerce-product-details__short-description.aec-is-truncated .aec-fade-bottom-panel {
    display: flex !important;
}

.woocommerce-product-details__short-description.expanded .aec-fade-bottom-panel {
    display: none !important;
}

.aec-close-btn-inline {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 20px auto 5px auto !important;
    cursor: pointer !important;
    width: max-content !important;
}

.woocommerce-product-details__short-description.expanded.aec-is-truncated .aec-close-btn-inline {
    display: flex !important;
}

.aec-text-toggle-link {
    color: #C71648 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out !important;
}

.aec-fade-bottom-panel:hover .aec-text-toggle-link,
.aec-close-btn-inline:hover .aec-text-toggle-link {
    color: #111111 !important;
}


/* --- 2. ZARZĄDZANIE WIDŻETAMI I KATEGORIAMI --- */

.widgettitle,
.widget-title,
.widget_title {
    font-size: 16px;
    font-weight: bold;
    color: #111111 !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    position: relative !important;
    display: block !important;
}

.widgettitle::after,
.widget-title::after,
.widget_title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background-color: #ba0c2f !important;
}

.widget_product_categories > ul > li > a {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3 !important;
}

.widget_product_categories > ul > li ul.children li a {
    font-size: 14px;
    line-height: 1.3 !important;
}

.widget_product_categories .product-categories li::before,
.widget_product_categories .product-categories li a::before {
    display: none !important;
}

.widget_product_categories .product-categories li a {
    display: inline-block !important;
    text-decoration: none !important;
    transition: transform 0.25s ease-in-out, color 0.2s ease-in-out !important;
    will-change: transform;
}

.widget_product_categories .product-categories li a:hover {
    text-decoration: none !important;
    color: #ba0c2f !important;
    transform: translateX(5px) !important;
}

#secondary {
    background-color: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    border-left: 3px solid #ba0c2f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-radius: 0px 8px 8px 0px !important;
    padding: 18px 15px 18px 20px !important;
    transition: box-shadow 0.3s ease-in-out !important;
    will-change: box-shadow;
}

#secondary:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.product-categories .count,
.product-categories-widget .count {
    display: none;
}

.widget_product_categories .product-categories li {
    border-bottom: 1px solid rgba(186, 12, 47, 0.25) !important;
    padding-bottom: 4px !important;
    margin-bottom: 4px !important;
    list-style: none !important;
}

.widget_product_categories .product-categories li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* --- 3. WOOCOMMERCE: PRODUKTY, ZAKŁADKI, CENY --- */

.price,
.woocommerce-Price-amount.amount,
.woocommerce-Price-currencySymbol,
.woocommerce-price-suffix {
    color: #c71648 !important;
}

.woocommerce-Price-currencySymbol,
.woocommerce-price-suffix {
    font-size: 1em !important;
    line-height: 1 !important;
}

.single-product .product-images-container {
    height: auto;
}

/* Kafelki produktów na liscie */
.woocommerce ul.products li.product-category,
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    will-change: transform, box-shadow;
}

.woocommerce ul.products li.product-category:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(199, 22, 72, 0.2) !important;
    border-color: #ba0c2f !important;
}

.woocommerce ul.products li.product-category img,
.woocommerce ul.products li.product img {
    border-radius: 6px !important;
    transition: transform 0.3s ease !important;
    margin-bottom: 15px !important;
    display: block !important;
    will-change: transform;
}

.woocommerce ul.products li.product-category:hover img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.03) !important;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    margin-top: 0 !important;
    padding-top: 15px !important;
    border-top: 2px solid #950a25 !important;
    background: none !important;
}

.woocommerce ul.products li.product .price {
    background: none !important;
    padding: 5px 0 0 0 !important;
    border: none !important;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count,
.woocommerce ul.products li.product .count {
    background-color: #f0f2f5 !important;
    color: #666666 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    margin-left: 5px !important;
    display: inline-block !important;
}

/* Karta produktu - Zakładki (Desktop) */
.single-product .summary + .woocommerce-tabs,
.woocommerce .woocommerce-tabs,
.woocommerce-tabs {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    background-color: #ffffff !important;
    border: 1px solid #efefef !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    padding: 30px 30px 35px 30px !important;
    box-sizing: border-box !important;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #efefef !important;
    margin: 0 0 30px 0 !important;
    padding: 0 0 2px 0 !important;
    text-align: left !important;
    display: flex !important;
    gap: 25px;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    position: relative !important;
    white-space: nowrap !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #666666 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 4px !important;
    display: block !important;
    position: relative !important;
    border-bottom: 3px solid transparent !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
}

.woocommerce-tabs ul.tabs li:not(.active) a:hover {
    color: #ba0c2f !important;
    border-bottom-color: rgba(186, 12, 47, 0.4) !important;
    cursor: pointer;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #ba0c2f !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #ba0c2f !important;
}

.woocommerce-tabs .panel {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.woocommerce-tabs .panel h2:first-of-type {
    display: none !important;
}

.woocommerce-tabs .panel p {
    color: #334155 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    padding: 0 15px !important;
}

.woocommerce-tabs .panel h3 {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    padding: 0 15px !important;
}

.woocommerce-tabs .panel ul {
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    padding-left: 35px !important;
    list-style-type: square !important;
}

.woocommerce-tabs .panel ul li {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    margin-bottom: 12px !important;
}

@media screen and (min-width: 769px) {
    .woocommerce-tabs .panel table,
    .entry-content table {
        width: 100% !important;
        margin: 20px 0 25px 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background-color: #ffffff !important;
        display: table !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .woocommerce-tabs .panel table tr td {
        padding: 14px 18px !important;
        border-right: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .woocommerce-tabs .panel table tr td:last-child {
        border-right: none !important;
    }

    .woocommerce-tabs .panel table tr:last-child td {
        border-bottom: none !important;
    }

    .woocommerce-tabs .panel table tr:nth-child(even) {
        background-color: #f8fafc !important;
    }

    .woocommerce-tabs .panel table tr td:first-child {
        font-weight: 600 !important;
        background-color: #f1f5f9 !important;
        width: 25% !important;
    }

    .product-gallery {
        background-color: #ffffff !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
        transition: none !important;
        overflow: hidden !important;
    }

    .product-gallery img {
        border-radius: 4px !important;
        transition: none !important;
    }

    .woocommerce-products-header {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 30px !important;
        margin-bottom: 30px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
}

@media screen and (max-width: 768px) {
    .single-product .summary + .woocommerce-tabs,
    .woocommerce .woocommerce-tabs,
    .woocommerce-tabs {
        margin-top: 20px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
    }

    .woocommerce-tabs ul.tabs li {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .woocommerce-tabs ul.tabs li:last-child {
        border-bottom: none !important;
    }

    .woocommerce-tabs ul.tabs li a {
        font-size: 15px !important;
        padding: 12px 10px !important;
        border-bottom: none !important;
        display: block !important;
    }

    .woocommerce-tabs ul.tabs li.active {
        background-color: #fdf2f4 !important;
    }

    .woocommerce-tabs .panel {
        padding: 15px 0 !important;
    }

    .woocommerce-tabs .panel table,
    .entry-content table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        table-layout: auto !important;
    }

    .woocommerce-tabs .panel table tr th,
    .woocommerce-tabs .panel table tr td,
    .entry-content table tr th,
    .entry-content table tr td {
        white-space: normal !important;
        min-width: 140px !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    .woocommerce-tabs .panel table tr td:first-child,
    .entry-content table tr td:first-child {
        width: 35% !important;
        min-width: 110px !important;
    }

    .product-gallery,
    .woocommerce-products-header {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }

    .product-gallery img {
        border-radius: 0 !important;
    }
}

/* Wymuszenie wpisywania ilości, blokada zaznaczania */
form.cart {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

form.cart input.qty {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.button .woostify-svg-icon {
    display: none !important;
}

.cat-item-971 {
    display: none !important;
}


/* --- 4. NAWIGACJA (Menu Dell & Ikona Home) --- */

@media (min-width: 768px) {
    .main-navigation ul.primary-navigation > li {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        cursor: pointer !important;
    }

    .main-navigation ul.primary-navigation > li > a {
        background-color: transparent !important;
        border: 1px solid transparent !important;
        padding: 8px 16px !important;
        margin: 0 2px !important;
        border-radius: 4px !important;
        color: #1A2B48 !important;
        font-weight: 500 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: color 0.25s ease, background-color 0.25s ease !important;
    }

    .main-navigation ul.primary-navigation > li:hover > a {
        background-color: #f3f4f6 !important;
        border-color: transparent !important;
        color: #C71648 !important;
        box-shadow: none !important;
    }

    .main-navigation ul.primary-navigation > li > a svg,
    .main-navigation ul.primary-navigation > li > a i,
    .main-navigation ul.primary-navigation > li > a .woostify-svg-icon {
        transition: transform 0.25s ease !important;
        transform-origin: center !important;
    }

    .main-navigation ul.primary-navigation > li:hover > a svg,
    .main-navigation ul.primary-navigation > li:hover > a i,
    .main-navigation ul.primary-navigation > li:hover > a .woostify-svg-icon {
        transform: rotate(180deg) !important;
        color: #C71648 !important;
    }

    .main-navigation ul.sub-menu {
        background-color: #ffffff !important;
        border-radius: 6px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        padding: 10px !important;
        border: 1px solid #e2e8f0 !important;
        margin-top: -10px !important;
        top: 100% !important;
        position: absolute !important;
        z-index: 9999 !important;
    }

    .main-navigation ul.sub-menu::after {
        content: "" !important;
        position: absolute !important;
        top: -6px !important;
        left: 30px !important;
        width: 12px !important;
        height: 12px !important;
        background-color: #ffffff !important;
        border-left: 1px solid #e2e8f0 !important;
        border-top: 1px solid #e2e8f0 !important;
        transform: rotate(45deg) !important;
    }

    .main-navigation ul.sub-menu li a {
        color: #1A2B48 !important;
        font-size: 15px !important;
        padding: 8px 16px !important;
        display: block !important;
        white-space: nowrap !important;
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
    }

    .main-navigation ul.sub-menu li a:hover {
        background-color: #f8fafc !important;
        color: #C71648 !important;
        padding-left: 20px !important;
    }

    .main-navigation ul.primary-navigation > li.menu-home-icon {
        vertical-align: top !important;
        display: inline-block !important;
    }

    .main-navigation ul.primary-navigation > li.menu-home-icon > a,
    .main-navigation ul.primary-navigation > li.menu-home-icon > a:hover {
        font-size: 0 !important;
        display: block !important;
        position: relative !important;
        height: 100% !important;
    }

    .main-navigation ul.primary-navigation > li.menu-home-icon > a::before,
    .main-navigation ul.primary-navigation > li.menu-home-icon > a:hover::before {
        content: "" !important;
        width: 18px !important;
        height: 18px !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        background-color: currentColor !important;
        clip-path: none !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center !important;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center !important;
        -webkit-mask-size: contain !important;
        mask-size: contain !important;
    }
}


/* --- 5. SZUFLADA BOCZNA (DRAWER) --- */

.sticky-category-btn {
    position: fixed !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: #ba0c2f !important;
    color: #ffffff !important;
    border: none !important;
    padding: 22px 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
    writing-mode: vertical-rl !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sticky-category-btn span {
    display: inline-block !important;
    transform: rotate(180deg) !important;
}

.sticky-category-btn.btn-active {
    transform: translateY(-50%) translateX(340px) !important;
}

#custom-left-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 340px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 999998 !important;
    background-color: #ffffff !important;
    padding: 40px 30px !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.12) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#custom-left-drawer.sidebar-active {
    transform: translateX(0) !important;
}

.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    z-index: 999997 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    backdrop-filter: blur(2px) !important;
    transition: opacity 0.4s ease !important;
}

.sidebar-overlay.overlay-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sidebar-open-overflow {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .sticky-category-btn,
    #custom-left-drawer,
    .sidebar-overlay {
        display: none !important;
    }
}


/* --- 6. ELEMENTY RÓŻNE (Stopka, Wideo, Siatka Tła) --- */

.site-footer .widget-title {
    color: #ffffff !important;
    margin-bottom: 15px !important;
}

.site-footer .widget_text,
.site-footer .widget_text p,
.site-footer .widget_text a {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    display: inline !important;
    padding: 0 !important;
    transition: color 0.3s ease;
}

.site-footer .widget_text a:hover {
    color: #C71648 !important;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* UWAGA: Naprawiono błąd 'selector' z pliku .txt */
.custom-grid-background {
    background-color: #17546d;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 18px 18px;
}


/* --- 7. FORMULARZE (Contact Form 7) --- */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
    font-family: inherit !important;
    margin: 0 0 15px 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 input[type="url"]:hover,
.wpcf7 input[type="number"]:hover,
.wpcf7 input[type="date"]:hover,
.wpcf7 textarea:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12) !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus {
    border-color: #ba0c2f !important;
    box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.15) !important;
    outline: none !important;
}

.wpcf7 input:not([type="submit"]).wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
    border: 2px solid #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: none !important;
}

.wpcf7 textarea {
    min-height: 140px !important;
    resize: vertical !important;
    margin-bottom: 25px !important;
}

.wpcf7-form .cf-turnstile,
.wpcf7-form .wpcf7-cloudflare-turnstile {
    margin-bottom: 20px !important;
    display: block !important;
}

.wpcf7 select {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 0 15px 0 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.wpcf7 select:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12) !important;
}

.wpcf7 select:focus {
    border-color: #ba0c2f !important;
    box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.15) !important;
    outline: none !important;
}

.wpcf7 .wpcf7-list-item {
    margin: 0 15px 10px 0 !important;
    display: inline-block !important;
}

.wpcf7 .wpcf7-list-item label {
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    color: #334155 !important;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    cursor: pointer !important;
    accent-color: #ba0c2f !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.wpcf7-form label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.wpcf7 input[type="submit"] {
    width: auto !important;
    min-width: 180px !important;
    padding: 14px 35px !important;
    background-color: #ba0c2f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin: 5px 0 15px 0 !important;
    box-shadow: 0 4px 6px -1px rgba(186, 12, 47, 0.15) !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #950a25 !important;
    box-shadow: 0 8px 15px rgba(186, 12, 47, 0.3) !important;
}

.wpcf7 input[type="submit"]:active {
    transform: scale(0.98) !important;
}

.wpcf7-response-output {
    margin: 20px 0 10px 0 !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    text-align: left !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.wpcf7-not-valid-tip {
    color: #dc2626 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: -10px !important;
    margin-bottom: 15px !important;
    display: block !important;
    text-align: left !important;
}

.wpcf7-spinner {
    display: none !important;
}

.wpcf7 form,
.wpcf7 .wpcf7-form {
    text-align: left !important;
}

/* Poppins 400 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins 500 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins 600 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://sklep.aecdesign.pl/wp-content/woostify-local-fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font Awesome — swap zamiast block */
@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2) format("woff2");
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff2) format("woff2");
}

@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.woff2) format("woff2");
}

:root {
    --aec-primary: #C71648;
    --aec-primary-dark: #ba0c2f;
    --aec-heading: #1E293B;
    --aec-text: #475569;
}

/* --- HERO BANER --- */
.aec-cat-hero {
    position: relative;
    overflow: hidden;
    line-height: 0;
    border-radius: 10px;
    border-bottom: 4px solid var(--aec-primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    margin: 0 0 24px;
}

.aec-cat-hero img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.aec-cat-hero:hover img {
    transform: scale(1.03);
}

.aec-cat-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .10) 100%);
}

@media (min-width: 769px) {
    .aec-cat-hero {
        margin: -30px -30px 26px;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
    }
}

@media (max-width: 768px) {
    .aec-cat-hero img {
        height: 150px; /* dobierz wg gustu: 120-190px */
        object-fit: cover;
        object-position: left center; /* zachowuje logo HP + tytul; sprobuj tez center / 30% center */
    }
}

/* --- LEAD (podtytul + akapit wprowadzajacy, zawsze widoczny) --- */
.aec-cat-lead {
    margin: 0 0 22px;
    color: var(--aec-text);
    line-height: 1.7;
}

.aec-cat-lead h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--aec-heading);
    margin: 0 0 10px;
    line-height: 1.3;
}

.aec-cat-lead p {
    color: var(--aec-text);
    line-height: 1.7;
    margin: 0;
}

/* --- ACCORDION opisu kategorii --- */
.aec-cat-accordion {
    margin: 0 0 6px;
}

.aec-acc-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.aec-acc-item:hover {
    border-color: #f1c9d4;
    box-shadow: 0 6px 16px rgba(199, 22, 72, .06);
}

.aec-acc-item.is-open {
    border-color: var(--aec-primary);
    box-shadow: 0 8px 20px rgba(199, 22, 72, .08);
}

.aec-acc-header {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--aec-heading);
    transition: background .2s ease, color .2s ease;
}

.aec-acc-header:hover {
    color: var(--aec-primary);
}

.aec-acc-item.is-open .aec-acc-header {
    color: var(--aec-primary);
    background: #fdf2f4;
}

.aec-acc-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    transition: transform .3s ease;
}

.aec-acc-item.is-open .aec-acc-icon {
    transform: rotate(180deg);
}

.aec-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.aec-acc-inner {
    padding: 2px 20px 18px;
    color: var(--aec-text);
    line-height: 1.7;
}

.aec-acc-inner p {
    margin: 0 0 12px;
}

.aec-acc-inner p:last-child {
    margin-bottom: 0;
}

.aec-acc-inner ul {
    margin: 6px 0 0;
    padding-left: 22px;
    list-style: square;
}

.aec-acc-inner li {
    margin-bottom: 10px;
}

.aec-acc-inner li:last-child {
    margin-bottom: 0;
}

.aec-acc-inner b,
.aec-acc-inner strong {
    color: var(--aec-heading);
}

.woocommerce-tabs .aec-cat-lead p,
.woocommerce-tabs .aec-acc-inner p {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce-tabs .aec-acc-inner ul {
    padding-left: 22px !important;
}