/* === CONSOLIDADO: no tocar salvo lo que pida Manuel === */

/* Subcategorías del centro: ocultas */
#subcategories {
  display: none !important;
}

/* Menú izquierdo siempre abierto */
.block-categories .collapse {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
}

.block-categories .collapse-icons {
  display: none !important;
}

/* Menú de arriba (producto oculto / CMS desplegable): está en estilos-co.css */

/* Ruta Inicio > categoría: oculta (Catálogo ya no la tiene) */
nav.breadcrumb,
.breadcrumb {
  display: none !important;
}

/* Cabecera de categoría: foto a la izquierda del título, fila fina */
#js-product-list-header .block-category,
#js-product-list-header .card.block-category,
#js-product-list-header .card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.2rem 0.7rem !important;
  margin-bottom: 0.45rem !important;
  border-radius: 12px !important;
  overflow: visible;
}

#js-product-list-header h1 {
  order: 2 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

#js-product-list-header .block-category-inner {
  display: block !important;
  order: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0.6rem 0 0 !important;
  padding: 0 !important;
  float: none !important;
}

#js-product-list-header .block-category-inner:not(:has(.category-cover img)) {
  display: none !important;
  margin: 0 !important;
}

#js-product-list-header .category-cover {
  position: static !important;
  float: none !important;
  display: block !important;
  order: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 0.6rem 0 0 !important;
}

#js-product-list-header #category-description {
  display: none !important;
}

.block-category .category-cover img,
#js-product-list-header .category-cover img {
  display: block !important;
  max-height: 36px !important;
  max-width: 56px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 6px;
}

#js-product-list-top {
  margin-bottom: 0.5rem !important;
}

/* Hueco Nuestra empresa: ahora en modules/cocartorder/views/css/estilos-co.css */

/* Productos por fila: 3 en pantalla media, 4 al ensanchar el contenedor */
@media (min-width: 992px) {
  #js-product-list .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  #js-product-list .product,
  #js-product-list .js-product {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
  }
}

@media (min-width: 1600px) {
  #js-product-list .products {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  #js-product-list .product,
  #js-product-list .js-product {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

/* Tarjetas iguales + redondeadas (sin cambiar colores del tema) */
.product-miniature,
.product-miniature .card,
.js-product-miniature {
  border-radius: 12px !important;
  overflow: hidden !important;
  height: 100%;
  background: transparent !important;
}

.product-miniature .card {
  display: flex !important;
  flex-direction: column !important;
}

#js-product-list .products,
.featured-products .products {
  align-items: stretch !important;
  row-gap: 0.75rem !important;
}

#js-product-list .product,
#js-product-list .js-product,
.featured-products .product {
  display: flex !important;
  margin-bottom: 0 !important;
}

.product-miniature {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

.product-miniature .thumbnail-container {
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.product-miniature a.product-thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  background: #fff !important;
  border-bottom: 1px solid #ccc;
  border-radius: 12px 12px 0 0;
}

.product-miniature a.product-thumbnail img,
.product-miniature .product-thumbnail img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 170px !important;
  object-fit: contain !important;
}

.product-miniature .product-title {
  min-height: 2.6em !important;
  height: 2.6em !important;
  max-height: 2.6em !important;
}

.product-miniature .product-title,
.product-miniature .product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  white-space: normal !important;
  line-height: 1.3;
  color: #000 !important;
  font-weight: 700 !important;
}

.product-miniature .product-description,
.product-miniature .card-body {
  background: #d0d0d0 !important;
  flex: 1 1 auto;
  border-radius: 0;
}

/* Menú izquierdo redondeado */
#left-column .block-categories,
#left-column #search_filters,
#left-column .block,
#left-column .card {
  border-radius: 12px !important;
}

