/*
 * AppleTech — la única hoja de estilos del tema.
 * Look 2026: limpio, técnico, azul Apple, superficies claras y esquinas suaves.
 * Base de maquetación heredada del patrón atelier-pnv, reestilizada para tienda de recambios.
 */

/* ============ FUENTES (variables, alojadas en el tema) ============ */
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ============ VARIABLES ============ */
:root {
	--ink: #0E1116;
	--ink-soft: #5B6472;
	--brand: #0071E3;
	--brand-dark: #005BB5;
	--brand-soft: #E8F1FE;
	--ok: #1E9E5A;
	--warn: #E8590C;
	--bg: #FFFFFF;
	--tint: #F5F7FA;
	--line: #E6E9EF;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--shadow: 0 12px 34px rgba(14, 17, 22, 0.10);
	--shadow-soft: 0 4px 14px rgba(14, 17, 22, 0.06);
	--ui: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--display: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 15.5px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, h4, h5 { font-family: var(--ui); color: var(--ink); line-height: 1.28; margin: 0 0 .5em; }
.at-h1, h1 { font-family: var(--display); font-size: clamp(27px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.at-h2, h2 { font-family: var(--display); font-size: clamp(21px, 2.6vw, 29px); font-weight: 700; letter-spacing: -0.015em; }
.at-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.at-main { padding-bottom: 28px; }
.at-section { margin-top: 54px; }
button { font-family: var(--ui); cursor: pointer; }

/* ============ BARRA DE CONFIANZA (superior) ============ */
.at-announce {
	background: #232936; color: #DFE5EF;
	font-family: var(--ui); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
}
.at-announce .at-announce-in { max-width: none; }
.at-announce-in { display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 0; flex-wrap: nowrap; }
.at-tb-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; white-space: nowrap; position: relative; }
.at-tb-item + .at-tb-item::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	height: 20px; width: 1px; background: rgba(255, 255, 255, 0.13);
}
.at-tb-item strong { color: #fff; font-weight: 700; }
.at-tb-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.at-tb-item .ic-envio { color: #4FA3F7; }
.at-tb-item .ic-gar   { color: #C7D0DE; }
.at-tb-item .ic-pago  { color: #FFC93C; }
.at-tb-item .ic-verif { color: #34C759; }
@media (max-width: 980px) {
	.at-announce-in { justify-content: center; flex-wrap: wrap; overflow: hidden; }
	.at-tb-item { padding: 8px 13px; font-size: 12.5px; }
}
/* Telefon: doar 2 avisos scurte, pe o linie curată */
@media (max-width: 560px) {
	.at-tb-opt { display: none; }
	.at-tb-hide-sm { display: none; }
	.at-tb-item { padding: 8px 12px; font-size: 12px; }
}

/* ============ CABECERA ============ */
.at-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.at-header.is-stuck { box-shadow: var(--shadow-soft); }
.at-header-in { display: flex; align-items: center; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.at-logo { flex-shrink: 0; }
.at-logo img { max-height: 54px; width: auto; display: block; }
.at-logo-text { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; color: var(--ink); }

/* Navegación central */
.at-nav { flex: 1; min-width: 0; }
.at-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.at-menu > li { position: static; }
.at-menu > li > a {
	display: flex; align-items: center; gap: 5px;
	font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink);
	padding: 8px 12px; border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.at-menu > li > a:hover, .at-menu > li.current-menu-item > a { background: var(--brand-soft); color: var(--brand-dark); }
.at-caret { opacity: .5; margin-top: 1px; transition: transform .18s ease; }
.at-menu > li.is-abierto .at-caret { transform: rotate(180deg); }
.at-menu > li.is-abierto > a { background: var(--brand-soft); color: var(--brand-dark); }

/* Panel mega-menú a todo el ancho */
.at-menu .sub-menu {
	list-style: none; margin: 0; padding: 24px 30px 28px;
	position: absolute; left: 0; right: 0; top: 100%;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 26px;
	background: #fff; border-top: 1px solid var(--line);
	border-radius: 0 0 20px 20px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
	z-index: 950;
}
.at-menu > li.is-abierto > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .12s ease, transform .12s ease; }
.at-menu .sub-menu li a {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	width: 148px; text-align: center;
	font-family: var(--ui); font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink-soft);
	padding: 4px; border-radius: 14px; transition: color .14s ease;
}
.at-menu .sub-menu li a:hover { color: var(--brand-dark); }
.at-menu .sub-menu .at-menu-img, .at-menu .sub-menu .at-menu-icono { width: 108px; height: 108px; }
.at-menu .sub-menu .at-menu-icono svg { width: 40px; height: 40px; }
.at-menu .sub-menu .at-ver-todo a { color: var(--brand-dark); font-weight: 700; }
.at-menu .sub-menu li a:hover .at-menu-img, .at-menu .sub-menu li a:hover .at-menu-icono { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.at-menu-img {
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
	border: 2px solid var(--brand-soft); background: var(--tint);
}
.at-menu-icono {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
	background: var(--brand-soft); color: var(--brand-dark);
	border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.at-menu-icono svg { width: 24px; height: 24px; }
.at-cat-svg { display: inline-flex; }
.at-menu .sub-menu .sub-menu { display: none; }

/* Herramientas */
.at-header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.at-search { width: 250px; }
.at-tool { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); position: relative; transition: background .15s ease, color .15s ease; }
.at-tool:hover { background: var(--brand-soft); color: var(--brand-dark); }
.at-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--brand); color: #fff; border-radius: 999px;
	font-family: var(--ui); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Buscador en píldora */
.at-search form, .at-search-mobile form { position: relative; margin: 0; }
.at-search input[type="search"], .at-search input[type="text"],
.at-search-mobile input[type="search"] {
	width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint);
	padding: 10px 42px 10px 16px; font-family: var(--body); font-size: 14px; color: var(--ink);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.at-search input:focus, .at-search-mobile input:focus {
	outline: none; background: #fff; border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.at-search button[type="submit"], .at-search-mobile button[type="submit"] {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; padding: 0; border: none; border-radius: 9px;
	background: transparent !important; color: var(--ink-soft) !important;
	box-shadow: none !important; font-size: 0; letter-spacing: 0;
	transition: color .15s ease, background .15s ease;
}
.at-search button[type="submit"]:hover, .at-search-mobile button[type="submit"]:hover {
	background: var(--brand-soft) !important; color: var(--brand-dark) !important;
	box-shadow: none !important; transform: translateY(-50%);
}
.at-search button[type="submit"]::before, .at-search-mobile button[type="submit"]::before {
	content: ""; display: block; width: 16px; height: 16px; margin: 0 auto; background: currentColor;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.5-4.5"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.5-4.5"/></svg>') center / contain no-repeat;
}
.at-search-mobile { display: none; padding-bottom: 12px; }

/* Hamburguesa */
.at-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: none; background: transparent; border-radius: 12px; }
.at-burger span { display: block; width: 22px; height: 2.5px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

/* Cajón móvil */
.at-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 380px); z-index: 1100;
	background: #fff; overflow: hidden; padding: 18px 20px 16px;
	display: flex; flex-direction: column;
	transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow);
}
.at-drawer.is-open { transform: translateX(0); }
.at-drawer-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--ui); font-weight: 700; font-size: 17px; margin-bottom: 10px; flex-shrink: 0; }
.at-drawer-close { border: none; background: var(--tint); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); }
.at-drawer-menu { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.at-drawer-menu > li { border-bottom: 1px solid var(--line); }
.at-drawer-menu > li:last-child { border-bottom: none; }
.at-drawer-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-family: var(--ui); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.at-drawer-menu .at-caret { display: none; }
.at-drawer-menu .at-menu-img, .at-drawer-menu .at-menu-icono { width: 46px; height: 46px; }
.at-drawer-menu .at-menu-icono svg { width: 22px; height: 22px; }
.at-drawer-menu li.menu-item-has-children > a { position: relative; padding-right: 34px; }
.at-drawer-menu li.menu-item-has-children > a::after {
	content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px;
	border-right: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand);
	transform: translateY(-50%) rotate(-45deg);
}
.at-drawer-menu .sub-menu {
	list-style: none; margin: 0; padding: 16px 20px 30px;
	position: absolute; inset: 0; z-index: 5; background: #fff; overflow-y: auto;
	transform: translateX(103%); transition: transform .25s ease;
}
.at-drawer-menu li.is-open > .sub-menu { transform: translateX(0); }
.at-drawer-menu .sub-menu li { border-bottom: 1px solid var(--line); }
.at-drawer-menu .sub-menu li:last-child { border-bottom: none; }
.at-drawer-menu .sub-menu a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 2px; }
.at-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; }
.at-sub-head strong { flex: 1; text-align: center; font-family: var(--ui); font-size: 17px; color: var(--brand-dark); }
.at-sub-back, .at-sub-close { border: none; background: var(--tint); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink); flex-shrink: 0; }
.at-drawer-menu .sub-menu .at-ver-todo a { color: var(--brand-dark); font-weight: 700; }
.at-drawer-foot { margin-top: 14px; display: flex; gap: 14px; flex-shrink: 0; }
.at-drawer-foot a { font-family: var(--ui); font-weight: 700; }
.at-overlay { position: fixed; inset: 0; background: rgba(14, 17, 22, .45); z-index: 1000; }

