/* RelojesRetro: portada y menú lateral */
:root {
	--rr-orange: #f26b1d;
	--rr-orange-soft: #fdeee4;
	--rr-navy: #1d2633;
	--rr-blue: #2a9fd6;
	--rr-yellow: #f6b23c;
	--rr-text: #2b313a;
	--rr-muted: #69717d;
	--rr-line: #e7e9ec;
	--rr-radius: 14px;
	--rr-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Menú lateral ---------- */
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 2px 16px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	font-family: var(--rr-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--rr-text);
	transition: background-color .15s, color .15s;
}
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li {
	border: 0;
}
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li > a:hover,
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li.current-menu-item > a,
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li.current-menu-ancestor > a,
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li.current-product_cat-ancestor > a {
	background: var(--rr-orange-soft);
	color: var(--rr-navy);
	font-weight: 600;
}
#site-header.vertical-header #site-navigation-wrap .dropdown-menu > li > a .text-wrap {
	flex: 1;
}

/* Submenús */
#site-header.vertical-header #site-navigation-wrap .dropdown-menu ul.sub-menu {
	margin: 2px 16px 6px 48px;
}
#site-header.vertical-header #site-navigation-wrap .dropdown-menu ul.sub-menu li a {
	padding: 7px 10px;
	border-radius: 8px;
	font-family: var(--rr-font);
	font-size: 13px;
	color: var(--rr-muted);
}
#site-header.vertical-header #site-navigation-wrap .dropdown-menu ul.sub-menu li a:hover {
	color: var(--rr-orange);
}
/* Franjas retro al pie del menú lateral */
#site-header.vertical-header #site-header-inner::after {
	content: '';
	display: block;
	height: 30px;
	margin-top: 40px;
	background: linear-gradient(to bottom,
		var(--rr-orange) 0 25%, #fff 25% 33%,
		var(--rr-yellow) 33% 58%, #fff 58% 66%,
		var(--rr-blue) 66% 100%);
}

/* ---------- Portada ---------- */
.rr-home {
	padding-top: 32px;
	padding-bottom: 48px;
	color: var(--rr-text);
}
.rr-home-header {
	margin: 0 0 24px;
	padding-left: 18px;
	border-left: 3px solid var(--rr-orange);
}
.rr-home-header h1 {
	margin: 0;
	font-family: var(--rr-font);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--rr-navy);
}
.rr-home-header p {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--rr-muted);
}

/* Hero */
.rr-hero {
	position: relative;
	overflow: hidden;
	min-height: 340px;
	border-radius: var(--rr-radius);
	background:
		radial-gradient(circle at 78% 50%, rgba(242, 107, 29, .28), transparent 55%),
		linear-gradient(120deg, #141a23 0%, #273242 100%);
}
.rr-hero__slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: 24px;
	padding: 40px 56px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.rr-hero__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}
.rr-hero__title {
	margin: 0 0 12px;
	font-family: var(--rr-font);
	font-size: clamp(30px, 4.2vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	color: #fff;
}
.rr-hero__title em {
	font-style: normal;
	color: var(--rr-orange);
}
.rr-hero__sub {
	margin: 0 0 24px;
	font-size: 17px;
	color: #d6dbe2;
}
.rr-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--rr-orange);
	font-family: var(--rr-font);
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	transition: background-color .15s, transform .15s;
}
.rr-btn:hover {
	background: #d95a10;
	transform: translateX(2px);
}
.rr-hero__img {
	justify-self: center;
}
.rr-hero__img img {
	display: block;
	width: min(320px, 100%);
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid rgba(255, 255, 255, .08);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.rr-hero__dots {
	position: absolute;
	left: 56px;
	bottom: 22px;
	display: flex;
	gap: 8px;
}
.rr-hero__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
}
.rr-hero__dots button.is-active {
	background: var(--rr-orange);
}

/* Barra de ventajas */
.rr-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 20px 0 8px;
	padding: 0;
	list-style: none;
}
.rr-trust li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--rr-text);
	text-align: left;
}
.rr-trust li + li {
	border-left: 1px solid var(--rr-line);
}
.rr-trust svg {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--rr-navy);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Secciones */
.rr-section {
	margin-top: 40px;
}
.rr-section__title {
	margin: 0 0 18px;
	font-family: var(--rr-font);
	font-size: 22px;
	font-weight: 700;
	color: var(--rr-navy);
}

/* Tarjetas de categoría */
.rr-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rr-cat a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--rr-radius);
	background: #eef0f2;
	box-shadow: 0 2px 10px rgba(20, 26, 35, .08);
}
.rr-cat img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.rr-cat a:hover img {
	transform: scale(1.05);
}
.rr-cat__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 10px;
	padding: 14px 16px;
	background: rgba(246, 247, 249, .94);
	backdrop-filter: blur(6px);
}
.rr-cat__name {
	font-family: var(--rr-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rr-navy);
}
.rr-cat__tag {
	grid-column: 1;
	font-size: 13px;
	color: var(--rr-muted);
}
.rr-cat__arrow {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(20, 26, 35, .12);
	font-size: 18px;
	color: var(--rr-navy);
	transition: background-color .15s, color .15s;
}
.rr-cat a:hover .rr-cat__arrow {
	background: var(--rr-orange);
	color: #fff;
}

