/*
==========================================================
COMERÇ DE MONTBLANC
ESTABLIMENTS
==========================================================
*/

.comerc-establiments {
  /*padding: 32px 20px 50px;*/
  background: #ffffff;
}

.comerc-establiments .container {
  max-width: 1200px;
  margin: 0 auto;
}

/*
==========================================================
CAPÇALERA
==========================================================
*/

.comerc-establiments-header {
  margin-bottom: 20px;
}

.comerc-establiments-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0;
}

.comerc-establiments-line {
  width: 20px;
  height: 2px;
  margin-top: 9px;
  background: #a6193c;
  flex: 0 0 auto;
}

/*
ETIQUETA
*/

.comerc-establiments-label {
  display: block;
  margin-bottom: 4px;
  color: #a6193c;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
}

/*
TÍTOL
*/

.comerc-establiments-title h2 {
  margin: 0;
  color: #292929;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

/*
DESCRIPCIÓ
*/

.comerc-establiments-description {
  margin: 6px 0 9px;
  color: #77736f;
  font-size: 13px;
  line-height: 1.4;
}

/*
COMPTADOR
*/

.comerc-establiments-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #f7e8ed;
  color: #a6193c;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

/*
==========================================================
FILTRES
==========================================================
*/

.comerc-establiments-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 140px 180px;
  gap: 8px;
  margin-bottom: 14px;
}

/*
CERCA
*/

.comerc-search {
  position: relative;
}

.comerc-search input,
.comerc-establiments-filters select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  background: #ffffff;
  color: #444444;
  font-family: inherit;
  font-size: 11px;
  box-sizing: border-box;
}
.comerc-establiments-filters .comerc-establiments-unio-filter {
  min-width: 180px;
}
.comerc-search input {
  padding-left: 30px;
}

.comerc-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8885;
  font-size: 15px;
  pointer-events: none;
}

.comerc-establiments-filters select {
  appearance: auto;
}

/*
==========================================================
GRAELLA
==========================================================
*/

.comerc-establiments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/*
==========================================================
FITXA
==========================================================
*/

.comerc-establiment {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.comerc-establiment:hover {
  transform: translateY(-2px);
  border-color: #d2b0ba;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

/*
==========================================================
IMATGE
==========================================================
*/

.comerc-establiment-image {
  position: relative;
  height: 125px;
  overflow: hidden;
  background: #f2f0ee;
}

.comerc-establiment-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.comerc-establiment:hover .comerc-establiment-image img {
  transform: scale(1.03);
}

/*
IMATGE PER DEFECTE
*/

.comerc-establiment-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f2f0ee;
  color: #c4bfbb;
  font-size: 30px;
}
/* Logo Unió de Botiguers dins de la imatge */
.comerc-establiment-unio {
  position: absolute;
  right: 10px;
  bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 42px;

  padding: 4px 6px;

  background: #ffffff;
  border-radius: 5px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  z-index: 5;
}

.comerc-establiment-unio img.comerc-establiments-unio-botiguers {
  display: block;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
}
/*
==========================================================
CATEGORIA
==========================================================
*/

.comerc-establiment-category {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #a6193c;
  font-size: 9px;
  line-height: 1.2;
}

/*
==========================================================
CONTINGUT
==========================================================
*/

.comerc-establiment-content {
  padding: 9px 9px 8px;
}

.comerc-establiment-content h3 {
  margin: 0 0 5px;
  color: #292929;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.comerc-establiment-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 9px;
  color: #77736f;
  font-size: 10px;
  line-height: 1.3;
}

.comerc-establiment-location span {
  color: #a6193c;
  font-size: 13px;
}

/*
==========================================================
BOTONS
==========================================================
*/

.comerc-establiment-actions {
  display: flex;
  gap: 6px;
}

.comerc-establiment-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/*
==========================================================
BOTÓ PRINCIPAL
==========================================================
*/

.comerc-btn-primary {
  background: #a6193c;
  border: 1px solid #a6193c;
  color: #ffffff !important;
}

.comerc-btn-primary:hover {
  background: #620e23;
  border-color: #620e23;
}

/*
==========================================================
BOTÓ SECUNDARI
==========================================================
*/

.comerc-btn-secondary {
  background: #ffffff;
  border: 1px solid #d9b7c0;
  color: #a6193c !important;
}

.comerc-btn-secondary:hover {
  background: #faf1f3;
  border-color: #a6193c;
}

/*
ICONES DELS BOTONS
*/

.comerc-establiment-actions i {
  margin-right: 4px;
  font-size: 10px;
}

/*
==========================================================
MAPA
==========================================================
*/

.comerc-establiments-map-wrapper {
  margin-top: 30px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comerc-establiments-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeae7;
}

.comerc-establiments-map-header h3 {
  margin: 0 0 2px;
  color: #292929;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.comerc-establiments-map-header span {
  color: #77736f;
  font-size: 10px;
}

#comerc-map {
  width: 100%;
  height: 330px;
}

