/****************************
* Dizayner Yoqubov Shaxzod  *
*  Tel: + 99 894 588-56-56  *
*   Tg: @Yoqubov_Shaxzod    *
*      Site: yoqubov.uz     *
****************************/

/*--- CASES ---*/
.template-detail-description, .template-detail-content {
    font-size: 18px;
    line-height: 180%;
}

.template-detail-description ul li, .template-detail-description ol li {
    list-style-type: inherit;
    margin-left: 18px;
}

.template-detail-description ul li::marker, .template-detail-description ol li::marker {
    color: var(--color-accent-primary);
}

.template-detail-description a {
    border-bottom: 1px dashed var(--color-accent-primary);
    font-weight: 700;
    color: var(--color-accent-primary);
}

.template-detail-description a:hover {
    border-bottom: 1px dashed rgba(0, 0, 0, 0);
}

.template-detail-description img {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 24px;
}

@media (max-width: 500px) {
    .template-detail-description, .template-detail-content {
        font-size: 16px;
        line-height: 160%;
    }
}

/*--- TEMPLATES LIST---*/
.templates__container {}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px 24px;
    margin: 24px 0 0 0;
}

.template-card {
    padding: 24px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 40px;
}

.template-card__image {
    position: relative;
    overflow: hidden;
}

.template-card__image img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    -o-object-fit: contain;
    object-fit: contain;
    max-height: 90%;
}

.template-card__title {
    color: #495381;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 0 0;
}

.template-card__price {
    display: flex;
    margin: auto 0 0 0;
    gap: 0 12px;
    align-items: baseline;
}

.template-card__price-name {
    font-size: 20px;
    font-weight: 500;
    color: rgb(73, 83, 129);
}

.template-card__price-value {
    color: rgb(73, 83, 129);
    font-size: 28px;
    font-weight: 700;
}

.template-card__more {
    width: 100%;
    height: 56px;
    background: var(--color-accent-primary);
    border: 1px solid var(--color-accent-primary);
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--color-white);
    padding: 16px;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    margin: 24px 0 0 0;
    cursor: pointer;
}

.template-card__more:hover {
    background-color: var(--color-white);
    color: var(--color-accent-primary);
}

.template-card-properties {
    margin: 24px 0 24px 0;
}

.template-card-properties__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
    line-height: 18px;
    grid-gap: 12px;
}

.template-card-properties__item+.template-card-properties__item {
    margin-top: 6px;
}

.template-card-properties__item-name {
    color: rgb(73, 83, 129);
}

.template-card-properties__item-value {
    color: rgb(73, 83, 129);
    font-weight: 600;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .template-grid {
        display: block;
    }

    .template-card+.template-card {
        margin-top: 24px;
    }

    .template-card__image {
        min-height: unset;
    }
}

@media screen and (max-width: 389px) {
    .template-card-properties {
        /* display: none; */
    }

    .template-card-properties__item {
        display: block;
    }

    .template-card__price {
        margin: 24px 0 0 0;
    }
}

/*--- TEMPLATE DETAIL ---*/
.template-detail {
    margin: 24px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, calc(100% / 2 - 24px));
    grid-gap: 48px 48px;
    align-items: flex-start;
}

.template-detail-gallary {}

.template-detail-gallary-main {}

.template-detail-gallary-main__item {
    border-radius: 24px;
    overflow: hidden;
}

.template-detail-gallary-main__item img {
    display: block;
    width: 100%;
}

.template-detail-gallary-thumbs-outer {
    margin: 24px 0 0 0;
    position: relative;
}

.template-detail-gallary-thumbs {}

.template-detail-gallary-thumbs-arrow {
    background-image: url(../images/style/arrow-slider.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    cursor: pointer;
    background-color: #ffffff8c;
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgb(119 96 255 / 37%);
    border-radius: 50%;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
}

.template-detail-gallary-thumbs-arrow:hover {
    background-color: #fff;
}

.template-detail-gallary-thumbs-arrow--prev {
    left: -16px;
}

.template-detail-gallary-thumbs-arrow--next {
    right: -16px;
    transform: translateY(-50%) rotateZ(180deg);
}

.template-detail-gallary-thumbs .slick-list {
    margin: 0 -6px;
}

.template-detail-gallary-thumbs__item {
    padding: 0 6px;
}

.template-detail-gallary-thumbs__item-inner {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
}

.template-detail-gallary-thumbs__item-inner:hover {
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    opacity: 0.75;
}

.template-detail-gallary-thumbs__item-inner img {
    display: block;
    width: 100%;
}

.template-detail-content {
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 40px;
    padding: 36px 24px;
    margin: 24px 0 0 0;
}

.template-detail-description {
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 40px;
    padding: 36px 24px;
    margin: 24px 0 0 0;
}

.template-detail-properties {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 12px 24px;
}

.template-detail-properties__item {
    display: flex;
    align-items: baseline;
    gap: 0 6px;
}

.template-detail-properties__item-name {
    color: rgb(73, 83, 129);
    flex: 1;
}

.template-detail-properties__item-value {
    color: rgb(73, 83, 129);
    font-weight: 600;
    text-align: right;
}

.template-detail-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0 0 0;
}

.template-detail-demo {
    width: 100%;
    height: 56px;
    background-color: var(--color-white);
    border: 1px solid var(--color-accent-primary);
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--color-accent-primary);
    padding: 16px;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    cursor: pointer;
}

.template-detail-demo:hover {
    background: var(--color-accent-primary);
    color: var(--color-white);
}

.template-detail-order {
    width: 100%;
    height: 56px;
    background: var(--color-accent-primary);
    border: 1px solid var(--color-accent-primary);
    -webkit-box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    box-shadow: 0 5px 47px rgba(119, 96, 255, .1);
    border-radius: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--color-white);
    padding: 16px;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    cursor: pointer;
}

.template-detail-order:hover {
    background-color: var(--color-white);
    color: var(--color-accent-primary);
}

.template-detail-price {
    margin: 24px 0 0 0;
    display: flex;
    gap: 0 12px;
    align-items: baseline;
}

.template-detail-price__name {
    font-size: 20px;
    font-weight: 500;
    color: rgb(73, 83, 129);
}

.template-detail-price__value {
    color: rgb(73, 83, 129);
    font-size: 28px;
    font-weight: 700;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .template-detail-btn-wrapper {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 767px) {
    .template-detail-btn-wrapper {
        flex-wrap: wrap;
    }

    .template-detail {
        display: block;
    }

    .template-detail-content {
        margin: 24px 0 0 0;
    }

    .template-detail-gallary-thumbs-arrow--prev {
        left: -8px;
    }
    
    .template-detail-gallary-thumbs-arrow--next {
        right: -8px;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px 0 0 0;
    gap: 0 12px;
}

.pagination__item {
    width: 42px;
    height: 42px;
    display: flex;
    background: #fff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.pagination__item--current {
    background: #735cff;
    color: #fff;
}

.product__item--prev img,
.product__item--next img {
    display: block;
}

.product__item--next img {
    transform: rotateZ(180deg);
}

a.pagination__item:hover {
    background: #f0f0f0;
}

/****************************
* Dizayner Yoqubov Shaxzod  *
*  Tel: + 99 894 588-56-56  *
*   Tg: @Yoqubov_Shaxzod    *
*      Site: yoqubov.uz     *
****************************/