/* Destacados y texto */
.rr-home .woocommerce ul.products {
	margin-bottom: 0;
}
.rr-home .woocommerce ul.products li.product .woo-entry-inner .title h2,
.rr-home .woocommerce ul.products li.product .woo-entry-inner .title a {
	font-family: var(--rr-font);
	font-size: 14px;
	font-weight: 600;
}
.rr-about {
	max-width: 860px;
	color: var(--rr-muted);
	line-height: 1.7;
}
.rr-about h2,
.rr-about h3 {
	font-family: var(--rr-font);
	color: var(--rr-navy);
}

/* Móvil y tablet */
@media (max-width: 1024px) {
	.rr-cats { grid-template-columns: repeat(2, 1fr); }
	.rr-trust { grid-template-columns: repeat(2, 1fr); row-gap: 6px; }
	.rr-trust li:nth-child(3) { border-left: 0; }
}
@media (max-width: 680px) {
	.rr-home { padding-top: 20px; }
	.rr-home-header h1 { font-size: 15px; letter-spacing: .08em; }
	.rr-hero__slide { grid-template-columns: 1fr; padding: 28px 22px 48px; text-align: left; }
	.rr-hero__img { order: -1; }
	.rr-hero__img img { width: 180px; }
	.rr-hero__dots { left: 22px; }
	.rr-trust { grid-template-columns: 1fr; }
	.rr-trust li { justify-content: flex-start; border-left: 0 !important; }
	.rr-cats { gap: 10px; }
	.rr-cat__label { padding: 10px 12px; }
	.rr-cat__name { font-size: 14px; }
	.rr-cat__tag { display: none; }
	.rr-cat__arrow { width: 30px; height: 30px; font-size: 15px; }
}

/* ---------- Tipografía general ---------- */
h1, h2, h3, h4,
.woocommerce ul.products li.product li.title,
.single-product .product_title {
	font-family: var(--rr-font);
}

/* ---------- Cabecera de categorías ---------- */
.page-header {
	background: transparent;
	padding: 36px 0 8px;
}
.page-header .page-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
}
.page-header .page-header-title {
	padding-left: 18px;
	border-left: 3px solid var(--rr-orange);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rr-navy);
}
.site-breadcrumbs,
.rr-breadcrumb {
	font-size: 13px;
	color: var(--rr-muted);
}
.site-breadcrumbs a,
.rr-breadcrumb a {
	color: var(--rr-muted);
}
.site-breadcrumbs a:hover,
.rr-breadcrumb a:hover {
	color: var(--rr-orange);
}
.rr-breadcrumb {
	margin: 0 0 20px;
}
.rr-breadcrumb span {
	margin: 0 8px;
	opacity: .5;
}
.tax-product_cat .term-description {
	max-width: 900px;
	margin-bottom: 24px;
	color: var(--rr-muted);
	line-height: 1.7;
}

/* Barra de orden y vista */
.woocommerce .oceanwp-toolbar {
	margin-bottom: 24px;
	padding: 10px 0;
	border-color: var(--rr-line);
}
.woocommerce .oceanwp-grid-list a,
.woocommerce .woocommerce-ordering .theme-select {
	border-radius: 8px;
}
.woocommerce .oceanwp-grid-list a.active {
	border-color: var(--rr-orange);
	color: var(--rr-orange);
}

/* ---------- Tarjetas de producto ---------- */
.woocommerce ul.products li.product .product-inner {
	height: 100%;
	padding: 14px 14px 18px;
	border: 1px solid var(--rr-line);
	border-radius: var(--rr-radius);
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.woocommerce ul.products li.product .product-inner:hover {
	box-shadow: 0 10px 28px rgba(20, 26, 35, .10);
	transform: translateY(-2px);
}
.woocommerce ul.products li.product .woo-entry-image {
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}
.woocommerce ul.products li.product .woo-entry-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}
.woocommerce ul.products li.product li.category {
	font-size: 11px;
	font-style: normal;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rr-muted);
}
.woocommerce ul.products li.product li.category a {
	color: var(--rr-muted);
}
.woocommerce ul.products li.product li.title,
.woocommerce ul.products li.product li.title a,
.woocommerce ul.products li.product li.title h2 {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rr-navy);
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
	font-family: var(--rr-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--rr-orange);
}
.woocommerce ul.products li.product .button {
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--rr-navy);
	font-family: var(--rr-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--rr-orange);
	color: #fff;
}