/*
==========================================================
POPUP DEL MAPA
==========================================================
*/

.comerc-map-popup h4 {
  margin: 0 0 4px;
  color: #292929;
  font-size: 13px;
  font-weight: 600;
}

.comerc-map-popup p {
  margin: 0 0 7px;
  color: #77736f;
  font-size: 10px;
}

.comerc-map-popup a {
  color: #a6193c;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.comerc-map-popup a:hover {
  color: #620e23;
}

/*
==========================================================
ESTAT SENSE RESULTATS
==========================================================
*/

.comerc-establiments-empty {
  grid-column: 1 / -1;
  padding: 35px 20px;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  background: #ffffff;
  color: #77736f;
  font-size: 13px;
  text-align: center;
}

/*
==========================================================
MARCADOR PERSONALITZAT DEL MAPA
==========================================================
*/

.comerc-mapa-marker {
  background: transparent;
  border: 0;
}

.comerc-mapa-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #a6193c;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: rotate(-45deg);
}

.comerc-mapa-marker-pin i {
  font-size: 16px;
  transform: rotate(45deg);
}

/* =========================================================
   CATEGORIES DE COMERÇ
   ========================================================= */

.comerc-categoria {
  padding: 50px 0 60px;
  background: #ffffff;
}

.comerc-categoria .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* CAPÇALERA */

.comerc-categoria-header {
  margin-bottom: 30px;
}

.comerc-categoria-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.comerc-categoria-line {
  display: block;
  width: 5px;
  height: 52px;
  flex: 0 0 auto;
  background: #a6193c;
  border-radius: 3px;
}

.comerc-categoria-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a6193c;
}

.comerc-categoria-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #333333;
}

.comerc-categoria-description {
  margin: 8px 0 10px;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.comerc-categoria-count {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 10px;
  background: #f7f1f3;
  border-radius: 4px;
  color: #a6193c;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   ESTAT DE LA CATEGORIA
   ========================================================= */

.comerc-categoria-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #fafafa;
}

.comerc-categoria-empty-icon {
  margin-bottom: 15px;
  font-size: 38px;
  color: #a6193c;
}

.comerc-categoria-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #333333;
}

.comerc-categoria-empty p {
  margin: 0;
  color: #666666;
  font-size: 14px;
  text-align: center;
}

/* ==========================================================
   COMERÇ DE MONTBLANC
   CATEGORIES
========================================================== */

.comerc-categories {
  padding: 18px 20px 38px;
  background: #f8f7f5;
}

.comerc-categories .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================
   GRID
========================================================== */

.comerc-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* ==========================================================
   TARGETA
========================================================== */

