.col_product
{
	width:30%;
	display:inline-block;
	margin-right:1%;
	margin-bottom:15px;
	vertical-align:top;
	box-sizing: border-box;
}

/* Override para cuando está dentro de un contenedor flexbox */
#res_products .col_product,
.row_products .col_product,
.row_products .row .col_product {
	display: flex !important;
	vertical-align: initial !important;
}

.col_product h3
{
	font-size:14px;
	line-height:20px;
	font-weight:300;
	margin-top:20px;
}

.elementor img {
    border-radius: 5px !important;
}

.col_product .product_picture
{
	min-height:230px;
	text-align:center;
	/* border:1px solid #eaeaea; */
}

.col_product .product_picture img
{
	max-height:350px;
    border-radius: 5px;
}

#single-product #col_left
{
    margin-right: 20px;
	width: calc(50% - 20px);
	display:inline-block;
}

#single-product #product_image_details img
{
	max-height:90px;
	margin-right:5px;
    border-radius: 5px;
}

#single-product #product_image img
{
    border-radius: 5px;
}

#single-product #product_info
{
	width:49%;
	display:inline-block;
	vertical-align:top;
}

#single-product #product_info h3, #single-product #product_info p, #single-product #product_info .form-control, #single-product #product_info #product-price, #single-product #product_info #product-price-default
{
	margin-left:30px;

}

#single-product #product_info #product-price
{
	color:#44aa66;
		font-size:30px;
		display:inline-block;
}

#single-product #product_info #product-price-default
{
	color:#00AEEF;
		font-size:30px;
		display:inline-block;
}

.img-responsive
{
	max-width:100%;
}

button.add-to-cart, button.add-to-cart-custom
{
	margin-left:30px;
	padding:15px 30px;
	background:#000;
	color:#fff;
	border:0px;
	margin-top:30px;
    border-radius: 5px;
}

#ficha_tecnica
{
	margin-left:0px;
}

#ficha_tecnica label
{
	color:#111;
	font-weight:bold;
	clear:both;
	width:100%;
	display:block;
	margin-top:20px;
}


.family-list
{
	list-style:none;
	text-align:center;
	margin-bottom:20px !important;
}

.family-list li
{
	display:inline-block;
	margin-right:30px;
}



.product_picture{
	margin-bottom:20px;
}

.product_title
{
	height:20px;
}

.product_title h3
{
	font-size:20px;
    width: 80%; display:
    inline-block;
    margin-top: 15px;
}

.product_title
{
	height:fit-content;
}

#single-product label
{
	clear:both;
	display:block;
	color: #111;
    border-bottom: 3px solid #111;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

.filtro_sidebar
{
	margin:15px;
	border:1px solid #eaeaea;
    border-radius: 5px;
	padding:15px;
    box-shadow: 4px 4px 6px -2px #eaeaea;
}

.filtro_sidebar ul{
	
	list-style:none !important;
	margin:0px !important;
	padding:0px !important;
}



.category-list
{
	list-style:none;
	margin-top:10px;
	text-align:center;
}

.category-list li
{
	display:inline-block;
	margin-right:30px;
}

.category-list li.active
{
	border-bottom:1px solid #222;
}

.category-list h3
{
	font-size:12px;
}


.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
}

.table th,
.table td {
  padding: 0.75rem !important;
  vertical-align: top;
  border-top: 1px solid #eceeef !important;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #eceeef;
}

.table tbody + tbody {
  border-top: 2px solid #eceeef;
}

.table .table {
  background-color: #fff;
}

.table-sm th,
.table-sm td {
  padding: 0.3rem;
}

.table-bordered {
  border: 1px solid #eceeef;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #eceeef;
}

