/* Eski do'kon plagini (joomshopkit) qo'shgan uslublar.
   Plagin Joomla 5 da yo'q, lekin mahsulot kartochkasidagi ikonka o'lchami va
   miqdor maydoni shu qoidalarga tayanadi — shuning uchun shablonga ko'chirildi. */

.hidden {
    display: none;
}

input.quantity {
    max-width: 50px;
}

.input-append {
    display: inline-block;
    margin-bottom: 0;
}

.inline_askquestion_prod {
    background-color: ButtonFace;
    color: ButtonText;
    margin-left: 3px;
    margin-right: 3px;
}

.fa {
    min-width: 16px;
    min-height: 16px;
}

.input-append,
.input-prepend {
    margin-bottom: 0;
}

/* Mahsulot kartochkasidagi "Задать вопрос" oynasi: eski do'kon plagini o'rniga
   shablonning o'z modal oynasi. */

.ys-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
    overflow-y: auto;
}

.ys-modal[hidden] {
    display: none;
}

.ys-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.ys-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .35);
}

.ys-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.ys-modal__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.ys-modal__close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ys-modal__close:hover,
.ys-modal__close:focus {
    color: #a73838;
}

.ys-modal__body {
    padding: 15px;
}

body.ys-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .ys-modal {
        padding: 10px;
    }
}

/* Mahsulot rasmlarining kichik lentasi: eski karusel plagini o'rniga
   shablonning o'z lentasi (uch kadr, chap/o'ng o'qlar). */

.ys-thumbs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ys-thumbs__viewport {
    flex: 1 1 auto;
    overflow: hidden;
}

.ys-thumbs__track {
    display: flex;
    transition: transform .3s ease;
}

.ys-thumbs__item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 10px;
    box-sizing: border-box;
}

.ys-thumbs__item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.ys-thumbs__nav {
    flex: 0 0 auto;
    width: 16px;
    height: 50px;
    padding: 0;
    border: 0;
    background-color: #ffcc00;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.ys-thumbs__nav[disabled] {
    opacity: .5;
    cursor: default;
}

.ys-thumbs__prev {
    background-image: url(../img/left2.png);
}

.ys-thumbs__next {
    background-image: url(../img/right2.png);
}
