/**
 * Catálogo de accesorios (home): slider de modelos, filtros, buscador,
 * grilla paginada y estado vacío. Sin dependencias de Bootstrap/Foundation:
 * todo el layout usa clases propias (volvo-shop-catalog__*).
 *
 * Consumido por template-parts/volvo-shop-catalog*.php
 */

.volvo-shop-catalog {
	background-color: #fff;
	padding: 60px 0;
}

.volvo-shop-catalog__container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

.volvo-shop-catalog__heading {
	text-align: center;
	margin-bottom: 32px;
}

.volvo-shop-catalog__title {
	color: #000;
	font-weight: 600;
	margin-top: 0;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 36px;
	line-height: 44px;
	letter-spacing: -1px;
}

.volvo-shop-catalog__subtitle {
	color: #5E5E5E;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	line-height: 28px;
	margin: 16px 0 0;
	font-weight: 400;
	line-height: 28px; /* 155.556% */
	text-align: center;
}

/* Search box */

.volvo-shop-catalog__search {
	position: relative;
	max-width: 720px;
	margin: 0 auto 24px;
}

.volvo-shop-catalog__search .fa {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	color: #9a9a9a;
}

input[type="search"].volvo-shop-catalog__search-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #E0E0E0;
	border-radius: 6px;
	height: 52px;
	padding: 14px 20px 14px 52px;
	color: #707070;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.volvo-shop-catalog__search-input:focus {
	outline: none;
	border-color: #1C6ABA;
}

.volvo-shop-catalog__slider-label {
	text-align: center;
	color: #707070;
	font-family: VolvoCentum;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 16px;
	font-weight: 500;
	line-height: 16px; /* 133.333% */
}

/* Model slider */

.volvo-shop-catalog__slider-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
}

.volvo-shop-catalog__slider {
	display: flex;
	align-items: flex-start;
	gap: 50px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	flex: 1;
	min-width: 0;
	scrollbar-width: none;
}

.volvo-shop-catalog__slider::-webkit-scrollbar {
	display: none;
}

.volvo-shop-catalog__slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: #141414;
	padding-bottom: 20px;
	/* width: 110px; */
}

.volvo-shop-catalog__slide:hover {
	text-decoration: none;
	color: #fff;
}

.volvo-shop-catalog__slide-icon,
.volvo-shop-catalog__slide-thumb {
	width: 150px;
	height: 92px;
	background-color: #F5F5F5;
	border: 1px solid #E0E0E0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid transparent;
	overflow: hidden;
}

.volvo-shop-catalog__slide-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-icon,
.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-thumb {
	border-color: #0B2DED;
}