.table-bordered thead th,
.table-bordered thead td {
  border-bottom-width: 2px;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-active,
.table-active > th,
.table-active > td {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-hover .table-active:hover > td,
.table-hover .table-active:hover > th {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-success,
.table-success > th,
.table-success > td {
  background-color: #dff0d8;
}

.table-hover .table-success:hover {
  background-color: #d0e9c6;
}

.table-hover .table-success:hover > td,
.table-hover .table-success:hover > th {
  background-color: #d0e9c6;
}

.table-info,
.table-info > th,
.table-info > td {
  background-color: #d9edf7;
}

.table-hover .table-info:hover {
  background-color: #c4e3f3;
}

.table-hover .table-info:hover > td,
.table-hover .table-info:hover > th {
  background-color: #c4e3f3;
}

.table-warning,
.table-warning > th,
.table-warning > td {
  background-color: #fcf8e3;
}

.table-hover .table-warning:hover {
  background-color: #faf2cc;
}

.table-hover .table-warning:hover > td,
.table-hover .table-warning:hover > th {
  background-color: #faf2cc;
}

.table-danger,
.table-danger > th,
.table-danger > td {
  background-color: #f2dede;
}

.table-hover .table-danger:hover {
  background-color: #ebcccc;
}

.table-hover .table-danger:hover > td,
.table-hover .table-danger:hover > th {
  background-color: #ebcccc;
}

.thead-inverse th {
  color: #fff;
  background-color: #292b2c;
}

.thead-default th {
  color: #464a4c;
  background-color: #eceeef;
}

.table-inverse {
  color: #fff;
  background-color: #292b2c;
}

.table-inverse th,
.table-inverse td,
.table-inverse thead th {
  border-color: #fff;
}

.table-inverse.table-bordered {
  border: 0;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.table-responsive.table-bordered {
  border: 0;
}

.opcion_variante, .ver_mas_ficha 
{
	
	display:inline-block;
    border-radius: 5px;
	background:#eaeaea;
	padding:3px 10px;
	font-size:12px;
	color:#333;
	margin-right:10px;
	cursor:pointer;
	width:100px;
	text-align:center;
	margin-bottom:10px;
}

.ver_mas_ficha {
    background:#111;
	color:#fff;
    padding: 10px 10px;
    font-size: 16px;
    width:fit-content;
    border: none;
    margin: 0;
}

.opcion_variante.active
{
	
	background:#111;
	color:#fff;
	
}

.selector-variantes
{
	margin-bottom:30px;
}


.opcion_variante_configurador
{
	
	display:inline-block;

	background:#eaeaea;
	padding:3px 10px;
	font-size:12px;
	color:#333;
	margin-right:10px;
	cursor:pointer;
	width:100px;
	text-align:center;
	margin-bottom:10px;
}
.opcion_variante_configurador.active
{
	
	background:#111;
	color:#fff;
	
}

.seleccion_rango, .seleccion_cristal
{
	margin-bottom:30px;
}

.sel_componente
{
	background: #eaeaea;
    border: 0px;
    color: #111;
    padding: 5px 50px;
    border-left: 3px solid;
	font-size:14px;
}

#single-product p
{
	color:#111;
	font-size:13px;
	line-height:16px;
	margin-bottom:30px;
}

.item_familia
{
	display:inline-block;
	position: relative;
	
}

/* Grid de familias (home catálogo): 3 por fila en desktop */
.family-list-image{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 10px 0 0 0;
}

.family-list-image .item_familia{
    display: block;
    width: 100%;
}

.item_familia .item-familia-titulo {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 87%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.item_familia img
{
    width: 100% !important;
    max-width: 100% !important;
    height: 280px;
    object-fit: cover;
    border-radius: 10px !important;
	border: 4px solid #fff !important;
}

.family-list-image .item_familia a{
    display: block;
    width: 100%;
}

.family-list-image .item_familia{
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.family-list-image .item_familia img{
    border: 0 !important;
    border-radius: 0 !important;
}

.item_familia .item-familia-titulo {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
}

@media (max-width: 980px){
    .family-list-image{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .item_familia img{
        height: 200px;
    }
}

@media (max-width: 560px){
    .family-list-image{
        grid-template-columns: 1fr;
    }
}
.family-list a, .family-list-image a{
	
	color:#111;
	font-weight:bold;
}

.filtro_sidebar h3
{
	clear:both;
	display:block;
	color: #111;
    border-bottom: 3px solid #111;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}


.filtro_sidebar li
{
	clear:both;
	display:block;
	color: #111;
    font-size: 14px;
}

.row_product
{
	height:150px;
	clear:both;
	border-bottom:1px solid #aaa;
	margin-left:10%;
	padding-top:10px;
	
}

.row_product_2
{
	min-height:60px;
	clear:both;
	border-bottom:1px solid #aaa;
	margin-left:10%;
	padding:15px 0;
    color: black;
    font-weight: bold;
}

.row_product .product_picture, .row_accesorio .product_picture
{
	width:15%;
	float:left;
	text-align:center;
	margin-bottom: 10px;
}

.row_product .product_picture img
{
	max-height:120px;
	
}

.row_product .product_info, .row_accesorio .product_info
{
	width:54%;
	float:left;
}

.row_product .product_price, .row_accesorio .product_price
{
	width:7%;
	float:left;
	text-align:right;
	font-weight:bold;
	color:#222;
}

.row_product .product_quantity, .row_accesorio .product_quantity, .row_accesorio .product_buttons
{
	width:10%;
	float:left;
	margin-bottom: 0;
	text-align:right;
	font-weight:bold;
	color:#222;
}

input[type=number]:not(.elementor-field).update_quantity {
	margin-bottom: 0;
}

.row_accesorio
{
	clear:both;
	border-bottom:1px solid #aaa;
	margin-left:10%;
	padding-top:10px;
	height:90px;
	
}

.row_accesorio h3{
	font-size:14px;
}

.row_accesorio .product_info{
	font-size:12px;
}

.row-100 {
    width: 100%;
}

.col-30 {
    width: 30%;
}

.col-50 {
    width: 50%;
}

.col-70 {
    width: 70%;
}

.row-editando-carrito {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.actions-editando-carrito-container {
	display: flex;
}

.msg-editando-carrito {
    font-size: 15px;
    width: fit-content;
    margin: 0;
    background-color: orange;
    color: white;
    border-radius: 5px 0 0 5px;
    padding: 5px;
	margin-left: 15px;
}

.actualizar-precios, .elimina-producto, .elimina-producto-custom, .limpia-datos, .muestra-precios, .guarda-carrito-btn, .cargar-carrito {
	margin: 20px 0;
	padding: 5px 10px;
	float: right;
	background-color: black;
	border-radius: 3px;
	color: white;
    border: none;
}

.actualizar_precios_container {
	display:flex;
	width:100%;
	justify-content: end;
}

.muestra-precios, .guarda-carrito-btn, .cargar-carrito {
    color:#111;
    background:#eaeaea;
    border: none;
    margin-left: 10px;
}

.load {
    color: white;
    background: black;
}

.guarda-carrito-btn {
    padding: 10px 15px;
}

.tooltip{
    position: relative;
    display: inline-block;  
}
.tooltip .tooltip-text {
    visibility: hidden;
    width:140px;
    background-color: #071e26;
    border-radius: 25px;
    color: #fff;
    text-align: center;
    padding: 6px;
    position: absolute;
    top: -30px;
    z-index: 1;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
}

.elimina-producto, .elimina-producto-custom {
	font-size: 12px;
	width: 5%;
	margin: 0;
}

.carritos-guardados-container {
	width: 100%;
	margin-top: 50px;
	margin-bottom: 50px;
	text-align: right;
}

.row-carrito-guardado {
	background-color: aliceblue;
	border-radius: 10px;
	padding: 15px 10px 0 0;
	margin-bottom: 20px;
}

.info-carrito-guardado {
	display: flex;
	align-items: center;
	justify-content: right;
}

.text-carrito-guardado {
	width: 50%;
	margin: 0;
}

#brazos_seleccionables input[type=number], #productos_complementarios  input[type=number]
{
	width:60px;
}

#datos_pedido
{
	font-size:12px;
	width: calc(26% - 60px);
	margin-right: 60px;
	float:right;
	height:100%;
	min-height:100vh;
}


#datos_pedido h3
{
	font-size:18px;
	margin-top:30px;
}

#desglose_pedido {
	width:70%;
	float:left;
	height:100%;
	min-height:80vh;
}

.submit_form_button
{
	color:#fff;
	background:#000;
	padding:5px 20px;
	border:0px;
	border-radius: 3px;
}

.notification-icon {
    background-color: red;
    font-size: 14px;
    border-radius: 5px;
    padding: 1px;
    width: 14px;
    height: 14px;
    position: absolute;
    display: block;
    top: 0;
    right: 9px;
    color: white;
    text-align: center;
}


/* STRUCTURE */

.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column; 
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 20px;
}

#formContent {
  -webkit-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  position: relative;
  padding: 0px;
  -webkit-box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
  box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
  text-align: center;
}

#formFooter {
  background-color: #f6f6f6;
  border-top: 1px solid #dce8f1;
  padding: 25px;
  text-align: center;
  -webkit-border-radius: 0 0 10px 10px;
  border-radius: 0 0 10px 10px;
}

#relacionados {
    margin-top: 20px;
}

#relacionados div {
    display: flex;
    flex-wrap: wrap;
}

#relacionados li
{
    border-radius: 5px;
    width: calc(16.6% - 72px);
	margin:15px;
	border:1px solid #eee;
	padding:20px;
    display: flex;
    justify-content: center;
    font-size:11px;
}

#relacionados a
{
	max-width:150px;
	display:inline-block;
	text-decoration:none;
	text-align:center;
	color:#111;
}

#relacionados img
{
	max-width:125px;
	border-radius:5px;
}

#relacionados ul{
	
	list-style:none;
	
}

.product_breadcrumb
{
	font-size:12px;
	margin-bottom:20px;
	margin-left:30px;
}

.product_breadcrumb a{
	text-decoration:none;
}

.nodisponible
{
	opacity:0.5;
}

.inventory-disclaimer {
    background-color: darkorange;
    border-radius: 5px;
    padding: 6px;
    color: white !important;
}

.inventory-disclaimer i {
    margin-left: 4px;
    margin-right: 4px;
}

.custom-form {
    margin: 100px;
}

.custom-form h3 {
    display: flex;
	width: 100%;
}

.custom-form input[type="text"] {
    width: 40%;
}

.custom-form input[type="number"] {
	width: 10%;
}

.custom-form input[type="text"][name="descripcion"],
.custom-form input[type="text"][name="linea_referencia"] {
    width: 50%; /* Ajusta el ancho según sea necesario */
    /* Otros estilos para este input en particular */
}

.custom-form button[type="submit"] {
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 3px;
    /* Otros estilos para el botón de enviar */
}

.separador.s {
	height: 75px;
}

.separador.md {
	height: 150px;
}

/* Estilos para el modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
	animation: fadeIn 0.3s ease;
  }
  
  .modal .modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	height: 200px;
	min-width: 200px;
    max-width: 300px;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
  }

  .modal .modal-content .text-container {
	height: 80%;
	text-align: center;
	display: flex;
	width: 100%;
    align-items: center;
    justify-content: center;
  }

  .modal .modal-content p {
	height: auto;
	width: auto;
  }
  
  .modal .buttons-container {
	text-align: end;
	height: 15%;
	min-height: 50px;
    padding-top: 22px;
	border-top: 1px solid lightgray;
  }

  /* Agregar una animación de desvanecimiento */
  @keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
  }

/* ============================================
   MODAL DE FILTROS - Estilos específicos
   ============================================ */

.modal-filtros {
    z-index: 1000 !important;
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-filtros-content {
    max-width: 95% !important;
    width: 1100px !important;
    height: auto !important;
    max-height: 86vh !important;
    margin: 4% auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.close-modal-filtros {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.close-modal-filtros:hover {
    transform: rotate(90deg);
    opacity: 0.9;
    background: rgba(255, 255, 255, 1);
}

.modal-filtros-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    /* Sin header: dejamos más alto el body */
    max-height: calc(86vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f7fb;
}

/* “Tarjeta” del filtro */
.modal-filtros-body .filtro-columna .filtro_sidebar {
    background: #ffffff !important;
}

.modal-filtros-body .filtro-columna .filtro_sidebar h3 {
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
}

/* Opciones como chips (en vez de lista básica) */
.modal-filtros-body .filtro-columna .filtro_sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.modal-filtros-body .filtro-columna .filtro_sidebar li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-filtros-body .filtro-opcion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #e5e9f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-filtros-body .filtro-opcion:hover {
    background: #eef6ff;
    border-color: rgba(0, 147, 209, 0.35);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
    transform: translateY(-1px);
}

.modal-filtros-body .filtro-opcion input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modal-filtros-body .filtro-opcion span {
    display: inline-block;
}

.modal-filtros-body .filtro-opcion input[type="radio"]:checked + span {
    color: #ffffff;
    font-weight: 700;
}

.modal-filtros-body .filtro-opcion:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #0093d1 0%, #0077aa 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 22px rgba(0, 147, 209, 0.25);
}

/* Fallback (sin :has) */
@supports not selector(:has(*)) {
    .modal-filtros-body .filtro-opcion input[type="radio"]:checked + span {
        background: linear-gradient(135deg, #0093d1 0%, #0077aa 100%);
        padding: 8px 10px;
        border-radius: 999px;
        margin: -8px -10px;
        display: inline-block;
    }
}

/* Scrollbar personalizado para el body del modal */
.modal-filtros-body::-webkit-scrollbar {
    width: 10px;
}

.modal-filtros-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-filtros-body::-webkit-scrollbar-thumb {
    background: #0093d1;
    border-radius: 10px;
}

.modal-filtros-body::-webkit-scrollbar-thumb:hover {
    background: #007ba8;
}

/* Cada filtro en su propia columna */
.filtro-columna {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.filtro-columna .filtro_sidebar {
    height: 100%;
    margin: 0 !important;
    max-height: 380px;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e9f0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    padding: 14px !important;
    border-radius: 10px !important;
}

.filtro-columna .filtro_sidebar h3 {
    flex-shrink: 0;
    font-size: 15px !important;
    margin-bottom: 10px !important;
}

.filtro-columna .filtro_sidebar ul {
    flex: 1;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scrollbar personalizado para cada filtro */
.filtro-columna .filtro_sidebar::-webkit-scrollbar {
    width: 8px;
}

.filtro-columna .filtro_sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filtro-columna .filtro_sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.filtro-columna .filtro_sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.modal-filtros-footer {
    padding: 14px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cerrar-filtros {
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* Responsive para el modal de filtros */
@media screen and (max-width: 768px) {
    .modal-filtros-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 90vh !important;
        margin: 2% auto !important;
    }
    
    .modal-filtros-body {
        grid-template-columns: 1fr !important;
        padding: 20px;
        gap: 15px;
    }
    
    .close-modal-filtros {
        top: 12px;
        right: 12px;
    }
    
    .mostrar-filtros-categorias {
        left: 10px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

  .spinner {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
  }

  .spinner .spinner-text {
	background-color: #6fa9ee;
    font-weight: 500;
    padding: 10px;
    border-radius: 7px;
    font-size: 16px;
    color: white;
    width: 156px;
    height: 100px;
    position: absolute;
    top: 46%;
    left: 50%;
    margin-top: -25px;
    margin-left: -76px;

  }

  .spinner .spinner-content {
	border: 8px solid rgba(221, 220, 220, 0.1);
	border-left-color: #ffffff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -20px;
	margin-left: -20px;
  }
  
  @keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
  }
  
.custom-button {
	background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: lightgray 2px 2px 5px !important;
	transition: all 1s ease;
}

.custom-button:hover {
	background-color: black;
	color: white;
}

.custom-button.primary {
	background-color: #3b8ced;
	color: white;
}

.custom-button.primary:hover {
	color: white;
}

.custom-button.success {
	background-color: #58a858;
	color: white;
}

.custom-button.success:hover {
	color: white;
}

.mostrar-filtros-categorias {
    display: inline-flex !important; /* Visible para abrir el modal */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background-color: #0093d1;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 999;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mostrar-filtros-categorias:hover {
    background-color: #007ba8;
    transform: translateY(-50%) translateX(5px);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
}

.mostrar-filtros-categorias i {
    color: white !important;
    display: inline-block !important;
    font-size: 16px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin-right: 8px;
    width: 16px !important;
    text-align: center !important;
    font-style: normal !important;
}

/* Asegurar que el icono de Font Awesome se muestre correctamente */
.mostrar-filtros-categorias i.fas.fa-filter,
.mostrar-filtros-categorias i.fa.fa-filter {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Respaldo con símbolo Unicode si Font Awesome no carga */
.mostrar-filtros-categorias i::before {
    content: "⚙" !important;
    font-family: sans-serif !important;
    font-weight: normal !important;
}

.mostrar-filtros-categorias i.fas.fa-filter::before,
.mostrar-filtros-categorias i.fa.fa-filter::before {
    content: "\f0b0" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
}

.mostrar-filtros-categorias p {
    margin: 0;
}

/* El sidebar ya no se usa, el contenido siempre ocupa todo el ancho */
/* Asegurar que el contenido esté bien centrado y alineado */
.aticommerce-catalog-container .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row-products-col {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    clear: both !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Asegurar que no haya desplazamientos por el botón flotante */
.aticommerce-catalog-container {
    position: relative;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.row-products-col.configurador {
    width:100%;
    float:none;
}

#accesorios h3, #tiradores h3, #productos_complementarios h3, #brazos_seleccionables h3 {
    margin-top: 30px;
}

#accesorios ul, #tiradores ul, #productos_complementarios ul, #brazos_seleccionables ul {
    margin-left: 30px;
}

#relacionados li {
    width: calc(20% - 62px);
    padding: 15px;
}

#relacionados a {
    width: 100%;
}

#relacionados img
{
	max-width:100%;
	border-radius:5px;
}

#res_products .col_product {
    width: calc(25% - 15px) !important;
    flex: 0 0 calc(25% - 15px) !important;
}

#res_products.bigger {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 20px !important;
}

#res_products.big .col_product,
#res_products.bigger .col_product {
    width: calc(25% - 15px) !important;
    flex: 0 0 calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
}

#datos_direcciones input {
    width: 100%;
}

.updated-selector-brazos {
    flex-direction: row;
}

.updated-selector-brazos .selector-brazo {
    width: calc(50% - 20px);
}

.updated-selector-brazos .selector-brazo span.active {
    border: 2px solid #00AEEF;
}

@media only screen and (min-width: 941px) { 
    .mostrar-filtros-categorias {
        display: inline-block !important; /* Siempre visible en desktop */
    }
}

@media screen and (max-width: 940px) and (orientation: landscape) {

    .item_familia .item-familia-titulo {
        top: 84%;
    }

    #res_products .col_product, #res_products.big .col_product {
        width: calc(33.33% - 14px) !important;
        flex: 0 0 calc(33.33% - 14px) !important;
        min-width: calc(33.33% - 14px) !important;
        max-width: calc(33.33% - 14px) !important;
    }

    .product_title h3 {
        margin-top: 10px;
    }

    .row-products-col {
        width: 100%;
        float: none;
    }

    .row_products {
        position: relative;
        padding: 10px 20px;
    }
    
    .row_products .row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .row_products .row h3 {
        width: 100%;
        font-size: 22px;
        margin: 0 0 15px 0;
        border-bottom: 2px solid #0093d1;
        padding-bottom: 8px;
    }

    .row_products .col_product,
    .row_products .row .col_product {
        width: calc(50% - 7.5px);
        margin-right: 0 !important;
    }

    .row_products .product_picture {
        min-height: 175px;
    }

    /* Los filtros ahora están en un modal, no en sidebar */
    .mostrar-filtros-categorias {
        display: inline-block;
    }

    .category-list {
        margin: 0 !important;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-list li {
        width: calc(20% - 30px);
        margin: 0 15px 0 15px;
    }

    .category-list li img {
        height: 120px !important;
        object-fit: cover;
        width: 100%;
    }

    .modal {
        z-index: 999;
    }

    .modal .modal-content {
		margin: 10% auto;
	}
	
    .custom-form {
        margin: 20px;
		margin-top: 100px;
    }

    .custom-form input[type="text"],
    .custom-form input[type="number"],
    .custom-form button[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .custom-form input[type="text"],
    .custom-form input[type="number"],
	.custom-form input[type="text"][name="descripcion"],
	.custom-form input[type="text"][name="linea_referencia"] {
        width: 100%; /* 100% del ancho en pantallas pequeñas */
        display: block;
        margin-right: 0;
    }

	#datos_pedido {
		float: none;
		width: 100%;
	}

	#datos_pedido input[type="text"][name="ref_cliente"] {
		width: 100%;
	}

	#desglose_pedido {
		width:100%;
		float:none;
	}

    .row_product, .row_product_2 {
        margin: 0;
    }

    .row_product .product_picture {
        width: 16%;
    }

    .row_product .product_info {
        width: 47%;
    }

    .row_product .product_info h3 {
        font-size: larger;
    }

    .row_product .product_quantity {
        width: 8%;
    }

    .row_product .product_price {
        width: 11%;
    }

    .row_accesorio {
        margin-left: 5%;
    }

    .row_accesorio .product_info {
        width: 43%;
    }

    .row_accesorio .product_quantity {
        width: 11%;
    }

    .row_accesorio .product_price {
        width: 12%;
    }

    .row-editando-carrito {
        flex-direction: row !important;
    }

    .row-editando-carrito .actions-editando-carrito-container {
        width: 70%;
    }

/* 	.row_product, .row_product_2 {
		margin: 0 10px;
	}

	.row_accesorio {
		margin-left: 12%;
    	margin-right: 10px;
	}

	.row_product, .row_accesorio {
		margin-bottom: 20px;
	}

	.row_product .product_picture, .row_accesorio .product_picture, .row_product .product_info, .row_accesorio .product_info {
		width: 100%;
	}

	.row_product .product_quantity, .row_accesorio .product_quantity,
	.row_product .product_price, .row_accesorio .product_price {
		width: 30%;
		text-align: left;
	}

	.row_product .elimina-producto, .row_accesorio .elimina-producto,
	.row_product_2 .elimina-producto {
		width: 10%;
		margin-bottom: 66px;
	}

	.actualizar_precios_container {
		justify-content: left;
	}

	.row_product .product_picture img {
		min-width: 160px;
		min-height: 130px;
	}

	.row_accesorio .product_picture img {
		min-width: 90px;
		min-height: 60px;
	} */

	.info-carrito-guardado {
		flex-direction: column;
	}
	
	.text-carrito-guardado {
		width: 100%;
	}

	.row-editando-carrito {
		flex-direction: column;	
	}

	.actions-editando-carrito-container {
		width: 100%;
	}

	.msg-editando-carrito {
		margin-left: 0;
	}

	#datos_direcciones input {
		width: 100%;
	}

	#datos_cliente input {
		width: 100%;
	}

    .selector-variantes-container {
        width: 100%;
    }

    .selector-variantes-container .opcion_variante {
        margin-left: 3px;
        margin-right: 3px;
        width: calc(33% - 25px);
    }

    #accesorios ul, #tiradores ul, #productos_complementarios ul, #brazos_seleccionables ul {
        margin-left: 0;
    }

    #accesorios ul li, #tiradores ul li, #productos_complementarios ul li, #brazos_seleccionables ul li {
        width: 100% !important;
    }

    .selector-variantes-container {
        width: 100%;
    }

    .selector-variantes-container .opcion_variante {
        margin-left: 3px;
        margin-right: 3px;
        width: calc(25% - 25px);
    }

    #product_image {
        width: 100%;
    }

    #product_image img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }

    #product_image_details {
        width: 100%;
    }

    #product_image_details img {
        height: 90px;
        margin-left: 2px !important;
        margin-right: 2px !important;
        object-fit: cover;
        width: calc(25% - 4px);
    }

    .selector-variantes[data-filter=color_perfil_es],
    .selector-variantes[data-filter=acabado_cristal_es] {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .selector-variantes[data-filter=color_perfil_es] .opcion_variante,
    .selector-variantes[data-filter=acabado_cristal_es] .opcion_variante {
        margin-bottom: 35px;
    }
}

