/* ==========================================================================
   Rod May — catálogo WooCommerce con el estilo nuevo.
   Incluye los ajustes que antes vivían en "CSS adicional" del Personalizador.
   ========================================================================== */

/* --- Layout tienda con sidebar ------------------------------------------- */
body.rm-site.sidebar-left #site-content,
body.rm-site.sidebar-right #site-content { width: 74%; }
body.rm-site.sidebar-left #sidebar,
body.rm-site.sidebar-right #sidebar { width: 22%; }
body.rm-site #sidebar { position: relative; }
@media screen and (min-width: 992px) {
	body.rm-site.woocommerce-page #sidebar #inner-sidebar { position: sticky; top: 110px; }
}

/* Orden y conteo */
.woocommerce-ordering,
mark.count,
.products .count { display: none !important; }
.woocommerce-result-count {
	font-size: 14px;
	color: var(--rm-gris-medio);
	margin: 0 0 24px;
}
.woocommerce-notices-wrapper:empty { display: none; }

/* --- Cuadrícula de productos y categorías -------------------------------- */
body.rm-site ul.products,
body.rm-site.woocommerce-page .content-woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.rm-site ul.products.columns-2,
body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.rm-site ul.products.columns-4,
body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.rm-site ul.products.columns-5,
body.rm-site ul.products.columns-6,
body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-5,
body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.rm-site ul.products::before,
body.rm-site ul.products::after { display: none !important; content: none; }

body.rm-site ul.products > li,
body.rm-site.woocommerce-page ul.products > li,
body.rm-site .woocommerce.columns-4 ul.products > li {
	float: none;
	width: auto !important;
	margin: 0;
	padding: 0;
	clear: none;
	list-style: none;
	position: relative;
}
body.rm-site ul.products > li::before { display: none; }

/* Imagen */
body.rm-site ul.products li .product-thumbnail,
body.rm-site ul.products li.product-category .rm-cat-thumb {
	background: var(--rm-fondo);
	border-radius: 0;
	overflow: hidden;
}
body.rm-site ul.products li .product-thumbnail a { display: block; }
body.rm-site ul.products li .product-thumbnail img,
body.rm-site ul.products li.product-category .rm-cat-thumb img {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
	margin: 0;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
body.rm-site ul.products li:hover .product-thumbnail img,
body.rm-site ul.products li.product-category:hover .rm-cat-thumb img { transform: scale(1.05); }

/* Texto de la tarjeta */
body.rm-site ul.products li .product-info,
body.rm-site.woocommerce-page.columns-4 ul.products li .product-info { padding: 18px 0 0; }
body.rm-site ul.products li .woocommerce-LoopProduct-link { color: inherit; text-decoration: none; }
body.rm-site ul.products li h2,
body.rm-site ul.products li .woocommerce-loop-product__title,
body.rm-site ul.products li .woocommerce-loop-category__title,
body.rm-site.woocommerce-page.columns-4 ul.products li h2 {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 500;
	color: var(--rm-negro);
	letter-spacing: -.005em;
	margin: 0 0 6px;
	padding: 0;
	transition: color .2s;
}
body.rm-site ul.products li:hover h2 { color: var(--rm-naranja); }
body.rm-site ul.products li .product-cat {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rm-naranja);
	margin: 0 0 8px;
}
/* descripción corta en el listado (plugin tp-product-description-in-loop) */
body.rm-site ul.products li .product-info p,
body.rm-site ul.products li .product-info div:not([class]) {
	font-size: 14px;
	line-height: 1.5;
	color: var(--rm-gris-medio);
	margin: 0;
}
body.rm-site ul.products li .price { display: none; }

