/* components.css - Buttons, products, modals, footer, whatsapp, carousel, categories */
/* Generado automáticamente a partir de styles.css */

/* Productos Grilla */
.products-grid .product-card {
    margin-bottom: 0;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 100%;
    animation: fadeIn 0.5s ease-in-out;
    background: var(--white);
    position: relative;
    /* Reducir blur para mejorar rendimiento en Chromium */
    backdrop-filter: blur(3px);
    transform: translateZ(0) translateY(0) scale(1);
    transition: transform 0.18s ease-out, box-shadow 0.22s ease-out, background 0.22s ease-out, border-color 0.22s ease-out;
    width: 100%;
}
.products-grid .product-card.compact .product-img {
    height: 160px;
}
.products-grid .product-card.compact .card-body {
    padding: 0.75rem;
}
.products-grid .product-card.compact .product-title {
    font-size: 0.95rem;
}
.products-grid .product-card.compact .product-desc {
    font-size: 0.825rem;
}
.products-grid .product-card.compact .product-price {
    font-size: 0.95rem;
}

.products-grid .product-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
}

.products-grid .product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    border-radius: inherit;
    /* Blur estÃ¡tico mÃ¡s bajo para evitar animaciones de filtro costosas */
    filter: blur(4px);
    transition: opacity 0.18s ease-out;
}

.products-grid .product-card:hover::before {
    opacity: 0.28;
}

.products-grid .product-img {
    height: 260px;
    width: 100%;
    object-fit: contain;
    background: #e9eef5;
    transform: scale(1);
    filter: brightness(1) saturate(1);
    transition: transform 0.18s ease-out, filter 0.18s ease-out;
}

.products-grid .product-card:hover .product-img {
    transform: scale(1.1);
}

.products-grid .product-img.img-error,
.products-list .product-img.img-error {
    opacity: 0.35;
    border: 1px dashed #ccc;
}


/* OptimizaciÃ³n hover: transiciones sÃ³lo en propiedades aceleradas */
.products-grid .product-card {
    transform: translateZ(0);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    backface-visibility: hidden;
}
.products-grid .product-card:hover {
    transform: translate3d(0, -2px, 0) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.products-grid .card-body {
    padding: 0.5rem 1rem 1rem 1rem;
    background-color: white;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
    position: relative;
    overflow: hidden;
}

/* Evitar gradientes en hover del body (causan repaints pesados) */
.products-grid .product-card:hover .card-body {
    background-color: rgba(255, 255, 255, 0.98);
}

.products-grid .product-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.products-grid .product-card:hover .product-title {
    color: var(--primary);
    transform: translateY(-2px);
}

.products-grid .product-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

/* TambiÃ©n truncar descripciÃ³n en la vista de lista */
.products-list .product-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

/* Truncado universal para tarjetas (incluye carruseles destacados y recientes) */
.product-card .product-desc {
    font-size: 0.875rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

/* GalerÃ­a de miniaturas en detalles */
.thumb-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}
.thumb-item {
    position: relative;
    display: block;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thumb-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb-item img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}
.thumb-video-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* BotÃ³n para abrir modal dentro del carrusel */
#productCarousel .open-media-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    opacity: 0.85;
}

/* Asegurar mÃ¡ximo tamaÃ±o del contenido del modal de medios */
body:has(dialog.media-dialog[open]) {
    overflow: hidden;
}
dialog.media-dialog#mediaModal {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
}
dialog.media-dialog#mediaModal[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
dialog.media-dialog#mediaModal::backdrop {
    background: rgba(0,0,0,0.70);
    backdrop-filter: blur(20px);
}
#mediaModalContent {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
#mediaModalContent img,
#mediaModalContent video {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* BotÃ³n de cierre (X) flotante */
#mediaModal .media-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3e%3cpath d='M4 4l8 8M12 4l-8 8'/%3e%3c/svg%3e") center/16px auto no-repeat;
    border: 2px solid var(--primary);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none;
    outline: none;
}

#mediaModal .media-close:hover {
    background-color: rgba(220, 53, 69, 0.1); /* Rojo con 10% de opacidad */
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

/* Flechas de navegaciÃ³n laterales */
#mediaModal .media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#mediaModal .media-prev { left: 12px; }
#mediaModal .media-next { right: 12px; }

/* Indicadores de carrusel (puntos) */
#mediaModal .media-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
}
#mediaModal .media-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: 0.7;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
    cursor: pointer;
}
#mediaModal .media-dot.active {
    background: #fff;
    opacity: 1;
}

.products-grid .product-price {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

/* --- Blue Waves Animated Background --- */
#animated-background.blue-waves-bg {
    background: linear-gradient(60deg, #29323c 0%, #485563 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#animated-background .waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
}

#animated-background .parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

#animated-background .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

#animated-background .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

#animated-background .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

#animated-background .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    #animated-background .waves {
        height: 40px !important;
        min-height: 40px !important;
    }
}

