/* ============================================
    Spis treści:
    0. Globalne
    1. DJ Hero
    2. DJ Product Card
    3. DJ CTA
    4. Breadcrumbs
    5. DJ Ask
    6. DJ Table
    7. DJ Product Gallery
    8. DJ Sidebar
============================================ */

/* =========== [0. Globalne] =========== */


/* =========== [1. DJ Hero] =========== */
.dj-hero {
    .uk-inline-clip {
        border-radius: 14px;
    }
    @media screen and (max-width: 1000px) {
        .uk-inline-clip {
            width: 100%;
        }
        .el-image {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: right;
        }
        .uk-position-center-left {
            position: static !important;
            transform: none !important;
            width: 100% !important;
        }
    }
    @media screen and (max-width: 500px) {
        .uk-inline-clip {
            isolation: isolate;
            &::before {
                content: "";
                position: absolute;
                display: block;
                width: 100%;
                height: 100%;
                background-color: #00000052;
            }
        }
        .el-image {
            z-index: -1;
        }
        .uk-position-center-left {
            >.uk-panel {
                padding: 24px;
            }
        }
    }
}


/* =========== [2. DJ Product Card] =========== */
.dj-product-card {
    .uk-card {
        border: 1px solid #f7f9fa;
    }
    .uk-card-media-top {
        background-color: #FFF;
    }
    .el-image {
        aspect-ratio: 2 / 1.5;
        width: 100%;
        object-fit: scale-down;
    }
}


/* =========== [3. DJ CTA] =========== */
.dj-cta {
    >.uk-container {
        padding-top: 72px;
    }
    .uk-card-secondary {
        .uk-background-cover {
            border-radius: 14px;
            .uk-position-cover {
                border-radius: 14px;
            }
        }
    }
    .dj-cta-image {
        position: absolute;
        bottom: -70px;
        right: 0;
        .el-image {
            max-width: calc(100% + 60px);
        }
    }
    @media screen and (max-width: 1200px) {
        .dj-cta-image {
            bottom: -24px;
            text-align: right;
            .el-image {
                max-width: 79%;
            }
        }
    }
}


/* =========== [4. Breadcrumbs] =========== */
.uk-breadcrumb {
    [aria-current="page"] {
       font-weight: 500; 
    }
}

/* =========== [5. DJ Ask] =========== */
.dj-ask-button {
    #djc_contact_form_button,
    .btn-primary {
        width: 100%;
        color: #222222;
        background-color: #F4C900;
        &:hover {
            color: #222222;
            background-color: transparent;
            border-color: #222222;
        }
    }
}

/* =========== [6. DJ Table] =========== */
.dj-table {
    .table {
        margin: 0;
        table-layout: fixed;
        border-collapse: collapse;
        box-shadow: none;
        tbody {
            tr {
                td,
                th {
                    padding: 9px 6px !important;
                    background: none !important;
                    background-color: #FFFFFF !important;
                    border: 1px solid #DDDDDD !important;
                    box-shadow: none !important;
                    box-sizing: border-box;
                }
                &:nth-of-type(even) {
                    td,
                    th {
                        background-color: #F7F9FA !important;
                    }
                }
            }
        }
    }
    @media screen and (max-width: 600px) {
        .table {
            tbody {
                tr {
                    td,
                    th {
                        font-size: 12px;
                        line-height: 1.5;
                        padding: 12px 9px !important;
                    }
                }
            }
        }
    }
}

/* =========== [7. DJ Product Gallery] =========== */
.dj-product-gallery {
    .el-image {
        object-fit: scale-down;
    }
    @media screen and (max-width: 600px) {
        .uk-thumbnav {
            .uk-object-cover {
                width: 64px;
            }
        }
    }
    @media screen and (max-width: 420px) {
        .uk-thumbnav {
            .uk-object-cover {
                width: 48px;
            }
        }
    }
}

/* =========== [8. DJ Sidebar] =========== */
.dj-sidebar {
    height: fit-content;
    .uk-card-default {
        background-color: #FFF;
        border: 1px solid #DDDDDD;
    }
    h3 {
        margin-bottom: 8px;
    }
    .mod_djc2categories {
        >.menu {
            >li {
                >a {
                    font-size: 14px;
                }
            }
        }
        .nav-child {
            a {
                font-size: 12px;
            }
        }
        .active {
            >a {
                color: #00568c;
                text-decoration: underline;
            }
        }
        a {
            padding: 0;
            color: #111111;
            &:hover {
                color: #00568c;
            }
        }
    }
    .mod_djc2_producer_list {
        margin: 0;
        .active {
            a {
                color: #00568c;
                text-decoration: underline;
            }
        }
        a {
            padding: 0;
            font-size: 14px;
            color: #111111;
            &:hover {
                color: #00568c;
            }
        }
    }
}