/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Style for the search results container */
/* .tpasfw-search-results {
    display: none;
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 10;
    transform: translateY(-50%);
    text-align: center;
    background: #fff;
} */

.tpasfw-search-results {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    z-index: 100001; /* Ensure it's above other content */
    text-align: center;
    background: #fff;
    box-shadow: 0 0 10px #000;
}

.tpasfw-search-box *{
    box-sizing: border-box;
}

/* Style for the overlay */
.tpasfw-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 10; /* Below the search results container */
}

.tpasfw-search-input {
    /* max-width: 600px !important; */
    width: 100%;
    margin: 0;
    transition: all .3s;
    border-radius: 45px;
    padding: 10px 20px !important;
}

.admin-bar .tpasfw-search-input {
    margin: 0;
}

i.tpasfw-search {
    cursor: pointer;
}

.admin-bar .tpasfw-search-input:focus{
    outline-color: #000;
    outline: 1px solid;
}

.tpasfw-search-results-ajax {
    margin: 0 auto;
    overflow-y: scroll;
    max-height: 60vh;
    direction: rtl;
}

.tpasfw-products-grid {
    font-size: 0;
    text-align: center;
    /* max-height: 240px; */
    /* overflow-y: scroll; */
    max-width: 800px;
    margin: 15px auto;
    direction: ltr;
}

.tpasfw-product {
    position: relative;
    display: inline-block;
    width: calc(25% - 15px); /* Adjust the 25% for 4 items per row, minus the gap */
    margin: 0 7.5px 15px; /* Half of your gap as margin */
    vertical-align: top;
    font-size: 16px; /* Reset font size */
}

.tpasfw-product img {
    width: 100%; /* Adjust as needed */
    height: auto;
}

.tpasfw-product-title {
    margin: 5px 0;
}

.tpasfw-product-title,
.tpasfw-product-title a {
    line-height: 1;
}

.tpasfwopen-search-box {
    display: block;
    margin: 20px 0;
}
.tpasfwopen-search-form {
    text-align: center;
    margin: 0 0 20px 0;
}

.tpasfwopen-search-box .tpasfw-search-results-ajax {
    box-shadow: 0 0 10px #ccc;
    background: #fff;
    position: absolute;
    top: 65px;
    left: 0;
}
.tpasfwopen-search-box .tpasfw-categories {
    display: none;
}
.tpasfwopen-search-results {
    position: relative;
}
.tpasfwopen-search-ins {
    position: relative;
    width: auto;
    height: auto;
    display: inline;
}
.tpasfwopen-search-ins-close {
    position: absolute;
    top: 0;
    right: 18px;
    cursor: pointer;
    transition: opacity 0.5s ease;
    opacity: 0; /* Initially hidden */
    display: none;
}
.tpasfwopenshow {
    opacity: 1; /* Shown when the class 'show' is added */
    display: inline;
}
.tpasfwopen-search-box .tpasfw-no-result {
    margin: 30px 0 30px 0;
    text-align: center;
}
.tpasfwopen-search-box .tpasfw-categories-box h3 {
    text-align: center;
}

/* .tpasfw-product-price {
    font-size: 1rem;
} */

.owl-carousel {
    display: block;
}

.tpasfw-carousel img {
    width: 100%;
    height: auto;
}

.tpasfw-content {

}

/* Style for the Owl Carousel navigation arrows */
.tpasfw-product .owl-prev, .tpasfw-product .owl-next {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for exact centering */
    z-index: 100; /* Ensure it's above the content */
    background: #fff; /* Background color of arrows */
    color: #333; /* Color of arrow icons */
    border-radius: 50%; /* Circular shape */
    width: 30px; /* Width of the arrows */
    height: 30px; /* Height of the arrows */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.tpasfw-product .owl-prev {
    left: 10px; /* Position from the left */
    font-size: 30px;
}

.tpasfw-product .owl-next {
    right: 10px; /* Position from the right */
    font-size: 30px;
}

.tpasfw-onsale {
    /* position: absolute;
    top: 0;
    left: 0;
    background: red;
    color: white;
    padding: 5px;
    z-index: 15; */
    /* Style the ribbon as per your design */
}

.tpasfw-position{
    position: absolute;
    text-align: center;
    left:0;
    top: 0;
    width: 100%;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* ------------------------------------------------------ */

/* <div class="lds-grid-mask"><div class="lds-grid"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div> */

.lds-grid-mask {
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    height: 60vh;
    /* position: absolute; */
}

.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0;
}
.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    /* background: #fcf; */
    animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}