/* Inicio del árbol: Catálogo con foto, como las subcategorías */
.block-categories .category-top-menu > li:first-child > a,
.block-categories a.h6,
.block-categories a.co-catalog-title {
  pointer-events: auto !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

.block-categories .category-top-menu > li:first-child > a::after,
.block-categories a.h6::after,
.block-categories a.co-catalog-title::after {
  content: none !important;
}

.block-categories a.co-catalog-title img,
.block-categories .category-top-menu > li:first-child > a img {
  display: none !important;
}

/* Ordenar por redondeado */
#js-product-list-top .products-sort-order,
#js-product-list-top .select-title,
.products-sort-order .select-title,
.products-sort-order .dropdown-menu {
  border-radius: 12px !important;
}

/* Títulos: no todo mayúsculas */
.product-miniature .product-title,
.product-miniature .product-title a,
#js-product-list .product-title a,
#main h1,
#wrapper h1.h1,
h1[itemprop="name"] {
  text-transform: none !important;
}

/* Vista rápida: solo la primera letra en mayúscula */
.modal.quickview h1,
.modal.quickview .h1,
.quickview h1,
.quickview .h1,
#quickview-modal h1,
#quickview-modal .h1,
[id^="quickview-modal"] h1,
[id^="quickview-modal"] .h1 {
  text-transform: lowercase !important;
}

.modal.quickview h1::first-letter,
.modal.quickview .h1::first-letter,
.quickview h1::first-letter,
.quickview .h1::first-letter,
#quickview-modal h1::first-letter,
#quickview-modal .h1::first-letter,
[id^="quickview-modal"] h1::first-letter,
[id^="quickview-modal"] .h1::first-letter {
  text-transform: uppercase !important;
}

/* Ficha de producto redondeada */
.product-cover,
.product-cover img,
.js-qv-product-cover {
  border-radius: 12px !important;
}

.thumb-container img,
.js-thumb {
  border-radius: 8px !important;
}

.product-variants .radio-label,
.product-variants .input-container label {
  border-radius: 12px !important;
}

/* Ficha producto (pantalla grande): recuadro de descripción redondeado */
@media (min-width: 768px) {
  body#product #product-description-short,
  body#product #description,
  body#product #product-description,
  body#product .product-description,
  body#product .tabs,
  body#product .tabs .tab-content,
  body#product #tab-content {
    border-radius: 12px !important;
    overflow: hidden !important;
  }
}

/* Login: cuadro exterior + campos y botones redondeados */
body#authentication #content,
body#authentication .page-content,
body#authentication .card,
body#password #content,
body#password .page-content,
body#password .card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px !important;
  overflow: hidden;
}

body#authentication form,
body#authentication .login-form,
body#authentication .form-control,
body#authentication input,
body#authentication .btn,
body#authentication button,
body#password form,
body#password .form-control,
body#password input,
body#password .btn,
body#password button {
  border-radius: 12px !important;
}

/* Contraseña + ojito: redondear solo los extremos (el lado pegado, no) */
body#authentication .input-group .form-control,
body#authentication .input-group input,
body#password .input-group .form-control,
body#password .input-group input {
  border-radius: 12px 0 0 12px !important;
}

body#authentication .input-group-btn .btn,
body#authentication .input-group [data-action="show-password"],
body#password .input-group-btn .btn,
body#password .input-group [data-action="show-password"] {
  border-radius: 0 12px 12px 0 !important;
}

/* Mi cuenta: los 6 recuadros (información, facturas por abono, etc.) */
body#my-account .link-item {
  border-radius: 12px !important;
  overflow: hidden;
}

/* Vista rápida y ficha: cantidad + añadir al carrito (extremos redondos, lado pegado no) */
body#product .product-quantity .qty,
.quickview .product-quantity .qty {
  margin-right: 0 !important;
}

body#product .product-quantity .qty input,
body#product .product-quantity .qty .form-control,
.quickview .product-quantity .qty input,
.quickview .product-quantity .qty .form-control {
  border-radius: 12px 0 0 12px !important;
}

body#product .product-quantity .qty .btn,
body#product .bootstrap-touchspin-up,
body#product .bootstrap-touchspin-down,
.quickview .product-quantity .qty .btn,
.quickview .bootstrap-touchspin-up,
.quickview .bootstrap-touchspin-down {
  border-radius: 0 !important;
}

body#product .add-to-cart,
body#product .add .btn,
.quickview .add-to-cart,
.quickview .add .btn {
  border-radius: 0 12px 12px 0 !important;
}

/* Carrito de arriba a la derecha */
#_desktop_cart .blockcart,
#_desktop_cart .cart-preview,
#_desktop_cart .header a,
#_mobile_cart .blockcart,
#_mobile_cart .cart-preview,
.blockcart.cart-preview,
.blockcart .body {
  border-radius: 12px !important;
}

.blockcart .body {
  overflow: hidden;
}