.products-grid .product-card:hover .product-price {
    transform: scale(1.05) translateY(-1px);
    text-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.products-grid .product-condition {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gradient-secondary-75);
    color: white;
    padding: 0.24rem 0.7rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.products-grid .favorite-badge,
.products-grid .deal-badge {
    position: absolute;
    left: 0.75rem;
    color: white;
    padding: 0.24rem 0.7rem;
    border-radius: 50rem;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.75);
}
.products-grid .favorite-badge {
    top: 2.2rem;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}
.products-grid .deal-badge {
    top: 2.2rem;
    background: var(--warning);
}
.products-grid .deal-badge.has-fav {
    top: 3.65rem;
}

.products-grid .fav-toggle, .products-list .fav-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: var(--shadow);
}

/* Productos Lista */
.products-list .product-condition {
    display: inline-block;
    background: var(--gradient-secondary-75);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.products-list .product-card {
    margin-bottom: 1rem;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    animation: fadeIn 0.5s ease-in-out;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: transform 0.18s ease-out, box-shadow 0.22s ease-out, background 0.22s ease-out;
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}
.products-list .product-card.compact .product-img {
    height: 120px;
}
.products-list .product-card.compact .card-body {
    padding: 0.75rem;
}
.products-list .product-card.compact .product-title {
    font-size: 0.95rem;
}
.products-list .product-card.compact .product-desc {
    font-size: 0.825rem;
}
.products-list .product-card.compact .product-price {
    font-size: 0.95rem;
}

.products-list .product-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.25), 0 0 25px rgba(138, 43, 226, 0.15);
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(138, 43, 226, 0.02));
}

.products-list .row {
    align-items: center;
}

.products-list .product-img-container {
    padding: 0.975rem;
}

.products-list .product-img {
    height: 203px; /* +30% respecto a 156px para mantener el incremento de altura de fila */
    width: 100%;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 0.25rem;
    filter: brightness(1) saturate(1);
    will-change: transform, filter;
    transition: transform 0.18s ease-out, filter 0.18s ease-out;
}

.products-list .product-card:hover .product-img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.15);
    border-radius: 0.5rem;
}

.products-list .card-body {
    padding: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
}

.products-list .product-card:hover .card-body {
    transform: translateX(3px);
}

.products-list .product-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-list .product-card:hover .product-title {
    color: var(--primary);
    transform: translateX(2px);
}

.products-list .product-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-list .product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.55rem;
    padding-top: 0.4rem;
    transition: all 0.3s ease;
}

.products-list .product-card:hover .product-price {
    transform: scale(1.05);
    font-weight: 800;
}


/* Modales - Estilos especÃ­ficos para frontend */
.frontend-modal .modal-content {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    overscroll-behavior: contain;
}

.frontend-modal .modal-header {
    background-color: var(--primary);
    color: white;
    border-bottom: none;
}

.frontend-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.frontend-modal .modal-footer {
    border-top: none;
}

/* Modal de filtros compacto y ordenado */
#filterModal .modal-body {
    padding: 0.5rem 0.75rem 0.25rem;
}
#filterModal .modal-body .mb-3 {
    margin-bottom: 0.5rem !important;
}
#filterModal .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
#filterModal .form-check {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0;
}
#filterModal .form-check-input {
    margin-top: 0;
}
#filterModal .modal-footer {
    padding: 0.4rem 0.75rem;
}
#filterModal .modal-footer .btn {
    font-size: 0.78rem;
}

/* Detalles del producto */
.product-details .carousel {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-details .carousel-item img {
    height: 390px;
    width: 100%;
    object-fit: contain;
}

.product-details h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.product-details .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-details .condition-badge {
    background-color: var(--secondary-75);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Estilos base para etiquetas (mt-tag) — sobrescritos dinámicamente por TagManager */
.mt-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 12px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    background: #eef2ff;
    color: #1f2937;
    border: 1px solid #8b5cf6;
    opacity: 1;
}
.mt-tag.selected {
    outline: 2px solid #8b5cf6;
}
.mt-tag button.mt-tag-remove {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
}
.mt-tag button.mt-tag-remove:hover {
    opacity: 1;
}

.product-details .section {
    margin-bottom: 1.5rem;
}

.product-details h5 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.product-details .payment-methods,
.product-details .delivery-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-details .badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.product-details .action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-details .btn-lg {
    padding: 0.6rem 1.2rem; /* TamaÃ±o reducido */
    border-radius: 8px; /* Menos redondeado */
    font-weight: 400; /* Peso normal */
    font-size: 0.9rem; /* Texto mÃ¡s pequeÃ±o */
}

.product-details .btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
}

.product-details .btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.product-details .btn-contact {
    background-color: var(--primary);
    border-color: var(--primary);
}

.product-details .btn-contact:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Detalles del producto (vista en pÃ¡gina) */
.product-details-page {
    margin-bottom: 2rem;
}

.product-details-page .btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 8px; /* Menos redondeado */
    padding: 0.5rem 1rem; /* TamaÃ±o reducido */
    font-weight: 400; /* Peso normal */
    font-size: 0.85rem; /* Texto mÃ¡s pequeÃ±o */
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-details-page .btn-success:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.product-details-page .btn-success:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.product-details-page .btn-success i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.product-details-page .btn-success:hover i {
    transform: scale(1.1);
}