@keyframes lds-grid {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ------------------------------------------------------ */



.tpasfw-search-form {
    width: 100%;
    display: flex;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    padding: 15px;
    box-sizing: border-box;
}
.tpasfw-site-logo {
    
}
.tpasfw-shopping-cart {
    
}
.tpasfw-my-account {
    
}
.tpasfw-shopping-cart a,
.tpasfw-my-account a {
    color: #000;
}
/* .tpasfw-site-logo img {
    max-width: 150px !important;
} */
.tpasfw-no-result {
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    display: inline-block;
}
.tpasfw-categories {
    width: 100%;
    margin: 0px 0 15px 0;
    padding: 0;
}
.tpasfw-cat {
    padding: 3px 10px;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 12px;
    margin: 0 0 0 0;
    border: 1px solid;
}

.tpasfw-search-abs-right .tpasfw-ic ,
.tpasfw-search-abs-left {
    display: none;
}
.tpasfw-ic.tpasfw-close-button {
    display: inline-block !important;
}
.tpasfw-ic {
    display: inline-block;
    margin: 0 5px;
}

.tpasfw-close-button {
    cursor: pointer;
}

.tpasfw-categories-box {
    margin: 0 0 30px 0;
    border-top: 1px solid #ccc;
}
.tpasfw-categories-box h3 {
    margin: 20px 0;
    font-size: 1.5rem;
}
.tpasfw-categories-grid {
    max-width: 800px;
    margin: 0 auto;
}
/* .tpasfw-category {
    background: #f5f5f5;
    margin: 0 0 3px 0;
    padding: 5px 0;
}
.tpasfw-category:hover {
    background: #e2e2e2;
}
.tpasfw-category a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
}
.tpasfw-category img {
    width: 120px;
    object-fit: cover;
    height: 120px;
    border-radius: 50%;
}
.tpasfw-category-name {

} */
.tpasfw-content, .tpasfw-content a {
    text-align: center;
}
.tpasfw-content del {
    opacity: 0.6;
}

/* --------------------- Scrollbar --------------------- */

/* For WebKit-based browsers */
.tpasfw-search-results-ajax::-webkit-scrollbar {
    width: 5px;
}
.tpasfw-search-results-ajax::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.tpasfw-search-results-ajax::-webkit-scrollbar-thumb {
    background: #888; 
}
.tpasfw-search-results-ajax::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* For Firefox */
.tpasfw-search-results-ajax {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}
/* ----------------------------------------------------- */

  /* .owl-carousel.owl-drag .owl-item {
    animation: search-product-fadein .25s;
    animation-fill-mode: forwards;
}
@keyframes search-product-fadein {
    from {
        opacity: 0;
        transform: translateY(10%)
    }

    to {
        opacity: 1;
        transform: translateY(0%)
    }
} */

.tpasfw-product{
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(.26, .53, .74, 1.48);
  animation-fill-mode: backwards;
	animation-name: animate-pop;
}


@keyframes animate-pop {
  0% {
    opacity: 0;
	  transform: translate(0, 100px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.tpasfw-product:nth-child(1){
  animation-delay: 0.3s;
}
.tpasfw-product:nth-child(2) {
    animation-delay: 0.4s;
  }
  .tpasfw-product:nth-child(3) {
    animation-delay: 0.5s;
  }

  .tpasfw-product:nth-child(4) {
    animation-delay: 0.6s;
  }

  .tpasfw-product:nth-child(5) {
    animation-delay: 0.7s;
  }
  .tpasfw-product:nth-child(6) {
    animation-delay: 0.8s;
  }

  .tpasfw-product:nth-child(7) {
    animation-delay: 0.9s;
  }

  .tpasfw-product:nth-child(8) {
    animation-delay: 1s;
  }
  .tpasfw-product:nth-child(9) {
    animation-delay: 1.1s;
  }
  .tpasfw-product:nth-child(10) {
    animation-delay: 1.2s;
  }


  .owl-nav button{
    outline: none !important;
}
.owl-theme .owl-nav [class*=owl-]:hover {
    background: none !important;
    color: inherit !important;
}

.site-header .site-branding img{
    width: auto !important;
}
.tpasfw_before_search_input{
    position: relative;
}
#tpasfw-product-orderby {
    position: absolute;
    right: 30px;
    top: calc(50% - 12px);
    z-index: 1;
    margin: 0;
    line-height: 1;
    max-width: 100px;
    font-size: 12px;
    height: 24px !important;
    border: none !important;
    padding: 0 10px;
    border-left: 1px solid !important;
    border-radius: 0 !important;
    min-height: 10px !important;
    box-shadow: none !important;
    background: none !important;
}
#tpasfw-product-orderby:focus-visible{
    box-shadow: none !important;
    outline: none !important;
}

.rtl #tpasfw-product-orderby {
    border-left: none !important;
    border-right: 1px solid !important;
    left: 30px !important;
    right: auto !important;
}

.tpasfw-product .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    z-index: 3;
    direction: rtl;
}

