/* =========================================
   TIENDA / CATÁLOGO
   ========================================= */

.tienda-page {
  padding: 10px 0 70px;
}

/* =========================================
   BREADCRUMB
   ========================================= */

.tienda-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  font-size: 14px;
  color: #777;
}

.tienda-breadcrumb a {
  color: #222;
  text-decoration: none;
}

.tienda-breadcrumb a:hover {
  color: #f97316;
}

.tienda-breadcrumb span:last-child {
  color: #f97316;
}

/* =========================================
   ENCABEZADO
   ========================================= */

.tienda-header {
  margin-bottom: 15px;
}

.tienda-header h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.tienda-header p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

/* =========================================
   FILTROS
   ========================================= */

.tienda-filters {
  margin-bottom: 12px;

  padding: 14px 18px 16px;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  background: #ffffff;

  box-sizing: border-box;
}

/* =========================================
   TÍTULO GENERAL
   ========================================= */

.tienda-filters-title {
  margin: 0 0 14px;

  color: #222222;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

/* =========================================
   GRUPO DE FILTROS
   ========================================= */

.tienda-filter-group {
  margin: 0;
}

.tienda-filter-group + .tienda-filter-group {
  margin-top: 12px;
}

/* =========================================
   TÍTULO DEL GRUPO
   ========================================= */

.tienda-filter-group-title {
  margin: 0 0 9px;

  color: #333333;

  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
}

/* =========================================
   CATEGORÍAS
   ========================================= */

.tienda-categories {
  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 10px;

  width: 100%;

  margin: 0;
}

/* =========================================
   MARCAS
   ========================================= */

.tienda-brand-buttons {
  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 10px;

  width: 100%;

  margin: 0;
}

/* =========================================
   BOTONES
   ========================================= */

.tienda-filter-button,
.tienda-brand-button {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;

  padding: 0 12px;

  border: 1px solid #e1e5e9;
  border-radius: 9px;

  background: #ffffff;

  color: #222222;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;

  box-sizing: border-box;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* =========================================
   BOTONES DE MARCA
   ========================================= */

.tienda-brand-button {
  min-width: 0;
}

/* =========================================
   HOVER
   ========================================= */

.tienda-filter-button:hover,
.tienda-brand-button:hover {
  border-color: #f97316;

  color: #f97316;
}

/* =========================================
   BOTÓN ACTIVO
   ========================================= */

.tienda-filter-button.active,
.tienda-brand-button.active {
  background: #f97316;

  border-color: #f97316;

  color: #ffffff;
}

.tienda-filter-button.active:hover,
.tienda-brand-button.active:hover {
  background: #f97316;

  border-color: #f97316;

  color: #ffffff;
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {
  /* -----------------------------------------
     OCULTAR FILTROS DESKTOP
     ----------------------------------------- */

  .tienda-filters {
    display: none;
  }

  /* -----------------------------------------
     CONTENEDOR DE FILTROS
     ----------------------------------------- */

  .tienda-mobile-filters {
    display: block;

    width: 100%;

    margin-bottom: 20px;
  }

  /* -----------------------------------------
     BOTÓN FILTROS
     ----------------------------------------- */

  .tienda-mobile-filter-button {
    width: 100%;
    height: 46px;

    padding: 0 16px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    color: #222222;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-sizing: border-box;

    list-style: none;

    transition:
      border-color 0.2s ease,
      color 0.2s ease;
  }

  .tienda-mobile-filter-button::-webkit-details-marker {
    display: none;
  }

  .tienda-mobile-filter-button:hover {
    border-color: #f97316;
    color: #f97316;
  }

  /* -----------------------------------------
     ICONO DEL BOTÓN
     ----------------------------------------- */

  .tienda-mobile-filter-button > span:first-child {
    display: flex;
    align-items: center;
  }

  /* -----------------------------------------
     DROPDOWN
     ----------------------------------------- */

  .tienda-mobile-filter-dropdown {
    width: 100%;

    margin-top: 10px;

    padding: 0 18px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     SECCIONES
     ----------------------------------------- */

  .tienda-mobile-filter-section {
    padding: 18px 0;

    border-bottom: 1px solid #eeeeee;
  }

  .tienda-mobile-filter-section:last-child {
    border-bottom: 0;
  }

  /* -----------------------------------------
     TÍTULO DE SECCIÓN
     ----------------------------------------- */

  .tienda-mobile-filter-section-title {
    width: 100%;

    padding: 0;

    color: #222222;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     OPCIONES
     ----------------------------------------- */

  .tienda-mobile-filter-options {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 15px;
  }

  .tienda-mobile-filter-option {
    width: 100%;

    min-height: 40px;

    padding: 8px 10px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background: #ffffff;

    color: #333333;

    font-size: 14px;

    text-align: left;

    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    box-sizing: border-box;
  }

  .tienda-mobile-filter-option:hover {
    border-color: #f97316;
    color: #f97316;
  }

  /* -----------------------------------------
     CHECK
     ----------------------------------------- */

  .filter-check {
    width: 17px;
    height: 17px;

    border: 1px solid #d5d5d5;
    border-radius: 4px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    box-sizing: border-box;
  }

  .tienda-mobile-filter-option.active .filter-check {
    background: #f97316;

    border-color: #f97316;
  }

  .tienda-mobile-filter-option.active .filter-check::after {
    content: "✓";

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
  }
}

/* =========================================
   FILTROS DESPLEGABLES - MÓVIL
   ========================================= */

@media (max-width: 767px) {
  /* -----------------------------------------
     OCULTAR FILTROS DESKTOP
     ----------------------------------------- */

  .tienda-filters {
    display: none;
  }

  /* -----------------------------------------
     CONTENEDOR
     ----------------------------------------- */

  .tienda-mobile-filters {
    display: block;

    width: 100%;

    margin-bottom: 20px;
  }

  /* -----------------------------------------
     BOTÓN FILTROS
     ----------------------------------------- */

  .tienda-mobile-filter-button {
    width: 100%;
    min-height: 44px;

    padding: 0 16px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    color: #222222;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-sizing: border-box;

    list-style: none;

    transition:
      border-color 0.2s ease,
      color 0.2s ease;
  }

  /* Quitar triángulo nativo de details */

  .tienda-mobile-filter-button::-webkit-details-marker {
    display: none;
  }

  .tienda-mobile-filter-button::marker {
    display: none;
  }

  /* -----------------------------------------
     ICONO
     ----------------------------------------- */

  .tienda-mobile-filter-button > span:first-child {
    display: flex;
    align-items: center;
  }

  /* -----------------------------------------
     HOVER
     ----------------------------------------- */

  .tienda-mobile-filter-button:hover {
    border-color: #f97316;
    color: #f97316;
  }

  /* -----------------------------------------
     DROPDOWN
     ----------------------------------------- */

  .tienda-mobile-filter-dropdown {
    width: 100%;

    margin-top: 10px;

    padding: 0 16px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     SECCIONES
     ----------------------------------------- */

  .tienda-mobile-filter-section {
    padding: 16px 0;

    border-bottom: 1px solid #eeeeee;
  }

  .tienda-mobile-filter-section:last-child {
    border-bottom: 0;
  }

  /* -----------------------------------------
     TÍTULO DE SECCIÓN
     ----------------------------------------- */

  .tienda-mobile-filter-section-title {
    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    color: #222222;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     OPCIONES
     ----------------------------------------- */

  .tienda-mobile-filter-options {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 14px;
  }

  /* -----------------------------------------
     OPCIÓN
     ----------------------------------------- */

  .tienda-mobile-filter-option {
    width: 100%;

    min-height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #333333;

    font-size: 14px;

    text-align: left;

    display: flex;
    align-items: center;

    gap: 10px;

    cursor: pointer;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     CHECKBOX
     ----------------------------------------- */

  .filter-check {
    width: 18px;
    height: 18px;

    border: 1px solid #d5d5d5;
    border-radius: 4px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    box-sizing: border-box;
  }

  /* -----------------------------------------
     CHECK ACTIVO
     ----------------------------------------- */

  .tienda-mobile-filter-option.active .filter-check {
    background: #f97316;

    border-color: #f97316;
  }

  .tienda-mobile-filter-option.active .filter-check::after {
    content: "✓";

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
  }
}

/* =========================================
   VISIBILIDAD RESPONSIVE DE LOS FILTROS
   ========================================= */

/* Por defecto: mostrar únicamente los filtros desktop */
.tienda-mobile-filters {
  display: none;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1100px) {
  .tienda-filters {
    display: none;
  }

  .tienda-mobile-filters {
    display: block;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .tienda-filters {
    display: none;
  }

  .tienda-mobile-filters {
    display: block;
  }
}

/* =========================================
   DESPLEGABLES DE FILTROS
   ========================================= */

.tienda-mobile-filter-section {
  border-bottom: 1px solid #eeeeee;
  padding: 18px 0;
}

/* SUMMARY */

.tienda-mobile-filter-section-title {
  width: 100%;

  padding: 0;

  border: 0;

  background: transparent;

  color: #222222;

  font-size: 15px;

  font-weight: 600;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  list-style: none;
}

/* Ocultar marcador nativo de details */

.tienda-mobile-filter-section-title::-webkit-details-marker {
  display: none;
}

.tienda-mobile-filter-section-title::marker {
  display: none;
}

/* =========================================
   FLECHA
   ========================================= */

.tienda-mobile-filter-arrow {
  width: 8px;
  height: 8px;

  border-right: 1.5px solid #555;
  border-bottom: 1.5px solid #555;

  transform: rotate(225deg);

  transition: transform 0.2s ease;

  margin-right: 3px;
}

/* Cuando el desplegable está cerrado */

.tienda-mobile-filter-section:not([open]) .tienda-mobile-filter-arrow {
  transform: rotate(45deg);
}

/* =========================================
   OPCIONES
   ========================================= */

.tienda-mobile-filter-options {
  display: flex;

  flex-direction: column;

  gap: 13px;

  margin-top: 16px;
}

/* =========================================
   PRODUCTOS
   ========================================= */

.tienda-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ========================================
   CÓMO COMPRAR
   ======================================== */

.how-to-buy {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ========================================
   TÍTULO
   ======================================== */

#how-to-buy-title {
  margin: 0;

  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

#how-to-buy-title span {
  color: #f97316;
}

/* ========================================
   CONTENEDOR DE PASOS
   ======================================== */

.how-to-buy .uk-flex {
  width: 100%;
}

/* ========================================
   TARJETAS
   ======================================== */

.how-to-buy-step {
  width: 230px;
  min-height: 155px;

  padding: 15px 15px;

  box-sizing: border-box;

  border: 1px solid #e5e5e5;
  border-radius: 12px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  background-color: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ========================================
   ICONOS
   ======================================== */

.how-to-buy-step > img {
  width: 65px;
  height: 65px;

  object-fit: contain;

  display: block;

  margin-bottom: 5px;
}

/* ========================================
   NÚMERO
   ======================================== */

.how-to-buy-step h3 {
  margin: 0 0 3px;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;

  color: #222222;
}

/* ========================================
   TÍTULO DEL PASO
   ======================================== */

.how-to-buy-step h4 {
  margin: 0 0 5px;

  color: #222222;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */

.how-to-buy-step p {
  margin: 0;

  color: #666666;

  font-size: 12px;
  line-height: 1.35;
}

/* ========================================
   FLECHAS
   ======================================== */

.how-to-buy-arrow {
  width: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.how-to-buy-arrow img {
  width: 45px;
  height: auto;

  display: block;
}

/* ========================================
   TABLET
   ======================================== */

@media (min-width: 768px) and (max-width: 1100px) {
  .how-to-buy {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  #how-to-buy-title {
    font-size: 26px;
  }

  .how-to-buy .uk-flex {
    gap: 0;
  }

  .how-to-buy-step {
    width: 190px;
    height: 170px;
    min-height: 190px;

    padding: 12px 10px;
  }

  .how-to-buy-step > img {
    width: 55px;
    height: 55px;
  }

  .how-to-buy-step h3 {
    font-size: 13px;
  }

  .how-to-buy-step h4 {
    font-size: 13px;
  }

  .how-to-buy-step p {
    font-size: 11px;
  }

  .how-to-buy-arrow {
    width: 35px;
  }

  .how-to-buy-arrow img {
    width: 30px;
  }
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {
  .how-to-buy {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #how-to-buy-title {
    font-size: 24px;
  }

  .how-to-buy .uk-flex {
    flex-direction: column;
    gap: 15px;
  }

  .how-to-buy-step {
    width: 100%;
    max-width: 320px;
    min-height: 150px;
  }

  .how-to-buy-arrow {
    transform: rotate(90deg);

    width: 40px;
    height: 30px;
  }
}
