.jbss-results-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.jbss-active-filters {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.8rem 1rem;
}

.jbss-active-filters-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#jbss-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#jbss-active-tags .jbss-tag {
    background: #e2e8f0;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.jbss-btn-clear {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.jbss-results-body {
    display: flex;
    gap: 4rem;
	justify-content: space-between;
}

.jbss-results-main {
    max-width: 80%;
    width: 100%;
}

/* Sidebar */
.jbss-results-sidebar {
    display: flex;    
	flex-direction: column;
    gap: 1rem;
    max-width: 20%;
	width: 100%;
}

/* Toolbar */
.jbss-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


/* Paginación */
.jbss-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.jbss-pager {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}
.jbss-page {
    border: none;
    min-width: 27.5px;
    height: 27.5px;
    border-radius: 50px;
    background-color: transparent;
    font-weight: 600;
}
.jbss-page.active {
    background-color: var(--bs-primary);
    color: #fff;
}

.jbss-card-thumb {
  position: relative;
  overflow: hidden;
}
.jbss-card-thumb img {
  width: 100%;
  transition: opacity 0.3s ease;
}
.jbss-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.jbss-card-thumb:hover .jbss-img-hover {
  opacity: 1;
}
.jbss-card-thumb:hover .jbss-img-main {
  opacity: 0;
}
.jbss-card a:hover{
	text-decoration: none;
	color: color(--bs-primary);
}
.jbss-card a{
	text-decoration:none;
}
.card_content-product {
    grid-template-rows: max-content minmax(0, 1fr) max-content auto;
    display: grid;
    width: 100%;
    flex-grow: 1;
	padding-top: 15px;
}
.card_content-info{
	grid-row-start: 2;
	padding: 0 0 10px;
}
.jbss-card a h3 {
    font-size: .9375rem;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    color: #001442;
	margin-bottom: 3px;
}
.jbss-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
	gap:20px
}

.jbss-results-grid .jbss-price{
	color: var(--bs-primary);
	font-weight: 700;
	font-size: 24px;
	text-align: center;
}
.jbss-card:hover {
    box-shadow: 0 10px 40px 0 rgb(0 20 66 / 10%);
}
.jbss-card {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 16px;
    transition: 0.3s;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}
.jbss-card:hover .jbss-img-hover {
  opacity: 1;
}
.jbss-card:hover .jbss-img-main {
  opacity: 0;
}
.jbss-grid .jbss-card .jbss-btn-add-cart {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    border: 1.5px solid rgba(60 64 67);
    text-transform: uppercase;
    font-size: 14px;
	grid-row-start: 4;
	transition: all .35s cubic-bezier(.645,.045,.355,1);
	text-transform: none;
}

.jbss-grid .jbss-card .jbss-btn-add-cart:hover {
    background: #1669c1;
}
.jbss-results-sorting{
	max-width: 247px;
    width: 100%;
}

/* Mensajes con ::after */
.jbss-btn-add-cart::after {
    content: '';
    position: absolute;
    right: 12px;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.3s;
    opacity: 0;
}

/* Estado loading */
.jbss-btn-add-cart.loading::after {
    content: 'Agregando...';
    opacity: 1;
}

/* Estado added */
.jbss-btn-add-cart.added::after {
    content: 'Agregado';
    opacity: 1;
}
.added_to_cart{
	display: none !important;
}

/* Spinner a la izquierda */
.jbss-btn-add-cart.loading svg {
    animation: spin 1s linear infinite;
}

/* ===== 🎚️ Price Range ===== */
.jbss-filter-price h4{
	margin-bottom: 20px;
}
.jbss-filter-price input{
	border: none !important;
}

.jbss-price-slider {
	position: relative;
	height: 20px;
}
.jbss-price-slider::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: #e5e5e5;
	border-radius: 3px;
	z-index: 0;
}
.jbss-price-slider input[type="range"] {
	position: absolute;
	width: 100%;
	pointer-events: none;
	-webkit-appearance: none;
	background: transparent;
	padding: 0;
	top: -22.2px;
    z-index: 2;
	color: #000;
}
.jbss-price-track {
	position: absolute;
	height: 6px;
	background: var(--bs-primary);
	border-radius: 3px;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
}
.jbss-price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #111827;
}