/* Página carrito + pedido: cuadros, resumen y tramitar/finalizar */
body#cart .card,
body#cart .cart-container,
body#cart .cart-summary,
body#cart .cart-item,
body#cart .product-line-grid,
body#checkout .card,
body#checkout .checkout-step,
body#checkout #js-checkout-summary,
body#checkout .cart-summary {
  border-radius: 12px !important;
  overflow: hidden;
}

body#cart .btn,
body#cart .checkout .btn,
body#cart .form-control,
body#checkout .btn,
body#checkout button,
body#checkout .form-control,
body#checkout input {
  border-radius: 12px !important;
}

/* Carrito: quitar el precio duplicado debajo de la descripción (se queda el de la derecha) */
body#cart .product-line-grid-body .product-price {
  display: none !important;
}

/* Carrito: titulo fino */
body#cart .cart-grid-body h1,
body#cart .cart-grid-body .h1,
body#cart #main > h1,
body#cart #main > .h1 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0.2rem 0.5rem !important;
}

body#cart .cart-grid-body > .card,
body#cart .cart-grid-body > .card > .card-block:first-child {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

body#cart .cart-grid-body > .card > .card-block:first-child {
  min-height: 0 !important;
}

/* Carrito: cantidad en un solo cuadrado, + arriba y - abajo dentro */
body#cart .qty .bootstrap-touchspin,
body#cart .qty .input-group.bootstrap-touchspin {
  border: 1px solid #bbb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  height: 32px !important;
}

body#cart .bootstrap-touchspin .form-control,
body#cart .qty input.form-control,
body#cart .js-cart-line-product-quantity {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Carrito: artículos más anchos, resumen más estrecho (~10 %) */
@media (min-width: 992px) {
  body#cart .cart-grid-body {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    width: 75% !important;
  }

  body#cart .cart-grid-right {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

/* Carrito: altura mínima para que el pie no se vea con pocos artículos */
body#cart #wrapper {
  min-height: 100vh !important;
}

body#cart #content-wrapper,
body#cart #main,
body#cart .cart-grid {
  min-height: calc(100vh - 140px) !important;
}

/* Carrito: una sola fila — foto | texto | cantidad | arrastre | precio | papelera */
body#cart .cart-item {
  padding: 0.2rem 0 !important;
  margin: 0 !important;
}

body#cart .cart-overview li.cart-item {
  padding: 0.2rem 0 !important;
  margin: 0 !important;
}

body#cart .product-line-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  padding-top: 0.08rem !important;
  padding-bottom: 0.08rem !important;
  margin: 0 !important;
}

body#cart .product-line-grid > .clearfix {
  display: none !important;
}

body#cart .product-line-grid-left {
  flex: 0 0 44px !important;
  max-width: 44px !important;
  width: 44px !important;
  padding: 0 12px 0 0 !important;
  box-sizing: border-box !important;
}

body#cart .product-line-grid-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 0.5rem 0 0 !important;
}

body#cart .product-line-grid-right {
  flex: 0 0 230px !important;
  max-width: 230px !important;
  width: 230px !important;
  padding: 0 !important;
  overflow: visible !important;
}

body#cart .product-line-grid-right > .row,
body#cart .product-line-grid-right .col-md-10,
body#cart .product-line-grid-right .col-md-10 > .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#cart .product-line-grid-right .hidden-md-up {
  display: none !important;
}

body#cart .product-line-grid .qty {
  flex: 0 0 52px !important;
  width: 52px !important;
  max-width: 52px !important;
  padding: 0 !important;
}

body#cart .product-line-grid .price {
  flex: 1 1 auto !important;
  padding: 0 0.35rem !important;
  text-align: right !important;
}

body#cart .product-line-grid-right .col-md-2 {
  flex: 0 0 28px !important;
  width: 28px !important;
  max-width: 28px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
}

body#cart .cart-line-product-actions,
body#cart .remove-from-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 32px !important;
  align-self: center !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body#cart .cart-item {
  overflow: visible !important;
}

body#cart .product-line-grid-right {
  overflow: visible !important;
}

body#cart .co-cart-move {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 24px !important;
  margin: 0 0.2rem !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0.85rem !important;
  letter-spacing: -2px;
  color: #555 !important;
  background: #e6e6e6 !important;
  border: 1px solid #bbb !important;
  border-radius: 6px !important;
  cursor: grab !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2 !important;
}

body#cart .co-cart-move:active {
  cursor: grabbing !important;
}