/* Tarjetas de categoría (página Cutters y tienda) */
body.rm-site ul.products li.product-category > a {
	display: block;
	color: inherit;
	text-decoration: none;
}
body.rm-site ul.products li.product-category .woocommerce-loop-category__title {
	margin-top: 18px;
	font-size: 24px;
}
body.rm-site ul.products li.product-category .woocommerce-loop-category__title::after {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-left: 10px;
	vertical-align: -3px;
	background: url("../img/rodmay-icono-flecha-naranja.svg") center / contain no-repeat;
	transition: transform .25s;
}
body.rm-site ul.products li.product-category:hover .woocommerce-loop-category__title::after { transform: translateX(4px); }
body.rm-site .cat-description {
	font-size: 15px;
	line-height: 1.5;
	color: var(--rm-gris);
	margin: 0;
}

/* Paginación */
body.rm-site .woocommerce-pagination { margin-top: 64px; text-align: left; }
body.rm-site .woocommerce-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}
body.rm-site .woocommerce-pagination .page-numbers li { margin: 0; padding: 0; border: 0; float: none; }
body.rm-site .woocommerce-pagination .page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--rm-linea);
	border-radius: var(--rm-radio);
	background: #fff;
	color: var(--rm-negro);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}
body.rm-site .woocommerce-pagination .page-numbers li a.page-numbers:hover { border-color: var(--rm-naranja); color: var(--rm-naranja); }
body.rm-site .woocommerce-pagination .page-numbers li .page-numbers.current {
	background: var(--rm-naranja);
	border-color: var(--rm-naranja);
	color: #fff;
}
body.rm-site .woocommerce-pagination .page-numbers.prev:after,
body.rm-site .woocommerce-pagination .page-numbers.next:after { position: static; }

/* --- Sidebar de la tienda ------------------------------------------------ */
body.rm-site #sidebar .widget_product_categories ul.product-categories > li > a { font-weight: 500; }
body.rm-site #sidebar .widget_product_categories ul.children { margin: 0 !important; padding-left: 14px; font-size: inherit !important; }
body.rm-site #sidebar .widget_product_categories ul.children a { font-size: 15px; color: var(--rm-gris); }
body.rm-site #sidebar .widget_product_categories .cat-item.current-cat > a,
body.rm-site #sidebar .widget_product_categories .cat-item.current-cat-parent > a { color: var(--rm-naranja); }

/* Buscador (FiboSearch / ajax-search-for-woocommerce) */
body.rm-site .dgwt-wcas-search-wrapp { max-width: none; }
body.rm-site .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	height: 50px;
	border-radius: var(--rm-radio);
	border: 1px solid #cfd2d4;
	padding: 10px 20px 10px 48px !important;
	font-size: 15px;
	background: #fff;
}
body.rm-site .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
	border-color: var(--rm-naranja);
	box-shadow: 0 0 0 3px rgba(227, 72, 33, .15);
}
body.rm-site .dgwt-wcas-ico-magnifier { left: 18px; max-width: 18px; }
body.rm-site .dgwt-wcas-ico-magnifier path { fill: var(--rm-gris-medio); }
body.rm-site .dgwt-wcas-suggestions-wrapp,
body.rm-site .dgwt-wcas-details-wrapp { font-family: Roboto, sans-serif; border-color: var(--rm-linea); }
body.rm-site .dgwt-wcas-suggestion-selected { background-color: var(--rm-fondo); }
body.rm-site .dgwt-wcas-st strong,
body.rm-site .dgwt-wcas-sp strong { color: var(--rm-naranja); }

/* --- Ficha de producto --------------------------------------------------- */
body.rm-site .woo-single-post-class { display: flow-root; }
body.rm-site .woo-single-post-class .images,
body.rm-site .woo-single-post-class .woocommerce-product-gallery {
	width: 50%;
	float: left;
	margin: 0;
}
body.rm-site .woo-single-post-class .summary { width: 44%; float: right; }