.volvo-shop-catalog__slide-label {
	color: #5E5E5E;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	line-height: 16px; /* 114.286% */
	position: relative;
}
.volvo-shop-catalog__slide-label::before {
	content: "";
	position: absolute;
	border-radius: 2px;
	background:#0B2DED;
	display: flex;
	width: 28px;
	height: 3px;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-label,
.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-label {
	color: #0B2DED;
}
.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-label:before,
.volvo-shop-catalog__slide--active .volvo-shop-catalog__slide-label:before {
	opacity: 1;
}

.volvo-shop-catalog__slide-nav {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #E0E0E0;
	background: #fff;
	color: #141414;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	align-self: center;
}

.volvo-shop-catalog__slide-nav:hover {
	background: #1C6ABA;
	border-color: #1C6ABA;
	color: #fff;
}

/* Category pills + sort */

.volvo-shop-catalog__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.volvo-shop-catalog__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.volvo-shop-catalog__pill {
	border: 1px solid #dcd7ca;
	background: #fff;
	border-radius: 999px;
	padding: 8px 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #000;
	font-family: VolvoCentum;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	text-transform: none;
}

.volvo-shop-catalog__pill:hover {
	background: #0B2DED;
	border-color: #0B2DED;
	color: #fff;
}

.volvo-shop-catalog__pill--active {
	background: #0B2DED;
	border-color: #0B2DED;
	color: #fff;
}

.volvo-shop-catalog__sort {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	color: #000;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 400;
	line-height: 20px; /* 142.857% */
}
.volvo-shop-catalog__sort label{
	color: var(--text-primary, #000);
	font-family: VolvoCentum;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px; /* 142.857% */
}

.volvo-shop-catalog__sort-trigger {
	border: 1px solid #000;
	display: flex;
	border-radius: 6px;
	width: 260px;
	height: 48px;
	padding: 12px 16px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	cursor: pointer;
	margin: 0;
	background: #fff;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #000;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px; /* 150% */
}
.volvo-shop-catalog__sort-trigger:hover {
	color: #141414;
	background: #fff;

}

.volvo-shop-catalog__sort-trigger svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.volvo-shop-catalog__sort-trigger[aria-expanded="true"] {
	border: 2px solid #0B2DED;
	background: #FFF;
	color: #141414;
}

.volvo-shop-catalog__sort-trigger[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.volvo-shop-catalog__sort-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.volvo-shop-catalog__sort-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 20;
	width: 260px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.volvo-shop-catalog__sort-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
	color: #141414;
	cursor: pointer;
}

.volvo-shop-catalog__sort-option:hover {
	background: #F5F5F5;
}

.volvo-shop-catalog__sort-option--active {
	background: #E7EBFE;
	color: #0B2DED;
}

.volvo-shop-catalog--loading .volvo-shop-catalog__sort-trigger {
	background: #F5F5F5;
	border-color: #E0E0E0;
	color: #9a9a9a;
	pointer-events: none;
}

.volvo-shop-catalog--loading .volvo-shop-catalog__sort-trigger svg path {
	stroke: #9a9a9a;
}

.volvo-shop-catalog__counter {
	margin: 0 0 24px;
	color: #5E5E5E;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px; /* 142.857% */
}

/* Grid + cards */

.volvo-shop-catalog--loading .volvo-shop-catalog__grid-wrap {
	opacity: 0.5;
}

.volvo-shop-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 20px;
}

.volvo-shop-catalog__card {
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: all 350ms ease-in-out;
	border: 1px solid transparent;
	border-radius: 12px;
	overflow: hidden;
}
/* Carousels (e.g. related products): stretch every slide to the tallest one so
   the footer and add-to-cart button line up across cards. */
.nasa-slider .owl-stage {
	display: flex;
}
.nasa-slider .owl-item {
	display: flex;
	float: none;
}
.nasa-slider .owl-item > .volvo-shop-catalog__card {
	width: 100%;
	height: auto;
	align-self: stretch;
}
.nasa-slider .owl-item > .volvo-shop-catalog__card .volvo-shop-catalog__card-body {
	flex: 1 1 auto;
}

.volvo-shop-catalog__card:hover .volvo-shop-catalog__card-link {
	border-bottom: 2px solid #0B2DED;
}
.volvo-shop-catalog__card:hover {
	border: 1px solid #E0E0E0;
}

.volvo-shop-catalog__card-media {
	position: relative;
	background: #f5f5f5;
	border-radius: 12px 12px 0 0;
	/* margin-bottom: 16px; */
}
.volvo-shop-catalog__card-media a {
	display: flex;
	width: 100%;
	height: 190px;
	align-items: center;
	justify-content: center;
	background: #F5F5F5;
}
.volvo-shop-catalog__card-media img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	max-height: 100%;
	width: 100%;
}
.volvo-shop-catalog__card-body {
	display: flex;
	padding: 20px;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex: 1 0 0;
	align-self: stretch;
}
.volvo-shop-catalog__card-title {
	color: #000;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 28px; /* 140% */
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	margin: 0;
	text-transform: lowercase;
}

.volvo-shop-catalog__card-title a {
	display: inline-block;
	color: inherit;
}

.volvo-shop-catalog__card-title a::first-letter {
	text-transform: uppercase;
}

.volvo-shop-catalog__card-compat {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.volvo-shop-catalog__card-compat-label {
	display: block;
	flex: 0 0 auto;
	color: #707070;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: 16px; /* 133.333% */
	text-transform: none;
	white-space: nowrap;
}

.volvo-shop-catalog__card-compat-tags {
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 auto;
	min-width: 0;
	gap: 6px;
}

.volvo-shop-catalog__tag {
	background: #f0f0f0;
	color: #707070;
	font-size: 11px;
	border-radius: 4px;
	padding: 3px 8px;
}

.volvo-shop-catalog__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	width: 100%;
}

.volvo-shop-catalog__card-price {
	color: #000;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px; /* 133.333% */
}

.volvo-shop-catalog__card-link {
	display: flex;
	padding: 6px 4px;
	justify-content: center;
	align-items: center;
	gap: 6px;
	color: #000;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	border-bottom: 2px solid transparent;
	transition: all 350ms ease-in-out;
}

.volvo-shop-catalog__card-link:hover {
	text-decoration: none;
	color: #141414;
}

/* Add to cart — same button/font language as the rest of the card, wired to
   WooCommerce's own AJAX add-to-cart (see volvo-shop-catalog-card.php). */
a.button.volvo-shop-catalog__add-to-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 0;
	padding: 12px 16px !important;
	border: none;
	border-radius: 6px;
	background-color: #141414 !important;
	color: #fff !important;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif  !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 24px;
	text-align: center;
	text-transform: none !important;
	cursor: pointer;
	box-sizing: border-box;
	transition: all 350ms ease-in-out;
	padding: 8px !important;
    max-width: 80%;
}

/* Related-products carousel: the legacy `.related-product .nasa-slider .button`
   rule paints a blue border; keep it black and blue on hover/added. */
.related-product .nasa-slider a.button.volvo-shop-catalog__add-to-cart {
	border: 1px solid #141414 !important;
	max-width: 80%;
	margin: 0;
	padding: 8px !important;
}
.related-product .nasa-slider a.button.volvo-shop-catalog__add-to-cart:hover,
.related-product .nasa-slider a.button.volvo-shop-catalog__add-to-cart.added {
	border-color: #0B2DED !important;
}