body#cart .cart-item.co-cart-dragging {
  opacity: 0.55;
}

body#cart .cart-item.co-cart-drop {
  outline: 1px dashed #999;
}

body#cart .co-cart-group-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0.85rem 0 0.25rem !important;
  padding: 0.35rem 0.6rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #232323 !important;
  background: #cfcfcf !important;
  border-radius: 8px !important;
  cursor: default !important;
}

body#cart .co-cart-group-title:first-child {
  margin-top: 0.2rem !important;
}

/* Lineas duplicadas: no mostrar personalizacion ficticia */
body#cart .customizations,
body#cart .product-line-grid-body .customization {
  display: none !important;
}

body#cart .remove-from-cart .material-icons {
  color: #9a9a9a !important;
  font-size: 18px !important;
  float: none !important;
  margin: 0 !important;
  line-height: 1 !important;
  height: 18px !important;
  position: relative !important;
  top: -1px !important;
}

body#cart .product-line-grid-left .product-image,
body#cart .product-image {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  overflow: hidden !important;
}

/* Recorte 15 % de bordes y luego reducción 20 % */
body#cart .product-line-grid-left img,
body#cart .product-image img {
  width: 117.65% !important;
  height: 117.65% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: -8.825% 0 0 -8.825% !important;
}

body#cart .product-line-grid-body > .product-line-info:first-child,
body#cart .product-line-grid-body > .product-line-info:first-child a {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  display: block !important;
  margin-bottom: 0 !important;
}

body#cart .product-line-grid-body > br {
  display: none !important;
}

body#cart .product-line-grid-body .product-line-info:not(:first-child):not(.product-price) {
  display: inline !important;
  font-size: 0.65rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#cart .product-line-grid-body .product-line-info:not(:first-child):not(.product-price) .label {
  display: none !important;
}

body#cart .product-line-grid-body .product-line-info:not(:first-child):not(.product-price) + .product-line-info:not(.product-price)::before {
  content: " · ";
}

body#cart .product-line-actions,
body#cart .product-line-grid-right .row {
  align-items: center !important;
}

body#cart .qty .bootstrap-touchspin,
body#cart .qty .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: auto !important;
}

body#cart .js-cart-line-product-quantity,
body#cart .qty input.form-control {
  height: 32px !important;
  min-height: 32px !important;
  width: 1.7rem !important;
  max-width: 1.7rem !important;
  padding: 0 0.1rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}

body#cart .input-group-btn-vertical {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 16px !important;
  height: 32px !important;
  border-left: 1px solid #ddd !important;
  padding: 5px 0 !important;
  gap: 1px !important;
}

body#cart .bootstrap-touchspin-up,
body#cart .bootstrap-touchspin-down,
body#cart .btn-touchspin {
  height: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 9px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  float: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #333 !important;
  box-shadow: none !important;
}

body#cart .btn-touchspin .material-icons,
body#cart .bootstrap-touchspin-up .material-icons,
body#cart .bootstrap-touchspin-down .material-icons {
  display: none !important;
}

body#cart .bootstrap-touchspin-up::after {
  content: "+";
  font-weight: 900 !important;
  font-size: 0.85rem !important;
}

body#cart .bootstrap-touchspin-down::after {
  content: "\2212";
  font-weight: 900 !important;
  font-size: 0.85rem !important;
}

body#cart .product-line-grid-right .product-price,
body#cart .product-line-actions .product-price {
  font-size: 0.75rem !important;
}

/* Página contacto: cuadro centrado y redondeado, botones redondeados */
body#contact #content,
body#contact .page-content,
body#contact .card,
body#contact form {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body#contact #content,
body#contact .page-content,
body#contact .card {
  border-radius: 12px !important;
  overflow: hidden;
}

body#contact .btn,
body#contact button,
body#contact input[type="submit"],
body#contact .custom-file-label {
  border-radius: 12px !important;
}

#header #contact-link.co-header-contact,
#header .co-header-contact {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  text-transform: none !important;
  font-weight: 400 !important;
}

#header .co-header-contact a {
  text-transform: none !important;
}

#header .co-header-whatsapp {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none !important;
}

#header .co-header-whatsapp-label {
  margin-right: 0.4em;
  white-space: nowrap;
}

#header .co-header-whatsapp img {
  display: block;
  width: 36px;
  height: 36px;
}