.woocommerce-product-gallery__trigger,
.woo-single-post-class .images .woocommerce-product-gallery__trigger { display: none !important; }
body.rm-site .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
body.rm-site .woocommerce-product-gallery__image,
body.rm-site .woocommerce-product-gallery .flex-viewport { background: var(--rm-fondo); }
body.rm-site.woocommerce-page div.product div.images img,
body.rm-site .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: auto;
	box-shadow: none;
	margin: 0;
	mix-blend-mode: multiply;
}
body.rm-site .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
body.rm-site .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; padding: 0; float: none; }
body.rm-site .woocommerce-product-gallery .flex-control-thumbs img {
	background: var(--rm-fondo);
	opacity: .55;
	cursor: pointer;
	transition: opacity .2s;
	margin: 0 !important;
}
body.rm-site .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.rm-site .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }

body.rm-site .woo-single-post-class .summary h1,
body.rm-site .woo-single-post-class .summary .product_title {
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -.015em;
	color: var(--rm-negro);
	margin: 0 0 24px;
}
body.rm-site .woo-single-post-class .woocommerce-product-details__short-description { font-size: 18px; line-height: 1.55; color: var(--rm-gris); }
body.rm-site .woo-single-post-class .woocommerce-product-details__short-description > p { margin: 0 0 1em; }

/* Botón Cotizar (usa el btn-cta de Webflow) */
.rm-quote { margin: 32px 0 36px; }
.rm-quote .btn-cta { display: inline-flex; }
.rm-quote .btn-cta:hover .btn-cta-icon { transform: translateX(3px); }
.rm-quote .btn-cta-icon { transition: transform .25s; }

/* SKU, categorías y etiquetas */
body.rm-site .woo-single-post-class .summary .product_meta {
	border-top: 1px solid var(--rm-linea);
	padding-top: 20px;
	margin-top: 8px;
	font-size: 14px;
	color: var(--rm-gris-medio);
}
body.rm-site .woo-single-post-class .summary .product_meta > span {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
}
body.rm-site .woo-single-post-class .summary .product_meta > span a { color: var(--rm-negro); font-weight: 400; }
body.rm-site .woo-single-post-class .summary .product_meta > span a:hover { color: var(--rm-naranja); }

/* Íconos de etiquetas (plugin dm-woocommerce-custom-tag-image) */
body.rm-site ul.dm-wcti-icons { margin: 8px 0 32px !important; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
body.rm-site ul.dm-wcti-icons li { margin: 0; padding: 0; text-align: center; }
body.rm-site ul.dm-wcti-icons li::before { display: none !important; }
body.rm-site ul.dm-wcti-icons li svg,
body.rm-site ul.dm-wcti-icons li img {
	display: block;
	margin: 0 auto 6px !important;
	height: 36px !important;
	width: 36px !important;
}
body.rm-site ul.dm-wcti-icons span { color: var(--rm-gris-medio) !important; font-size: 12px; }

/* Descripción (pestaña única) */
body.rm-site .woo-single-post-class .woocommerce-tabs { clear: both; padding-top: 88px; }
body.rm-site .woo-single-post-class .woocommerce-tabs ul.tabs { margin: 0; padding: 0; border: 0; text-align: left; }
body.rm-site .woo-single-post-class .woocommerce-tabs ul.tabs li {
	background: none;
	border-radius: 0;
	margin: 0 24px 0 0;
	padding: 0 0 10px;
	border-bottom: 2px solid transparent;
}
body.rm-site .woo-single-post-class .woocommerce-tabs ul.tabs li.active { background: none; border-color: var(--rm-naranja); }
body.rm-site .woo-single-post-class .woocommerce-tabs ul.tabs li > a {
	font-size: 15px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--rm-gris);
	font-weight: 500;
}
body.rm-site .woo-single-post-class .woocommerce-tabs ul.tabs li.active > a { color: var(--rm-naranja); }
#tab-title-description { display: none !important; }
body.rm-site .woo-single-post-class .woocommerce-tabs .panel {
	background: #fff;
	padding: 0;
	max-width: 900px;
}
body.rm-site .woo-single-post-class .woocommerce-tabs .panel > h2:first-child {
	font-size: 40px;
	color: var(--rm-naranja);
	margin-bottom: 24px;
}
body.rm-site #tab-description ul {
	list-style: none !important;
	margin: 0 0 1.2em;
	padding: 0;
}
body.rm-site #tab-description ul li {
	position: relative;
	list-style: none !important;
	width: auto;
	padding: 0 0 0 22px;
	margin: 0 0 8px;
	background: none;
	border: 0;
	text-align: left;
}
body.rm-site #tab-description ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 8px;
	height: 8px;
	background: var(--rm-naranja);
}
body.rm-site #tab-description table { margin: 0 0 1.5em; }
@media screen and (max-width: 767px) {
	body.rm-site #tab-description table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
body.rm-site #tab-description table td:first-child { color: var(--rm-negro); font-weight: 500; }

/* Productos relacionados */
body.rm-site .related.products,
body.rm-site .upsells.products {
	clear: both;
	padding-top: 100px;
}
body.rm-site .related.products > h2,
body.rm-site .upsells.products > h2 {
	font-size: clamp(36px, 4.4vw, 64px);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--rm-naranja);
	margin: 0 0 40px;
}