a.button.volvo-shop-catalog__add-to-cart:hover {
	background: #0B2DED !important;
	color: #fff !important;
	text-decoration: none;
}

.volvo-shop-catalog__add-to-cart.loading {
	opacity: 0.6;
	cursor: progress;
}

a.button.volvo-shop-catalog__add-to-cart.added {
	background-color: #0B2DED !important;
}

/* Force the label regardless of which script (ours or WooCommerce's own
   click handler) ends up toggling the "added" class on this button. */
a.button.volvo-shop-catalog__add-to-cart.added .volvo-shop-catalog__add-to-cart-label {
	font-size: 0;
}

a.button.volvo-shop-catalog__add-to-cart.added .volvo-shop-catalog__add-to-cart-label::before {
	content: "Añadido al carrito";
	font-size: 15px;
}

.volvo-shop-catalog__add-to-cart--disabled {
	background: #F5F5F5;
	color: #9a9a9a;
	cursor: not-allowed;
}

/* WooCommerce injects this "View cart" link right after an AJAX add. */
.volvo-shop-catalog__card-body a.added_to_cart {
	display: block;
	margin-top: 8px;
	text-align: center;
	color: #1C6ABA;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	font-weight: 600;
}

/* Empty state */

.volvo-shop-catalog__empty {
	text-align: center;
	padding: 60px 20px;
}

.volvo-shop-catalog__empty-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #F5F5F5;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}

.volvo-shop-catalog__empty-title {
	margin: 0 0 20px;
	color: var(--text-primary, #000);
	text-align: center;
	font-family: VolvoCentum;
	font-size: 22px;
	font-style: normal;
	font-weight: 600;
	line-height: 28px; /* 127.273% */
}

.volvo-shop-catalog__empty-text {
	color: #707070;
	font-size: 14px;
	max-width: 480px;
	margin: 0 auto 24px;
}

.volvo-shop-catalog__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.volvo-shop-catalog__empty-reset,
.volvo-shop-catalog__empty-clear {
	border-radius: 4px;
	color: var(--text-secondary, #5E5E5E);
	text-align: center;
	font-family: VolvoCentum, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px; /* 150% */
}

.volvo-shop-catalog__empty-reset {
	border: 1px solid #dcd7ca;
	background: #fff;
	color: #141414;
	border-radius: var(--radius-pill, 999px);
	border: 1.5px solid var(--border-strong, #000);
	color: var(--text-primary, #000);
	font-family: VolvoCentum;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px; /* 150% */
}

.volvo-shop-catalog__empty-clear {
	background: #fff;
	border: none;
	color: var(--text-primary, #000);
	font-family: VolvoCentum;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	border-radius: var(--radius-pill, 999px);
	line-height: 24px; /* 150% */
}

.volvo-shop-catalog__empty-reset:hover,
.volvo-shop-catalog__empty-clear:hover {
	background: #141414;
	border-color: #141414;
	color: #fff;
}

/* Pagination */

.volvo-shop-catalog__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.volvo-shop-catalog__page-nav,
.volvo-shop-catalog__page-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid transparent;
	background: #fff;
	color: #141414;
	padding: 0;
	font-size: 14px;
}

.volvo-shop-catalog__page-nav:hover, 
.volvo-shop-catalog__page-number:hover {
	background: #000;
	color: #fff;
}
.volvo-shop-catalog__page-nav:hover svg path, 
.volvo-shop-catalog__page-number:hover svg path {
	stroke: #fff;
}

.volvo-shop-catalog__page-nav[disabled] {
	opacity: 0.4;
	background: transparent;
 	border-color: transparent;
	border-radius: 50%;
}

.volvo-shop-catalog__page-nav[disabled]:hover {
	opacity: 0.4;
	background: transparent;
 	border-color: transparent;
	border-radius: 50%;
}

.volvo-shop-catalog__page-nav[disabled]:hover  svg path {
	stroke: #000;
}

.volvo-shop-catalog__page-number--active {
	background: #141414;
	border-color: #141414;
	color: #fff;
}

.volvo-shop-catalog__terms {
	text-align: center;
	color: #707070;
	font-size: 12px;
	margin-top: 40px;
}

@media only screen and (max-width: 992px) {
	.volvo-shop-catalog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width: 768px) {
	.volvo-shop-catalog {
		padding: 5rem 0 0 0;
	}
}

@media only screen and (max-width: 640px) {
	.volvo-shop-catalog__grid {
		grid-template-columns: 1fr;
	}

	.volvo-shop-catalog__filters {
		flex-direction: column;
		align-items: flex-start;
	}
}

a.btn--purchase {
	border-radius: 6px;
    padding: 13px 35px;
}
a.checkout-button:hover {
	background: #141414 !important;
	color: #fff !important;
}
a.checkout-button {
	border-color: #1C6ABA !important;
	background: #1C6ABA !important;
	color: #fff !important;
	border-radius: 6px;
    padding: 13px 35px;
}
a.btn--purchase:hover {
	background: #141414 !important;
	color: #fff !important;
}

.single-product .site-main {
	background: #fff;
}