/*
Theme Name: Auto Repuestos Express
Description: Catálogo de repuestos para WooCommerce con pedido por WhatsApp. Portada, tienda con filtros por vehículo, tabla de productos y carrito; sin blog ni checkout.
Version: 2.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: autorepuestos-express
*/

/* ==========================================================================
   1. Sistema visual
   ========================================================================== */

:root {
	/* Paleta original de autorepuestos.express */
	--are-red: #ec1c24;
	--are-red-dark: #c8141b;
	--are-red-soft: #fdeced;
	--are-black: #1e1e1e;
	--are-black-2: #333;
	--are-black-3: #000;
	--are-bg: #111;
	--are-on-bg: #f2f2f2;
	--are-on-bg-muted: #aaa;
	--are-surface: #fff;
	--are-ink: #1e1e1e;
	--are-muted: #706e6f;
	--are-line: #ddd;
	--are-line-soft: #eee;
	--are-in: #5d9a1f;
	--are-out: #ec1c24;
	--are-whatsapp: #25d366;
	--are-whatsapp-dark: #1da851;

	/* Alias que usa el resto de la hoja */
	--are-navy: var(--are-black);
	--are-navy-2: var(--are-black-2);
	--are-navy-3: var(--are-black-3);
	--are-blue: var(--are-red);
	--are-blue-dark: var(--are-red-dark);
	--are-blue-soft: var(--are-red-soft);
	--are-accent: var(--are-red);
	--are-accent-dark: var(--are-red-dark);

	--are-radius: 10px;
	--are-radius-sm: 7px;
	--are-shadow: 0 1px 3px rgba(0, 0, 0, .16);
	--are-shadow-hover: 0 4px 14px rgba(0, 0, 0, .3);
	--are-header-h: 72px;
	--are-sidebar-w: 264px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--are-bg);
	color: var(--are-on-bg);
	font-family: "Manrope", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--are-blue);
	text-decoration: none;
}

a:hover {
	color: var(--are-blue-dark);
}

:focus-visible {
	outline: 2px solid var(--are-blue);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	line-height: 1.2;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.are-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

.are-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.are-skip {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: var(--are-radius-sm);
	background: #fff;
	color: var(--are-ink);
	font-weight: 700;
}

.are-skip:focus {
	top: 8px;
}

/* Botones */
.are-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: var(--are-radius);
	background: var(--are-red);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.are-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--are-red-dark);
	color: #fff;
}

.are-btn--block {
	display: flex;
	width: 100%;
}

.are-btn--accent {
	background: var(--are-accent);
}

.are-btn--accent:hover {
	background: var(--are-accent-dark);
}

.are-btn--whatsapp,
.are-whatsapp-btn {
	background: var(--are-whatsapp);
}

.are-btn--whatsapp:hover,
.are-whatsapp-btn:hover {
	background: var(--are-whatsapp-dark);
	color: #fff;
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	padding: 0 22px;
	background: #999;
	color: #fff;
	opacity: 1;
}

/* Añadir por AJAX: estados de WooCommerce */
.woocommerce a.button.loading,
.are-row__add.loading {
	opacity: .6;
	pointer-events: none;
}

.woocommerce a.button.loading::after,
.woocommerce a.button.added::after {
	display: none;
}

/* ==========================================================================
   2. Armazón: encabezado, menú lateral y pie
   ========================================================================== */

.are-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--are-navy);
	color: #fff;
}

.are-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--are-header-h);
	padding: 0 24px;
}

.are-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.are-logo img {
	width: 190px;
}

