/**
*	PÁGINA TIENDA
*	=======================================================================================================
**/

/** TÍTULO ============== **/
.shop-title {
  position: relative;
  padding: 60px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.shop-title__heading {
  font: 500 2.4rem var(--font-heading);
  color: var(--color-dark);
  margin: 0 0 12px;
}

@media screen and (min-width: 980px) {
  .shop-title {
    padding: 95px 0;
  }

  .shop-title__heading {
    font-size: 3rem;
  }
}

.breadcrumb.-banner {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
}

/** CATEGORÍAS ============== **/
.shop-categories {
  padding: 50px 0 10px;
}

.shop-categories__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.shop-categories__image {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

@media screen and (min-width: 980px) {
  .shop-categories__image {
    width: 120px;
    height: 120px;
  }
}

.shop-categories__title {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  text-align: center;
}

/** TOOLBAR ============== **/
.shop__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.shop__toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop__filters-btn {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-dark);
  cursor: pointer;
}

.shop__result-count {
  display: none;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

@media screen and (min-width: 580px) {
  .shop__result-count {
    display: block;
  }
}

.shop__toolbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.shop__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop__sort-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

@media screen and (max-width: 579.98px) {
  .shop__sort-label {
    display: none;
  }
}

.shop__sort-select {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-dark);
}

.shop__view {
  display: none;
  align-items: center;
  gap: 12px;
}

@media screen and (min-width: 580px) {
  .shop__view {
    display: flex;
  }
}

.shop__view-btn {
  display: flex;
  background: none;
  border: none;
  padding: 6px;
  color: var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.shop__view-btn:hover,
.shop__view-btn.is-active {
  color: var(--color-dark);
}

.shop__view-icon {
  width: 20px;
  height: 20px;
}

/** LAYOUT: GRID ============== **/
.shop__row {
  display: block;
}

/** SIDEBAR / FILTROS (siempre off-canvas, se abre con el botón "Filtros") ============== **/
.shop__sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop__sidebar.is-open {
  left: 0;
  box-shadow: 4px 0 20px rgb(0 0 0 / 15%);
}

.shop__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.shop__sidebar-title {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-dark);
}

.shop__sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-dark);
}

.shop__sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 50%);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.shop__sidebar-overlay.is-open {
  display: block;
  opacity: 1;
}

.shop__widget-title {
  font: 500 1rem var(--font-heading);
  margin: 0 0 16px;
  color: var(--color-dark);
}

.shop__categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop__categories a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.shop__categories a:hover,
.shop__categories a.is-active {
  color: var(--color-dark);
}

.shop__categories a.is-active {
  font-weight: 500;
}

.shop__price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.shop__price-inputs input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-dark);
}

.shop__price-inputs span {
  color: var(--color-text-secondary);
}

.shop__price-btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 0.75rem;
}

.shop__material-filter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop__material-filter li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop__material-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.shop__material-count {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

/** GRID DE PRODUCTOS ============== **/
.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 20px;
  min-width: 0;
}

.shop__grid > .product-card {
  min-width: 0;
}

.shop__grid:not(.-list) .product-card__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shop__grid:not(.-list) .product-card__name a {
  display: block;
}

@media screen and (min-width: 580px) {
  .shop__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 980px) {
  .shop__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shop__grid.-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.shop__grid.-list .product-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    padding: 2.3rem 0;
}

.shop__grid.-list .product-card__image-box {
    width: 340px;
    flex-shrink: 0;
    margin-bottom: 0;
}

@media screen and (max-width: 579.98px) {
  .shop__grid.-list .product-card {
    flex-direction: column;
    gap: 16px;
  }

  .shop__grid.-list .product-card__image-box {
    width: 100%;
  }
}

.shop__grid.-list .product-card__actions {
  display: none;
}

.shop__grid.-list .product-card__body {
  text-align: left;
  width: 100%;
}

.shop__grid.-list .product-card__name {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.shop__grid.-list .product-card__price-current {
  font-size: 1rem;
}

.shop__grid.-list .product-card:hover .product-card__price {
  opacity: 1;
  transform: none;
}

.shop__grid.-list .product-card__price-wrap .product-card__add-to-cart {
  display: none;
}

.shop__grid.-list .product-card__desc {
  display: block;
  max-width: 460px;
  margin: 14px 0 0;
}

.shop__grid.-list .product-card__list-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.shop__grid.-list .product-card__list-actions .btn {
  padding: 10px 26px;
}

.shop__grid.-list .product-card__list-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.shop__grid.-list .product-card__list-action-icon {
  width: 18px;
  height: 18px;
}

.shop__grid.-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 980px) {
  .shop__grid.-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop__grid.-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop__grid.-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/** PAGINACIÓN ============== **/
.shop__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.shop__page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.shop__page-link:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.shop__page-link.is-current {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.shop__page-link.-next {
  padding: 0 16px;
}