/* --------------------- pagination ---------------------- */

#tpasfw-pagination-container {
    margin: 20px 0;
    direction: ltr !important;
}

#tpasfw-pagination-container .paginationjs-prev.disabled,
#tpasfw-pagination-container .paginationjs-next.disabled {
    opacity: 0.5;
}

#tpasfw-pagination-container ul {
    list-style: none;
    padding: 0;
}

#tpasfw-pagination-container ul li {
    display: inline;
    margin-right: 5px;
    cursor: pointer;
}

#tpasfw-pagination-container .paginationjs-page.active {
    font-weight: bold;
    background: #f5f5f5;
}

.tpasfw-pagination-theme1 ul li {
    padding: 3px 10px;
    border: 1px solid #ccc;
}

.tpasfw-pagination-theme2 ul li {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 50% ;
}

.tpasfw-pagination-theme1 ul li a,
.tpasfw-pagination-theme2 ul li a {
    color: #646464 !important;
    font-size: 13px !important;
}

/* ------------------------------------------------------- */

@media screen and (min-width: 768px) {
    /* .admin-bar .tpasfw-search-form{
        margin: 32px 0 0;
    } */
}
@media screen and (min-width: 910px) {
       
}
@media screen and (min-width: 1024px) {
    
    .tpasfw-search-abs-right .tpasfw-ic ,
    .tpasfw-search-abs-left {
        display: inline-block;
    }
    
}
@media screen and (min-width: 1240px) {
       
}
@media screen and (min-width: 1600px) {
    .tpasfw-products-grid {
        max-width: 1000px;
    }
}


/* --------------------------------------------- */
.tpasfw-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Creates a grid with flexible columns */
    grid-gap: 20px; /* Space between grid items */
    justify-content: center; /* Center the grid items horizontally */
    padding: 10px; /* Padding around the grid */
}

.tpasfw-category {
    text-align: center; /* Center-align the category name */
    transition: all 0.3s ease;
}

.tpasfw-category:hover img, 
.tpasfw-category:hover:not(:has(img)) a::before {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Example box shadow */
    opacity: 1;
}

.tpasfw-category a {
    display: block; /* Make the link take up the whole grid item */
    color: inherit; /* Use the default text color */
    text-decoration: none; /* Remove underline from links */
}

.tpasfw-category img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover; /* Ensure the image covers the area without stretching */
    /* margin-bottom: 10px; */
    /* opacity: 0.8; */
}

.tpasfw-category-name {
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
    line-height: 1;
}

/* Style for category items without an image */
.tpasfw-category:not(:has(img)) a {
    position: relative;
    padding-top: 100px; /* Make space for the faux image */
}

.tpasfw-category:not(:has(img)) a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px !important;
    height: 100px !important;
    background-color: #ccc;
    /* opacity: 0.8; */
}

/* --------------------------------------------- */
.tpasfw-flipper {
    position: relative;
}

.tpasfw-flipper-image {
    /* width: 100%;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0; */
}

.tpasfw-flipper-back {
    position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.tpasfw-flipper:hover .tpasfw-flipper-back {
    opacity: 1;
}

/* --------------------------------------------- */

.tpasfw-search-input:focus {
    outline: none !important;
}

/* ------------------------------------------------ */
.tpasfw-search-abs-midd {
    order: 2;
}

.tpasfw-select-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.tpasfw-select-container i {
    border: 1px solid #888;
    border-radius: 50%;
    padding: 7px;
    margin: 0 10px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
}

/* ------------------------------------------------ */