/* Flor Orquídea junto al logo (desktop) */
#header .co-header-flor {
  display: inline-flex;
  align-items: center;
  margin-left: 0.65rem;
  flex-shrink: 0;
  pointer-events: none;
}

#header .co-header-flor-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

@media (max-width: 991px) {
  #header .co-header-flor {
    display: none;
  }
}

/* Paginación Realizar: fondo blanco; número activo violeta */
body#module-cocartorder-catalogo #content-wrapper .pagination .page-list a,
body#module-cocartorder-productos #content-wrapper .pagination .page-list a {
  background-color: #fff !important;
  border-color: transparent !important;
}

body#module-cocartorder-catalogo #content-wrapper .pagination .page-list li.current,
body#module-cocartorder-catalogo #content-wrapper .pagination .page-list li.current a,
body#module-cocartorder-catalogo #content-wrapper .pagination .page-list li.active,
body#module-cocartorder-catalogo #content-wrapper .pagination .page-list li.active a,
body#module-cocartorder-catalogo nav.pagination ul.page-list > li.current,
body#module-cocartorder-catalogo nav.pagination ul.page-list > li.current > a,
body#module-cocartorder-catalogo nav.pagination ul.page-list > li.current > span,
body#module-cocartorder-catalogo .pagination [aria-current="page"],
body#module-cocartorder-catalogo #content-wrapper .pagination a.disabled,
body#module-cocartorder-productos #content-wrapper .pagination .page-list li.current,
body#module-cocartorder-productos #content-wrapper .pagination .page-list li.current a,
body#module-cocartorder-productos #content-wrapper .pagination .page-list li.active,
body#module-cocartorder-productos #content-wrapper .pagination .page-list li.active a,
body#module-cocartorder-productos #content-wrapper .pagination a.disabled {
  background-color: #fff !important;
  background: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #7B4BB2 !important;
  -webkit-text-fill-color: #7B4BB2 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

body#contact .co-contact-map {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

body#contact .co-contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
}

/* Pie: el botón legal va centrado (como en la corporativa) */
#footer,
#footer .footer-container,
#footer .container,
#footer .container > .row,
#footer .links,
#footer .links .row,
#footer .wrapper,
#footer .co-footer-dropdown {
  overflow: visible !important;
}

#footer .container > .row:first-of-type,
#footer .footer-container > .container > .row:first-of-type {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
}

#footer .links:not(.block-contact),
#footer .col-md-6.links:not(.block-contact),
#footer [class*="col-"].links:not(.block-contact) {
  float: none !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#footer .links:not(.block-contact) > .row {
  display: flex !important;
  justify-content: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

#footer .links:not(.block-contact) > .row > [class*="col-"],
#footer .links:not(.block-contact) .wrapper,
#footer .links:not(.block-contact) .wrapper.col-md-6 {
  float: none !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: transparent !important;
  text-align: center !important;
}

#footer #contact-infos,
#footer .block-contact.wrapper {
  overflow: visible !important;
}

/* Footer más bajo: menos padding y letras más pequeñas */
#footer,
.footer-container {
  padding-top: 0.35rem !important;
  padding-bottom: 0.2rem !important;
}

#footer .container {
  padding-top: 0.25rem !important;
  padding-bottom: 0.15rem !important;
}

#footer .h4,
#footer .block-contact-title,
#footer .myaccount-title,
#footer .links .title,
#footer h3,
#footer h4 {
  font-size: 0.8rem !important;
  margin: 0 0 0.3rem 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

#footer,
#footer a,
#footer p,
#footer li,
#footer address,
#footer .contact-rich,
#footer #contact_infos,
#footer .block-contact {
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
}

#footer .block,
#footer .links,
#footer .block-contact {
  margin-bottom: 0.35rem !important;
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}

#footer .copyright,
.footer-container li,
#bottom_footer,
.bottom-footer {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
}

/* Pie: Nuestra empresa como botón desplegable (como la corporativa) */
#footer .co-footer-dropdown {
  position: relative !important;
  z-index: 1040 !important;
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  text-align: center !important;
  background: transparent !important;
}

#footer .links .co-footer-dropdown-btn,
#footer button.co-footer-dropdown-btn,
#footer .btn.co-footer-dropdown-btn {
  display: inline-block !important;
  width: auto !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  padding: 0.25rem 0.75rem !important;
  color: #fff !important;
  background-color: #6c757d !important;
  background-image: none !important;
  border: 1px solid #6c757d !important;
  border-radius: 12px !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

