/* Banner */
html { 
  overflow-x: visible !important;
}
#main,
.container_wrap,
.avia-section {
  overflow: visible !important;
}

#wrap_all {
  transform: none !important;
  overflow: visible !important;
}

.category-banner {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-banner-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.6)
  );
  height: 100%;
  display: flex;
  align-items: center;
}

.category-title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-description {
  color: #eee;
  font-size: 18px;
  max-width: 600px;
}


@media (max-width: 768px) {

  .category-banner {
    height: 280px;
  }

  .category-title {
    font-size: 32px;
  }

}


/* Toolbar sticky */

.category-header {
  position: sticky;
  top: 75px; /* ajusta según la altura real de tu header */
  z-index: 100;
  background: #fff;
  z-index: 40;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);

  transition: all .25s ease;
}

.category-header.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  height: 60px;
  padding: auto;
}

.category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 55px;
}

/* Breadcrumb */

.category-breadcrumb {
  font-size: 14px;
  color: #666;
}

.category-breadcrumb a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 990px) {
  .category-header {
    top: 0;
  }
}
@media (max-width: 640px) {
  .category-breadcrumb {
    font-size: 12px;
  }
}

/* Botón filtros */

.filter-button {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 20px;
  border-radius: 40px;

  background: #000;
  color: #fff;
  border: none;

  font-weight: 600;
  font-size: 1em;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .15s ease;
}

.filter-button:hover {
  /*transform: translateY(-2px);*/
  background: #000000dd;
}

/* grid de productos */
.category-content {
  padding-top: 30px;
}

/* Grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Laptop */

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 640px) {

  .category-toolbar {
    height: 64px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}


/* Load more */
#load-more-wrapper {
  text-align: center;
  margin: 40px 0 80px;
}

#load-more-products {
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  background: black;
  color: white;
  cursor: pointer;
  font-weight: 600;
}



/* PRODUCT CARD */

/* Desactiva hover default de Enfold en productos */
.product-card a {
  all: unset;
  cursor: pointer;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  transition: all .2s ease;
  position: relative;
}

.product-card:hover {
  border: 1px solid #505050;
  box-shadow: 0 12px 12px rgba(0,0,0,0.04);
}
  
.product-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
    padding: 20px;
}

/* Hover zoom */
.product-card:hover img {
    transform: scale(1.05);
}

.product-card .tags {
  position: absolute;
  top: 15px;
  left: 10px;
  display: flex;
  gap: 7px;
}

.tags-item {
  padding: 1px 6px;
  
  background-color: #464141;
  border-radius: 3px;
  color: rgb(255, 255, 255);
}

.oferta {
  background-color: #e10600;
  color: white;
}
.product-info {
    display: flex;
    height: 35%;
    gap: 12px;
    flex-direction: column;
    justify-content: end;
    padding: 10px;
    background-color: #f3f3f3;
}

.product-title {
  font-size: 16px;
  margin: 0;
}

.product-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;

}

.product-meta-text {
  color: #646464;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
}

.product-stock-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-colors {
  display: flex;
  gap: 8px;
}

.color-dot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: transparent;
}

/* ejemplos */
.color-black { background: #111; }
.color-green { background: #2f6f5f; }
.color-blue { background: #1e3a8a; }
.color-red { background: #9b1c1c; }
.color-rainbow {
    background: conic-gradient(red, orange, yellow, green, blue, purple);
}



/* Modal */
.filters-loading {
  pointer-events: none;
}

.filters-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.filters-modal.active {
  display: block;
}

.filters-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.35);
}

.filters-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .filters-container {
    width: 85%;
    max-height: 85vh;
  }
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.filters-header h3 {
  margin: 0;
}

.filters-header .filters-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 1.5em;
  border: none;
  outline: none;  
  border-radius: 50%;
  background-color: white;
}

.filters-header .filters-close:hover { cursor: pointer; }


.filters-body {
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 0;
  flex: 1;
}

.filters-body .filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(229, 229, 229);
}

.filter-group .filter-title {
  font-weight: 900;
  font-size: 1.2em;
  color: black;
}

.filter-group .filter-options {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 3px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
}

.filter-checkbox input {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

/* caja */
.filter-checkbox .checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

/* hover */
.filter-checkbox:hover .checkmark {
  border-color: #000;
}

/* activo */
.filter-checkbox input:checked + .checkmark {
  background: #000;
  border-color: #000;
}

/* palomita */
.filter-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* disabled */
.filter-checkbox.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.filters-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 16px;
}

.filters-footer button {
  flex: 1;
  padding: 8px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.filters-footer button:hover { cursor: pointer; }

.filters-clear {
  background-color: #eee;
  color: black;
}
.filters-clear:hover { outline: 1px solid black; } 

.filters-apply {
  background: #111111db;
  color: white;
}
.filters-apply:hover { background-color: #111; } 

body.modal-open {
  overflow: hidden;
}

/* Filtros activos */
#selected-filters {
  width: 85%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
  flex-direction: column;
}

#selected-filters .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-filter {
  background: #f2f2f2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.results-count {
  margin-left: 12px;
  font-weight: 500;
}


/* Skeleton cards */
.product-skeleton {
  background: #f3f3f3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.product-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: skeleton-loading 1.2s infinite;
}

@keyframes skeleton-loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.skeleton-image {
  height: 220px;
  background: #e5e5e5;
}

.skeleton-content {
  padding: 12px;
}

.skeleton-line {
  height: 12px;
  background: #e5e5e5;
  margin-bottom: 8px;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.price {
  width: 40%;
}