.comerc-category {
  position: relative;

  min-height: 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 18px 14px 20px;

  background: #ffffff;
  border: 1px solid #e5e2df;
  border-radius: 10px;

  color: #252525;
  text-decoration: none !important;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

/* ==========================================================
   ICONA
========================================================== */

.comerc-category-icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.comerc-category-icon img {
  width: 48px;
  height: 48px;

  display: block;

  object-fit: contain;
}

/* ==========================================================
   TEXT
========================================================== */

.comerc-category-name {
  display: block;

  width: 100%;

  flex: none;

  text-align: center;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;

  color: #333333;
}

/* ==========================================================
   FLETXA
========================================================== */

.comerc-category-arrow {
  position: absolute;

  right: 14px;
  bottom: 10px;

  font-size: 24px;
  font-weight: 300;
  line-height: 1;

  color: #a6193c;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/* ==========================================================
   HOVER FLETXA
========================================================== */

.comerc-category:hover .comerc-category-arrow {
  color: #620e23;
  transform: translateX(5px);
}

/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width: 1000px) {
  .comerc-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================
   RESPONSIVE — MÒBIL
========================================================== */

@media (max-width: 700px) {
  .comerc-categories {
    padding: 15px 15px 30px;
  }

  .comerc-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .comerc-category {
    min-height: 135px;
    padding: 15px 10px 18px;
    gap: 7px;
  }

  .comerc-category-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .comerc-category-icon img {
    width: 42px;
    height: 42px;
  }

  .comerc-category-name {
    font-size: 13px;
  }

  .comerc-category-arrow {
    right: 9px;
    bottom: 8px;
    font-size: 18px;
  }
}

/* ==========================================================
   RESPONSIVE — MÒBIL PETIT
========================================================== */

@media (max-width: 480px) {
  .comerc-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comerc-category {
    min-height: 125px;
  }
}

/* ==========================================================
   IMATGE DESTACADA
========================================================== */

.comerc-category-image {
  position: relative;
  min-height: 100px;

  overflow: hidden;

  border-radius: 10px;
}

.comerc-category-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.comerc-category-image:hover img {
  transform: scale(1.04);
}
.comerc-category:visited {
  color: #252525;
}

.comerc-category:hover {
  color: #252525;
  text-decoration: none !important;
  border-color: #d8c4ca;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.comerc-category:hover .comerc-category-name {
  color: #a6193c;
}

/*
==========================================================
COMERÇ DE MONTBLANC
ESTABLIMENTS
==========================================================
*/

.comerc-establiments {
  background: #ffffff;
}

.comerc-establiments .container {
  max-width: 1200px;
  margin: 0 auto;
}

/*
==========================================================
CAPÇALERA
==========================================================
*/

.comerc-establiments-header {
  margin-bottom: 20px;
}

.comerc-establiments-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0;
}

.comerc-establiments-line {
  width: 20px;
  height: 2px;
  margin-top: 9px;
  background: #a6193c;
  flex: 0 0 auto;
}

/*
ETIQUETA
*/

.comerc-establiments-label {
  display: block;
  margin-bottom: 4px;
  color: #a6193c;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
}

/*
TÍTOL
*/

.comerc-establiments-title h2 {
  margin: 0;
  color: #292929;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

/*
DESCRIPCIÓ
*/

.comerc-establiments-description {
  margin: 6px 0 9px;
  color: #77736f;
  font-size: 13px;
  line-height: 1.4;
}

/*
COMPTADOR
*/

.comerc-establiments-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #f7e8ed;
  color: #a6193c;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

/*
==========================================================
FILTRES
==========================================================
*/

.comerc-establiments-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 140px 180px;
  gap: 8px;
  margin-bottom: 14px;
}

/*
CERCA
*/

.comerc-search {
  position: relative;
}

.comerc-search input,
.comerc-establiments-filters select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  background: #ffffff;
  color: #444444;
  font-family: inherit;
  font-size: 11px;
  box-sizing: border-box;
}

.comerc-establiments-filters .comerc-establiments-unio-filter {
  min-width: 180px;
}

.comerc-search input {
  padding-left: 30px;
}

.comerc-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8885;
  font-size: 15px;
  pointer-events: none;
}

.comerc-establiments-filters select {
  appearance: auto;
}

/*
==========================================================
GRAELLA
==========================================================
*/

.comerc-establiments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/*
==========================================================
FITXA
==========================================================
*/

