/* ATG CLIMASAT — Cassiopeia / VirtueMart */

/* Colores y estilos generales */
:root {
  --atg-ink: #152b3a;
  --atg-accent: #006d77;
  --atg-border: #dce5e9;
}

body.site {
  background: #f3f6f8;
  color: var(--atg-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.site a {
  color: #00616b;
}

body.site a:focus-visible,
body.site button:focus-visible {
  outline: 3px solid #d18b00;
  outline-offset: 5px;
}

/* Cabecera */
.container-header {
  background: #fff !important;
  background-image: none !important;
  color: var(--atg-ink);
  box-shadow: 0 1px 0 var(--atg-border);
  padding: 0 24px;
}

.container-header > .grid-child {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 20px 0 14px;
  font-size: inherit;
}

.container-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  color: var(--atg-ink);
  text-decoration: none;
  white-space: normal;
}

/* Logo: conserva sus proporciones */
.container-header .navbar-brand img {
  display: block;
  height: 145px !important;
  width: auto !important;
  max-width: 100%;
  max-height: none !important;
  object-fit: contain;
}

.container-header .brand-logo::after {
  content: "ATG CLIMASAT";
  color: var(--atg-ink);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .025em;
}

/* Menú principal */
.container-header .container-nav {
  border-top: 1px solid #e8eef1;
  padding: 10px 0;
}

.container-header .navbar {
  width: 100%;
  padding: 0;
}

.container-header .mod-menu {
  color: var(--atg-ink);
  gap: 4px;
  margin: 0;
}

.container-header .mod-menu > li {
  margin: 0;
  padding: 0;
}

.container-header .mod-menu > li > a {
  display: block;
  color: var(--atg-ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 7px;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover {
  background: #edf5f5;
  color: var(--atg-accent) !important;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: var(--atg-accent);
  color: #fff !important;
}

.container-header .mod-menu > li::after,
.container-header .mod-menu > li > a::after {
  border-bottom: 0;
}

.container-header .navbar-toggler {
  color: var(--atg-ink);
  border: 1px solid #b9cbd2;
  border-radius: 7px;
  padding: 12px 16px;
  margin: 0;
  background: #fff;
}

.container-header .navbar-toggler .icon-menu {
  color: var(--atg-ink);
}

/* Contenedor principal */
.site-grid {
  max-width: 1248px;
  margin-inline: auto;
  padding: 32px 24px 64px;
}

.site-grid .container-component {
  min-width: 0;
}

/* Categorías de la portada */
body.view-virtuemart main > .category-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

body.view-virtuemart main > .category-view::before {
  content: "Catálogo de recambios";
  grid-column: 1 / -1;
  display: block;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.025em;
  margin: 8px 0 12px;
}

body.view-virtuemart main > .category-view > .row {
  display: contents;
}

body.view-virtuemart main > .category-view > .horizontal-separator,
body.view-virtuemart main > .category-view > .row > .clear {
  display: none;
}

body.view-virtuemart .category-view > .row > .category {
  float: none !important;
  width: auto !important;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

body.view-virtuemart .category-view > .row > .category > .spacer {
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

body.view-virtuemart .category-view .category h2 {
  margin: 0;
  height: 100%;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

body.view-virtuemart .category-view .category h2 > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 100%;
  min-height: 268px;
  padding: 28px 20px;
  box-sizing: border-box;
  text-align: center;
  color: var(--atg-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--atg-border);
  border-radius: 14px;
  box-shadow: 0 3px 12px #183b4b06;
  transition: border-color .15s, box-shadow .15s;
}

body.view-virtuemart .category-view .category h2 > a:hover {
  color: var(--atg-accent);
  border-color: var(--atg-accent);
  box-shadow: 0 6px 20px #183b4b12;
}

body.view-virtuemart .category-view .category h2 > a > br {
  display: none;
}

body.view-virtuemart .category-view .category img.browseCategoryImage {
  order: -1;
  display: block;
  width: 180px !important;
  height: 150px !important;
  max-width: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

/* Listados de productos */
body.view-category .category_description {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 24px;
  margin: 0 0 24px;
  background: #e5f1f2;
  border: 1px solid #cbdfe2;
  border-radius: 12px;
}

body.view-category .category_description p {
  margin: 0;
}

body.view-category .category_description span {
  font-size: 18px !important;
}

body.view-category .category_description img {
  max-width: 100%;
  width: 130px;
  height: auto;
}

body.view-category .browse-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

body.view-category .browse-view > :not(.row) {
  grid-column: 1 / -1;
}

body.view-category .browse-view > .row {
  display: contents;
}

body.view-category .browse-view > .row > .clear,
body.view-category .browse-view > .horizontal-separator {
  display: none;
}

body.view-category .browse-view > h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 4px 0 0;
  color: var(--atg-ink, #152b3a);
}

body.view-category .browse-view > .row > .product {
  width: auto !important;
  max-width: none;
  min-width: 0;
  float: none !important;
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
}

body.view-category .browse-view .product-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto !important;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 14px;
  box-shadow: 0 3px 12px #183b4b06;
}

/* Imágenes de productos */
body.view-category .browse-view .vm-product-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px !important;
  min-height: 190px;
  margin: 0 0 12px;
  padding: 0;
}

body.view-category .browse-view .vm-product-media-container > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

body.view-category .browse-view img.browseProductImage {
  display: block;
  width: 180px !important;
  height: 180px !important;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
}

/* Disponibilidad */
body.view-category .browse-view .vm-product-rating-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px !important;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 0;
}

body.view-category .browse-view .vm-product-rating-container .availability {
  margin: 0;
}

body.view-category .browse-view .vm-product-rating-container img.availability {
  width: auto;
  height: 38px;
  max-width: 100%;
  object-fit: contain;
}

/* Descripción y precios */
body.view-category .browse-view [class^="vm-product-descr-container"] {
  height: auto !important;
  min-height: 84px;
  margin: 0 0 18px;
  text-align: left;
}

body.view-category .browse-view .product h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

body.view-category .browse-view .product h2 a {
  color: #152b3a;
  text-decoration: none;
}

body.view-category .browse-view .product h2 a:hover {
  color: #006d77;
  text-decoration: underline;
}

body.view-category .browse-view .vm3pr-0 {
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.view-category .browse-view .product-price {
  float: none;
  width: 100%;
  min-height: 44px;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Botones de productos */
body.view-category .browse-view .product .ask-a-question {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  box-sizing: border-box;
  background: #edf6f6;
  color: #005c65;
  border: 1px solid #b7d6d9;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
}

body.view-category .browse-view .product .ask-a-question:hover {
  background: #deeeee;
}

body.view-category .browse-view .vm-details-button {
  margin-top: auto;
  padding: 14px 0 0;
  text-align: center;
}

body.view-category .browse-view .product a.product-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  box-sizing: border-box;
  background: #006d77;
  color: #fff;
  border: 1px solid #006d77;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}

body.view-category .browse-view .product a.product-details:hover {
  background: #00545c;
  border-color: #00545c;
}

/* Buscador de productos */
body.view-category .virtuemart_search {
  padding: 22px;
  margin: 0;
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 12px;
}

body.view-category .virtuemart_search form {
  margin: 0;
}

body.view-category .vm-search-custom-search-input {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

body.view-category .virtuemart_search input[name="keyword"] {
  flex: 1 1 240px;
  min-width: 0;
  width: auto;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #a9bfc8;
  border-radius: 7px;
  background: #fff;
  color: #152b3a;
  font: inherit;
}

body.view-category .virtuemart_search input[type="submit"] {
  flex: 0 0 auto;
  height: 48px;
  padding: 10px 24px;
  background: #006d77;
  color: #fff;
  border: 1px solid #006d77;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.view-category .vm-search-descr {
  flex-basis: 100%;
  color: #526975;
  font-size: 14px;
  line-height: 1.5;
}

/* Ordenación y número de resultados */
body.view-category .orderby-displaynumber {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid #dce5e9;
  color: #526975;
  font-size: 14px;
}

body.view-category .orderby-displaynumber > .clear {
  display: none;
}

body.view-category .orderby-displaynumber .vm-order-list,
body.view-category .orderby-displaynumber .display-number {
  float: none;
  margin: 0;
}

body.view-category .orderlistcontainer {
  margin: 0;
}

body.view-category .orderlistcontainer .title {
  margin-bottom: 6px;
  font-size: 13px;
}

body.view-category .orderlistcontainer .activeOrder {
  padding: 9px 28px 9px 12px;
  min-height: 40px;
  border: 1px solid #b8cbd2;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
}

body.view-category .orderlistcontainer .orderlist {
  z-index: 20;
  background: #fff;
  border: 1px solid #b8cbd2;
  box-shadow: 0 4px 16px #152b3a18;
}

body.view-category .orderlistcontainer .orderlist a {
  display: block;
  padding: 9px 12px;
}

body.view-category .display-number select {
  margin-top: 6px;
  padding: 7px 12px;
  min-height: 40px;
  border: 1px solid #b8cbd2;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #152b3a;
}

/* Escritorio */
@media (min-width: 992px) {
  .container-header .mod-menu {
    flex-wrap: wrap;
  }
}

/* Tabletas */
@media (max-width: 991.98px) {
  .container-header .navbar-collapse {
    width: 100%;
  }

  .container-header .mod-menu {
    padding-top: 10px;
  }

  .container-header .mod-menu > li {
    width: 100%;
  }

  body.view-virtuemart main > .category-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.view-category .browse-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.view-category .browse-view .product-container {
    padding: 20px;
  }
}

/* Móviles */
@media (max-width: 575.98px) {
  .container-header {
    padding-inline: 18px;
  }

  .container-header .navbar-brand {
    padding: 16px 0;
  }

  .container-header .brand-logo {
    gap: 16px;
  }

  .container-header .navbar-brand img {
    height: 100px !important;
    width: auto !important;
    max-height: none !important;
  }

  .container-header .brand-logo::after {
    font-size: 24px;
    max-width: 185px;
  }

  .site-grid {
    padding: 24px 16px 40px;
  }

  body.view-virtuemart main > .category-view {
    gap: 12px;
  }

  body.view-virtuemart .category-view .category h2 {
    font-size: 16px;
  }

  body.view-virtuemart .category-view .category h2 > a {
    min-height: 220px;
    padding: 18px 10px;
    gap: 16px;
    border-radius: 10px;
  }

  body.view-virtuemart .category-view .category img.browseCategoryImage {
    width: 140px !important;
    height: 120px !important;
  }

  body.view-category .browse-view {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.view-category .browse-view > h1 {
    font-size: 29px;
  }

  body.view-category .category_description {
    padding: 18px;
  }

  body.view-category .category_description span {
    font-size: 16px !important;
  }

  body.view-category .virtuemart_search {
    padding: 16px;
  }

  body.view-category .virtuemart_search input[name="keyword"],
  body.view-category .virtuemart_search input[type="submit"] {
    flex-basis: 100%;
    width: 100%;
  }

  body.view-category .browse-view [class^="vm-product-descr-container"] {
    min-height: 0;
  }

  body.view-category .browse-view .product-container {
    padding: 24px;
  }
}

/* Pantallas muy estrechas */
@media (max-width: 359.98px) {
  body.view-virtuemart main > .category-view {
    grid-template-columns: 1fr;
  }

  .container-header .brand-logo::after {
    font-size: 21px;
  }
}

/* Pie: tres columnas alineadas por arriba */
footer.container-footer .grid-child {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start !important;
  gap: 32px;
}

footer.container-footer .grid-child > * {
  align-self: start !important;
  min-width: 0;
  margin: 0 !important;
}

footer.container-footer h2 {
  margin-top: 0 !important;
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  footer.container-footer .grid-child {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* Pie ATG: distribución, tipografía y enlaces */
footer.container-footer {
  background: #16324f !important;
  background-image: none !important;
  color: #fff;
}

footer.container-footer .grid-child {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start !important;
  gap: 32px;
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding: 40px 24px;
  box-sizing: border-box;
}

footer.container-footer .grid-child > * {
  min-width: 0;
  margin: 0 !important;
  align-self: start !important;
}

footer.container-footer h2,
footer.container-footer h3,
footer.container-footer .module-title {
  margin: 0 0 18px !important;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

footer.container-footer p,
footer.container-footer li,
footer.container-footer a {
  font-size: 15px;
  line-height: 1.7;
}

footer.container-footer p {
  margin: 0 0 16px;
}

footer.container-footer ul,
footer.container-footer .mod-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.container-footer li {
  margin: 0;
  padding: 0;
}

footer.container-footer a {
  color: #eef5ff !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}

footer.container-footer a:hover,
footer.container-footer a:focus-visible {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
  footer.container-footer .grid-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  footer.container-footer .grid-child {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px;
  }
}
/* Marcas a la derecha de la cabecera */
.container-header {
  position: relative;
}

.atg-marcas-cabecera img {
  display: block;
  width: 440px !important;
  max-width: 100%;
  height: auto !important;
}

@media (min-width: 992px) {
  .container-header .container-below-top {
    position: absolute;
    top: 35px;
    right: max(24px, calc((100% - 1200px) / 2));
    width: 42%;
    max-width: 440px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .container-header .container-below-top {
    padding-block: 16px;
  }

  .atg-marcas-cabecera img {
    width: 360px !important;
    margin-inline: auto;
  }
}
/* Nombre de empresa más proporcionado */
.container-header .brand-logo::after {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .01em;
}

@media (max-width: 575.98px) {
  .container-header .brand-logo::after {
    font-size: 21px;
  }
}