.product-details-page .carousel {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    position: relative; /* permite posicionar overlays dentro del carrusel */
}

.product-details-page .carousel-item img {
    height: 455px;
    width: 100%;
    object-fit: contain;
}

.product-details-page h2 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.product-details-page .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-details-page .condition-badge {
    background-color: var(--secondary-75);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Posicionar el badge sobre la imagen del carrusel en la esquina */
.product-details-page .carousel .condition-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem; /* esquina superior izquierda */
    z-index: 20;
    margin: 0;
}

.product-details-page .section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.75rem 1.5rem; /* mÃ¡s aire interno para el contenido */
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Contenedor interno invisible al 90% del tamaÃ±o de la tarjeta */
.product-details-page .section .section-inner {
    width: 90%;
    height: auto; /* fallback si el padre no tiene altura definida */
    margin: 0 auto; /* centrar horizontalmente */
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

.product-details-page .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 12px 12px 0 0;
}

.product-details-page .section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-details-page .section h5 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0; /* eliminar espacio superior extra */
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-details-page .section h5::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.product-details-page .payment-methods,
.product-details-page .delivery-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0;
}

.product-details-page .section .badge {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    color: var(--dark);
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.product-details-page .section .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    border-color: var(--primary);
}

.product-details-page .section .text-muted {
    color: #6c757d;
    font-style: italic;
    padding: 0.75rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.product-details-page .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--footer-bg, #2c3e50);
    color: var(--color-footer-text, #ecf0f1);
}

.footer .site-title {
    filter: drop-shadow(0px 1px 1px rgba(255, 255, 255, 0.6)) drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.4));
}

.footer h4 {
    color: var(--white, #ffffff);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer a {
    color: var(--color-footer-text, #ecf0f1);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .copyright {
    color: var(--color-footer-text, #ecf0f1);
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-footer-text, #ecf0f1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.footer .admin-link {
    opacity: 0.5;
    font-size: 0.875rem;
}

.footer .admin-link:hover {
    opacity: 1;
}

/* Colores especÃ­ficos para WhatsApp y Email en el footer */
.footer .bi-whatsapp,
.footer a[href*="wa.me"],
.footer .whatsapp-link {
    color: var(--color-footer-whatsapp, #25D366) !important;
}

.footer .bi-envelope,
.footer a[href^="mailto:"],
.footer .email-link {
    color: var(--color-footer-email, #ecf0f1) !important;
}

/* WhatsApp Flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn i, .whatsapp-btn svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.2s ease;
    margin-top: 4px;
    margin-left: 2px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    animation: none;
}

.whatsapp-btn:hover i, .whatsapp-btn:hover svg {
    transform: scale(1.15) rotate(10deg);
}

.whatsapp-btn:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animations */


/* Nuevas animaciones para transiciones de vista */
.fade-blur-out {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.fade-blur-in {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}


.section-title-row {
    margin-bottom: 1rem;
}

/* Responsive additions: navbar wrapping on small screens */
@media (max-width: 576px) {
    .navbar .container, .navbar .container-fluid {
        flex-wrap: wrap;
        gap: 8px;
    }
    .toolbar-controls {
        flex-wrap: wrap;
    }
    .toolbar-group {
        width: 100%;
        justify-content: center;
    }
    .toolbar-search {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.featured-section,
.new-products {
    padding-bottom: 20px;
}

.featured-section .section-title,
.new-products .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

/* Empty state for sections */
.featured-section.is-empty,
.new-products.is-empty {
    display: none;
}

/* Category Filter Bar */
.category-filter-bar {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-filter-bar .filter-label {
    font-weight: 600;
    color: var(--dark);
}

.category-filter-bar .category-btn {
    transition: all 0.2s ease;
}

.category-filter-bar .category-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-filter-bar .category-btn:hover:not(.active) {
    background-color: #e9ecef;
}

/* === Inventario: Anchos de columna y clamp de detalles === */
#inventoryListContainer .table {
    table-layout: fixed;
}
.inventory-col-code     { width: 7%; }
.inventory-col-name     { width: 17%; }
.inventory-col-details  { width: 17%; }
.inventory-col-location { width: 9%; }
.inventory-col-owner    { width: 8%; }
.inventory-col-price    { width: 10%; }
.inventory-col-qty      { width: 6%; }
.inventory-col-state    { width: 7%; }
.inventory-col-pubs     { width: 8%; }
.inventory-col-actions  { width: 11%; white-space: nowrap; }

.inventory-col-details {
    overflow: hidden;
}

.inventory-col-name,
.inventory-col-details,
.inventory-col-location,
.inventory-col-owner,
.inventory-col-pubs {
    vertical-align: middle;
}

.inventory-col-code code {
    font-size: 0.85em;
    word-break: break-all;
}

.inventory-details-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    word-break: break-word;
}

/* === Pagination === */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0;
}
.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    background-color: var(--white);
    border: 1px solid #dee2e6;
    color: var(--primary);
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: var(--white);
    border-color: #dee2e6;
}
.page-item:not(.active):not(.disabled) .page-link:hover {
    z-index: 2;
    color: var(--primary);
    background-color: #e9ecef;
    border-color: #dee2e6;
}