.comerc-establiment {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.comerc-establiment:hover {
  transform: translateY(-2px);
  border-color: #d2b0ba;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

/*
==========================================================
IMATGE
==========================================================
*/

.comerc-establiment-image {
  position: relative;
  height: 125px;
  overflow: hidden;
  background: #f2f0ee;
}

.comerc-establiment-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.comerc-establiment:hover .comerc-establiment-image img {
  transform: scale(1.03);
}

/*
IMATGE PER DEFECTE
*/

.comerc-establiment-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f2f0ee;
  color: #c4bfbb;
  font-size: 30px;
}

/*
==========================================================
LOGO UNIÓ DE BOTIGUERS
==========================================================
*/

.comerc-establiment-unio {
  position: absolute;
  right: 10px;
  bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 42px;

  padding: 4px 6px;

  background: #ffffff;
  border-radius: 5px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  z-index: 5;
}

.comerc-establiment-unio img.comerc-establiments-unio-botiguers {
  display: block;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
}

/*
==========================================================
CATEGORIA
==========================================================
*/

.comerc-establiment-category {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #a6193c;
  font-size: 9px;
  line-height: 1.2;
}

/*
==========================================================
CONTINGUT
==========================================================
*/

.comerc-establiment-content {
  padding: 9px 9px 8px;
}

.comerc-establiment-content h3 {
  margin: 0 0 5px;
  color: #292929;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.comerc-establiment-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 9px;
  color: #77736f;
  font-size: 10px;
  line-height: 1.3;
}

.comerc-establiment-location span {
  color: #a6193c;
  font-size: 13px;
}

/*
==========================================================
BOTONS
==========================================================
*/

.comerc-establiment-actions {
  display: flex;
  gap: 6px;
}

.comerc-establiment-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/*
==========================================================
BOTÓ PRINCIPAL
==========================================================
*/

.comerc-btn-primary {
  background: #a6193c;
  border: 1px solid #a6193c;
  color: #ffffff !important;
}

.comerc-btn-primary:hover {
  background: #620e23;
  border-color: #620e23;
}

/*
==========================================================
BOTÓ SECUNDARI
==========================================================
*/

.comerc-btn-secondary {
  background: #ffffff;
  border: 1px solid #d9b7c0;
  color: #a6193c !important;
}

.comerc-btn-secondary:hover {
  background: #faf1f3;
  border-color: #a6193c;
}

/*
ICONES DELS BOTONS
*/

.comerc-establiment-actions i {
  margin-right: 4px;
  font-size: 10px;
}

/*
==========================================================
MAPA
==========================================================
*/

.comerc-establiments-map-wrapper {
  margin-top: 30px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comerc-establiments-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeae7;
}

.comerc-establiments-map-header h3 {
  margin: 0 0 2px;
  color: #292929;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.comerc-establiments-map-header span {
  color: #77736f;
  font-size: 10px;
}

#comerc-map {
  width: 100%;
  height: 330px;
}

/*
==========================================================
POPUP DEL MAPA
==========================================================
*/

.comerc-map-popup h4 {
  margin: 0 0 4px;
  color: #292929;
  font-size: 13px;
  font-weight: 600;
}

.comerc-map-popup p {
  margin: 0 0 7px;
  color: #77736f;
  font-size: 10px;
}

.comerc-map-popup a {
  color: #a6193c;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.comerc-map-popup a:hover {
  color: #620e23;
}

/*
==========================================================
ESTAT SENSE RESULTATS
==========================================================
*/

.comerc-establiments-empty {
  grid-column: 1 / -1;
  padding: 35px 20px;
  border: 1px solid #e1dedb;
  border-radius: 7px;
  background: #ffffff;
  color: #77736f;
  font-size: 13px;
  text-align: center;
}

/*
==========================================================
MARCADOR PERSONALITZAT DEL MAPA
==========================================================
*/

.comerc-mapa-marker {
  background: transparent;
  border: 0;
}

.comerc-mapa-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #a6193c;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: rotate(-45deg);
}

.comerc-mapa-marker-pin i {
  font-size: 16px;
  transform: rotate(45deg);
}

/*
==========================================================
CATEGORIES DE COMERÇ
==========================================================
*/

.comerc-categories {
  padding: 18px 20px 38px;
  background: #f8f7f5;
}

.comerc-categories .container {
  max-width: 1200px;
  margin: 0 auto;
}

/*
GRID
*/

.comerc-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/*
TARGETA
*/