.are-topnav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.are-topnav a {
	padding: 10px 16px;
	border-radius: var(--are-radius-sm);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.are-topnav a:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.are-cart {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 12px;
	min-height: 44px;
	margin-left: 8px;
	padding: 0 16px 0 12px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: var(--are-radius);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.are-cart:hover {
	border-color: var(--are-red);
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.are-cart__icon {
	position: relative;
	display: inline-flex;
}

.are-cart__count {
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--are-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

.are-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	border-radius: var(--are-radius-sm);
	background: none;
	color: #fff;
	cursor: pointer;
}

.are-shell {
	display: grid;
	grid-template-columns: var(--are-sidebar-w) minmax(0, 1fr);
	min-height: calc(100vh - var(--are-header-h) - 44px);
}

.are-sidebar {
	background: var(--are-black);
	border-right: 1px solid #2c2c2c;
}

.are-menu {
	position: sticky;
	top: var(--are-header-h);
	margin: 0;
	padding: 16px 10px;
	list-style: none;
}

.are-menu a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 12px 12px 16px;
	border-left: 3px solid transparent;
	border-radius: var(--are-radius-sm);
	color: var(--are-on-bg);
	font-size: 14px;
	font-weight: 700;
}

.are-menu a > span {
	flex: 1 1 auto;
}

.are-menu a > .are-icon:last-child {
	color: #777;
}

.are-menu a:hover {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.are-menu a.is-active {
	border-left-color: var(--are-red);
	background: rgba(236, 28, 36, .16);
	color: #fff;
}

.are-backdrop {
	position: fixed;
	inset: 0;
	z-index: 44;
	background: rgba(0, 0, 0, .6);
}

.are-main {
	min-width: 0;
}

.are-panel .are-main {
	padding: 24px 32px 56px;
}

/* La portada va a ancho completo: el menú lateral solo existe como cajón en móvil. */
.are-home .are-shell {
	display: block;
}

.are-home .are-sidebar {
	display: none;
}

.are-footer {
	border-top: 1px solid #2c2c2c;
	background: var(--are-black);
	color: #ccc;
	font-size: 14px;
}

.are-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 56px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 24px 32px;
}

.are-footer__brand {
	flex: 1 1 220px;
}

.are-footer__logo {
	width: 220px;
}

.are-footer__col {
	flex: 0 1 220px;
}

.are-footer__col h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.are-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.are-footer__col li + li {
	margin-top: 8px;
}

.are-footer__col a,
.are-footer__col li > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ccc;
}

.are-footer__col a:hover {
	color: #fff;
}

.are-footer__legal {
	padding: 12px 24px;
	background: var(--are-navy-3);
	color: #999;
	font-size: 12px;
	text-align: center;
}

/* ==========================================================================
   3. Portada
   ========================================================================== */

.are-hero {
	position: relative;
	border-bottom: 6px solid var(--are-red);
	background:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 26px),
		radial-gradient(ellipse at 50% 0, #3a3a3a 0, var(--are-black) 70%);
	color: #fff;
}

.are-hero--image {
	min-height: clamp(380px, 38vw, 620px);
	display: flex;
	align-items: center;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .65) 45%, rgba(0, 0, 0, .2) 100%),
		var(--are-hero-image) 70% center / cover no-repeat;
}

.are-hero__content {
	max-width: 540px;
	padding: 84px 0 92px;
}

.are-hero__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 800;
	letter-spacing: -.01em;
	text-wrap: balance;
}

.are-hero__text {
	margin: 0 0 26px;
	color: #ccc;
	font-size: 18px;
}

.are-hero__search {
	display: flex;
	max-width: 520px;
	margin-bottom: 20px;
}

.are-hero__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--are-radius) 0 0 var(--are-radius);
	background: #fff;
	color: var(--are-ink);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.are-hero__search button {
	flex: 0 0 56px;
	border: 0;
	border-radius: 0 var(--are-radius) var(--are-radius) 0;
	background: var(--are-blue);
	color: #fff;
	cursor: pointer;
}

.are-hero__search button:hover {
	background: var(--are-blue-dark);
}

.are-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.are-hero__actions .are-btn {
	min-height: 48px;
	padding: 0 26px;
	font-size: 15px;
}

.are-checks {
	background: var(--are-black);
	border-bottom: 1px solid #2c2c2c;
}

.are-checks ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	margin: 0 auto;
	padding-top: 26px;
	padding-bottom: 26px;
	list-style: none;
}

.are-checks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
}

.are-checks .are-icon {
	color: var(--are-blue);
}

.are-section {
	padding: 56px 0 8px;
}

