/* --- Estilos específicos para PRODUCTOS (tarjetas, catálogo) --- */

/* Precio unificado */
.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2d7d46;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.transition-img {
    transition: transform 0.5s ease;
}

.card:hover .transition-img {
    transform: scale(1.05);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
}

/* === Estilos de páginas de detalle (producto y servicio) === */

.detail-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.detail-breadcrumb {
    font-size: 0.85rem;
    background: transparent;
}

.detail-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.detail-main-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.detail-no-img {
    background: #f0f4f0;
    min-height: 340px;
    border: 2px dashed #c8d8c8;
}

.detail-category-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2d7d46;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(45,125,70,0.25);
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.2rem;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: #2d7d46;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.5px;
}

.detail-meta-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #444;
}

.detail-meta-chip i {
    color: #2d7d46;
    font-size: 1rem;
}

.detail-description-block {
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
    border-left: 4px solid #2d7d46;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}

.detail-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d7d46;
    margin-bottom: 0.5rem;
}

.detail-description-text {
    color: #333;
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.detail-cta {
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(45,125,70,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,125,70,0.35);
}

/* Sección extra (materiales, beneficios, recomendado) */
.detail-extra-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.detail-extra-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.detail-extra-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.detail-extra-icon {
    width: 44px;
    height: 44px;
    background: #e8f5e9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.detail-extra-icon i {
    color: #2d7d46;
    font-size: 1.25rem;
}

.detail-extra-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-extra-text {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    white-space: pre-line;
}

/* Responsive: tablet/móvil */
@media (max-width: 767px) {
    .detail-title { font-size: 1.5rem; }
    .detail-price { font-size: 1.6rem; }
    .detail-main-img { max-height: 280px; }
    .detail-page-wrapper { padding: 1rem 0.75rem 2rem; }
}

/* === Estilos del Carrusel en product_detail === */
#productGallery .carousel-control-prev,
#productGallery .carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: opacity .2s ease, background-color .2s ease, box-shadow .2s ease;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

#productGallery .carousel-control-prev:hover,
#productGallery .carousel-control-next:hover,
#productGallery .carousel-control-prev:focus,
#productGallery .carousel-control-next:focus {
  background-color: rgba(0, 0, 0, 0.7);
  outline: none;
}

#productGallery .carousel-control-prev-icon,
#productGallery .carousel-control-next-icon {
  filter: none;
  width: 1.25rem;
  height: 1.25rem;
}

#productGallery .carousel-control-prev {
  left: 0.5rem;
}
#productGallery .carousel-control-next {
  right: 0.5rem;
}

#productGallery .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.5);
  margin: 0 4px;
}

#productGallery .carousel-indicators .active {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#productGallery .carousel-caption {
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

#productGallery .carousel-caption p {
  display: inline-block;
  background: rgba(0,0,0,.5);
  padding: .25rem .5rem;
  border-radius: .25rem;
}

/* === Category Cards === */
.category-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(45, 125, 70, 0.15) !important;
    border-left-color: #2d7d46;
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-wrapper i {
    font-size: 1.3rem;
    color: #2d7d46;
}

.category-card:hover .category-icon-wrapper {
    background: linear-gradient(135deg, #2d7d46, #4caf50);
}

.category-card:hover .category-icon-wrapper i {
    color: #fff;
}