/* ============ BOTONES ============ */
.at-btn, .button, button[type="submit"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit, .single_add_to_cart_button, .checkout-button,
.wc-block-components-button {
	display: inline-block;
	background: var(--brand); color: #fff !important;
	border: none; border-radius: 12px;
	font-family: var(--ui); font-weight: 700; font-size: 14.5px; letter-spacing: 0.005em;
	padding: 12px 26px; text-align: center;
	box-shadow: 0 6px 16px rgba(0, 113, 227, 0.26);
	transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
	cursor: pointer;
}
.at-btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover, .checkout-button:hover {
	background: var(--brand-dark); color: #fff !important;
	box-shadow: 0 8px 22px rgba(0, 91, 181, 0.30); transform: translateY(-1px);
}
.at-btn:active { transform: translateY(0); }
.at-btn-sm { padding: 10px 18px; font-size: 13.5px; }
.at-btn-ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.at-btn-ghost:hover { background: var(--tint); color: var(--brand-dark) !important; border-color: var(--brand); box-shadow: none; }

/* ============ MIGAS DE PAN ============ */
.at-breadcrumb { font-size: 12.5px; color: #6E7484; padding: 16px 0 4px; }
.at-breadcrumb a { color: var(--ink-soft); }
.at-breadcrumb a:hover { color: var(--brand); }

/* ============ PORTADA · HÉROE ============ */
.at-hero {
	display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px;
	background: radial-gradient(1200px 400px at 15% 0%, #EAF2FE 0%, #F3F7FC 45%, #FFFFFF 100%);
	border: 1px solid var(--line); border-radius: var(--r-lg); padding: 46px 48px; margin-top: 24px; overflow: hidden;
}
.at-chip {
	display: inline-block; background: #fff; color: var(--brand-dark);
	font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.03em;
	border: 1px solid var(--brand-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; box-shadow: var(--shadow-soft);
}
.at-hero h1 { margin-bottom: 14px; }
.at-hero p { color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; margin: 0 0 22px; }
.at-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.at-hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.at-hero-points li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink); font-weight: 500; }
.at-hero-points li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--brand-soft) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230071E3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l4 4 10-10"/></svg>') center / 12px no-repeat;
}
.at-hero-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.at-hero-badge {
	width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark);
	display: inline-flex; align-items: center; justify-content: center;
}
.at-hero-badge svg { width: 28px; height: 28px; }
.at-hero-card strong { font-family: var(--ui); font-size: 18px; }
.at-hero-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.at-hero-card .at-btn { margin-top: auto; }

