.product-item{
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(20,20,20,0.06);
  transition:transform .25s ease, box-shadow .25s ease;
  overflow:hidden;
}
.product-item:hover{ transform: translateY(-4px); box-shadow:0 18px 40px rgba(20,20,20,0.12); }

.imgProduct{
  overflow:hidden;
  display:block;
  width:100%;
  height: 190px;
  perspective: 900px;
  position: relative;
}

:root {
  --main-bg: #000;
  --box-bg: #232323;
  --name-color: #fff;
  --card-bg-text: #ffff;

  --transition: all 0.5s ease;
}
.imgProduct img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.imgProduct img:hover{ transform: scale(5); }

/* 3D product card styles */
.product-card{
  /* container keeps perspective but we only tilt the image */
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* keep card visual but remove whole-card hover transforms */
.product-card .card{
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 6px 18px rgba(20,20,20,0.06);
  position: relative;
}

/* media wrapper provides perspective for the child image */
.product-card .card__media{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  -webkit-perspective: 900px;
  perspective: 900px;
}

.product-card .imgProduct{ height: 200px; border-bottom: 1px solid rgba(0,0,0,0.04); }

/* the image itself will be transformed on mousemove */
.product-card .imgProduct img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
  will-change: transform;
}

/* subtle lift shadow while interacting */
.product-card .imgProduct img.tilt-active{ box-shadow: 0 18px 40px rgba(20,20,20,0.14); }

.imgProduct img{
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
  will-change: transform;
}
.imgProduct img.tilt-active{ box-shadow: 0 18px 40px rgba(20,20,20,0.14); }

@media (max-width: 576px){
  .product-card .imgProduct{ height: 170px; }
}

/* CodePen-like card actions (heart + cart) and overall card styling */
.product-card .card{
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.product-card .card__media{ position: relative; }

.card__overlay{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 8;
  pointer-events: none; /* allow buttons to control pointer-events individually */
}

.card__overlay .action-btn{
  pointer-events: auto;
}

.action-btn{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 24px rgba(20,20,20,0.12);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  border: none;
}
.action-btn i{ font-size: 18px; line-height:1; }
.action-btn:hover{ transform: translateY(-6px) scale(1.04); box-shadow: 0 18px 40px rgba(20,20,20,0.16); }

.action-btn--fav{ background: #ffffff; color: #ff4b5c; }
.action-btn--fav.is-favorited{ background: linear-gradient(180deg,#ff4b5c,#ff2d4a); color: #fff; }

.action-btn--cart{ background: #111; color: #fff; position: relative; }
.action-btn--cart .cart-count{
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4b5c;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 6px 14px rgba(20,20,20,0.14);
}

/* price tag style like the pen */
.card__price-badge{
  position: absolute;
  left: 10px;
  bottom: 12px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20,20,20,0.08);
  z-index: 6;
}

.card__info{
  padding: 12px 14px 16px;
}

.card__title small{ font-size: 0.9rem; display:block; }

.card__footer{
  padding: 10px 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.btn-add-cart{
  background: var(--templateColor, #111);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display:inline-flex;
  gap:8px;
  align-items:center;
}

/* subtle hover scale for whole card */
.product-card .card:hover{ transform: translateY(-6px); box-shadow: 0 22px 48px rgba(15,15,15,0.12); }


.badgeNew{
	background:#4e94f0 !important; 
	color:white !important;
}


/* Sidebar styling for catalog (sticky inside container) */
@media (min-width: 768px) {
	.catalog-sidebar {
		position: -webkit-sticky;
		position: sticky;
		top: 20px;
		align-self: flex-start;
		overflow-y: auto;
		max-height: calc(100vh - 40px);
		z-index: 1030;
		background: #ffffff;
		border-right: 1px solid #e9ecef;
		padding-top: 20px;
		width: 180px; /* narrower as requested */
		min-width: 160px;
		max-width: 220px;
	}


}

select.form-select {
  appearance: none; /* Quita el estilo nativo */
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 10px;
  padding: 10px 40px 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23333' height='24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}


select.form-select:focus {
  border-color: #c8c8c8;
  box-shadow: 0 0 8px rgba(197, 197, 197, 0.5);
  outline: none;
}

.filter-col1 select.form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* evita que el padding agrande el ancho total */
  padding-right: 35px; /* ajusta el espacio del ícono sin salirse */
}

/* Overrides para Price Range Slider y inputs Min/Max
   Cargado al final para garantizar prioridad sobre vendor CSS
*/

/* container */
#price-slider, .products-page #price-slider{ margin: 12px 0 18px 0; height: 6px; }

/* ensure box-sizing for slider internals */
#price-slider .noUi-target, .noUi-target, .noUi-target *{ box-sizing: border-box; }

/* rail (background track) */
#price-slider .noUi-base, .noUi-base{
    height: 4px;
    border-radius: 6px;
    background: #e6e9ee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* selected range (filled part) */
#price-slider .noUi-connect, .noUi-connect{
    background: linear-gradient(90deg,#207bd6,#99bdff);
    height: 100%;
    border-radius: 6px;
}

/* handles (thumbs) */
#price-slider .noUi-handle, .noUi-handle{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: -7px; /* center vertically */
    background: #ffffff;
    border: 2px solid #a6d6f6;
    box-shadow: 0 4px 10px rgba(34,34,34,0.12);
    transition: transform .12s ease, box-shadow .12s ease;
}
#price-slider .noUi-handle:focus, .noUi-handle:focus, #price-slider .noUi-handle:hover, .noUi-handle:hover{
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(34,34,34,0.18);
}

/* tooltip above handles (smaller, less heavy) */
#price-slider .noUi-tooltip, .noUi-tooltip{
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    color: #232323;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(34,34,34,0.08);
    border-radius: 6px;
    transform: translateY(-6px);
}

/* subtle pips/values along the track */
#price-slider .noUi-pips .noUi-value, .noUi-pips .noUi-value{
    font-size: 11px;
    color: #6b6b6b;
}



/* Corrección de layout para listados most-seen y most-sold: 4 por fila en desktop */
@media (min-width: 992px){
  .row.grid-2:not(.grid-compact){ display:flex; flex-wrap:wrap; align-items:stretch; }
  .row.grid-2:not(.grid-compact) .product-item{ flex: 0 0 25% !important; max-width: 25% !important; display:block; box-sizing:border-box; float:none; }
  
  .row.grid-2.grid-compact{ display:flex; flex-wrap:wrap; align-items:stretch; }
  .row.grid-2.grid-compact .product-item{ flex: 0 0 33.333% !important; max-width: 33.333% !important; display:block; box-sizing:border-box; float:none; }
}

/* Asegurar 2 por fila en sm */
@media (min-width: 576px) and (max-width: 991.98px){
  .row.grid-2{ display:flex; flex-wrap:wrap; align-items:stretch; }
  .row.grid-2 .product-item{ flex: 0 0 50% !important; max-width: 50% !important; display:block; box-sizing:border-box; float:none; }
}

@media (max-width: 575.98px){
  .row.grid-2{ display:flex; flex-wrap:wrap; align-items:stretch; }
  .row.grid-2 .product-item{ flex: 0 0 100% !important; max-width: 100% !important; display:block; box-sizing:border-box; float:none; }
}



