/*!
Theme Name: INF Shop
Author: Inf
Description: The wordpress theme for displaing listings.
Version: 1.0.0
Text Domain: inf-shop
*/

/* Front Page */
.inf-fp__vip,
.inf-fp__top {
    position: relative;
}
.inf-fp__vip .section-title::after,
.inf-fp__top .section-title::after {
    width: calc(100% - 7.5rem);
}

/* Carousel */
.inf-fp__vip .owl-nav-btn__prev,
.inf-fp__top .owl-nav-btn__prev {
    position: absolute;
    top: -4rem;
    right: 3.75rem;
}
.inf-fp__vip .owl-nav-btn__next,
.inf-fp__top .owl-nav-btn__next {
    position: absolute;
    top: -4rem;
    right: 0px;
}
.owl-nav-btn__prev,
.owl-nav-btn__next {
    height: 2.6rem;
    width: 2.6rem;
    display: inline-block;
    background: #ffd333;
    text-align: center;
    border-radius: 50%;
    padding: 0.3rem;
}
.inf-fp__vip  .owl-carousel .owl-nav,
.inf-fp__top  .owl-carousel .owl-nav {
    display: block !important;
}
/* End Carousel */

/* Badge */
.vip-badge,
.top-badge,
.boost-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #ff740d; /*gold;*/
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}
.boost-badge {
    background: rgba(255, 165, 0, 0.85);
}
/* End Badge */

/* Menu */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}
/* End Menu */

/* Liked */
.liked {
    box-shadow: 0 0 0 0.2rem rgba(61, 70, 77, 0.5);
}
/* End Liked */

/* Breadcrumbs */
#breadcrumbs .breadcrumb-item {
    display: inline-block;
}
/* End Breadcrumbs */

/* SPLIDE */
/* Main slider */
#main-slider {
    margin-bottom: 0.625rem;
}
#main-slider .splide__track {
    aspect-ratio: 16 / 9; 
}
#main-slider .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Thumbnail slider */
#thumbnail-slider .splide__slide {
    opacity: 0.5;
    transition: opacity 0.3s, border-color 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

#thumbnail-slider .splide__slide.is-active {
    opacity: 1;
    border-color: #2271b1; 
}

.thumbnail-item {
    position: relative;
    height: 100%;
}

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

/* Іконка Play поверх мініатюри відео */
.video-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0 0.625rem 0.3125rem 0.875rem;
    border-radius: 50%;
    font-size: 1.375rem;
}
.thumb-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0px 0.375rem 0.187rem 0.625rem;
    border-radius: 50%;
    font-size: 0.75rem;
}

.fp-vip .splide__arrow,
.fp-top .splide__arrow {
    top: -3.125rem !important;
}
.fp-vip .splide__arrow--prev,
.fp-top .splide__arrow--prev {
    left: unset;
    right: 4em;
}
/* End Splide */

/* Single Listing */
.sl-details__contact-btns a:hover {
    background-color: #fff;
    color: #3d464d;
}
.sl-details__contact-btns a svg {
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;
    margin: 0 0.625rem 0.0625rem 0;
    background-color: #3d464d;
    fill: #fff;
    transition: all 0.3s ease-in-out;
}
.sl-details__contact-btns a:hover svg {
    background-color: #fff;
    fill: #3d464d;
}

.sl-message-panel {
    position: fixed;
    top: 0;
    right: -23.75rem;
    width: 22.5rem;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 0.75rem rgba(0,0,0,.15);
    transition: right .3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
}
.sl-message-panel.open {
    right: 0;
}
.sl-message-panel__header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 2.5rem;
}
.sl-message-panel__header-title {
    flex: 1 1 auto;
    font-size: 1.375rem;
}
.sl-message-panel__header-btn {
    flex: 0 1 3.125rem;
    text-align: center;
    font-size: 1.75rem;
    cursor: pointer;
}
.sl-message-panel__body {
    margin-top: 1.25rem;
}
.sl-message-panel__body textarea {
    width: 100%;
    border: 1px solid #343a40;
    border-radius: 4px;
    padding: 0.3125rem;
}
.sl-message-panel__footer {
    margin-top: 1.25rem;
}
.sl-message-panel__footer .inf-btn {
    width: 100%;
}
.sl-message-panel__result {
    text-align: center;
    margin-top: 1.25rem;
}
@media (max-width: 23.4375rem) { /*375px*/
    .sl-message-panel {
        width: 100%;
    }
}

.sl-details__share-buttons__btn {
    padding: 0.3125rem 0.625rem;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}
.sl-details__share-buttons__btn:not(:last-child) {
    margin-right: 1rem;
}
.sl-details__share-buttons__btn:hover { opacity: 0.8; color: #fff; }
.share-fb { background: #1877F2; }
.share-tg { background: #0088cc; }
.share-in { background: #0077b5; }
.share-vi { background: #7360f2; }
.share-wa { background: #25D366; }
.share-inst { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-copy { background: #6c757d; }
.sl-details__share-buttons svg {
    width: auto;
    height: 1rem;
    fill: #fff;
}
/* End Single Listing */

/* Print */
.only-print {
    display: none;
}
@media print {
    .no-print, .share-buttons { 
        display: none !important;
    }

    .only-print {
        display: flex !important;
        align-items: center;
        gap: 1.25rem;
        margin-top: 1.875rem;
        padding: 0.9375rem;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .qr-info p {
        margin: 0.3125rem 0;
        font-size: 0.875rem;
    }
}
/* End Print */

/* Listing Pagination */
.archive .navigation,
.post-type-archive-listing .navigation {
    margin-top: 3.125rem;
    /*text-align: center;*/
    justify-content: center;
}
archive .navigation a,
.post-type-archive-listing .navigation a {
    color: #3d4646;
}
.archive .page-numbers,
.post-type-archive-listing .page-numbers {
    border: 1px solid #3d4646;
    padding: 0.25rem 0.5rem;
    margin: 0 0.625rem;
}
.archive .page-numbers.current,
.post-type-archive-listing .page-numbers.current {
    color: #3d4646;
    text-decoration: underline;
    border: 1px solid #3d4646;
    padding: 0.25rem 0.5rem;
    margin: 0 0.625rem;
}

.listings__no-found {
    margin-top: 1.875rem;
}
/* End Listing Pagination */

/* Listing Filters */
.listings__filters-wrapper__left-collapce__link {
    margin: 1.5rem 0;
    color: var(--main-color);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    user-select: none;
}
.listings__filters-wrapper__left-collapce {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
}
.listings__filters-wrapper__left-collapce.is-open {
    max-height: 1100px;
    opacity: 1;
    margin-bottom: 20px;
    overflow-y: auto;
}
/* End Listing Filters */

@media (max-width: 28.125rem) { /*450px*/
    .p-30 {
      padding: 30px 15px !important;
    }
}