.are-section:last-of-type {
	padding-bottom: 64px;
}

.are-section__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -.01em;
	text-align: center;
}

.are-section__lead {
	margin: 0;
	color: var(--are-on-bg-muted);
	text-align: center;
}

.are-section__title + ul,
.are-section__title + .woocommerce,
.are-section__lead + ul {
	margin-top: 32px;
}

.are-section__cta {
	margin: 28px 0 0;
	text-align: center;
}

.are-values {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.are-values li {
	padding: 24px 22px 26px;
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
	color: var(--are-ink);
}

.are-values__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: var(--are-radius-sm);
	background: var(--are-blue-soft);
	color: var(--are-blue);
}

.are-values h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
}

.are-values p {
	margin: 0;
	color: var(--are-muted);
	font-size: 14px;
}

.are-brands {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.are-brands li {
	flex: 0 0 112px;
}

.are-brands a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 8px 14px;
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
	color: var(--are-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .03em;
	text-align: center;
	text-transform: uppercase;
	transition: box-shadow .15s ease, transform .15s ease;
}

.are-brands a:hover {
	box-shadow: var(--are-shadow-hover);
	color: var(--are-blue);
	transform: translateY(-2px);
}

.are-brands__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 52px;
	height: 52px;
	font-size: 26px;
	font-weight: 800;
}

.are-brands__icon img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.are-lines {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.are-lines a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 2px 10px;
	padding: 16px 14px 16px 18px;
	border-left: 4px solid var(--are-blue);
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
	color: var(--are-ink);
	transition: box-shadow .15s ease;
}

.are-lines a:hover {
	box-shadow: var(--are-shadow-hover);
}

.are-lines__name {
	font-weight: 800;
}

.are-lines__count {
	grid-row: 2;
	color: var(--are-muted);
	font-size: 13px;
}

.are-lines .are-icon {
	grid-row: 1 / span 2;
	grid-column: 2;
	color: #999;
}

/* ==========================================================================
   4. Catálogo: título, filtros y resultados
   ========================================================================== */

.are-content {
	max-width: 1640px;
}

.are-page-title,
.woocommerce-products-header__title {
	margin: 0 0 18px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
	margin: 0 0 6px;
	color: var(--are-on-bg-muted);
	font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce-breadcrumb a {
	color: var(--are-blue);
}

.term-description {
	margin: -8px 0 18px;
	color: var(--are-on-bg-muted);
}

.are-box {
	color: var(--are-ink);
	padding: 24px;
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
}

.are-filters {
	color: var(--are-ink);
	margin-bottom: 18px;
	padding: 16px;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius);
	background: var(--are-surface);
}

.are-filters__search {
	position: relative;
	margin-bottom: 14px;
}

.are-filters__search input[type="search"],
.are-field select,
.are-field input[type="text"] {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius-sm);
	background-color: #fff;
	color: var(--are-ink);
	font: inherit;
	font-size: 14px;
}

.are-field select {
	padding: 0 6px 0 8px;
	text-overflow: ellipsis;
}

.are-filters__search input[type="search"] {
	height: 44px;
	padding-right: 48px;
	-webkit-appearance: none;
	appearance: none;
}

.are-filters__search input:focus,
.are-field select:focus,
.are-field input:focus {
	border-color: var(--are-blue);
	outline: 2px solid var(--are-blue-soft);
	outline-offset: 0;
}

.are-filters__search button {
	position: absolute;
	top: 0;
	right: 0;
	width: 46px;
	height: 44px;
	border: 0;
	border-radius: 0 var(--are-radius-sm) var(--are-radius-sm) 0;
	background: none;
	color: var(--are-muted);
	cursor: pointer;
}

.are-filters__search button:hover {
	color: var(--are-blue);
}

.are-filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px 14px;
	align-items: start;
}

.are-field label,
.are-field__label {
	display: block;
	margin-bottom: 5px;
	color: var(--are-muted);
	font-size: 12px;
	font-weight: 700;
}

.are-field--result {
	display: flex;
	flex-direction: column;
}

