:root {
  --bg: #f9f9f9;
  --text-dark: #222;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.titleC {
  font-size: 1.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  padding: 0.6rem 1rem;
  border-left: 8px solid;
  background: linear-gradient(to right, #f4f4f4, #ffffff);
  border-radius: 12px;
  box-shadow: 0 3px 8px var(--shadow);
}

.titleC img {
  width: 26px;
  height: 26px;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0071bc;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 3px 8px var(--shadow);
}

.btn-link i {
  font-size: 0.9rem;
}

.btn-link:hover {
  background: #005a96;
}

.carousel-wrap {
  position: relative;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.product-card {
  position: relative;
  flex: 0 0 275px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  perspective: 1000px;
  border: 2px solid transparent;
  scroll-snap-align: start;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid #aad4ff;
}

.product-card .add_to_cart_button::before {
  content: "\f07a"; /* carrito */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900; /* sólido */
}

.product-image-container {
  background: linear-gradient(145deg, #f3f6fa, #dfe6ef);
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.product-image {
  width: 180px;
  height: auto;
  margin: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.product-card:hover .product-image {
  transform: scale(1.25) rotateZ(-3deg) translateY(-5px);
}

/* BOTÓN AÑADIR AL CARRITO */
.add_to_cart_button,
.product_type_simple,
.product_type_variable {
  font-size: 0 !important; /* oculta texto */
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  overflow: hidden;
  text-decoration: none;
}

/* Ícono carrito */
.add_to_cart_button::before,
.product_type_simple::before,
.product_type_variable::before {
  content: "\f07a"; /* icono carrito Font Awesome */
  font-weight: 900;
  font-size: 18px;
  color: #333;
}

/* Hover carrito */
.add_to_cart_button:hover,
.product_type_simple:hover,
.product_type_variable:hover {
  background: #27ae60;
}
.add_to_cart_button:hover::before,
.product_type_simple:hover::before,
.product_type_variable:hover::before {
  color: #fff;
}

/* BOTÓN WISHLIST */
.tinvwl_add_to_wishlist_button {
  font-size: 0 !important; /* oculta texto */
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  overflow: hidden;
}

/* Ícono corazón */
.tinvwl_add_to_wishlist_button::before {
  content: "\f004"; /* icono corazón Font Awesome */
  font-weight: 900;
  font-size: 18px;
  color: #333;
}

/* Hover wishlist */
.tinvwl_add_to_wishlist_button:hover {
  background: #e74c3c;
}
.tinvwl_add_to_wishlist_button:hover::before {
  color: #fff;
}

.badge,
.ref,
.category {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 12px;
}

.badge {
  top: 16px;
  left: 16px;
  background: #00b894;
  color: white;
}

.ref {
  top: 46px;
  left: 16px;
  background: #e3e6ed;
  color: #444;
}

.category {
  top: 16px;
  right: 16px;
  background: #dfe6ed;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category img {
  width: 16px;
  height: 16px;
}

.product-details {
  padding: 20px 24px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 4px;
}

.product-price {
  font-size: 22px;
  font-weight: bold;
  color: #09804f;
}

.btn {   
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 16px;
  cursor: pointer;
}  