/* loading icon style */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.custom-product-grid {
    position: relative;
    min-height: 300px;
}
.button-pixas {
	float: right;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 100px auto; /* center on page */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*---btns-filter-css---*/
/* Container to hold the two columns */
/* Container for the buttons and filter toggle */
.woocommerce-products-header__title.page-title {
	display: none;
}
.products.columns-4 {
	display: none;
}
.woocommerce-result-count {
	display: none;
}
.woocommerce-ordering {
	display: none;
}
.woocommerce-pagination {
	display: none;
}
.two-column-layout .custom-search-form {
	flex: 1 1 48%;
	margin-top: 17px;
}
.btns-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Space between left and right columns */
    margin-bottom: 20px;
}

/* Left Column containing buttons */
.left-column {
    display: flex; /* Use flexbox for horizontal arrangement */
    align-items: center; /* Align buttons vertically in the center */
    gap: 10px; /* Space between buttons */
}

.custom-shop-categories {
    display: flex; /* Arrange buttons in a row */
    flex-wrap: nowrap; /* Prevent buttons from wrapping onto a new line */
    gap: 10px; /* Space between buttons */
}

.custom-shop-categories button {
    background: #f1f1f1;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap; /* Prevent text from breaking */
}

/* Active button */
.custom-shop-categories button.active {
    background: #ff4e88;
    color: #fff;
}

/* Right Column containing the Filter button */
.right-column {
    display: flex;
    justify-content: flex-end; /* Align the filter button to the right */
}

/* Mobile Filter Toggle Button */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: white;
	margin-top:-20px;
}
/* Filter button (Right Column) */
.filter-toggle {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    cursor: pointer;
}

.filter-toggle i {
    margin-right: 5px;
}
/* Sidebar style */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
li {
	list-style: none;
}
.mobile-sidebar-categories > li {
	padding-left: 0px;
	margin-left: -37px;
	margin-bottom: 10px;
}
.sidebar-categories li {
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.sidebar-categories li i {
    font-size: 16px;
}

.pink-icon {
    color: #ff4e88;
}

.default-icon {
    color: #000;
}


/* Shop layout and animations */
.custom-shop-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
	margin-bottom: 60px;
}
.custom-shop-categories button.active {
    background: #ff4e3d;
    color: #fff;
}
.custom-shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.custom-product-item > h2 {
	font-size: 17px;
	font-weight: 600;
}
.custom-shop-sidebar {
    width: 25%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0px;
}
.custom-shop-products {
    width: 75%;
}
.custom-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 10px;
}

.product-title {
    font-size: 16px;
    margin: 10px 0 5px;
	font-weight: 600;
}

.product-excerpt {
    font-size: 14px;
    color: #777;
    flex-grow: 1;
    margin-bottom: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: bold;
    color: #e91e63;
}

.woocommerce .button {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
}
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.custom-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 6px;
}
.custom-pagination button {
    padding: 5px 14px;
    border: none;
    background: #f3f3f3;
    border-radius: 0px;
    cursor: pointer;
}
.custom-pagination button.active {
    background: #ff4e3d;
    color: #fff;
}
.custom-shop-categories button {
    background: #f1f1f1;
    border: none;
    padding: 12px 25px;
    border-radius: 0px;
    cursor: pointer;
}
.custom-shop-categories button:hover {
    background: #ff4e3d;
	color: #fff;
}
.two-column-layout .title {
	color: #333;
}

/*----Search form style------------*/
[type="button"], [type="submit"], button {
	border-radius: 0px!important;
}
.two-column-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* for responsiveness */
    gap: 20px;
    margin-bottom: 20px;
}

.two-column-layout .title {
    flex: 1 1 50%;
}

.two-column-layout .custom-search-form {
    flex: 1 1 48%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input[type="search"] {
    width: 100%;
    padding: 10px 47px 10px 47px;
    border: 1px solid #000;
    border-radius: 0px;
    font-size: 15px;
    outline: none;
}
.search-icon {
	position: absolute;
	left: 1px;
	top: 50%;
	transform: translateY(-59%);
	border: none;
	background: transparent;
	cursor: pointer;
	color: #888;
	font-size: 18px;
	padding: 0;
	height: 44px;
}
/*----Mobile CSS filter button and items columns------------*/
/* Toggle button */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: white;
}

/* Overlay panel */
.mobile-filter-overlay {
    position: fixed;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: top 0.4s ease;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-filter-overlay.active {
    top: 0;
}
.mobile-filter-overlay:not(.active) {
    box-shadow: none;
    padding: 0;
}
.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.filter-close {
    background: none;
    border: none;
    font-size: 20px;
}

.apply-filter {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #9333ea; /* purple like in your screenshot */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Responsive grid */
.custom-product-grid {
    display: grid;
    gap: 20px;
}
/* Hide the overlay properly */
.filter-overlay {
  display: none !important;
  z-index: -1 !important;
  position: fixed !important;
  top: 0;
  left: 0;
}

/* Optional: fix body scroll lock after close */
body.no-scroll {
  overflow: hidden;
}
.image-box {
  width: 100%;
  aspect-ratio: 59 / 30; /* maintain 590x300 ratio */
  background-size: cover;        /* or 'contain' if you don't want to crop */
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  border-radius: 0px; /* optional */
  background-color: #f8f8f8; /* fallback color */
}

@media (max-width: 480px) {
	.custom-shop-wrapper {
	margin-bottom: 30px;
}
	.custom-product-item img {
	width: 100%;
}
    .custom-product-grid {
        grid-template-columns: 1fr;
    }
.custom-shop-sidebar.d-md-none {
	display: none;
}
	.custom-shop-products {
	width: 100%;
}
.custom-shop-categories button {
	padding: 12px 12px;
	font-size: 14px;
	margin: -3px;
}
	.filter-toggle {
	font-size: 14px;
}
	.two-column-layout .title {
	text-align: center;
}
.woocommerce-products-header__title.page-title {
	font-size: 26px;
	margin-bottom: 2px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 10px;
}
	.custom-shop-header.two-column-layout {
	margin-left: 10px;
	margin-right: 10px;
}
.btns-filter-row {
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: -35px;
}
	.custom-shop-header.two-column-layout {
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: 6px;
}
}

@media (min-width: 481px) and (max-width: 767px) {
	.custom-product-item img {
	width: 100%;
}
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.custom-shop-sidebar.d-md-none {
	display: none;
}
	.custom-shop-products {
	width: 100%;
}
}

@media (min-width: 991px) {
	.custom-product-item img {
	width: 100%;
}
.custom-shop-sidebar.d-md-none {
	display: block;
}
    .custom-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

	.custom-shop-products {
	width: 100%;
}
.btns-filter-row {
        flex-wrap: wrap; /* Allow wrapping if there's not enough space */
        gap: 10px; /* Smaller gap between columns */
    }

    .custom-shop-categories {
        flex-wrap: wrap; /* Allow wrapping for buttons */
    }
}