.are-filters__count {
	display: block;
	padding-top: 9px;
	font-size: 14px;
	font-weight: 600;
}

.are-filters__clear {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 700;
}

.are-results {
	transition: opacity .15s ease;
}

.are-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.are-results__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: 22px;
}

.are-results__range {
	margin: 0;
	color: var(--are-on-bg-muted);
	font-size: 13px;
}

/* Paginación */
.woocommerce nav.woocommerce-pagination {
	margin: 0;
	text-align: right;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	float: none;
	margin: 0;
	border: 0;
	overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: block;
	min-width: 36px;
	padding: 9px 8px;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius-sm);
	background: #fff;
	color: var(--are-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
	border-color: var(--are-blue);
	background: var(--are-blue-soft);
	color: var(--are-blue-dark);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	border-color: var(--are-blue);
	background: var(--are-blue);
	color: #fff;
}

/* Avisos */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-no-products-found .woocommerce-info {
	border-top-color: var(--are-blue);
	border-radius: var(--are-radius);
	background: var(--are-surface);
	color: var(--are-ink);
	box-shadow: var(--are-shadow);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--are-blue);
}

/* ==========================================================================
   5. Tarjeta de producto
   ========================================================================== */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	clear: both;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.are-card {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
	color: var(--are-ink);
	overflow: hidden;
	text-align: left;
	transition: box-shadow .15s ease;
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--are-shadow-hover);
}

.are-card__media {
	position: relative;
	display: block;
	background: #fff;
	border-bottom: 1px solid var(--are-line-soft);
	line-height: 0;
}

.woocommerce ul.products li.product .are-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.are-card__soldout {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 5px 8px;
	background: var(--are-out);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.3;
	text-align: center;
}

.are-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 14px 16px;
}

.are-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 12px;
}

.are-card__sku {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--are-navy);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}

.are-card__sku strong {
	font-weight: 800;
}

.are-stock {
	margin-left: auto;
	font-size: 12px;
	font-weight: 800;
}

.are-stock--in {
	color: var(--are-in);
}

.are-stock--out {
	color: var(--are-out);
}

.are-card__title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-transform: uppercase;
}

.are-card__title a {
	color: var(--are-ink);
}

.are-card__title a:hover {
	color: var(--are-blue);
}

.are-specs {
	margin: 0 0 12px;
	font-size: 11.5px;
}

.are-specs > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 5px 0;
	border-bottom: 1px dotted #ccc;
}