.at-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.at-link-more { font-family: var(--ui); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ============ PORTADA · TARJETAS DE CATEGORÍA ============ */
.at-cat-cards {
	list-style: none; margin: 20px 0 6px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.at-cat-cards a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	height: 100%;
}
.at-cat-cards a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.at-cat-media {
	width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark);
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden;
}
.at-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.at-cat-media .at-cat-svg svg, .at-cat-media svg { width: 28px; height: 28px; }
.at-cat-name { font-family: var(--ui); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.at-cat-cards a:hover .at-cat-name { color: var(--brand-dark); }
.at-cat-count { font-size: 12.5px; color: var(--ink-soft); }

/* Círculos de subcategorías (páginas de categoría) */
.at-cat-circles {
	list-style: none; margin: 18px 0 6px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px 12px;
}
.at-cat-circles a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.at-cat-circle-img {
	display: flex; align-items: center; justify-content: center; width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--brand-soft); background: var(--tint); color: var(--brand-dark);
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.at-cat-circle-img svg { width: 40px; height: 40px; }
.at-cat-circles a:hover .at-cat-circle-img { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.at-cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.at-cat-circle-name {
	font-family: var(--ui); font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-cat-circles a:hover .at-cat-circle-name { color: var(--brand-dark); }

/* ============ BARRA DE CONFIANZA (portada) ============ */
.at-trust { background: var(--tint); margin-top: 54px; padding: 34px 0; }
.at-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.at-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--brand); }
.at-trust-item strong { font-family: var(--ui); font-size: 15px; color: var(--ink); }
.at-trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ============ BLOG ============ */
.at-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 16px; }
.at-blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.at-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.at-blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--tint); }
.at-blog-card h2, .at-blog-card h3 { font-size: 16.5px; font-weight: 700; margin: 14px 16px 6px; color: var(--ink); }
.at-blog-card:hover h2, .at-blog-card:hover h3 { color: var(--brand-dark); }
.at-blog-card p { margin: 0 16px 8px; font-size: 13.5px; color: var(--ink-soft); }
.at-blog-date { display: block; margin: 0 16px 16px; font-family: var(--ui); font-size: 12px; font-weight: 500; color: #6E7484; }

/* ============ TEXTO SEO ============ */
.at-seo-text { background: var(--tint); border-radius: var(--r-lg); padding: 30px 34px; }
.at-seo-text h2 { font-size: 20px; }
.at-seo-text p { color: var(--ink-soft); margin: 0; }
.at-seo-text a { text-decoration: underline; text-decoration-color: rgba(0, 113, 227, .4); text-underline-offset: 3px; }

/* ============ REJILLA DE PRODUCTOS (WooCommerce) ============ */
ul.products { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: repeat(4, 1fr); }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products li.product {
	position: relative; display: flex; flex-direction: column; text-align: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	padding: 12px 14px 18px; margin: 0; width: auto; float: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { float: none; clear: none; width: auto; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after,
ul.products::before, ul.products::after { content: none; }
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE1FB; }
ul.products li.product { align-self: stretch; }
ul.products li.product .button,
.woocommerce ul.products li.product .button, .woocommerce-page ul.products li.product .button { margin-top: auto; }
ul.products li.product a img { border-radius: var(--r-sm); background: var(--tint); }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
	font-family: var(--body); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--ink); padding: 10px 0 2px;
}
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--brand-dark); }
ul.products li.product .star-rating { margin: 4px auto; }
ul.products li.product .price { display: block; font-family: var(--ui); font-weight: 700; font-size: 17px; color: var(--ink); margin: 4px 0 10px; }
ul.products li.product .price del { color: #8B90A0; font-weight: 500; font-size: 14px; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; color: var(--brand); }
.woocommerce-price-suffix { font-size: 11px; color: #6E7484; font-weight: 500; }
ul.products li.product .button { margin-top: auto; width: 100%; padding: 11px 10px; font-size: 13.5px; }

/* Insignia de oferta */
.onsale {
	position: absolute; top: 16px; left: 16px; z-index: 5; background: var(--warn); color: #fff;
	font-family: var(--ui); font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 5px 11px; box-shadow: var(--shadow-soft);
}
.star-rating { color: #E8A400; }
.star-rating::before { color: #E4E7EE; }
.star-rating span::before { color: #E8A400; }

/* Cabecera de categoría / toolbar */
.woocommerce-products-header { padding: 6px 0 2px; }
.woocommerce-products-header__title { margin-bottom: 4px; }
.term-description { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; max-width: 90ch; }
.at-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 10px 0 2px; }
.at-toolbar .woocommerce-result-count, .woocommerce .at-toolbar .woocommerce-result-count,
.at-toolbar .woocommerce-ordering, .woocommerce .at-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce-result-count { color: #6E7484; font-size: 13px; }
.woocommerce-ordering select {
	border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px;
	font-family: var(--ui); font-weight: 500; font-size: 13.5px; color: var(--ink); background: #fff;
}

/* Paginación WooCommerce */
.woocommerce nav.woocommerce-pagination, .at-pagination { text-align: center; margin: 34px 0 8px; }
.woocommerce nav.woocommerce-pagination ul, .at-pagination .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: none; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
.at-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px;
	border-radius: 10px; background: #fff; border: 1.5px solid var(--line);
	font-family: var(--ui); font-weight: 600; font-size: 14.5px; line-height: 1; color: var(--ink); transition: all .15s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .at-pagination a.page-numbers:hover { background: var(--tint); border-color: var(--brand); color: var(--brand-dark); }
.woocommerce nav.woocommerce-pagination ul li span.current, .at-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ FICHA DE PRODUCTO ============ */
.single-product div.product { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 18px; }
.single-product div.product .woocommerce-product-gallery { flex: 1 1 46%; max-width: 560px; float: none; }
.single-product div.product .entry-summary { flex: 1 1 46%; float: none; margin: 0; }
.single-product div.product .woocommerce-product-gallery__wrapper img { border-radius: var(--r); }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs li { width: 76px; list-style: none; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs img { border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs img.flex-active { border-color: var(--brand); }
.single-product div.product .product_title { font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.single-product div.product .entry-summary .price { font-family: var(--ui); font-weight: 700; font-size: 26px; color: var(--ink); }
.single-product div.product .entry-summary .price del { color: #8B90A0; font-size: 19px; }
.single-product div.product .entry-summary .price ins { text-decoration: none; color: var(--brand); }
.single-product div.product .woocommerce-product-details__short-description { color: var(--ink-soft); }
.single-product div.product form.cart { margin: 18px 0; }
.single-product .quantity .qty { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 8px; width: 74px; font-family: var(--ui); font-weight: 600; text-align: center; }
.single-product div.product .single_add_to_cart_button { padding: 14px 34px; font-size: 15px; }
.wc-pao-addon input[type="text"], .wc-pao-addon textarea, .wc-pao-addon select,
form.cart input[type="text"], form.cart textarea, form.cart select {
	width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; font-family: var(--body); font-size: 14px; background: #fff;
}

/* Pestañas */
.woocommerce-tabs { width: 100%; margin-top: 24px; }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink-soft); border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--brand-dark); border-bottom-color: var(--brand); }
.related.products, .up-sells.products { width: 100%; margin-top: 34px; }
.related.products > h2, .up-sells.products > h2 { font-size: 22px; }

/* ============ AVISOS ============ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r-sm);
	background: #fff; box-shadow: var(--shadow-soft); color: var(--ink); padding: 14px 18px 14px 48px; margin-bottom: 20px; list-style: none; position: relative; line-height: 1.55;
}
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li { list-style: none; margin: 0; }
.woocommerce-message { border-left-color: var(--ok); }
.woocommerce-error { border-left-color: #E03131; }

/* ============ CESTA / PAGO / CUENTA ============ */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%; }
.woocommerce table.shop_table th { background: var(--tint); font-family: var(--ui); font-weight: 600; font-size: 13.5px; padding: 12px 14px; text-align: left; }
.woocommerce table.shop_table td { padding: 12px 14px; border-top: 1px solid var(--line); }
.woocommerce table.shop_table img { border-radius: var(--r-sm); width: 64px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font-family: var(--body); font-size: 14px; }
.woocommerce form .form-row input.input-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,113,227,0.10); }
.woocommerce form .form-row label { font-family: var(--ui); font-weight: 600; font-size: 13.5px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-family: var(--ui); font-weight: 500; color: var(--ink-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ============ PÁGINAS Y ARTÍCULOS ============ */
.at-page-head { padding: 10px 0 6px; }
.at-page-sub { color: var(--ink-soft); margin-top: -4px; }
.at-entry { max-width: 820px; }
.at-article-wrap { max-width: 900px; }
.at-article-head { padding: 8px 0 4px; }
.at-article-meta { color: var(--ink-soft); font-family: var(--ui); font-size: 13px; }
.at-article-img { margin: 0 0 22px; }
.at-article-img img { width: 100%; border-radius: var(--r-lg); }
.at-entry h2 { margin-top: 1.4em; }
.at-entry h2:first-child { margin-top: 0.4em; }
.at-entry h3 { margin-top: 1.2em; }
.at-entry ul, .at-entry ol { padding-left: 22px; margin: 0.6em 0 1em; }
.at-entry li { margin-bottom: 6px; line-height: 1.7; }
.at-entry img { border-radius: var(--r); }
.at-entry a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,113,227,.35); text-underline-offset: 3px; }
.at-entry a:hover { text-decoration-color: var(--brand); }
.at-entry blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--tint); border-radius: var(--r-sm); }
.at-article-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.at-article-tags a { display: inline-block; padding: 5px 12px; background: var(--tint); border-radius: 999px; font-family: var(--ui); font-size: 12.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.at-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--ui); font-weight: 600; font-size: 14px; }
.at-blog-grid-archive { grid-template-columns: repeat(3, 1fr); }

