.custom-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
}

.custom-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    min-width: 250px;
    box-sizing: border-box;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.active {
    scale: 1;
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.flex-row {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.loop-grid {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    justify-content: center;
}

.loop-grid-container {
    display: flex;
    justify-content: centre;
}

.ghost-no-posts {
    height: 200px;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty_message_image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
}

.empty_message_title {
    font-size: 18px;
    font-weight: bold;
    color: #4444;
    text-align: center;
    margin: 0;
    padding: 0;
}

.empty_message_text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: -10px;
}

.ghost-loading {
    height: 100px;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-image {
    height: 100px;
    width: 200px;
    object-fit: cover;
}

.filter-category-group {
    width: 100%;
    display: flex;
}

.filter-category-label,
.filter-attribute-label {
    display: flex;
    align-items: center;
}

.d-flex {
    width: 100%;
    display: flex;
}

.filter-attribute-group,
.filter-category-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ghost-search-widget {
    display: flex;
    width: 100%;
}

.ghost-loop-top-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ghost-loop-top-right{
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: start;
}

.ghost-loop-count-message{
    margin-right: 20px;
}

.loop-search-container {
    position: relative;
    width: 100px;
}

.loop-search-icon {
    position: absolute;
    left: 0;
    display: flex;
    flex-grow: 1;
}

.ghost-loop-sorting-container{
    width: fit-content;
}

.ghost-quick-view-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 30px;
    overflow: hidden;
    pointer-events: none;
    z-index: 999999 !important;
    pointer-events: none;
}

/* Opening Animations */
.ghost-quick-view-popup.fade-in {
    opacity: 0;
    display: block;
    pointer-events: all;
}

.ghost-quick-view-popup.fade-in.active {
    opacity: 1;
    pointer-events: all;
}

.ghost-quick-view-popup.zoom-in {
    transform: translate(-50%, -50%) scale(0);
}

.ghost-quick-view-popup.zoom-in.active {
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.ghost-quick-view-popup.open-from-bottom {
    transform: translate(-50%, 100%);
}

.ghost-quick-view-popup.open-from-bottom.active {
    transform: translate(-50%, -50%);
    pointer-events: all;
}

.ghost-quick-view-popup.open-from-top {
    transform: translate(-50%, -100%);
}

.ghost-quick-view-popup.open-from-top.active {
    transform: translate(-50%, -50%);
    pointer-events: all;
}

/* Closing Animations */
.ghost-quick-view-popup.fade-out {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ghost-quick-view-popup.fade-out.closing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.ghost-quick-view-popup.zoom-out {
    transform: translate(-50%, -50%) scale(1);
}

.ghost-quick-view-popup.zoom-out.closing {
    transform: translate(-50%, -50%) scale(0);
}

.ghost-quick-view-popup.close-to-bottom {
    transform: translate(-50%, -50%);
}

.ghost-quick-view-popup.close-to-bottom.closing {
    transform: translate(-50%, 100%);
}

.ghost-quick-view-popup.close-to-top {
    transform: translate(-50%, -50%);
}

.ghost-quick-view-popup.close-to-top.closing {
    transform: translate(-50%, -100%);
}

.ghost-quick-view-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px !important;
    height: 40px !important;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: red;
    transition: 300ms;
    z-index: 9999 !important;
}

.ghost-quick-view-close:hover {
    background-color: #ffbaba;
}

.ghost-popup-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 20px;
}

ghost-popup-content{
	z-index: 100 !important;
}

.ghost-popup-btn-icon, ghost-quick-view-btn {
    z-index: 1 !important;
}

.d-none {
    display: none;
}

/* ******************************************************************************************************************** */
/* Starting sidebar Styles =========================================================================================== */

.ghost-sidebar-menu-wrapper {
    z-index: 1 !important;
}

.ghost-sidebar-trigger {
    cursor: pointer;
    font-size: 24px;
    z-index: 1;
}

.ghost-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: #333;
    color: #fff;
    transition: 0.3s ease-in-out;
    z-index: 999 !important;
    padding: 20px;
}

.ghost-sidebar.active {
    left: 0;
}

.ghost-sidebar-close {
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 20px;
}

.ghost-sidebar-trigger {
    width: 100%;
    display: flex;
}

.ghost-sidebar-content ul, .ghost-sidebar-content ul li, .ghost-sidebar-content ul li ul {
    transition: 300ms !important;
    list-style: none !important;
}

.ghost-sidebar-content li a {
    text-decoration: none !important;
}

.ghost-sidebar-content ul li ul {
    display: none;
    padding-left: 0px;
}

.ghost-sidebar-content ul li.menu-item-has-children>a:after {
    content: " ▼";
    /* Default: down arrow */
    font-size: 12px;
    padding-left: 5px;
}

.ghost-sidebar-content ul li.menu-item-has-children>a.expanded:after {
    content: " ▲";
    /* Change to up arrow when expanded */
}


/* Ending sidebar Styles =========================================================================================== */
/* ***************************************************************************************************************** */

/* Starting search popup styles */

.ghost-search-widget {
    position: relative;
}

.ghost-search-popup-trigger {
    cursor: pointer;
}

.ghost-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.ghost-search-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ghost-search-input-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
}

.ghost-search-popup-input {
    padding: 8px;
    flex: 1;
}

.ghost-search-btn {
    padding: 8px 12px;
    cursor: pointer;
}

.ghost-search-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 12px;
    color: red;
    transition: 300ms;
    background-color: transparent;
    border-radius: 30px;
}

.ghost-search-popup-close:hover {
    background-color: #ffbaba;
}

.ghost-search-results {
    width: 100%;
    max-height: 70vh;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ghost-search-popup-empty-box {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ghost-search-popup-title {
    font-size: 28px;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 5px;
}

.ghost-search-popup-caption {
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
}

.ghost-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.hidden {
    display: none;
}