.are-specs dt {
	flex: 0 0 auto;
	color: var(--are-muted);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.are-specs dd {
	margin: 0;
	font-weight: 800;
	text-align: right;
	text-transform: uppercase;
}

.are-table td.are-table__spec--anio {
	white-space: nowrap;
}

.are-card__foot {
	margin-top: auto;
}

.woocommerce ul.products li.product .are-card__price,
.are-card__price {
	display: block;
	margin: 0 0 12px;
	color: var(--are-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
	text-align: right;
}

.woocommerce ul.products li.product .are-card__price--ask,
.are-card__price--ask {
	color: var(--are-muted);
	font-size: 13px;
	font-weight: 700;
}

.are-single__ask {
	margin: 0 0 4px;
	color: var(--are-muted);
	font-size: 16px;
	font-weight: 800;
}

.are-card__price del {
	color: var(--are-muted);
	font-size: 13px;
	font-weight: 500;
}

.are-card__price ins {
	text-decoration: none;
}

.are-buy--card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.are-buy--card .are-btn {
	grid-column: 1 / -1;
}

.are-buy__label {
	color: var(--are-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.are-qty {
	display: inline-flex;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius-sm);
	background: #fff;
	overflow: hidden;
}

.are-qty__btn {
	width: 32px;
	height: 34px;
	padding: 0;
	border: 0;
	background: #f3f3f3;
	color: var(--are-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.are-qty__btn:hover {
	background: var(--are-blue-soft);
	color: var(--are-blue-dark);
}

.are-qty__input {
	width: 46px;
	height: 34px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-left: 1px solid var(--are-line);
	border-right: 1px solid var(--are-line);
	border-radius: 0;
	background: #fff;
	color: var(--are-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.are-qty__input::-webkit-outer-spin-button,
.are-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .are-btn {
	display: flex;
	margin: 0;
}

.woocommerce ul.products li.product a.added_to_cart,
.are-card a.added_to_cart {
	grid-column: 1 / -1;
	display: block;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.woocommerce span.onsale {
	display: none;
}

/* ==========================================================================
   6. Tabla de productos
   ========================================================================== */

.are-table-wrap {
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius);
	background: var(--are-surface);
	overflow-x: auto;
}

.are-table {
	color: var(--are-ink);
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.are-table th {
	padding: 14px 10px;
	border-bottom: 2px solid var(--are-line);
	background: #f7f7f7;
	color: var(--are-ink);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-align: left;
	text-transform: uppercase;
}

.are-table td {
	padding: 10px;
	border-bottom: 1px solid var(--are-line-soft);
	vertical-align: middle;
}

.are-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.are-table tbody tr:last-child td {
	border-bottom: 0;
}

.are-table tbody tr.is-out {
	background: #efefef;
	color: var(--are-muted);
}

.are-table__img {
	width: 60px;
}

.are-table td.are-table__img a {
	display: block;
	width: 44px;
	height: 44px;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius-sm);
	background: #fff;
	overflow: hidden;
}

.are-table td.are-table__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.are-table__sku {
	font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.are-table__name {
	width: 26%;
	min-width: 180px;
	font-size: 13.5px;
	font-weight: 800;
	text-transform: uppercase;
}

.are-table__name a {
	color: inherit;
}

.are-table__name a:hover {
	color: var(--are-blue);
}

.are-table td.are-table__spec {
	font-size: 12px;
	text-transform: uppercase;
}

.are-table td.are-table__spec--anio {
	white-space: nowrap;
}

.are-table__num {
	text-align: right !important;
	white-space: nowrap;
}

.are-table__price {
	font-size: 14px;
	font-weight: 700;
}

.are-table__buy {
	width: 1%;
	white-space: nowrap;
}

.are-table th.are-table__buy {
	text-align: left;
}

.are-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
}

.are-badge--in {
	background: var(--are-in);
	color: #fff;
}

.are-badge--out {
	background: var(--are-out);
	color: #fff;
}

.are-buy--row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* En la tabla la cantidad se escribe directo: sin botones de sumar y restar. */
.are-buy--row .are-qty__btn {
	display: none;
}

.are-buy--row .are-qty__input {
	width: 54px;
	height: 36px;
	border: 0;
}

.are-row__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: var(--are-radius-sm);
	background: var(--are-blue);
	color: #fff;
}

.are-row__add:hover {
	background: var(--are-blue-dark);
	color: #fff;
}

.are-row__add.added {
	background: var(--are-in);
}

.are-table a.added_to_cart {
	display: none;
}

.are-row__view {
	font-size: 13px;
	font-weight: 700;
}

/* ==========================================================================
   7. Ficha de producto
   ========================================================================== */

.woocommerce div.product {
	padding: 24px;
	border-radius: var(--are-radius);
	background: var(--are-surface);
	box-shadow: var(--are-shadow);
	color: var(--are-ink);
}

.woocommerce div.product::after {
	content: "";
	display: table;
	clear: both;
}

.woocommerce div.product .product_title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--are-ink);
	font-size: 28px;
	font-weight: 800;
}

.woocommerce div.product p.stock {
	color: var(--are-in);
	font-size: 14px;
	font-weight: 800;
}

.woocommerce div.product p.stock.out-of-stock {
	color: var(--are-out);
}

.are-single__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.woocommerce div.product .are-single__gallery div.images {
	float: none;
	width: 100%;
	margin: 0;
}

.are-single__gallery img {
	border-radius: var(--are-radius);
}

.are-single__info .are-card__top {
	justify-content: flex-start;
	gap: 14px;
}

.are-single__info .are-stock {
	margin-left: 0;
	font-size: 13px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--are-muted);
}

.are-single__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 18px 0 24px;
}

.woocommerce div.product .are-single__buy form.cart {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.woocommerce div.product .are-single__buy form.cart div.quantity {
	float: none;
	margin: 0;
}

.are-single__buy .are-btn {
	min-height: 44px;
}

/* Panel "Ficha del producto" */
.are-sheet {
	border: 1px solid var(--are-line-soft);
	border-radius: var(--are-radius);
	background: #f6f6f6;
	overflow: hidden;
}

.are-sheet__title {
	margin: 0;
	padding: 14px 22px;
	background: var(--are-red);
	color: #fff;
	font-size: 22px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.are-sheet__rows {
	margin: 0;
	padding: 4px 22px;
}

.are-sheet__row {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	column-gap: 18px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--are-line);
}

.are-sheet__row:last-child {
	border-bottom: 0;
}

.are-sheet__icon {
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--are-red);
	color: #fff;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.are-sheet__row:nth-child(even) .are-sheet__icon {
	background: var(--are-black);
}

.are-sheet dt {
	align-self: end;
	color: var(--are-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.are-sheet dd {
	align-self: start;
	margin: 0;
}

.are-sheet dd strong {
	display: block;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.are-sheet__row--long dd strong {
	font-size: 16px;
	line-height: 1.35;
}

.are-sheet dd span {
	display: block;
	margin-top: 2px;
	color: #444;
	font-size: 14px;
}

.are-brandband {
	margin-top: 18px;
	padding: 18px 22px 16px;
	border-bottom: 5px solid var(--are-red);
	border-radius: var(--are-radius);
	background: var(--are-black);
	color: #fff;
	text-align: center;
}

.are-brandband strong {
	display: block;
	font-size: 28px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

.are-brandband span {
	display: block;
	margin-top: 6px;
	color: #ccc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.are-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0 0;
	padding: 18px 20px;
	border-top: 4px solid var(--are-red);
	border-radius: var(--are-radius);
	background: var(--are-black);
	color: #fff;
	list-style: none;
}

.are-benefits li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.are-benefits__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: 2px solid #fff;
	border-radius: 50%;
}

.woocommerce div.product .woocommerce-tabs {
	clear: both;
	padding-top: 28px;
}

.woocommerce div.product form.cart {
	margin: 20px 0;
}

.woocommerce div.product form.cart .button {
	min-height: 44px;
	padding: 0 28px;
	font-size: 15px;
}

.woocommerce .quantity .qty {
	width: 72px;
	height: 44px;
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius-sm);
	font: inherit;
	font-weight: 700;
}

.woocommerce div.product .product_meta {
	padding-top: 16px;
	border-top: 1px solid var(--are-line-soft);
	color: var(--are-muted);
	font-size: 13px;
}

.woocommerce div.product .product_meta > span {
	display: block;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: var(--are-radius-sm) var(--are-radius-sm) 0 0;
	background: var(--are-bg);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-top: 3px solid var(--are-blue);
	background: #fff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-weight: 700;
}

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
	margin: 32px 0 16px;
	font-size: 20px;
	font-weight: 800;
}

/* ==========================================================================
   8. Carrito
   ========================================================================== */

.woocommerce table.shop_table {
	border: 1px solid var(--are-line);
	border-radius: var(--are-radius);
	border-collapse: separate;
}

.woocommerce table.shop_table th {
	background: #f7f7f7;
	color: var(--are-ink);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.woocommerce table.shop_table td {
	border-top: 1px solid var(--are-line-soft);
}

.woocommerce table.shop_table td.product-name a {
	color: var(--are-ink);
	font-weight: 700;
}

.woocommerce table.cart img,
.woocommerce-page table.cart img {
	width: 64px;
}

.woocommerce a.remove {
	color: var(--are-out) !important;
}

.woocommerce a.remove:hover {
	background: var(--are-out);
	color: #fff !important;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	width: 100%;
	max-width: 420px;
	float: right;
}

.woocommerce .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 800;
}

.woocommerce .cart_totals .order-total .amount {
	color: var(--are-ink);
	font-size: 22px;
	font-weight: 800;
}

.woocommerce .wc-proceed-to-checkout {
	padding: 16px 0 0;
}

.are-whatsapp-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	border-radius: var(--are-radius);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.are-whatsapp-note {
	margin: 10px 0 0;
	color: var(--are-muted);
	font-size: 13px;
	text-align: center;
}

.woocommerce .cart-empty {
	font-size: 16px;
}

/* ==========================================================================
   9. Adaptación a pantallas
   ========================================================================== */

@media (max-width: 1500px) {
	.are-panel ul.products,
	.are-panel.woocommerce ul.products,
	.are-panel.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 761px) and (max-width: 1400px) {
	/* Tabla en pantallas medianas: se omite la columna menos consultada. */
	.are-table .are-table__spec--unidad {
		display: none;
	}

	.are-table th,
	.are-table td {
		padding-left: 7px;
		padding-right: 7px;
	}
}

@media (max-width: 1180px) {
	.are-panel ul.products,
	.are-panel.woocommerce ul.products,
	.are-panel.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.are-values {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.are-single__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

@media (max-width: 900px) {
	:root {
		--are-header-h: 62px;
	}

	.are-header__inner {
		gap: 12px;
		padding: 0 16px;
	}

	.are-menu-toggle {
		display: inline-flex;
	}

	.are-logo img {
		width: 150px;
	}

	.are-topnav {
		display: none;
	}

	.are-cart {
		margin-left: auto;
		padding: 0 14px 0 10px;
	}

	.are-cart__label {
		display: none;
	}

	.are-shell {
		display: block;
	}

	.are-sidebar,
	.are-home .are-sidebar {
		position: fixed;
		top: var(--are-header-h);
		bottom: 0;
		left: 0;
		z-index: 45;
		display: block;
		width: min(86vw, 300px);
		border-right: 0;
		box-shadow: 8px 0 30px rgba(0, 0, 0, .5);
		overflow-y: auto;
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .2s ease, visibility .2s;
	}

	.are-sidebar.is-open {
		transform: none;
		visibility: visible;
	}

	.are-menu {
		position: static;
	}

	.are-menu a {
		padding-top: 14px;
		padding-bottom: 14px;
		font-size: 15px;
	}

	.are-backdrop {
		top: var(--are-header-h);
	}

	.are-panel .are-main {
		padding: 18px 16px 40px;
	}

	.are-container {
		padding: 0 16px;
	}

	/* Móvil: el texto va arriba y la foto se ve completa debajo de los botones. */
	.are-hero--image {
		display: block;
		min-height: 0;
		background:
			linear-gradient(180deg, #0d0d0d 0%, rgba(13, 13, 13, .92) 45%, rgba(13, 13, 13, 0) 78%),
			var(--are-hero-image-m, var(--are-hero-image)) center bottom / 100% auto no-repeat,
			#0d0d0d;
	}

	.are-hero--image .are-hero__content {
		padding: 40px 0 calc(42vw + 16px);
	}

	.are-hero__content {
		padding: 48px 0 56px;
	}

	.are-hero__text {
		font-size: 16px;
	}

	.are-checks ul {
		flex-direction: column;
		gap: 10px;
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.are-checks li {
		font-size: 15px;
	}

	.are-section {
		padding-top: 40px;
	}

	.are-footer__inner {
		gap: 24px 32px;
		padding: 32px 16px 24px;
	}

	.are-footer__brand {
		flex-basis: 100%;
	}

	.are-footer__logo {
		width: 180px;
	}
}

@media (max-width: 760px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.are-panel ul.products,
	.are-panel.woocommerce ul.products,
	.are-panel.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	/* WooCommerce fuerza anchos de 48% en móvil; la grilla ya define las columnas. */
	.woocommerce ul.products[class*="columns-"] li.product,
	.woocommerce-page ul.products[class*="columns-"] li.product {
		float: none;
		width: auto;
		margin: 0;
	}

	.are-filters {
		padding: 12px;
	}

	.are-filters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.are-field--result {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: baseline;
		gap: 10px;
	}

	.are-field--result .are-field__label {
		display: none;
	}

	.are-filters__count {
		padding-top: 0;
	}

	.are-filters__clear {
		margin-left: auto;
	}

	.are-card__body {
		padding: 12px 10px 12px;
	}

	.are-buy--card {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.are-buy--card .are-buy__label {
		display: none;
	}

	.are-buy--card .are-qty {
		display: flex;
	}

	.are-buy--card .are-qty__input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.are-buy--card .are-qty__btn {
		width: 40px;
		height: 38px;
	}

	.are-buy--card .are-qty__input {
		height: 38px;
	}

	.woocommerce a.button.are-btn,
	.are-card .are-btn {
		padding: 0 10px;
		font-size: 13px;
	}

	.are-results__foot {
		justify-content: center;
		text-align: center;
	}

	/* Tabla: cada fila pasa a ser una ficha compacta. */
	.are-table-wrap {
		border: 0;
		background: none;
		overflow: visible;
	}

	.are-table,
	.are-table tbody {
		display: block;
	}

	.are-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.are-table tbody tr,
	.are-table tbody tr:nth-child(even) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 10px;
		margin-bottom: 10px;
		padding: 12px;
		border: 1px solid var(--are-line);
		border-radius: var(--are-radius);
		background: var(--are-surface);
	}

	/* Saltos de línea entre SKU/stock, datos técnicos y precio. */
	.are-table tbody tr::before,
	.are-table tbody tr::after {
		content: "";
		flex: 0 0 100%;
		height: 0;
		margin-top: -6px;
	}

	.are-table tbody tr::before {
		order: 3;
	}

	.are-table tbody tr::after {
		order: 5;
	}

	.are-table tbody tr.is-out {
		background: #f3f3f3;
	}

	.are-table td {
		display: block;
		padding: 0;
		border: 0;
	}

	.are-table td.are-table__img {
		order: 1;
		flex: 0 0 44px;
		width: auto;
	}

	.are-table td.are-table__name {
		order: 1;
		flex: 1 1 calc(100% - 60px);
		min-width: 0;
		font-size: 13px;
	}

	.are-table td.are-table__sku {
		order: 2;
		flex: 1 1 auto;
		font-size: 12px;
		white-space: normal;
	}

	.are-table td.are-table__sku::before {
		content: "SKU ";
		color: var(--are-muted);
		font-family: "Manrope", sans-serif;
		font-weight: 600;
	}

	.are-table td.are-table__stock {
		order: 2;
	}

	.are-table td.are-table__spec {
		order: 4;
		font-size: 11.5px;
	}

	.are-table td.are-table__spec::before {
		content: attr(data-label) ": ";
		color: var(--are-muted);
		font-weight: 700;
	}

	.are-table td.are-table__price {
		order: 6;
		flex: 1 1 auto;
		color: var(--are-ink);
		font-size: 16px;
		font-weight: 800;
		text-align: left !important;
	}

	.are-table td.are-table__buy {
		order: 6;
		width: auto;
	}

	.are-box,
	.woocommerce div.product {
		padding: 16px;
	}

	.are-sheet__title {
		padding: 12px 16px;
		font-size: 19px;
	}

	.are-sheet__rows {
		padding: 2px 16px;
	}

	.are-sheet__row {
		grid-template-columns: 46px minmax(0, 1fr);
		column-gap: 14px;
	}

	.are-sheet__icon {
		width: 46px;
		height: 46px;
	}

	.are-sheet dd strong {
		font-size: 19px;
	}

	.are-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.are-benefits li {
		justify-content: flex-start;
	}

	.are-single__buy .are-btn--whatsapp {
		flex: 1 1 100%;
	}

	.woocommerce .cart-collaterals .cart_totals {
		max-width: none;
		float: none;
	}
}

@media (max-width: 420px) {
	.are-values {
		grid-template-columns: minmax(0, 1fr);
	}

	.are-brands li {
		flex-basis: calc(33.333% - 10px);
	}

	.are-hero__actions .are-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