/* Avisos de WooCommerce */
body.rm-site .woocommerce-message,
body.rm-site .woocommerce-info,
body.rm-site .woocommerce-error {
	border: 0;
	border-left: 3px solid var(--rm-naranja);
	background: var(--rm-fondo);
	color: var(--rm-negro);
	padding: 16px 20px;
	margin: 0 0 32px;
	list-style: none;
	font-size: 15px;
}

/* --- Responsive ---------------------------------------------------------- */
@media screen and (max-width: 1100px) {
	body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-4,
	body.rm-site ul.products.columns-4,
	body.rm-site ul.products.columns-5,
	body.rm-site ul.products.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 991px) {
	body.rm-site.sidebar-left #site-content,
	body.rm-site.sidebar-right #site-content,
	body.rm-site.sidebar-left #sidebar,
	body.rm-site.sidebar-right #sidebar { width: 100%; float: none; }
	/* en tablet/móvil el buscador y categorías van antes de los productos */
	body.rm-site.woocommerce-page.sidebar-left #content-wrap { display: flex; flex-direction: column; }
	body.rm-site.woocommerce-page.sidebar-left #sidebar { display: block; order: -1; margin: 0 0 32px; }
	/* en móvil solo el buscador; las categorías ya están en el menú */
	body.rm-site.woocommerce-page #sidebar .widget:not(.dgwt-wcas-widget) { display: none; }
	body.rm-site.woocommerce-page #sidebar .widget { margin-bottom: 0; }
	body.rm-site ul.products,
	body.rm-site ul.products.columns-3,
	body.rm-site ul.products.columns-4,
	body.rm-site.woocommerce-page .content-woocommerce ul.products,
	body.rm-site.woocommerce-page .content-woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
	body.rm-site .woo-single-post-class .images,
	body.rm-site .woo-single-post-class .woocommerce-product-gallery,
	body.rm-site .woo-single-post-class .summary { width: 100%; float: none; }
	body.rm-site .woo-single-post-class .summary { margin-top: 32px; }
	body.rm-site .woo-single-post-class .woocommerce-tabs { padding-top: 56px; }
	body.rm-site .related.products { padding-top: 72px; }
}
@media screen and (max-width: 479px) {
	body.rm-site ul.products,
	body.rm-site ul.products.columns-2,
	body.rm-site ul.products.columns-3,
	body.rm-site ul.products.columns-4 { gap: 32px 14px; }
	body.rm-site ul.products li h2,
	body.rm-site ul.products li .woocommerce-loop-product__title { font-size: 16px; }
	body.rm-site ul.products li.product-category .woocommerce-loop-category__title { font-size: 19px; }
	body.rm-site .cat-description { font-size: 14px; }
}
