@import url("general.css");

.uk-lightbox-items-fit>*>:not(iframe) {
    width: 100%;
    height: auto;
}

.category-preview-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
    flex-grow: 1;
}

#about-us {
    margin-top: 60px;
}


main {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, 
        #2A1857 0%,     /* Мягкий темный */
        #2D195B 10%, 
        #301A5F 20%, 
        #331B63 30%, 
        #361C67 40%, 
        #39206A 50%,    /* Плавный переход */
        #4C3D7A 60%, 
        #5F5A8A 70%, 
        #72779A 80%, 
        #8594AA 90%, 
        #98B1BA 95%, 
        #ABCECA 100%    /* Мягкий светлый */
    );
    background-size: 300% 300%;
    animation: softFlow 15s ease infinite;
    filter: contrast(1.1) brightness(0.95);
    min-height: calc(100vh - 150px);
}

@keyframes softFlow {
    0% { 
        background-position: 0% 0%;
        filter: contrast(1.05) brightness(0.92);
    }
    33% { 
        background-position: 100% 33%;
        filter: contrast(1.1) brightness(0.98);
    }
    66% { 
        background-position: 33% 100%;
        filter: contrast(1.08) brightness(0.94);
    }
    100% { 
        background-position: 0% 0%;
        filter: contrast(1.05) brightness(0.92);
    }
}



.about-us-main-section .uk-slideshow {
    width: 100% !important;
    height: 100% !important;
}

.about-us-main-section .uk-slideshow-items {
    width: 100% !important;
    height: 100% !important;
}

.about-us-main-section .uk-slideshow-items > div {
    width: 100% !important;
    height: 100% !important;
}

.about-us-main-section .uk-slideshow-items img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

/* Отключаем стандартное позиционирование UIkit */
.about-us-main-section .uk-slideshow-items img[uk-cover] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
}






@media (max-width: 750px) {
    .background-image {
        top: 50px;
    }

    #about-us {
        margin-top: 50px;
    }
}

.about-us {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease;
}

.about-us.active {
    top: 0px;
    opacity: 1;
}

/* .uk-overlay{
    padding: 10px 30px;
} */

.about-us-main-section {
    display: flex;
    /* width: 96vw; */
    z-index: 0;
    margin-inline: auto;
    border-radius: 20px;
    top: 20px;
    /* overflow: hidden; */
    max-width: 1400px;
    background-color: #C1C1E9;
    border-radius: 10px;
    min-height: 200px;
    /* max-height: 300px; */
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    height: 500px;
    overflow: hidden;
}
    p {
        text-align: center;
    }


.categories-section {
    background-color: rgb(255, 255, 255);
    margin-inline: 20px;
}

.category-main-name {
    text-align: center;
}

#popular-products {
    width: 96vw;
    backdrop-filter: blur(10px);
    margin-inline: auto;
    max-width: 1400px;
    border-radius: 20px;
    padding: 30px;
    margin-block: 0;
    box-sizing: border-box;
}

.popular-product-title {
    font-family: "Montserrat", sans-serif;
    color: white;
    text-align: center;
}

.uk-slidenav-next,
.uk-slidenav-previous {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}


.grid-popular-products a {
    text-decoration: none;
    color: rgb(56, 56, 56);
}

.grid-popular-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-inline: auto;
}

.popular-product-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    padding: 10px;
    height: calc(100% - 20px);
    border-radius: 6px;
    
    border: 0.5px solid #797979;
    background-color: rgb(255, 255, 255);
    box-shadow: 20px 8px 6px rgba(0, 0, 0, 0.3);
}

.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 0.5px solid #797979;
    padding-inline: 10px;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    text-align: center;
}

.product-description {
    text-indent: 20px;
}

.product-price {
    position: absolute;
    margin-block: 0;
    bottom: 10px;
    right: 10px;
}

@media (max-width:1500px){
    #about-us{
        margin-inline:20px;
    }
}

@media (max-width: 1100px) {
    .about-us-main-section {
        font-size: 14px;
    }
}

@media (max-width: 960px) {
    .about-us-main-section {
        font-size: 12px;

        img {
            height: 230px;
        }
    }
}

@media (max-width: 850px) {
    .uk-overlay p {
        width: 500px;
    }

    .about-us-main-section img {
        height: 200px;
    }
}

@media (max-width:750px){
    #popular-products{
        margin-top: 30px;
    }
}

@media (max-width: 650px) {
    .uk-overlay p {
        width: 400px;
    }

    .grid-popular-products a{
       width: calc(100vw - 50px);
    }

    .popular-product-item{
        width: 80%;
    }

    .uk-overlay {
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .uk-overlay p {
        width: auto;
    }

    #popular-products{
        margin-right: 0;
        padding: 15px;
    }


    .uk-overlay {
        width: 100%;
    }
    .grid-popular-products{
        grid-template-columns: none;
    }
    .grid-popular-products{
        padding: 0;
    }
    .photo{
        padding: 0;
    }
    .popular-product-item{
        grid-template-columns:2fr 2fr ;
    }
}