@media only screen and (max-width: 1100px) {
    .show-mobile-logo .mobile-branding img.mobile-logo, .show-mobile-logo.show-device-logo .mobile-branding img.mobile-logo, .show-device-logo .mobile-branding img {
        max-width: 24% !important;
    }
}

@media only screen and (max-width: 600px) {

    .show-mobile-logo .mobile-branding img.mobile-logo, .show-mobile-logo.show-device-logo .mobile-branding img.mobile-logo, .show-device-logo .mobile-branding img {
        max-width: 43% !important;
    }

    #relacionados li {
        width: calc(50% - 62px);
        padding: 15px;
    }

    #relacionados a {
        width: 100%;
    }

    #res_products .row > h3 {
        margin-top: 25px;
    }

    #res_products .col_product, #res_products.big .col_product {
        width: 100%;
        margin-bottom: 5px;
    }

    #res_products .col_product .product_title {
        height: fit-content;
    }

    .opcion_variante[data-name=color_perfil_es], .opcion_variante[data-name=acabado_cristal_es] {
        margin-bottom: 25px;
        margin-left: 3% !important;
        margin-right: 3% !important;
    }

    #accesorios, #tiradores, #brazos_seleccionables {
        margin-top: 50px;
    }

    #accesorios ul, #tiradores ul, #productos_complementarios ul, #brazos_seleccionables ul {
        margin-left: 0;
    }

    #accesorios li, #tiradores li, #productos_complementarios li, #brazos_seleccionables li {
        width: 100% !important;
    }

    #single-product #col_left {
        width: calc(100% - 20px);
    }

    #product_image {
        width: calc(100vw - 10vw);
    }

    #product_image img {
        height: 30vh;
        width: 100%;
        object-fit: cover;
    }

    #product_image_details {
        width: calc(100vw - 10vw);
    }

    #product_image_details img {
        height: 90px;
        margin-left: 2px !important;
        margin-right: 2px !important;
        object-fit: cover;
        width: calc(33% - 4px);
    }

    #iconos {
        width: calc(100vw - 10vw);
    }

    #iconos img {
        width: 20%;
        display: inline-block;
    }

    .selector-variantes-container {
        width: calc(100vw - 10vw);
    }

    .selector-variantes-container .opcion_variante {
        margin-left: 3px;
        margin-right: 3px;
        width: calc(33% - 25px);
    }

    #productos_complementarios {
        width: calc(100vw - 10vw);
    }

    #productos_complementarios ul {
        margin-left: 0 !important;
    }

    #product_info {
        width: calc(100% - 20px) !important;
    }

    #product_info .product_breadcrumb {
        margin: 0 0 10px 0;
    }

    /* Los filtros ahora están en un modal, no en sidebar */

    .col-product h3 {
        position: relative;
    }

    .row-products-col {
        width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .aticommerce-catalog-container .row {
        width: 100% !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .row_products {
        position: relative;
        padding: 10px 20px;
    }
    
    .row_products .row {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .row_products .row h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* En móvil: 1 columna */
    .row_products .col_product,
    .row_products .row .col_product {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .mostrar-filtros-categorias {
        display: block;
    }

    .item_familia {
        width: 100%;
    }

    .item_familia img {
        min-width: 100% !important;
        /* min-width: calc(90vw - 10vw) !important; */
    }

    .family-list {
        margin: 0 !important;
        margin-bottom: 15px !important;
    }

    .family-list li {
        width: 50%;
        font-size: 14px;
        margin: 0;
    }

    .item_familia .item-familia-titulo {
        top: 87%;
    }

    .category-list {
        margin: 0 !important;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-list li {
        width: calc(50% - 30px);
        margin: 0 15px 0 15px;
    }

    .category-list li img {
        height: 120px !important;
        object-fit: cover;
        width: 100%;
    }

	.modal .modal-content {
		margin: 80% auto;
	}

/* Estilos para hacer el catálogo full width cuando se navega por categorías */
/* Solo aplicar cuando hay query vars de familia o categoria (navegación de catálogo) */
/* Contenedor del catálogo - full width cuando está en navegación de categorías */
/* Hacer que el contenedor se salga del .wf-wrap que tiene width: 1250px */
/* Usar la misma técnica que el tema usa para .alignfull */
.content .aticommerce-catalog-container.full-width-wrap,
.wf-wrap .aticommerce-catalog-container.full-width-wrap,
#main .wf-wrap .content .aticommerce-catalog-container.full-width-wrap {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 40px;
	padding-right: 40px;
	box-sizing: border-box;
	position: relative;
	/* Asegurar que el contenedor mantenga su espacio en el flujo del documento */
	clear: both;
	overflow: visible;
}

/* Asegurar que el contenido dentro no cause problemas de layout */
.content .aticommerce-catalog-container.full-width-wrap > * {
	position: relative;
}

/* En la ficha de producto individual, mantener el ancho normal del contenedor */
body.single-producto .aticommerce-catalog-container,
body.post-type-producto .aticommerce-catalog-container,
#single-product .aticommerce-catalog-container,
body.single-producto .aticommerce-catalog-container.full-width-wrap,
body.post-type-producto .aticommerce-catalog-container.full-width-wrap,
#single-product .aticommerce-catalog-container.full-width-wrap {
	width: auto;
	max-width: inherit;
	margin-left: inherit;
	margin-right: inherit;
	left: auto;
	right: auto;
	padding-left: inherit;
	padding-right: inherit;
	position: relative;
}
	
    .custom-form {
        margin: 20px;
		margin-top: 100px;
    }

    .custom-form input[type="text"],
    .custom-form input[type="number"],
    .custom-form button[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .custom-form input[type="text"],
    .custom-form input[type="number"],
	.custom-form input[type="text"][name="descripcion"],
	.custom-form input[type="text"][name="linea_referencia"] {
        width: 100%; /* 100% del ancho en pantallas pequeñas */
        display: block;
        margin-right: 0;
    }

	#datos_pedido {
		float: none;
		width: 100%;
	}

	#datos_pedido input[type="text"][name="ref_cliente"] {
		width: 100%;
	}

	#desglose_pedido {
		width:100%;
		float:none;
	}

	.row_product, .row_product_2 {
		margin: 0 10px;
	}

	.row_accesorio {
		margin-left: 12%;
    	margin-right: 10px;
	}

	.row_product, .row_accesorio {
		margin-bottom: 20px;
	}

	.row_product .product_picture, .row_accesorio .product_picture, .row_product .product_info, .row_accesorio .product_info {
		width: 100%;
	}

	.row_product .product_quantity, .row_accesorio .product_quantity,
	.row_product .product_price, .row_accesorio .product_price {
		width: 30%;
		text-align: left;
	}

	.row_product .elimina-producto,
    .row_accesorio .elimina-producto,
	.row_product_2 .elimina-producto,
    .row_product .elimina-producto-custom,
    .row_accesorio .elimina-producto-custom,
	.row_product_2 .elimina-producto-custom {
		width: 10%;
		margin-bottom: 66px;
	}

	.actualizar_precios_container {
		justify-content: left;
	}

	.row_product .product_picture img {
		min-width: 160px;
		min-height: 130px;
	}

	.row_accesorio .product_picture img {
		min-width: 90px;
		min-height: 60px;
	}

	.info-carrito-guardado {
		flex-direction: column;
	}
	
	.text-carrito-guardado {
		width: 100%;
	}

	.row-editando-carrito {
		flex-direction: column;	
	}

	.actions-editando-carrito-container {
		width: 100%;
	}

	.msg-editando-carrito {
		margin-left: 0;
	}

	#datos_direcciones input {
		width: 100%;
	}

	#datos_cliente input {
		width: 100%;
	}

    .notification-icon {
        left: 7px;
        top: 7px;
    }

    .updated-selector-brazos {
        flex-direction: column;
    }

    .updated-selector-brazos .selector-brazo {
        width: calc(100% - 20px);
        padding-bottom: 15px;
    }

}