#footer .links .co-footer-dropdown-btn:hover,
#footer .links .co-footer-dropdown-btn:focus,
#footer .co-footer-dropdown.is-open .co-footer-dropdown-btn {
  color: #fff !important;
  background-color: #5c636a !important;
  border-color: #565e64 !important;
}

#footer .co-footer-dropdown-btn::after {
  display: inline-block !important;
  margin-left: 0.4em;
  vertical-align: 0.2em;
  content: "" !important;
  border-top: 0 !important;
  border-right: 0.3em solid transparent !important;
  border-bottom: 0.3em solid #fff !important;
  border-left: 0.3em solid transparent !important;
}

#footer .co-footer-dropdown.is-open .co-footer-dropdown-btn {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

#footer .co-footer-dropdown > ul,
#footer .co-footer-dropdown ul.dropdown-menu,
#footer .co-footer-dropdown ul.collapse,
#footer .co-footer-dropdown ul.co-footer-dropdown-menu,
#footer .links .co-footer-dropdown ul {
  display: none !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 100% !important;
  transform: translateX(-50%) !important;
  z-index: 1041 !important;
  min-width: 100% !important;
  width: max-content !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.35rem 0 !important;
  list-style: none !important;
  background: #fff !important;
  border: 1px solid #6c757d !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  text-align: left !important;
  white-space: nowrap !important;
  overflow: visible !important;
  float: none !important;
}

#footer .co-footer-dropdown.is-open > ul,
#footer .co-footer-dropdown.is-open ul.dropdown-menu,
#footer .co-footer-dropdown.is-open ul.co-footer-dropdown-menu,
#footer .links .co-footer-dropdown.is-open ul {
  display: block !important;
}

#footer .co-footer-dropdown > ul li,
#footer .co-footer-dropdown-menu li {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

#footer .co-footer-dropdown > ul a,
#footer .co-footer-dropdown-menu a {
  display: block !important;
  padding: 0.4rem 1rem !important;
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
  color: #232323 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

#footer .co-footer-dropdown > ul a:hover,
#footer .co-footer-dropdown-menu a:hover {
  background: #f2f2f2 !important;
  color: #232323 !important;
}

/* Ocultar descripción duplicada del tema */
.product-miniature .product-description-short,
.product-miniature .product-desc-short:not(.co-product-desc-short),
.product-miniature .card-body .product-description-short {
  display: none !important;
}

/* Tarjeta: descripción corta */
.co-product-desc-short {
  font-size: 0.58rem !important;
  line-height: 1.3;
  color: #555;
  margin: 0.25rem 0 0.4rem;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.co-product-desc-short p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tarjeta: selectores de atributos */
.co-product-options {
  padding: 0 0.4rem;
}

.co-product-selects {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.co-select-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.co-select-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  min-width: 3.5rem;
  margin: 0;
}

.co-select {
  flex: 1;
  font-size: 0.7rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  appearance: auto;
  min-height: 1.6rem;
}

.co-select:focus {
  border-color: #999;
  outline: none;
}

/* No mostrar el popup "Producto añadido al carrito" */
#blockcart-modal {
  display: none !important;
}

/* Columna valoración: estilos en modules/cocartorder/views/css/estilos-co.css */

body#category #header .container,
body#category #wrapper .container,
body#search #header .container,
body#search #wrapper .container,
body#manufacturer #header .container,
body#manufacturer #wrapper .container,
body#new-products #header .container,
body#new-products #wrapper .container,
body#best-sales #header .container,
body#best-sales #wrapper .container,
body#prices-drop #header .container,
body#prices-drop #wrapper .container {
  width: 100% !important;
  max-width: 1760px !important;
}

@media (min-width: 992px) {
  body#category #wrapper > .container > .row,
  body#search #wrapper > .container > .row,
  body#manufacturer #wrapper > .container > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  body#category #left-column,
  body#search #left-column,
  body#manufacturer #left-column {
    flex: 0 0 15% !important;
    max-width: 15% !important;
    width: 15% !important;
  }

  body#category #content-wrapper,
  body#search #content-wrapper,
  body#manufacturer #content-wrapper {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  body#category #right-column,
  body#search #right-column,
  body#manufacturer #right-column {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    width: 35% !important;
    position: sticky;
    top: 0.75rem;
    align-self: flex-start;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }
}

