.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex>img {
    width: 20% !important;
}

.card.d-flex>.card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

#tourCarousel {
    height: 50vh !important;
}

#tourCarousel img {
    object-fit: fill;
}

div.stars {
    width: auto;
    display: inline-block
}

.mt-200 {
    margin-top: 200px
}

input.star {
    display: none
}

label.star {
    float: right;
    /* padding: 10px; */
    font-size: 30px;
    color: #333333;
    transition: all .2s
}

input.star:checked~label.star:before {
    content: '\2605';
    color: #ffc800;
    transition: all .25s
}

input.star-5:checked~label.star:before {
    color: #ffc800;
    /* text-shadow: 0 0 20px #952 */
}

input.star-1:checked~label.star:before {
    color: #F62
}

label.star:hover {
    transform: rotate(-15deg) scale(1.3)
}

label.star:before {
    content: '\2605';
    font-family: FontAwesome
}

.product-holder {
    background-color: #fff;
    height: 20vh !important;
    width: 100% !important;
}

.product-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: scale-down !important;
    object-position: center center;
    transition: all ease-in .3s;
}

a.card.product-item:hover {
    background: #ebebebb8;
}

a.card.product-item:hover .product-cover {
    transform: scale(1.2);
}
/* =========================
   PRODUCT CARD
========================= */

.product-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #f1f1f1;
    transition:all .25s ease;
    position:relative;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* IMAGE */

.product-card-media{
    background:#f8f8f8;
    aspect-ratio:1/1;
    overflow:hidden;
}

.product-cover{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

.product-card:hover .product-cover{
    transform:scale(1.05);
}

/* BODY */

.product-card .card-body{
    gap:6px;
}

/* BRAND */

.product-card .brand{
    font-size:12px;
    font-weight:700;
    color:#777;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin:0;
}

/* PRODUCT NAME */

.product-title{
    font-size:17px;
    font-weight:600;
    color:#111;
    line-height:1.45;
    margin:0;

    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    min-height:50px;
    word-break:break-word;
}

/* PRICE */

.product-price{
    font-size:18px;
    font-weight:700;
    color:#000;
    margin-top:2px;
}

/* MOBILE */

@media (max-width:768px){

    .product-card{
        border-radius:12px;
    }

    .product-title{
        font-size:15px;
        min-height:44px;
    }

    .product-price{
        font-size:16px;
    }

    .product-card .card-body{
        padding:12px !important;
    }
}

/* =========================
   SALE PRICE
========================= */

.product-price.sale {
    text-decoration: line-through;
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    margin-right: 6px;
}

.product-sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #CC2230;
}

.product-price--original {
    text-decoration: line-through;
    color: #999999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.product-price--sale {
    font-size: 18px;
    font-weight: 700;
    color: #CC2230;
}

@media (max-width: 768px) {
    .product-sale-price {
        font-size: 16px;
    }
    .product-price--original {
        font-size: 12px;
    }
    .product-price--sale {
        font-size: 16px;
    }
}