/* 404 */
.at-404 { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.at-404-search { margin: 22px auto 26px; max-width: 420px; }

/* ============ PIE DE PÁGINA ============ */
.at-footer { background: var(--ink); color: #C7CCD6; margin-top: 36px; }
.at-footer a { color: #C7CCD6; }
.at-footer a:hover { color: #fff; }
.at-footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 46px; padding-bottom: 40px; }
.at-footer-brand img { max-height: 44px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.at-footer-brand .at-logo-text { color: #fff; display: inline-block; margin-bottom: 10px; }
.at-footer-brand p { font-size: 13.5px; color: #99A0AD; max-width: 40ch; }
.at-social { display: flex; gap: 10px; margin-top: 14px; }
.at-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: all .15s ease; }
.at-social a:hover { background: var(--ok); border-color: var(--ok); color: #fff; transform: translateY(-2px); }
.at-footer-col h3 { font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.at-footer-col ul { list-style: none; margin: 0; padding: 0; }
.at-footer-col li { margin-bottom: 9px; font-size: 14px; color: #99A0AD; }
.at-footer-legal { border-top: 1px solid rgba(255,255,255,.10); }
.at-footer-legal-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: #8B92A0; }
.at-footer-legal a { color: #8B92A0; margin-left: 16px; }
.at-footer-legal a:hover { color: #fff; }

/* WhatsApp flotante */
.at-wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .40); transition: transform .15s ease; }
.at-wa-fab:hover { transform: scale(1.06); color: #fff; }

/* ============ «MÁS DE ESTA CATEGORÍA» ============ */
.at-more-cat { margin: 30px 0 8px; }
.at-more-cat h2 { font-family: var(--ui); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.at-more-cat ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.at-more-cat ul::-webkit-scrollbar { display: none; }
.at-more-cat li { flex: 0 0 auto; }
.at-more-cat img { width: 84px; height: 84px; object-fit: cover; display: block; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tint); transition: transform .15s ease, border-color .15s ease; }
.at-more-cat a:hover img { border-color: var(--brand); transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
	.at-nav { display: none; }
	.at-burger { display: flex; }
	.at-header-in { gap: 14px; position: relative; justify-content: space-between; }
	.at-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
	.at-search { display: none; }
	.at-search-mobile { display: block; }
	ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.at-hero { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
	.at-hero-card { order: -1; }
	.at-trust-in { grid-template-columns: repeat(2, 1fr); }
	.at-blog-grid, .at-blog-grid-archive { grid-template-columns: 1fr 1fr; }
	.at-footer-cols { grid-template-columns: 1fr 1fr; }
	.single-product div.product { gap: 24px; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.at-logo img { max-height: 46px; }
	ul.products, ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
	ul.products li.product { padding: 8px 8px 14px; }
	ul.products li.product .button { font-size: 12.5px; padding: 10px 6px; }
	.at-blog-grid, .at-blog-grid-archive { grid-template-columns: 1fr; }
	.at-footer-cols { grid-template-columns: 1fr; gap: 26px; }
	.at-cat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
	.at-cat-cards a { padding: 16px; }
	.at-section { margin-top: 40px; }
	.onsale { top: 12px; left: 12px; font-size: 11.5px; padding: 4px 9px; }
	.at-cat-circles { display: flex; overflow-x: auto; gap: 16px; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.at-cat-circles::-webkit-scrollbar { display: none; }
	.at-cat-circles li { flex: 0 0 auto; width: 100px; scroll-snap-align: start; }
	.at-cat-circle-img { width: 92px; height: 92px; }
}

/* ============ REFINAMIENTOS v1.1 (feedback) ============ */
:root { --brand-grad: linear-gradient(135deg, #0A84FF 0%, #0059CC 100%); }

/* Botones con más vida (degradado) */
.at-btn, .button, button[type="submit"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.single_add_to_cart_button, .checkout-button, .wc-block-components-button {
	background: var(--brand-grad);
}
.at-btn-ghost { background: #fff; }

/* Héroe con más color y profundidad */
.at-hero {
	background:
		radial-gradient(760px 420px at 88% -14%, #CDE2FF 0%, rgba(205,226,255,0) 60%),
		radial-gradient(560px 340px at -5% 115%, #E6EEFF 0%, rgba(230,238,255,0) 55%),
		linear-gradient(180deg, #F2F7FF 0%, #FFFFFF 100%);
	border-color: #DCE7F8;
}
.at-hero-badge { background: var(--brand-grad); color: #fff; }
.at-cat-cards a:hover .at-cat-media { background: var(--brand-grad); color: #fff; }

/* Menú legal en línea (no lista vertical suelta) */
.at-legal-menu { list-style: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; padding: 0; }
.at-legal-menu li { margin: 0; }
.at-legal-menu a { color: #8B92A0; }
.at-legal-menu a:hover { color: #fff; }

/* Añadir al carrito — legible en cualquier tarjeta y en móvil */
.single-product div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
ul.products li.product .button { white-space: normal; line-height: 1.25; min-height: 42px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
	.single-product div.product form.cart { gap: 8px; }
	.single-product div.product form.cart .quantity { flex: 0 0 auto; }
	.single-product div.product .single_add_to_cart_button { flex: 1 1 auto; width: 100%; padding: 14px 18px; }
	ul.products li.product .price { font-size: 16px; }
	ul.products li.product .button { font-size: 13px; padding: 11px 8px; min-height: 40px; }
	.at-wa-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* ============ v1.2 — LIGHT & PREMIUM (feedback: nada de negro; público Apple/empresas) ============ */
/* Nota: la barra superior de confianza es la excepción — franja fina oscura tipo "trust strip" (v1.4). */

/* Héroe centrado con el buscador por modelo de protagonista */
.at-hero {
	display: block; text-align: center;
	background: radial-gradient(900px 360px at 50% -18%, #E9F2FF 0%, rgba(233,242,255,0) 66%), #fff;
	border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 54px 32px; margin-top: 24px;
}
.at-hero h1 { margin: 0 auto 12px; max-width: 18ch; }
.at-hero > p { color: var(--ink-soft); font-size: 16.5px; max-width: 60ch; margin: 0 auto 24px; }
.at-hero-search {
	display: flex; align-items: center; max-width: 620px; margin: 0 auto 18px;
	background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow-soft);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.at-hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.at-hero-search input[type="search"] { flex: 1; min-width: 0; border: none; background: transparent; padding: 12px 14px; font-family: var(--body); font-size: 15px; color: var(--ink); outline: none; }
.at-hero-search button[type="submit"] { flex-shrink: 0; border-radius: 999px; padding: 12px 26px; font-size: 14.5px; box-shadow: none; }
.at-hero-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 20px; padding: 0; }
.at-hero-pills a { display: inline-block; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--ink); background: #fff; transition: all .15s ease; }
.at-hero-pills a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.at-hero-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; font-family: var(--ui); font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.at-hero-trust li { position: relative; padding-left: 22px; }
.at-hero-trust li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230071E3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l4 4 10-10"/></svg>') center / 11px no-repeat; }

/* Pie de página claro y profesional */
.at-footer { background: var(--tint); border-top: 1px solid var(--line); color: var(--ink-soft); }
.at-footer a { color: var(--ink-soft); }
.at-footer a:hover { color: var(--brand-dark); }
.at-footer-brand img { filter: none; }
.at-footer-brand .at-logo-text { color: var(--ink); }
.at-footer-brand p { color: var(--ink-soft); }
.at-social a { background: #fff; border: 1px solid var(--line); color: var(--brand); }
.at-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.at-footer-col h3 { color: var(--ink); }
.at-footer-col li { color: var(--ink-soft); }
.at-footer-legal { border-top: 1px solid var(--line); }
.at-footer-legal-in, .at-footer-legal a, .at-legal-menu a { color: #6E7484; }
.at-footer-legal a:hover, .at-legal-menu a:hover { color: var(--brand-dark); }

@media (max-width: 640px) {
	.at-hero { padding: 38px 20px; }
	/* Buscador del héroe apilado: input ancho arriba (se lee entero) + botón abajo */
	.at-hero-search { flex-direction: column; align-items: stretch; border-radius: 18px; padding: 8px; gap: 6px; }
	.at-hero-search input[type="search"] { padding: 12px 12px; }
	.at-hero-search button[type="submit"] { width: 100%; padding: 13px 18px; border-radius: 12px; }
	.at-hero > p { font-size: 15.5px; }
}

/* ============ v1.3 — SHOP PRO (firma: códigos de modelo en mono · pagos) ============ */
:root { --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; }

/* Héroe con más presencia */
.at-home .at-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }

/* FIRMA: etiqueta de código de modelo / EMC en monoespaciada (el lenguaje del taller Apple) */
.at-code {
	display: inline-flex; align-items: center;
	font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .02em;
	color: var(--brand-dark); background: var(--brand-soft);
	border: 1px solid #D3E4FB; border-radius: 8px; padding: 5px 11px;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.at-code:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.at-hero-models { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 22px; }
.at-hero-models-label { font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-right: 4px; }

/* Métodos de pago en el pie (confianza para particular y empresa) */
.at-footer-pay { border-top: 1px solid var(--line); }
.at-footer-pay-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.at-footer-pay-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--ink); }
.at-footer-pay-label svg { color: var(--brand); }
.at-pay-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.at-pay { font-family: var(--ui); font-weight: 700; font-size: 11.5px; letter-spacing: .03em; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }

@media (max-width: 640px) {
	.at-footer-pay-in { justify-content: center; }
}

/* Cabecera móvil: logo en flujo (no absoluto) para no tapar el carrito */
@media (max-width: 1080px) {
	.at-header-in { gap: 10px; }
	.at-logo { position: static; transform: none; flex: 1 1 auto; text-align: center; min-width: 0; }
	.at-logo img { margin: 0 auto; max-height: 44px; }
	.at-header-tools { margin-left: 0; gap: 4px; }
	.at-tool { width: 40px; height: 40px; }
	.at-cart-count { top: -1px; right: -1px; }
}
/* En la portada el héroe YA lleva el buscador: no repetir la barra de búsqueda del header
   (evita "un buscador tras otro" y que su icono choque con el carrito en móvil). */
@media (max-width: 900px) { body.home .at-search-mobile { display: none; } }

/* ============ v1.5 — pulido móvil (banner cookies + vista rápida secundaria) ============ */

/* Banner de cookies: acorde al tema (franja oscura limpia), no rojo agresivo */
#cookie-law-info-bar {
	background: #232936 !important; color: #DFE5EF !important;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	font-family: var(--body) !important;
}
#cookie-law-info-bar .cli-bar-message { color: #DFE5EF !important; font-size: 13px !important; line-height: 1.5 !important; }
#cookie-law-info-bar a { color: #fff !important; }
#cookie-law-info-bar .cli_action_button,
#cookie-law-info-bar .wt-cli-accept-all-btn,
#cookie-law-info-bar #cookie_action_close_header {
	background: var(--brand) !important; color: #fff !important;
	border: none !important; border-radius: 10px !important;
	padding: 10px 20px !important; font-weight: 700 !important; text-shadow: none !important; box-shadow: none !important;
}
#cookie-law-info-bar .cli_action_button:hover,
#cookie-law-info-bar #cookie_action_close_header:hover { background: var(--brand-dark) !important; }
#cookie-law-info-bar .cli_settings_button {
	color: #cfd6e2 !important; text-decoration: underline !important;
	background: transparent !important; border: none !important; font-weight: 600 !important;
}

/* "Vista rápida" = botón secundario (que no compita con "Añadir al carrito") */
ul.products li.product .yith-wcqv-button,
.woocommerce ul.products li.product a.button.yith-wcqv-button {
	background: #fff !important; color: var(--brand-dark) !important;
	border: 1.5px solid var(--line) !important; box-shadow: none !important;
	font-weight: 600 !important; margin-top: 8px !important;
}
ul.products li.product .yith-wcqv-button:hover,
.woocommerce ul.products li.product a.button.yith-wcqv-button:hover {
	background: var(--brand-soft) !important; border-color: var(--brand) !important;
	color: var(--brand-dark) !important; transform: none !important;
}

/* ============ v1.6 — malla de enlaces internos por modelo (mu-plugin internal-links) ============ */
.at-same-model { clear: both; margin: 40px 0 8px; }
.at-same-model > h2 { font-family: var(--display); font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
.at-same-model ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.at-same-model li { min-width: 0; }
.at-same-model a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.at-same-model a:hover { border-color: var(--brand); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.at-same-model .at-sm-img { display: block; background: var(--tint); aspect-ratio: 1 / 1; }
.at-same-model .at-sm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-same-model .at-sm-name { display: block; padding: 8px 8px 2px; font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-same-model .at-sm-price { display: block; padding: 0 8px 8px; font-size: 12px; color: var(--brand-dark); font-weight: 700; margin-top: auto; }
.at-same-model .at-sm-price del { color: var(--ink-soft); font-weight: 400; margin-right: 4px; }
@media (max-width: 1024px) { .at-same-model ul { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .at-same-model ul { grid-template-columns: repeat(3, 1fr); gap: 10px; } .at-same-model .at-sm-name { font-size: 11.5px; } }

/* Mapa de enlaces internos en la home (texto SEO) */
.at-seo-links { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 10px; }
.at-seo-links li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.at-seo-links li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-soft) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230071E3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l4 4 10-10"/></svg>') center / 11px no-repeat; }
.at-seo-links a { font-weight: 700; }
@media (min-width: 720px) { .at-seo-links { grid-template-columns: 1fr 1fr; gap: 10px 30px; } }

/* ============ v1.7 — HERO 2 columnas con imagen (más visual, shop pro) ============ */
.at-home .at-hero {
	display: grid; grid-template-columns: 1.05fr 0.92fr; align-items: center; gap: 38px;
	text-align: left; padding: 40px 40px;
}
.at-hero-copy { min-width: 0; }
.at-home .at-hero h1 { margin: 0 0 14px; max-width: none; text-align: left; }
.at-home .at-hero .at-hero-lead { margin: 0 0 20px; max-width: 46ch; text-align: left; }
.at-home .at-hero .at-hero-search { margin: 0 0 16px; max-width: 540px; }
.at-home .at-hero .at-hero-models { justify-content: flex-start; }
.at-hero-media img { width: 100%; height: auto; border-radius: var(--r); display: block; box-shadow: var(--shadow-soft); }
@media (max-width: 860px) {
	.at-home .at-hero { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 30px 22px; }
	.at-home .at-hero h1, .at-home .at-hero .at-hero-lead { text-align: center; max-width: none; }
	.at-home .at-hero .at-hero-search { margin-left: auto; margin-right: auto; }
	.at-home .at-hero .at-hero-models { justify-content: center; }
	.at-hero-media { order: -1; margin: 0 auto 4px; max-width: 460px; }
}

/* ============ v1.8 — formular de contact (CF7) în stilul temei ============ */
.wpcf7 form { max-width: 640px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea {
	width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint);
	padding: 12px 14px; font-family: var(--body); font-size: 15px; color: var(--ink); margin: 6px 0 14px;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12); }
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input[type="submit"] { margin-top: 6px; }
.wpcf7 .wpcf7-list-item { margin-left: 0; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--warn); font-size: 13px; }

/* ============ v1.9 — filtros laterales (tienda/categorías) ============ */
.at-shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 8px; }
.at-filters { position: sticky; top: 86px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 6px; }
.at-widget { margin-bottom: 20px; }
.at-widget-title { font-family: var(--ui); font-size: 14px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.at-filters select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--tint); font-family: var(--body); font-size: 14px; color: var(--ink); }
.at-filters ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.at-filters .woocommerce-widget-layered-nav-list li { margin: 4px 0; font-size: 14px; }
.at-filters .woocommerce-widget-layered-nav-list a { color: var(--ink); }
.at-filters .woocommerce-widget-layered-nav-list .chosen a::before { content: "× "; color: var(--warn); font-weight: 700; }
.at-filters .price_slider_wrapper .ui-slider { height: 4px; background: var(--line); border: none; border-radius: 99px; margin: 16px 8px 18px; position: relative; }
.at-filters .ui-slider .ui-slider-range { background: var(--brand); position: absolute; height: 100%; border-radius: 99px; }
.at-filters .ui-slider .ui-slider-handle { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); top: -6px; position: absolute; margin-left: -8px; cursor: pointer; }
.at-filters .price_slider_amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.at-filters .price_slider_amount .button { padding: 8px 14px; font-size: 13px; }
.at-filters-toggle { display: none; }
@media (max-width: 900px) {
	.at-shop-layout { grid-template-columns: 1fr; gap: 12px; }
	.at-filters { display: none; position: static; }
	.at-filters.is-open { display: block; }
	.at-filters-toggle { display: inline-flex; align-items: center; gap: 8px; width: max-content; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 18px; font-family: var(--ui); font-weight: 600; font-size: 14px; }
}

/* Plăci de categorie în Tienda (tiles Woo) în stilul temei */
ul.products li.product-category a { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
ul.products li.product-category a:hover { border-color: var(--brand); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
ul.products li.product-category img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--tint); margin: 0; }
ul.products li.product-category h2, ul.products li.product-category .woocommerce-loop-category__title { font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; padding: 10px 8px 12px; margin: 0; }
ul.products li.product-category mark.count { background: transparent; color: var(--ink-soft); font-weight: 600; }

/* Meniu principal compact — o singură linie pe PC */
.at-header-in { gap: 20px; }
.at-menu { flex-wrap: nowrap; gap: 0 2px; }
.at-menu > li > a { font-size: 13.5px; padding: 8px 10px; white-space: nowrap; }
@media (max-width: 1120px) { .at-menu > li > a { font-size: 13px; padding: 8px 8px; } }
/* Ajustaje fin: să încapă tot pe un rând fără suprapuneri */
.at-search { width: 220px; }
@media (max-width: 1340px) {
	.at-search { width: 180px; }
	.at-menu > li > a { font-size: 13px; padding: 8px 8px; }
}
/* «Inicio» în bara de sus, aliniat la dreapta (meniul principal rămâne pe un rând) */
.at-announce-in { position: relative; }
.at-tb-home { position: absolute; right: 8px; top: 0; bottom: 0; color: #fff !important; font-weight: 600; }
.at-tb-home::before { display: none; }
.at-tb-home:hover { text-decoration: underline; }
@media (max-width: 900px) { .at-tb-home { display: none; } }

/* Căutare tip Apple: pe desktop doar lupa; bara se deschide sub meniu */
.at-search-toggle { display: none; }
@media (min-width: 901px) {
	.at-search-toggle { display: inline-flex; }
	.at-search-mobile { display: none; padding: 0; }
	.at-header.search-open .at-search-mobile { display: block; max-width: 720px; margin: 0 auto; padding: 4px 20px 14px; }
	.at-header.search-open .at-search-toggle { background: var(--brand-soft); color: var(--brand-dark); }
}
/* pe home mobil, bara ramane ascunsa (hero are cautarea) — regula veche, acum limitata la mobil */

/* ★★★★★ +200 în dreapta barei de sus (desktop lat) */
.at-tb-rating { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; padding: 0; }
.at-tb-rating::before { display: none; }
.at-tb-stars { color: #FFC93C; letter-spacing: 0.08em; font-size: 12px; }
@media (max-width: 1150px) { .at-tb-rating { display: none; } }

/* Bandă de încredere pe mobil, sub header (înainte de hero) */
.at-trust-m { display: none; }
@media (max-width: 560px) {
	.at-trust-m { display: flex; gap: 16px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 7px 14px; background: #fff; border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: 12px; color: var(--ink-soft); }
	.at-trust-m::-webkit-scrollbar { display: none; }
	.at-trust-m > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
	.at-trust-m svg { width: 14px; height: 14px; flex-shrink: 0; }
	.at-trust-m strong { color: var(--ink); font-weight: 700; }
	.at-trust-m .st { color: #E8A400; letter-spacing: 0.06em; }
}

/* Guard global: nимic nu mai poate crea scroll orizontal pe pagină (dunga albă din dreapta pe mobil) */
html, body { overflow-x: clip; }
/* Checkout pe mobil: fără bara de căutare (distragere la plată) */
@media (max-width: 900px) {
	body.woocommerce-checkout .at-search-mobile { display: none; }
}

/* Caseta «envío estimado» pe pagina produsului (înlocuiește YITH) */
.at-envio-est { display: flex; align-items: flex-start; gap: 10px; background: #F0F7F0; border: 1px solid #D7EAD9; border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; color: #22543D; line-height: 1.5; }
.at-envio-est svg { flex-shrink: 0; margin-top: 2px; color: #1E9E5A; }
@media (max-width: 560px) { .at-trust-m { justify-content: center; gap: 14px; font-size: 11.5px; } }
/* Fix: centrare fara taiere la stanga (flex + overflow) in banda mobila */
@media (max-width: 560px) {
	.at-trust-m { justify-content: flex-start; }
	.at-trust-m > span:first-child { margin-left: auto; }
	.at-trust-m > span:last-child { margin-right: auto; }
}

/* ============ v2.0 — insignă de ofertă PRO (pastilă roșie, învinge stilul Woo) ============ */
.woocommerce span.onsale, span.onsale, ul.products li.product span.onsale, .single-product span.onsale {
	position: absolute; top: 12px; left: 12px; right: auto; z-index: 5;
	min-width: 0; min-height: 0; line-height: 1.3; margin: 0;
	background: #D7263D; color: #fff;
	font-family: var(--ui); font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em;
	border-radius: 8px; padding: 4px 9px; box-shadow: 0 3px 10px rgba(215, 38, 61, 0.30);
	text-transform: none;
}
/* prețul vechi tăiat — gri discret, nu măsliniu */
ul.products li.product .price del, .single-product div.product p.price del, .woocommerce .price del {
	color: #9AA3B2; opacity: 1; font-weight: 400;
}
ul.products li.product .price del .woocommerce-Price-amount, .single-product p.price del .woocommerce-Price-amount { color: #9AA3B2; }

/* ============ v2.1 — contrast AA (audit PageSpeed accesibilidad) ============ */
a { color: var(--brand-dark); }
a:hover { color: #004a94; }
ul.products li.product .price, ul.products li.product .price ins,
.single-product div.product p.price, .single-product div.product p.price ins { color: var(--brand-dark); }
.at-footer-legal-in, .at-footer-legal-in span, .at-footer-legal a, .at-legal-menu a { color: #5B6472; }
.at-footer-legal a:hover, .at-legal-menu a:hover { color: var(--brand-dark); }
/* prețul vechi tăiat: gri care trece AA (4.7:1), tot discret */
ul.products li.product .price del, .single-product div.product p.price del, .woocommerce .price del,
ul.products li.product .price del .woocommerce-Price-amount, .single-product p.price del .woocommerce-Price-amount { color: #667085; }

/* ============ v2.2 — prețul vechi ca «chip» cu fundal (idee: cadran/background) ============ */
ul.products li.product .price del, .single-product div.product p.price del, .woocommerce .price del {
	display: inline-block; background: var(--tint); border: 1px solid var(--line); border-radius: 8px;
	padding: 1px 8px; font-size: 0.85em; line-height: 1.5; color: #5B6472;
	text-decoration-line: line-through; text-decoration-color: #98A2B3; margin-right: 6px; vertical-align: middle;
}
ul.products li.product .price del .woocommerce-Price-amount, .single-product p.price del .woocommerce-Price-amount { color: #5B6472; }
.woocommerce .price ins { text-decoration: none; }

/* ============ v2.3 — bară fixă Llamar+WhatsApp pe mobil (bula pluginului doar pe desktop) ============ */
.at-callbar { display: none; }
@media (max-width: 900px) {
	.at-callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; display: flex;
		box-shadow: 0 -6px 20px rgba(14,17,22,0.12); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
	.at-callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		padding: 13px 10px; font-family: var(--ui); font-weight: 700; font-size: 14.5px; color: #fff !important; background: var(--brand-dark); }
	.at-callbar .at-callbar-wa { background: #1FAF38; }
	body { padding-bottom: 52px; }
	/* bula pluginului de WhatsApp: doar pe desktop */
	[class*="nta_wa"], .nta-whatsapp-widget, #nta-wa-widget { display: none !important; }
}
/* selectorul real al bulei WhatsApp (ninjateam): ascunsa pe mobil, bara noastra preia */
@media (max-width: 900px) { #wa, .wa__widget_container, .wa__btn_popup { display: none !important; } }
/* Unificare: TOATE prețurile curente albastru închis (cu sau fără ofertă) */
ul.products li.product .price, ul.products li.product .price .woocommerce-Price-amount,
.single-product div.product .entry-summary .price, .single-product div.product .entry-summary .price .woocommerce-Price-amount { color: var(--brand-dark); }
ul.products li.product .price del .woocommerce-Price-amount, .single-product div.product .entry-summary .price del, .single-product div.product .entry-summary .price del .woocommerce-Price-amount { color: #5B6472; }
/* Linia «EMC compatibles» din fișele de produs */
.at-emc { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--ink); }
.at-emc strong { color: var(--brand-dark); }
/* Carrito: bara de jos = un singur CTA spre checkout */
.at-callbar .at-callbar-checkout { background: var(--brand); font-size: 15.5px; letter-spacing: 0.01em; }

/* Uniformizare TOTALĂ prețuri în grile: aceeași culoare + greutate, orice markup ar avea Woo */
ul.products li.product .price, ul.products li.product .price :not(del):not(del *) { color: var(--brand-dark); font-weight: 700; }
ul.products li.product .price del, ul.products li.product .price del * { color: #5B6472; font-weight: 500; }
ul.products li.product .price .woocommerce-price-suffix, ul.products li.product .price .woocommerce-price-suffix * { color: #6E7484; font-weight: 500; }