.comerc-category {
  position: relative;

  min-height: 100px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 18px 14px 20px;

  background: #ffffff;
  border: 1px solid #e5e2df;
  border-radius: 10px;

  color: #252525;
  text-decoration: none !important;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

/*
ICONA
*/

.comerc-category-icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.comerc-category-icon img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

/*
TEXT
*/

.comerc-category-name {
  display: block;
  width: 100%;
  flex: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #333333;
}

/*
FLETXA
*/

.comerc-category-arrow {
  position: absolute;
  right: 14px;
  bottom: 10px;

  font-size: 24px;
  font-weight: 300;
  line-height: 1;

  color: #a6193c;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/*
HOVER FLETXA
*/

.comerc-category:hover .comerc-category-arrow {
  color: #620e23;
  transform: translateX(5px);
}

.comerc-category:visited {
  color: #252525;
}

.comerc-category:hover {
  color: #252525;
  text-decoration: none !important;
  border-color: #d8c4ca;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.comerc-category:hover .comerc-category-name {
  color: #a6193c;
}

/*
IMATGE DESTACADA
*/

.comerc-category-image {
  position: relative;
  min-height: 100px;
  overflow: hidden;
  border-radius: 10px;
}

.comerc-category-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.comerc-category-image:hover img {
  transform: scale(1.04);
}

/*
==========================================================
FITXA DE CATEGORIA
==========================================================
*/

.comerc-categoria {
  padding: 50px 20px 60px;
  background: #ffffff;
}

.comerc-categoria .container {
  max-width: 1200px;
  margin: 0 auto;
}

/*
----------------------------------------------------------
FIL D'ARIADNA
----------------------------------------------------------
*/

.comerc-categoria-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;

  font-size: 14px;
  line-height: 1.4;
}

.comerc-categoria-breadcrumb a {
  color: #a6193c;
  text-decoration: none !important;
  transition: color 0.2s ease;
  font-weight: 600;
  font-size: 14px;
}

.comerc-categoria-breadcrumb a:hover {
  color: #a6193c;
  text-decoration: none !important;
}

.comerc-categoria-breadcrumb i {
  font-size: 10px;
  color: #999999;
}

.comerc-categoria-breadcrumb span {
  color: #666666;
  font-weight: 600;
}

/*
----------------------------------------------------------
CAPÇALERA DE LA CATEGORIA
----------------------------------------------------------
*/

/*
----------------------------------------------------------
TÍTOL DE LA CATEGORIA
----------------------------------------------------------
*/

.comerc-categoria-header {
  margin-bottom: 34px;
}

.comerc-categoria-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/*.comerc-categoria-accent {
  display: block;
  width: 34px;
  height: 4px;
  margin-top: 15px;
  flex: 0 0 34px;
  background: #a6193c;
  border-radius: 3px;
}*/

.comerc-categoria-heading-content {
  min-width: 0;
}

.comerc-categoria-heading h1 {
  margin: 0;
  color: #292929;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.comerc-categoria-heading-meta {
  margin-top: 9px;
}

.comerc-categoria-count {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: #f7e8ed;
  border-radius: 20px;
  color: #a6193c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.comerc-categoria-description {
  margin: 12px 0 0 48px;
  max-width: 760px;
  color: #77736f;
  font-size: 14px;
  line-height: 1.6;
}
/*
==========================================================
RESPONSIVE
==========================================================
*/

@media (max-width: 1000px) {
  .comerc-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .comerc-establiments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comerc-establiments-filters {
    grid-template-columns: 1fr 1fr;
  }

  .comerc-search {
    grid-column: 1 / -1;
  }

  .comerc-categoria {
    padding: 45px 20px 55px;
  }

  .comerc-categoria-heading h1 {
    font-size: 30px;
  }
}

@media (max-width: 700px) {
  .comerc-categories {
    padding: 15px 15px 30px;
  }

  .comerc-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .comerc-category {
    min-height: 135px;
    padding: 15px 10px 18px;
    gap: 7px;
  }

  .comerc-category-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .comerc-category-icon img {
    width: 42px;
    height: 42px;
  }

  .comerc-category-name {
    font-size: 13px;
  }

  .comerc-category-arrow {
    right: 9px;
    bottom: 8px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .comerc-establiments-filters {
    display: flex;
    flex-direction: column;
  }

  .comerc-establiments-grid {
    grid-template-columns: 1fr;
  }

  #comerc-map {
    height: 280px;
  }

  .comerc-establiments-actions {
    flex-wrap: wrap;
  }

  .comerc-categoria {
    padding: 35px 15px 45px;
  }

  .comerc-categoria-breadcrumb {
    gap: 6px;
    margin-bottom: 18px;
    font-size: 12px;
  }

  .comerc-categoria-breadcrumb i {
    font-size: 9px;
  }

  .comerc-categoria-header {
    margin-bottom: 27px;
  }

  .comerc-categoria-heading {
    gap: 10px;
  }

  .comerc-categoria-accent {
    width: 24px;
    flex-basis: 24px;
    height: 3px;
    margin-top: 11px;
  }

  .comerc-categoria-heading h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .comerc-categoria-heading-meta {
    margin-top: 7px;
  }

  .comerc-categoria-count {
    padding: 4px 9px;
    font-size: 10px;
  }

  .comerc-categoria-description {
    margin-left: 34px;
    margin-top: 9px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .comerc-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comerc-category {
    min-height: 125px;
  }
}