/* ---------- Ficha de producto ---------- */
.single-product #content-wrap {
	padding-top: 32px;
}
.single-product .owp-product-nav-wrap {
	display: none;
}
.single-product div.product .woocommerce-product-gallery .flex-viewport,
.single-product div.product .woocommerce-product-gallery__image {
	border-radius: var(--rr-radius);
	background: #fff;
}
.single-product div.product .woocommerce-product-gallery {
	padding: 16px;
	border: 1px solid var(--rr-line);
	border-radius: var(--rr-radius);
}
.single-product .product_title {
	margin-bottom: 14px;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--rr-navy);
}
.single-product div.product .summary .price,
.single-product div.product .summary .price .amount {
	font-family: var(--rr-font);
	font-size: 30px;
	font-weight: 700;
	color: var(--rr-orange);
}
.rr-price-date {
	display: block;
	margin-top: 4px;
	font-family: system-ui, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: var(--rr-muted);
}
.single-product div.product .summary .woocommerce-product-details__short-description {
	color: var(--rr-text);
	line-height: 1.7;
}
.single-product div.product form.cart .button,
.single-product div.product .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 14px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--rr-orange);
	font-family: var(--rr-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	transition: background-color .15s, transform .15s;
}
.single-product div.product form.cart .button:hover {
	background: #d95a10;
	transform: translateX(2px);
}
.rr-buy-notes {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 13px;
	color: var(--rr-muted);
}
.rr-buy-notes li {
	list-style: none !important;
	position: relative;
	padding-left: 20px;
	margin-bottom: 4px;
}
.rr-buy-notes li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--rr-orange);
	font-weight: 700;
}
.single-product .product_meta {
	font-size: 13px;
	color: var(--rr-muted);
}

/* Pestaña de descripción y contenido */
.single-product .woocommerce-tabs ul.wc-tabs {
	display: none !important;
}
.single-product .woocommerce-tabs {
	border-top: 1px solid var(--rr-line);
	padding-top: 16px;
}
.single-product .woocommerce-tabs .panel {
	max-width: 900px;
	margin: 0 auto;
	color: var(--rr-text);
	font-size: 16px;
	line-height: 1.75;
}
.single-product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}
.single-product .woocommerce-tabs .panel h2 {
	margin: 40px 0 14px;
	font-size: 24px;
	font-weight: 700;
	color: var(--rr-navy);
}
.single-product .woocommerce-tabs .panel h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--rr-navy);
}
.single-product .woocommerce-tabs .panel table {
	overflow: hidden;
	border: 1px solid var(--rr-line);
	border-radius: var(--rr-radius);
	border-collapse: separate;
	border-spacing: 0;
}
.single-product .woocommerce-tabs .panel table th,
.single-product .woocommerce-tabs .panel table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--rr-line);
	text-align: left;
	vertical-align: top;
}
.single-product .woocommerce-tabs .panel table tr:last-child th,
.single-product .woocommerce-tabs .panel table tr:last-child td {
	border-bottom: 0;
}
.single-product .woocommerce-tabs .panel table th {
	width: 32%;
	background: #f7f8fa;
	font-family: var(--rr-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rr-navy);
}
.single-product .woocommerce-tabs .panel ul {
	margin-left: 0;
	padding-left: 20px;
}
.single-product .woocommerce-tabs .panel ul li::marker {
	color: var(--rr-orange);
}
/* Preguntas frecuentes: cada pregunta con su respuesta en una tarjeta */
.single-product .woocommerce-tabs .panel h2 ~ h3 {
	margin: 12px 0 0;
	padding: 16px 18px 6px;
	border: 1px solid var(--rr-line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: #fafbfc;
}
.single-product .woocommerce-tabs .panel h2 ~ h3 + p {
	margin: 0;
	padding: 0 18px 16px;
	border: 1px solid var(--rr-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: #fafbfc;
	color: var(--rr-muted);
}

/* Relacionados */
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--rr-navy);
}

@media (max-width: 680px) {
	.page-header .page-header-title { font-size: 22px; }
	.single-product div.product .single_add_to_cart_button { width: 100%; justify-content: center; }
	.single-product .woocommerce-tabs .panel table th { width: 40%; }
}

/* ---------- Guía bajo el listado de categoría ---------- */
.rr-guide {
	max-width: 900px;
	margin: 48px 0 0;
	padding-top: 32px;
	border-top: 1px solid var(--rr-line);
	color: var(--rr-text);
	font-size: 16px;
	line-height: 1.75;
}
.rr-guide h2 {
	margin: 36px 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: var(--rr-navy);
}
.rr-guide h2:first-child {
	margin-top: 0;
}
.rr-guide h3 {
	margin: 12px 0 0;
	padding: 16px 18px 6px;
	border: 1px solid var(--rr-line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: #fafbfc;
	font-size: 17px;
	font-weight: 600;
	color: var(--rr-navy);
}
.rr-guide h3 + p {
	margin: 0 0 4px;
	padding: 0 18px 16px;
	border: 1px solid var(--rr-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: #fafbfc;
	color: var(--rr-muted);
}
.rr-guide a {
	color: var(--rr-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.rr-guide ul {
	padding-left: 20px;
}
.rr-guide ul li::marker {
	color: var(--rr-orange);
}