/* Valoración (columna, cabecera, líneas): estilos-co.css */

.co-val-modal {
  z-index: 2000;
}

.co-val-modal.show,
.co-val-modal.in {
  display: block;
}

.co-val-modal .modal-dialog {
  max-width: 520px;
}

body .modal#co-val-new.show,
body .modal#co-val-new.in,
body .modal#co-val-grid.show,
body .modal#co-val-grid.in {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

body .modal#co-val-new .modal-dialog,
#co-val-mine .modal-dialog,
body .modal#co-val-grid .modal-dialog {
  width: 75vw !important;
  max-width: 75vw !important;
  min-width: 75vw !important;
  margin: 0 auto !important;
}

@media (max-width: 991px) {
  body .modal#co-val-new .modal-dialog,
#co-val-mine .modal-dialog,
  body .modal#co-val-grid .modal-dialog {
    max-width: 94% !important;
    width: 94% !important;
  }
}

#co-val-new.co-val-behind,
#co-val-mine.co-val-behind {
  visibility: hidden !important;
}

#co-val-new .modal-content,
#co-val-mine .modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  font-size: 1rem;
  color: #232323;
  line-height: 1.4;
}

#co-val-new .modal-header,
#co-val-mine .modal-header {
  border-bottom: 1px solid #eee;
  padding: 0.7rem 1rem;
  align-items: center;
}

#co-val-new .modal-title,
#co-val-mine .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  text-transform: none;
}

#co-val-new .close,
#co-val-mine .close {
  margin: 0;
  padding: 0 0 0 0.5rem;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.55;
}

#co-val-new .modal-body,
#co-val-mine .modal-body {
  padding: 0.85rem 1rem 0.35rem;
  overflow: visible;
}

#co-val-new .modal-content,
#co-val-mine .modal-content {
  overflow: visible;
}

#co-val-new .co-val-numline,
#co-val-mine .co-val-numline {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  min-height: 1.2em;
}

#co-val-new .co-val-block,
#co-val-mine .co-val-block {
  margin: 0 0 1rem;
}

#co-val-new .co-val-block-title,
#co-val-mine .co-val-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #232323;
}

#co-val-new .co-val-row,
#co-val-mine .co-val-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
}

#co-val-new .co-val-row-label,
#co-val-mine .co-val-row-label {
  flex: 0 0 4.2rem;
  width: 4.2rem;
  max-width: 4.2rem;
  padding-top: 0;
  font-size: 0.85rem;
  color: #232323;
}

#co-val-new .co-val-row .form-control,
#co-val-mine .co-val-row .form-control,
#co-val-new .co-val-row .co-val-buscar,
#co-val-mine .co-val-row .co-val-buscar {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
}

#co-val-new .co-val-row .form-control,
#co-val-mine .co-val-row .form-control {
  border-radius: 12px !important;
  height: 42px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  background: #fff;
}

#co-val-new .co-val-buscar,
#co-val-mine .co-val-buscar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 0.7rem 0 0.4rem;
  border: none;
  border-radius: 5px;
  background: #f1f1f1;
  color: #7a7a7a;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

#co-val-new .co-val-buscar .material-icons,
#co-val-mine .co-val-buscar .material-icons {
  font-size: 20px;
  margin-right: 0.35rem;
  color: #7a7a7a;
}

#co-val-new .co-val-buscar.is-picked,
#co-val-mine .co-val-buscar.is-picked {
  color: #232323;
  background: #fff;
  box-shadow: inset 0 0 0 1px #ddd;
}

#co-val-new .modal-footer,
#co-val-mine .modal-footer,
#co-val-grid .modal-footer,
.co-val-modal .modal-footer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  border-top: 0;
  padding: 0.65rem 1rem 1rem;
}

#co-val-new .modal-footer .btn,
#co-val-mine .modal-footer .btn,
#co-val-grid .modal-footer .btn,
.co-val-modal .modal-footer .btn {
  float: none !important;
  margin: 0 auto !important;
}

#co-val-new .co-val-accept,
#co-val-mine .co-val-accept,
#co-val-grid .co-val-grid-accept,
.co-val-modal .modal-footer .btn {
  border-radius: 12px !important;
  padding: 0.45rem 1.35rem;
  font-size: 0.9rem;
  min-width: 7rem;
}

