/*!
Theme Name: INF Store
Author: Inf
Description: The wordpress theme for displaing listings.
Version: 1.0.0
Text Domain: inf-store
Domain Path: /languages
*/

/*:root {
    --main-color: #FF6F61;
    --text-color: #353535;
}*/

input[type="text"] {
    outline: none;
}
h1 { font-weight: 700 !important; }

.inf-main-color {
    color: var(--main-color);
}
.inf-text-color {
    color: var(--text-color);
}

.sl-link {
    text-decoration: underline;
}
.sl-link:hover {
    color: var(--main-color);
}

/*.row {
    row-gap: 1.5rem;
}*/

/* Header */
.h-user-menu-link {
    color: #fff !important;
    cursor: pointer;
}
.h-user-menu-link:hover {
    /*color: #212529 !important;*/
}
.h-user-menu-link::after {
    margin-left: .55em;
}
.bottom-bar .user .bell {
    margin-right: 15px;
}
.bottom-bar .user .bell span {
    font-size: 15px;
}
.btn.h-post-your-ad {
    color: #ffffff;
    background: var(--main-color);
    border: 1px solid var(--main-color);
}
.btn.h-post-your-ad:hover {
    color: var(--main-color);
    background: #ffffff;
    border: 1px solid var(--main-color);
}

.h-lang-menu .dropdown-item.active,
.h-currency-menu .dropdown-item.active {
    color: #fff;
    text-decoration: none;
    background-color: var(--main-color);
}
.h-lang-menu .dropdown-item:hover:not(.active),
.h-currency-menu .dropdown-item:hover:not(.active) {
  background-color: #f3f6ff; /*#f8f9fa;*/
}
.bottom-bar .search {
    max-width: 500px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .bottom-bar .h-currency-menu,
    .bottom-bar .h-lang-menu,
    .bottom-bar .wishlist,
    .bottom-bar .bell,
    .bottom-bar .h-post-your-ad {
        margin-bottom: 15px;
    }
}
/* End Header */

/* Footer */
.footer .social a {
    margin-top: 0px !important;
}
/* End Footer */

/* Product Card */
.product-item .product-price .product-price__price,
.product-item .product-price a {
    color: #fff;
}
.product-item .product-price a:hover {
    text-decoration: underline;
}
.product-item .product-price__title {
    max-height: 1.8rem;
}
.product-item .product-price__price {
    max-height: 1.5rem;
}
.product-item .product-price__cat {
    max-height: 1.5rem;
}

.product-item .product-price__title,
.product-item .product-price__price,
.product-item .product-price__cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* End Product Card */

/* Badge */
.vip-badge,
.top-badge,
.boost-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff740d; /*gold;*/
    color: #fff;
    font-size: 1rem;
    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 */

/* Front Page */
.fp-categories {
    padding: 20px 30px 15px 30px;
    color: var(--main-color);
    background: #ffffff;
}
.fp-categories__item {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.2rem;
    
}
.fp-categories__item a {
    color: #353535;
}
.fp-categories__item a:hover {
    color: var(--main-color);
}
.fp-categories__item a i {
    margin-right: 0.5rem;
}
.fp-categories__item a span {
    margin-left: 0.5rem;
}
/* Front Page end */

/* 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 */

/* Filters */
.product-view .product-search input[name="keyword"] {
    color: #353535;
}
/* End Filters */

/* 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: var(--main-color);
    color: #fff;
}
.sl-details__contact-btns a svg {
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;
    margin: 0 0.625rem 0.0625rem 0;
    background-color: #fff;
    fill: var(--main-color);
    transition: all 0.3s ease-in-out;
}
.sl-details__contact-btns a:hover svg {
    background-color: var(--main-color);
    fill: #fff;
}

.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 var(--main-color);
    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 {
    margin-right: 1rem;
    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;
    margin-bottom: 1rem;
    display: inline-block;
}
/*.sl-details__share-buttons__btn:hover { opacity: 0.8; color: #fff; }*/
.share-fb { background: #fff; border: 1px solid #1877F2; } .share-fb svg { fill: #1877F2; } .share-fb:hover { background: #1877F2; border: 1px solid #1877F2; } .share-fb:hover svg { fill: #fff; }
.share-tg { background: #fff; border: 1px solid #0088cc; } .share-tg svg { fill: #0088cc; } .share-tg:hover { background: #0088cc; border: 1px solid #0088cc; } .share-tg:hover svg { fill: #fff; }
.share-in { background: #fff; border: 1px solid #0077b5; } .share-in svg { fill: #0077b5; } .share-in:hover { background: #0077b5; border: 1px solid #0077b5; } .share-in:hover svg { fill: #fff; }
.share-vi { background: #fff; border: 1px solid #7360f2; } .share-vi svg { fill: #7360f2; } .share-vi:hover { background: #7360f2; border: 1px solid #7360f2; } .share-vi:hover svg { fill: #fff; }
.share-wa { background: #fff; border: 1px solid #25D366; } .share-wa svg { fill: #25D366; } .share-wa:hover { background: #25D366; border: 1px solid #25D366; } .share-wa:hover svg { fill: #fff; }
.share-inst { background: #fff; border: 1px solid #0088cc; } .share-inst svg { fill: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }.share-inst:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border: 1px solid #0088cc; } .share-inst:hover svg { fill: #fff; }
.share-copy { background: #fff; border: 1px solid #6c757d; } .share-copy svg { fill: #6c757d; } .share-copy:hover { background: #6c757d; border: 1px solid #6c757d; } .share-copy:hover svg { fill: #fff; }
.sl-details__share-buttons svg {
    width: auto;
    height: 1rem;
    /*fill: #fff;*/
}

.sl-details__contact-btns__btn {
    margin-bottom: 1rem
}

.sl-desc .nav {
    background: #fff !important;
}

.sl-desc .list-group-item:last-child {
  border-bottom-width: 1px !important;
}

.p-30 {
  padding: 30px;
}
/* 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 */

