

/* ============================
   LAYOUT GENERAL
============================ */
.catalog-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ============================
   LEFT FILTER COLUMN
============================ */
.catalog-filters {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e2e2;
  height: fit-content;
  box-sizing: border-box;
}

.catalog-filters h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.catalog-price-range {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.catalog-price-range input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
}

.catalog-price-range input:focus {
    border-color: #d4af37;
}
/* Quitar flechas en inputs number (price range) */
.catalog-price-range input[type="number"] {
    -moz-appearance: textfield;
}

.catalog-price-range input[type="number"]::-webkit-inner-spin-button,
.catalog-price-range input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-select {
    position: relative;
    margin-top: 10px;
}

.catalog-select select {
    width: 100%;
    padding: 10px 38px 10px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* flecha custom */
.catalog-select::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

/* focus */
.catalog-select select:focus {
    outline: none;
    border-color: #d4af37;
}



.catalog-apply-btn {
    position: relative;        /* ⬅️ referencia para ::after */
    overflow: hidden;          /* ⬅️ evita que se salga */
    display: block;
    border: none;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background: linear-gradient(135deg, #D4AF37, #f9e076);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.catalog-apply-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: transform 0.6s ease;
}

.catalog-apply-btn:hover::after {
    transform: translateX(240%);
}

.catalog-apply-btn:hover {
    transform: scale(1.05);
}
/* ============================
   RIGHT CONTENT
============================ */
.catalog-main {
  flex: 1;
}

.catalog-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* SEARCH */
.catalog-search input {
  padding: 10px 14px;
  width: 260px;
  outline: none;
  border: 1px solid #d4af37;
  border-radius: 8px;
}

/* ===== SORT SELECT ===== */

.catalog-sort {
    display: flex;
    align-items: center;
}

/* wrapper */
.catalog-select {
    position: relative;
}

/* select */
.catalog-select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 38px 10px 14px;
    border-radius: 18px;
    border: 1px solid #d4af37;

    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* hover */
.catalog-select select:hover {
    border-color: #b9972e;
}

/* focus */
.catalog-select select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* arrow */
.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;

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

/* opcional: efecto sutil al cambiar */
.catalog-select select:active {
    transform: scale(0.98);
}

/* ============================
   PRODUCT GRID
============================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================
   PRODUCT CARD
============================ */
.catalog-card {
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
}

/* IMAGE */
.catalog-card-img-wrapper {
  height: 330px;
  position: relative;
  overflow: hidden;
}

.catalog-card-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ADD TO CART BUTTON (VISIBLE SOLO EN HOVER) */
.catalog-addcart-btn {
  position: absolute;
  bottom: 10px;
  left: 5%;
  width: 90%;
  padding: 10px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #D4AF37, #f9e076);
  border: none;
  border-radius: 8px;
  text-transform: capitalize;
  cursor: pointer;
  opacity: 0;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover .catalog-addcart-btn {
  opacity: 1;
}

.catalog-addcart-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: all 0.5s ease;
}

.catalog-addcart-btn:hover::after {
  left: 100%;
}


.catalog-addcart-btn:hover {
  transform: scale(1.05);
}

/* INFO */
.catalog-card-info {
  padding: 16px;
}

.catalog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.catalog-card-price {
  font-size: 17px;
}



/* Button matching wishlist style */
.details-icon {
  position: absolute;
  opacity: 0;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  padding: 6px;
  width: 20px;
  height: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.details-icon:hover {
  background: #fff;
  transform: scale(1.1);
}


.catalog-card:hover .details-icon {
  opacity: 1;
}


.catalog-card-img-wrapper {
  position: relative;
}

.catalog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.page-number {
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    font-weight: 500;
}

.page-number:hover {
    background: rgba(0,0,0,0.05);
}

.page-number.active {
    background: linear-gradient(135deg, #D4AF37, #f9e076);
    color: #fff;
}

.page-arrow {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.page-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.page-arrow:hover {
    background: rgba(0,0,0,0.05);
}

.page-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.dots {
    padding: 0 6px;
    color: #888;
    font-weight: 600;
}


@media (max-width: 768px) {

  /* Layout general */
  .catalog-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  /* Filtros ARRIBA */
  .catalog-filters {
    order: 1;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
  }

  /* Contenido abajo */
  .catalog-main {
    order: 2;
  }
  .catalog-filters h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .catalog-filters label {
    font-size: 12px;
    font-weight: 600;
  }

  .catalog-price-range {
    gap: 6px;
  }

  .catalog-price-range input {
    padding: 6px 8px;
    font-size: 13px;
  }

  .catalog-select select {
    padding: 8px 34px 8px 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  .catalog-apply-btn {
    margin-top: 12px;
    padding: 8px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .catalog-topbar {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-search input {
    width: 100%;
  }

  .catalog-sort {
    width: 100%;
  }

  .catalog-sort .catalog-select {
    width: 100%;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .catalog-addcart-btn {
      opacity: 1;
    }
  
    .catalog-card:hover .catalog-addcart-btn {
      opacity: 1;
    }
    

  .catalog-card-img-wrapper {
    height: 300px;
  }

  .catalog-card-img {
    height: 300px;
  }
  

  .catalog-card-title {
    font-size: 14px;
  }

  .catalog-card-price {
    font-size: 15px;
  }
  

}