/* Animación spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.jbss-grid .jbss-card button.jbss-btn-add-cart:hover {
	outline:none;
	border-radius: 8px;
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    border-color: var(--bs-primary);
}
.jbss-grid .jbss-card .jbss-btn-add-cart svg{
	max-width: 20px;
}
.jbss-badge.jbss-badge-black-friday{
	background-color: #f1df47;
	padding: 2px 5px;
	color: #000;
	font-weight: 500;
	text-transform:uppercase;
	border: 1px dashed #000;
    font-size: 10px;
}
.jbss-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jbss-results-sidebar .jbss-filter .jbss-filter-list input {
	margin-right: 10px;
	border-width: 1px;
	border-radius: 0.25rem;
	border-color: #cfcfcf;
}
.jbss-filter {
    margin-bottom: 25px;
}
@media (min-width:1023px){
	.hide-desktop{
		display: none;
	}
}
@media (max-width:767px){
	html.filters-open:before {
		content: '';
		position: fixed;
		width: 100%;
		height: 100%;
		background-color: #0000006b;
		top: 0;
		left: 0;
		display: block;
		z-index: 9;
	}
	.jbss-results-layout {
		padding: 0;
	}
	.jbss-shop-wrapper {
		padding: 20px 0 !important;
	}
	.jbss-results-body {
		flex-wrap: wrap;
	}
	.jbss-results-main, .jbss-results-sidebar{
		max-width: 100%;
	}
	.jbss-grid {
		grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
		gap: 15px;
	}
	.jbss-results-sidebar {
		transform: translateY(calc(100% + 16px));
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 99;
        background-color: #fff;
        left: 0;
        width: calc(100%);
        max-height: calc(100% - 16px);
        box-shadow: 5px 1px 20px rgb(0 0 0 / 10%);
        border-radius: 10px 10px 0 0;
        min-height: 0;
        bottom: 0;
	}
	.jbss-results-sidebar.active-filters {
        transform: translateY(0);
    }

	.jbss-results-sidebar .jbss-filters-wrap {
		position: relative;
		padding: 20px;
		overflow: auto;
	}
	.jbss-btn-show-results {
		padding: 0.75rem;
		width: 100%;
		border: none;
		background-color: var(--bs-primary);
		font-weight: 600;
		color: #fff;
		border-radius: 6px;
	}
	.jbss-results-toolbar {
		flex-wrap: wrap;
	}
	.jbss-filter {
		padding: 0.875rem;
		border: 1px solid rgb(57 56 56 / 0.2);
		border-radius: 10px;
		cursor: pointer;
	}
	.jbss-filter-list{
		padding: 1rem 0;
		font-size: 0.90rem;
	}
	.jbss-results-sidebar .jbss-filter .jbss-filter-list input {
		margin-right: 5px;
	}
	.jbss-filter h4{
		font-size: calc(2rem * 1.0 * 0.55 * 0.85);
		margin: 0;
		position: relative;
	}
	.jbss-filter {
		margin-bottom: 10px;
	}
	.jbss-results-sorting {
		display: flex;
		gap: 20px;
		max-width: 100%;
		margin: 20px 0 0;           
	}
	.container-title-filters {
		padding: 1rem;
		border-bottom: 1px solid #f1f1f1;
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		align-items: center;
	}
	#close-filter {
		height: 38px;
		width: 38px;
		padding: 0.75rem;
		background-color: #e1e1e199;
		border-radius: 100px;
		line-height: 0;
	}

	.jbss-results-sorting > * {
		width: 100%;
        box-sizing: border-box;
	}
	.jbss-grid .jbss-card .jbss-btn-add-cart svg {
		max-width: 16px;
	}
	.jbss-grid .jbss-card .jbss-btn-add-cart {
		gap: 5px;
	}
	#jbss-sort, .jbss-btn-filters {
		border: none;
		filter: drop-shadow(0px 10px 28px rgba(0, 0, 0, 0.08));
		border-radius: 10px;
		outline: none;
	}
	#jbss-sort{
		background-color: #3333330f;
	}
	.jbss-btn-filters{
		font-weight: bold;
		display:flex;
		justify-content:center;
		align-items:center;
		gap: 15px;
		background-color: #fff;
	}
	.jbss-btn-filters svg{
		width: 20px;
	}
	#jbss-sort:focus {
		box-shadow: none !important
	}
	.btn-filter-container {
		box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.1);
		padding: 1rem;
	}
	.jbss-price-slider {
		margin-top: 30px;
	}
	input[type="number"]{
		border: 1px solid var(--bs-gray-light) !important;
	}
	.jbss-filter h4:after {
		content: '';
		background: url(/wp-content/uploads/2025/11/arrow-select-1.png) no-repeat center / contain;
		width: 10px;
		height: 10px;
		position: absolute;
		right: 0;
		top: 5px;
		transition: 0.3s;
	}
	.jbss-filter h4.active-item:after {
		transform: rotate(180deg);
	}
}