/* ============================================
   MEJORAS DE DISEÑO Y USABILIDAD
   ============================================ */

/* Unificación de tipografías */
.aticommerce-catalog-container,
.aticommerce-catalog-container * {
    font-family: var(--the7-base-font-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
}

.aticommerce-catalog-container h1,
.aticommerce-catalog-container h2,
.aticommerce-catalog-container h3,
.aticommerce-catalog-container h4,
.aticommerce-catalog-container h5,
.aticommerce-catalog-container h6 {
    font-family: var(--the7-h1-font-font-family, var(--the7-base-font-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif)) !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Mejoras en los filtros (ahora en modal) */
.filtro_sidebar {
    margin: 0 0 25px 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.filtro_sidebar:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.filtro_sidebar h3 {
    clear: both !important;
    display: block !important;
    color: #333 !important;
    border-bottom: 2px solid #0093d1 !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 10px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro_sidebar ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filtro_sidebar li {
    clear: both !important;
    display: block !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.6;
    margin-bottom: 6px;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filtro_sidebar li:hover {
    background-color: #f0f7fc !important;
    color: #0093d1 !important;
    border-color: #0093d1;
}

.filtro_sidebar li input[type="radio"] {
    margin-right: 12px !important;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    accent-color: #0093d1;
    flex-shrink: 0;
}

/* Estado activo cuando el radio está checked */
.filtro_sidebar li input[type="radio"]:checked {
    accent-color: #0093d1;
}

/* Estilo para el li que contiene un radio checked - usando JavaScript alternativo con clase */
.filtro_sidebar li.active-filter {
    background-color: #0093d1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #0093d1;
}

.filtro_sidebar li.active-filter:hover {
    background-color: #007ba8 !important;
    border-color: #007ba8;
}

/* Mejora en el diseño de productos */
.col_product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex !important;
    flex-direction: column !important;
}

/* Asegurar que el contenido interno se distribuya correctamente */
.col_product .product_picture {
    flex-shrink: 0; /* No reducir la imagen */
}

.col_product .product_title,
.col_product h3 {
    flex-grow: 1; /* Permitir que el título crezca si es necesario */
    display: flex;
    flex-direction: column;
}

/* Asegurar que los títulos tengan un espacio mínimo pero puedan crecer */
.col_product .product_title h3,
.col_product h3 {
    margin-bottom: auto; /* Empujar hacia arriba si hay espacio */
}

.col_product:hover {
    transform: translateY(-4px);
}

.col_product .product_picture {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: background-color 0.2s ease;
}

.col_product:hover .product_picture {
    background-color: #f0f0f0;
}

.col_product h3 {
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin-top: 15px !important;
    color: #333 !important;
}

.col_product .product_title h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    color: #222 !important;
}

/* Mejoras en las listas de familias y categorías */
.family-list {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.family-list li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.family-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.family-list li a:hover {
    transform: translateY(-1px);
    background: #eef6ff;
    border-color: rgba(0, 147, 209, 0.35);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.10);
}

.family-list li.active a {
    background: linear-gradient(135deg, #0093d1 0%, #0077aa 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 14px 28px rgba(0, 147, 209, 0.25);
}

@media (max-width: 980px){
    .family-list{
        justify-content: stretch;
        padding: 12px 12px;
    }
    .family-list li{
        flex: 1 1 calc(50% - 10px);
    }
    .family-list li a{
        width: 100%;
    }
}

@media (max-width: 520px){
    .family-list li{
        flex: 1 1 100%;
    }
}

.category-list {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-list li {
    margin-right: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.category-list li:hover {
    transform: scale(1.05);
}

.category-list li.active {
    border-bottom: 3px solid #0093d1 !important;
}

.category-list h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 10px;
}

/* Mejoras en botones y elementos interactivos */
button.add-to-cart,
button.add-to-cart-custom {
    background: #0093d1 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button.add-to-cart:hover,
button.add-to-cart-custom:hover {
    background: #007ba8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 147, 209, 0.3);
}

/* Mejoras en el contenedor de resultados */
#res_products {
    padding: 20px 0;
}

.row_products {
    padding: 10px 20px;
    display: block;
}

/* Asegurar que #res_products use flexbox para igualar alturas */
#res_products:not(.row) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 20px !important;
}

/* Estilos para .row dentro de .row_products (grifería, repuestos) */
.row_products .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch; /* Cambiado de flex-start a stretch para igualar alturas */
    align-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.row_products .row > h3 {
    width: 100%;
    flex: 1 0 100%;
    flex-basis: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    clear: both;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #0093d1;
    padding-bottom: 10px;
}

/* Distribución y centrado de productos */
.row_products .row .col_product,
.row_products .col_product {
    width: calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    vertical-align: initial !important; /* Eliminar vertical-align cuando usa flexbox */
    flex: 0 0 calc(25% - 15px) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
    align-self: stretch !important; /* Estirar para igualar alturas */
}

/* Ajuste específico para contenedor de resultados */
#res_products {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important; /* Igualar alturas */
    align-content: flex-start !important; /* Alinear contenido al inicio */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#res_products .col_product,
#res_products.big .col_product,
#res_products.bigger .col_product {
    width: calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    flex: 0 0 calc(25% - 15px) !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important; /* Cambiado de left a none para usar flexbox */
    align-self: stretch !important; /* Estirar para igualar alturas */
    box-sizing: border-box !important;
    margin: 0 !important; /* Eliminar cualquier margen que pueda desalinear */
    vertical-align: initial !important; /* Eliminar vertical-align cuando usa flexbox */
}

/* Asegurar que el contenido interno se distribuya correctamente */
#res_products .col_product .product_picture {
    flex-shrink: 0;
}

#res_products .col_product .product_title,
#res_products .col_product h3 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1200px) {
    .row_products .col_product,
    .row_products .row .col_product,
    #res_products .col_product,
    #res_products.big .col_product,
    #res_products.bigger .col_product {
        width: calc(33.33% - 14px) !important;
        flex: 0 0 calc(33.33% - 14px) !important;
    }
}