#co-val-grid {
  z-index: 2010;
}

#co-val-grid .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

#co-val-grid .modal-footer {
  border-top: 1px solid #eee;
}

#co-val-grid .co-val-grid-filter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
}

#co-val-grid .co-val-grid-filter-label {
  flex: 0 0 4.2rem;
  font-weight: 700;
  text-align: left;
}

#co-val-grid .co-val-grid-filter .co-val-search-widget {
  flex: 1 1 auto;
  margin: 0;
}

#co-val-grid .co-val-grid-wrap {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  height: 480px;
  max-height: 480px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

#co-val-grid .co-val-grid-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

#co-val-grid .co-val-grid-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left !important;
}

#co-val-grid .co-val-grid-table tr:hover td {
  background: #f1f1f1;
}

#co-val-grid .co-val-grid-table tr.is-on td {
  background: #e6f7fb;
}

#co-val-grid .co-val-grid-table .co-val-res-obra {
  font-weight: 600;
  text-align: left !important;
}

#co-val-grid .co-val-grid-table .co-val-res-cli {
  color: #7a7a7a;
  text-align: left !important;
}

.co-val-modal .modal-footer {
  justify-content: center;
}

.co-val-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.co-val-modal .modal-header,
.co-val-modal .modal-footer {
  padding: 0.55rem 0.85rem;
}

.co-val-modal .modal-body {
  padding: 0.7rem 0.85rem 1rem;
}

.co-val-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.45rem 0 0.2rem;
}

.co-val-modal .form-control {
  border-radius: 12px !important;
  font-size: 0.85rem;
}

.co-val-row-lupa {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.co-val-row-lupa .co-val-field {
  flex: 1 1 0;
  min-width: 0;
}

.co-val-lupa {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #f6f6f6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.co-val-lupa .material-icons {
  font-size: 22px;
  color: #333;
}

#co-val-search {
  z-index: 1065;
}

#co-val-search .modal-content {
  overflow: visible;
}

#co-val-search .modal-body {
  overflow: visible;
}

.co-val-search-widget {
  position: relative;
  margin: 0 0 0.625rem;
}

.co-val-search-widget form {
  position: relative;
}

.co-val-search-widget form i {
  position: absolute;
  padding: 0.5rem;
  color: #7a7a7a;
  z-index: 1;
}

.co-val-search-widget form i.clear {
  right: 15px;
  display: none;
  cursor: pointer;
}

.co-val-search-widget.is-filled form i.clear {
  display: block;
}

.co-val-search-widget form input {
  width: 100%;
  padding: 10px 20px 10px 40px;
  outline: none;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  color: #7a7a7a;
}

.co-val-search-widget form input:focus {
  color: #232323;
  background-color: #fff;
}

.co-val-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
}

.co-val-results li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.co-val-results li:hover,
.co-val-results li.co-val-empty {
  background-color: #f1f1f1;
}

.co-val-results li.co-val-empty {
  cursor: default;
  color: #7a7a7a;
  justify-content: flex-start;
}

.co-val-results .co-val-res-obra {
  font-weight: 600;
  color: #232323;
}

.co-val-results .co-val-res-cli {
  color: #7a7a7a;
}

/* === CMS acabados (id 6). body.cms-id-6 — Classic no pisa las fichas. === */
body.cms-id-6 .page-header h1 {
  display: none !important;
}

body.cms-id-6 #principal,
body.cms-id-6 #principal-cuadro {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

body.cms-id-6 #principal .card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 0.375rem !important;
  background: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

body.cms-id-6 #principal .card-header {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.6rem 1rem !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
  text-align: center;
}

body.cms-id-6 #principal .card-header h2 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

body.cms-id-6 #principal .card-img-top {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  float: none !important;
}

body.cms-id-6 #principal .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 1rem 1.1rem 1.15rem !important;
}

body.cms-id-6 #principal .card-title {
  margin: 0 0 0.4rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: #212529 !important;
}

body.cms-id-6 #principal .card-text {
  font-size: 0.9rem !important;
  color: #6c757d !important;
  line-height: 1.45 !important;
}

#principal .btn-primary {
  background-color: #7B4BB2 !important;
  border: 0 !important;
  border-radius: 0.375rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  color: #fff !important;
}

body.cms-id-6 #principal-cuadro img.img-fluid {
  max-width: 100% !important;
  height: auto !important;
}