@media (max-width: 900px) {
    .row_products .col_product,
    .row_products .row .col_product,
    #res_products .col_product,
    #res_products.big .col_product,
    #res_products.bigger .col_product {
        width: calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .row_products {
        padding: 10px;
    }
    .row_products .col_product,
    #res_products .col_product,
    #res_products.big .col_product,
    #res_products.bigger .col_product {
        width: 100%;
    }
}

/* Fix: en desktop, asegurar varias columnas en el catálogo (p.ej. /catalogo/griferia) */
@media (min-width: 941px) {
    /* Asegurar que el contenedor .row use flexbox */
    .row_products .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
    
    #res_products .col_product,
    #res_products.big .col_product,
    #res_products.bigger .col_product,
    .row_products .col_product,
    .row_products .row .col_product {
        width: calc(25% - 15px) !important;
        min-width: calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
        flex: 0 0 calc(25% - 15px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Ajuste de filas tipo lista para que no queden desplazadas */
.row_product,
.row_product_2 {
    margin-left: 0;
    margin-right: 0;
}

/* Mejoras en responsive para filtros */
@media screen and (max-width: 940px) {
    /* Los filtros ahora están en un modal */
    
    .filtro_sidebar {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    .filtro_sidebar h3 {
        font-size: 14px !important;
    }
    
    .filtro_sidebar li {
        font-size: 13px !important;
        padding: 6px 10px;
    }
}

/* Mejoras adicionales de accesibilidad */
.filtro_sidebar li:focus-within {
    outline: 2px solid #0093d1;
    outline-offset: 2px;
}

.col_product a:focus {
    outline: 2px solid #0093d1;
    outline-offset: 4px;
    border-radius: 4px;
}