/* Estilos Generales */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Header Premium */
.premium-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.premium-header:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* Role Badge Premium */
.role-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.role-badge:hover::before {
    left: 100%;
}

.role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-name {
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
    text-transform: capitalize;
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #343a40;
    line-height: 1;
}

.brand-subtitle {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Navigation */
.premium-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    /* Asegurar que los elementos no se superpongan */
    z-index: 1;
}

.nav-item:hover {
    z-index: 2;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.4s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    /* Usar scale en lugar de translateY para evitar superposición */
    transform: scale(1.02);
}

.nav-link i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Badge de notificaciones - debe ser visible */
#notificationsLink {
    overflow: visible !important;
    /* Aislar la animación para que no afecte otros elementos del nav */
    isolation: isolate;
}

/* Ocultar el efecto ::before en el link de notificaciones para evitar la marca visual */
#notificationsLink::before {
    display: none !important;
}

#notificationsBadge {
    line-height: 1;
    vertical-align: baseline;
}

/* Asegurar que solo el icono de notificaciones tenga animación */
#notificationsIcon.fa-shake {
    transform-origin: center;
    will-change: transform;
    /* Aislar la transformación para que no cause reflow */
    backface-visibility: hidden;
}

/* Special Link Styles */
.login-link {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.login-link:hover {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.register-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.register-link:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #5a6fd8;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.logout-link {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        height: 60px;
        padding: 0 15px;
    }
    
    .role-badge, .brand-section {
        gap: 8px;
        padding: 8px 12px;
    }
    
    .nav-list {
        gap: 4px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 18px;
    }
}

/* Legacy Header Support */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Alinea los elementos a la derecha */
    align-items: center;
    padding: 0 20px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 180px); /* Ajusta según el tamaño de header y footer */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    margin-bottom: 0.8em;
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

/* Botones */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.button.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.button.secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.button.secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.button.accent {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
.button.accent:hover {
    background-color: #218838;
    border-color: #218838;
}

.button.danger {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}
.button.danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.button.small {
    font-size: 0.875rem;
    padding: 7px 14px;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Mensajes de feedback */
.error-message,
.success-message {
    padding: 12px 20px;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Secciones de Características (Home/Dashboard) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.feature {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.feature h2 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--light-text);
    line-height: 1.5;
}

/* Tablas de Datos */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-top: 25px;
}

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background-color: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f4f6f8 !important;
    color: #333 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95em;
    border-bottom: 2px solid #d1d5db;
}

.data-table td {
    color: #222;
    font-size: 1em;
    border-bottom: 1.5px solid #e0e0e0;
    padding: 12px 15px;
}

.data-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.data-table tbody tr:hover {
    background-color: #f1f3f6;
}

.data-table td a.button {
    margin: 0 5px 0 0;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9em;
}

/* Estilos específicos de Auth/Error Containers */
.auth-container, .error-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    text-align: center;
}

.auth-container h1, .error-container h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5em;
}

.auth-container p, .error-container p {
    color: var(--light-text);
    margin-bottom: 1.5em;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="text"] {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.auth-container button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
}

/* Ajustes para 403 y 404 */
.error-container h1 {
    font-size: 4em; /* Más grande para el número de error */
    margin-bottom: 10px;
}

.error-container h2 {
    font-size: 2em;
    color: var(--dark-text);
}

.error-container.error-403 {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.error-container.error-404 {
    background-color: #ffeeba;
    border-color: #ffc107;
    color: #856404;
}

.filters-container form {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    max-width: 100%;
}
.filters-container label {
    display: none;
}
.filters-container input[type="date"],
.filters-container input[type="text"],
.filters-container select {
    height: 44px;
    font-size: 1.08em;
    border-radius: 7px;
    border: 1.5px solid #cfd8dc;
    box-shadow: 0 1px 4px rgba(60,60,60,0.06);
    background: #f7f9fa;
    color: #222;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filters-container input[type="date"]::placeholder,
.filters-container input[type="text"]::placeholder {
    font-size: 1.08em;
    color: #b0b8c1;
}
.filters-container input[type="date"]:focus,
.filters-container input[type="text"]:focus,
.filters-container select:focus {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.10);
    outline: none;
}
.filters-container .button.primary {
    height: 44px;
    font-size: 1.08em;
    padding: 0 32px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(60,60,60,0.08);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: 8px;
}
@media (max-width: 700px) {
  .filters-container form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filters-container input[type="date"],
  .filters-container input[type="text"],
  .filters-container select {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== LOGS PAGE SPECIFIC STYLES ===== */

/* Premium Logs Styles */
.premium-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
}

/* Page Header Premium */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-info h1.page-title {
    font-size: 32px;
    font-weight: 800;
    color: #343a40;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-info h1.page-title i {
    color: #667eea;
    font-size: 28px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    color: #ff8c00;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Mismos gradientes y contraste que la pantalla Categorías (views/categories/index.php) */
.btn-premium.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-premium.btn-warning:hover {
    color: #212529;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-premium.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: #ffffff;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-premium.btn-danger:hover {
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-sm span {
    display: none;
}

@media (min-width: 768px) {
    .btn-sm span {
        display: inline;
    }
}

/* Filters Panel */
.filters-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filters-header h3 {
    margin: 0 0 20px 0;
    color: #343a40;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-header h3 i {
    color: #667eea;
    font-size: 16px;
}

.filters-content {
    display: grid;
    grid-template-columns: 1fr 200px 200px 200px 200px auto;
    gap: 20px;
    align-items: end;
}

.search-input-group {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #343a40;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}

.filter-select {
    padding: 15px 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #343a40;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* No Data Message */
.no-data-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.no-data-icon {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.no-data-message h3 {
    margin: 0 0 10px 0;
    color: #343a40;
    font-size: 24px;
    font-weight: 700;
}

.no-data-message p {
    margin: 0 0 30px 0;
    color: #6c757d;
    font-size: 16px;
}

/* Table Container */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
}

/* Custom Scrollbars */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.table-wrapper::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
}

/* Firefox */
.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) rgba(0, 0, 0, 0.05);
}

/* Tabla de productos con drag-to-scroll */
.products-table-draggable {
    cursor: grab !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
}

.products-table-draggable::-webkit-scrollbar {
    display: none;  /* Chrome, Safari y Opera */
}

.products-table-draggable:active {
    cursor: grabbing !important;
}

/* Las celdas de la tabla tienen cursor grab por defecto */
.products-table-draggable .premium-table td {
    cursor: grab !important;
}

.products-table-draggable .premium-table th {
    cursor: grab !important;
}

/* Los botones y elementos interactivos mantienen el cursor pointer */
.products-table-draggable .btn-premium,
.products-table-draggable .action-buttons,
.products-table-draggable .action-buttons button,
.products-table-draggable .action-buttons a,
.products-table-draggable .premium-checkbox,
.products-table-draggable input[type="checkbox"],
.products-table-draggable a,
.products-table-draggable button,
.products-table-draggable .premium-table td .btn-premium,
.products-table-draggable .premium-table td .action-buttons,
.products-table-draggable .premium-table td .action-buttons button,
.products-table-draggable .premium-table td .action-buttons a,
.products-table-draggable .premium-table td .premium-checkbox,
.products-table-draggable .premium-table td input[type="checkbox"],
.products-table-draggable .premium-table td a,
.products-table-draggable .premium-table td button {
    cursor: pointer !important;
}

/* Premium Table */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.premium-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.premium-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #343a40;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-content i {
    color: #667eea;
    font-size: 14px;
}

.premium-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Barra de acciones como en Categorías (misma fila, mismo gap, botones alineados) */
.premium-table .actions-column {
    width: 1%;
    min-width: 390px;
    text-align: left;
}

.premium-table .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
}

.premium-table .action-buttons .btn-premium {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    margin: 0 !important;
}

/* Mismo ancho mínimo para Activar / Desactivar / Eliminar (texto + icono centrados) */
.premium-table .action-buttons > .btn-premium.btn-sm {
    min-width: 124px;
    justify-content: center;
}

@media (max-width: 768px) {
    .premium-table .action-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .premium-table .action-buttons > .btn-premium.btn-sm {
        min-width: 0;
        flex: 1 1 0;
        font-size: 12px !important;
        padding: 6px 10px !important;
        justify-content: center;
    }
}

.premium-table .action-buttons .btn-premium.disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.premium-table .action-buttons .btn-premium.disabled:hover {
    background: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    transform: none !important;
}

.table-row:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* Log-specific styles */
.log-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #343a40;
    font-size: 14px;
}

.user-email {
    color: #6c757d;
    font-size: 12px;
}

.deleted-user {
    color: #dc3545;
    font-style: italic;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge i {
    font-size: 8px;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-primary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.table-name {
    color: #343a40;
    font-weight: 500;
}

.log-description {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
    color: #343a40;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.log-time {
    color: #6c757d;
    font-size: 13px;
}

.no-data {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Logs */
@media (max-width: 1200px) {
    .filters-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .filters-content {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .premium-container {
        padding: 15px;
    }
    
    .page-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filters-panel {
        padding: 20px;
    }
    
    .filters-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-premium {
        justify-content: center;
    }
    
    .table-container {
        padding: 0;
    }
    
    .premium-table th,
    .premium-table td {
        padding: 12px 10px;
    }
    
    .log-user-info {
        gap: 2px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .log-description {
        max-width: 150px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .premium-table th,
    .premium-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .th-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== PÁGINA DE PRODUCTO PREMIUM - ESTILOS COMPLETOS ===== */

/* Hero Section Premium */
.premium-product-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Gallery Premium */
.premium-product-gallery {
    position: relative;
    z-index: 10;
}

.main-product-image {
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.thumbnail-item.active {
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Product Info Premium */
.premium-product-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.product-header {
    margin-bottom: 30px;
}

.product-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.premium-badge.featured {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.premium-badge.out-of-stock {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.premium-badge.low-stock {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.product-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

/* Price Section Premium */
.premium-price-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: #10b981;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-decimals {
    font-size: 24px;
    font-weight: 600;
    color: #10b981;
}

.price-type {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    margin-left: 8px;
}

.price-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.price-per-unit {
    font-weight: 500;
}

.stock-info {
    font-weight: 600;
    color: #10b981;
}

/* Sections */
.product-description-section,
.product-details-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.description-content {
    background: rgba(248, 250, 252, 0.8);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.description-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 16px;
}

/* Details Grid */
.details-grid {
    display: grid;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(248, 250, 252, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    font-size: 20px;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: fit-content;
}

.quantity-btn {
    background: white;
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    width: 80px;
    padding: 0 10px;
}

.quantity-input:focus {
    outline: none;
}

/* OCULTAR FLECHITAS (SPINNERS) DEL INPUT NUMBER */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* ANIMACIÓN DE SACUDIDA PARA EL INPUT DE CANTIDAD */
.quantity-input.shake {
    animation: shakeQuantity 0.6s ease-in-out !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

@keyframes shakeQuantity {
    0%, 100% { 
        transform: translateX(0) scale(1); 
        border-color: rgba(102, 126, 234, 0.2);
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-8px) scale(1.1); 
        border-color: #667eea;
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(8px) scale(1.1); 
        border-color: #667eea;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

.premium-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.premium-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.premium-btn.secondary {
    background: rgba(248, 250, 252, 0.8);
    color: #64748b;
    border: 2px solid rgba(226, 232, 240, 0.8);
}

.premium-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-btn:hover:not(.disabled) {
    transform: translateY(-3px) scale(1.02);
}

.premium-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.premium-btn.secondary:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.premium-btn:hover::before {
    left: 100%;
}

/* Additional Services */
.additional-services {
    display: grid;
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(248, 250, 252, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.service-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.service-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-product-hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .premium-product-info {
        padding: 24px;
        border-radius: 24px;
        margin-top: 20px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .premium-btn {
        padding: 14px 20px;
    }
}

/* ===== PÁGINA DE PRODUCTO ULTRA MODERNA CON GLAMOUR ===== */

/* Hero Background Ultra */
.ultra-modern-product-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow-x: hidden;
}

.hero-background-ultra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* ======================================== */
/* MIGAS DE PAN CON ESTILO DEL DIV DE RELACIONADOS */
/* ======================================== */

.breadcrumb-ultra {
    margin-top: 0 !important;
    padding: 20px 0 !important;
    background: var(--gray-50) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--border-radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    position: relative !important;
    overflow: hidden !important;
}

.breadcrumb-ultra::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--warning-color) 100%) !important;
}

.breadcrumb-content {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: transparent !important;
    padding: 16px 24px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.breadcrumb-content:hover {
    box-shadow: none !important;
}

.breadcrumb-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--gray-600) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    border-radius: var(--border-radius-md) !important;
    transition: all 0.2s ease !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
}

.breadcrumb-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 1) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-color) !important;
}

.breadcrumb-link i {
    font-size: 14px !important;
    color: var(--gray-500) !important;
    transition: color 0.2s ease !important;
}

.breadcrumb-link:hover i {
    color: var(--primary-color) !important;
}

.breadcrumb-separator {
    color: var(--gray-400) !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 400 !important;
}

.breadcrumb-current {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--gray-800) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border-radius: var(--border-radius-md) !important;
    border: 2px solid var(--primary-color) !important;
    position: relative !important;
    box-shadow: var(--shadow-lg) !important;
}

.breadcrumb-current i {
    font-size: 14px !important;
    color: var(--primary-color) !important;
}

/* ======================================== */
/* RESPONSIVE BREADCRUMBS */
/* ======================================== */

@media (max-width: 768px) {
    .breadcrumb-ultra {
        padding: 16px 0 !important;
    }
    
    .breadcrumb-content {
        padding: 12px 16px !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 13px !important;
    }
    
    .breadcrumb-separator {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .breadcrumb-ultra {
        padding: 12px 0 !important;
    }
    
    .breadcrumb-content {
        padding: 10px 12px !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .breadcrumb-link span,
    .breadcrumb-current span {
        display: none !important;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    .breadcrumb-separator {
        display: none !important;
    }
}

/* Product Showcase Ultra */
.product-showcase-ultra {
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.image-gallery-ultra {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-image-display {
    margin-bottom: 30px;
}

.image-container-ultra {
    position: relative;
    border-radius: 28px;
    overflow: visible;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(102, 126, 234, 0.08),
        inset 0 -2px 10px rgba(0, 0, 0, 0.02);
    width: 100%;
    height: 450px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-container-ultra .main-product-image-ultra {
    border-radius: 26px;
    overflow: hidden;
}

.image-container-ultra {
    overflow: hidden !important;
}

.main-product-image-ultra {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease-in-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    border-radius: 26px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hover del contenedor removido - sin elevación */

/* Efecto hover de imagen removido - sin zoom */

/* Borde decorativo para la imagen principal */
.image-container-ultra::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.4) 0%,
        rgba(118, 75, 162, 0.4) 25%,
        rgba(237, 137, 54, 0.4) 50%,
        rgba(255, 193, 7, 0.4) 75%,
        rgba(102, 126, 234, 0.4) 100%);
    border-radius: 30px;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.image-container-ultra:hover::before {
    opacity: 0.6;
}

/* ===== EFECTO BRILLO PARA BADGE DESTACADO ===== */
@keyframes badge-shine-slide {
    0% {
        left: -100%;
    }
    30% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.badge-featured {
    position: relative;
    overflow: hidden;
}

.badge-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: badge-shine-slide 1.5s ease-in-out infinite;
    z-index: 999;
    pointer-events: none;
}

.badge-featured i,
.badge-featured span {
    position: relative;
    z-index: 2;
}

/* ===== EFECTO FADE PARA CAMBIO DE IMAGEN ===== */
.main-product-image-ultra.fade-out {
    opacity: 0;
}

.main-product-image-ultra.fade-in {
    opacity: 1;
}

.image-overlay-ultra {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-container-ultra:hover .image-overlay-ultra {
    opacity: 1;
}

.zoom-btn-ultra {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.zoom-btn-ultra:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Product Badges Ultra */
.product-badges-ultra {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-ultra {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.badge-ultra.featured-ultra {
    display: none;
}

.badge-ultra.out-of-stock-ultra {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-ultra.low-stock-ultra {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* Thumbnail Gallery Ultra */
.thumbnail-gallery-ultra {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 5px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) rgba(248, 250, 252, 0.5);
}

.thumbnail-gallery-ultra::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery-ultra::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 10px;
}

.thumbnail-gallery-ultra::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.thumbnail-gallery-ultra::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.thumbnail-item-ultra {
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(226, 232, 240, 0.4);
    opacity: 0.65;
    position: relative;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(102, 126, 234, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.thumbnail-item-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.thumbnail-item-ultra.active {
    border-color: rgba(102, 126, 234, 0.8);
    border-width: 3px;
    opacity: 1;
    transform: scale(1.08) translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.25),
        0 8px 16px rgba(102, 126, 234, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}

.thumbnail-item-ultra.active::before {
    opacity: 1;
}

.thumbnail-item-ultra.active::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    z-index: 2;
}

.thumbnail-item-ultra.active::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.thumbnail-item-ultra:hover {
    opacity: 0.95;
    transform: scale(1.05) translateY(-2px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 10px 28px rgba(102, 126, 234, 0.18),
        0 6px 14px rgba(102, 126, 234, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.06);
}

.thumbnail-item-ultra:hover::before {
    opacity: 0.5;
}

.thumbnail-image-ultra {
    width: 75px;
    height: 75px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    border-radius: 18px;
}

.thumbnail-item-ultra:hover .thumbnail-image-ultra {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Carousel Navigation Mobile - Completely Hidden */
.carousel-navigation-mobile,
.carousel-btn-mobile {
    display: none !important;
}

.carousel-btn-mobile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-btn-mobile:hover {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.15);
}

.carousel-btn-mobile:active {
    transform: scale(0.95);
}

.carousel-dots-mobile {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.carousel-dot-mobile {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot-mobile.active {
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.carousel-dot-mobile:hover {
    background: rgba(102, 126, 234, 0.6);
    transform: scale(1.2);
}

/* Product Info Ultra */
.product-info-ultra {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.product-header-ultra {
    margin-bottom: 30px;
}

.product-title-ultra {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-subtitle-ultra {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 20px;
}

.product-rating-ultra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 18px;
}

.rating-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Price Section Ultra */
.price-section-ultra {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.price-display-ultra {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.currency-ultra {
    font-size: 28px;
    font-weight: 600;
    color: #10b981;
}

.price-amount-ultra {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-decimals-ultra {
    font-size: 28px;
    font-weight: 600;
    color: #10b981;
}

.price-details-ultra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.price-per-unit {
    font-weight: 500;
}

.price-negotiable {
    font-weight: 600;
    color: #f59e0b;
}

/* Stock Section Ultra */
.stock-section-ultra {
    margin-bottom: 25px;
}

.stock-indicator-ultra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 15px;
}

.stock-indicator-ultra.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-indicator-ultra.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Quantity Section Ultra */
.quantity-section-ultra {
    margin-bottom: 25px;
}

.quantity-label-ultra {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.quantity-controls-ultra {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    padding: 6px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: fit-content;
}

.quantity-btn-ultra {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 15px rgba(102, 126, 234, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    position: relative;
    overflow: hidden;
}

.quantity-btn-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantity-btn-ultra:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.quantity-btn-ultra:hover::before {
    opacity: 1;
}

.quantity-btn-ultra:active {
    transform: translateY(-1px) scale(1.05);
    transition: all 0.1s ease;
}

.quantity-input-ultra {
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    width: 80px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 3px 12px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.quantity-input-ultra:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.15),
        0 0 0 2px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
}

.quantity-input-ultra:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* OCULTAR FLECHITAS (SPINNERS) DEL INPUT NUMBER ULTRA */
.quantity-input-ultra::-webkit-outer-spin-button,
.quantity-input-ultra::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.quantity-input-ultra[type=number] {
    -moz-appearance: textfield;
}

/* ANIMACIÓN DE SACUDIDA PARA EL INPUT DE CANTIDAD ULTRA */
.quantity-input-ultra.shake {
    animation: shakeQuantityUltra 0.6s ease-in-out !important;
    border-color: #667eea !important;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.4),
        0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

@keyframes shakeQuantityUltra {
    0%, 100% { 
        transform: translateX(0) scale(1) rotate(0deg); 
        border-color: rgba(102, 126, 234, 0.2);
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-10px) scale(1.15) rotate(-2deg); 
        border-color: #667eea;
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(10px) scale(1.15) rotate(2deg); 
        border-color: #667eea;
    }
}

/* Action Buttons Ultra - PREMIUM GLAMOUR STYLES */
.action-buttons-ultra {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-ultra {
    padding: 14px 24px;
    border: none;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    flex: 1;
    min-width: 160px;
}

/* Botón Principal - Agregar al Carrito */
.btn-ultra.primary-ultra {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-ultra.primary-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-ultra.primary-ultra:hover::before {
    opacity: 1;
}

/* Botón Secundario - Comprar Ahora */
.btn-ultra.secondary-ultra {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-ultra.secondary-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-ultra.secondary-ultra:hover::before {
    opacity: 1;
}

/* Botón de Favoritos */
.btn-ultra.wishlist-ultra {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: #64748b;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    flex: 0 0 auto;
    min-width: 140px;
}

.btn-ultra.disabled-ultra {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

/* Efectos de Brillo */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
    border-radius: 25px;
}

/* Efectos de Hover Mejorados */
.btn-ultra:hover:not(.disabled-ultra) {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.05);
}

.btn-ultra.primary-ultra:hover {
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ultra.secondary-ultra:hover {
    box-shadow: 
        0 12px 30px rgba(16, 185, 129, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ultra.wishlist-ultra:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ultra:hover .btn-shine {
    left: 100%;
}

/* Efecto de Click */
.btn-ultra:active:not(.disabled-ultra) {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Estado de Agregado */
.btn-ultra.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scale(1.1);
    box-shadow: 
        0 20px 50px rgba(16, 185, 129, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: pulse-success 0.6s ease;
}

@keyframes pulse-success {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

/* Iconos de los botones */
.btn-ultra i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-ultra:hover i {
    transform: scale(1.1);
}

.btn-ultra.primary-ultra:hover i {
    animation: bounce 0.6s ease;
}

.btn-ultra.secondary-ultra:hover i {
    animation: flash 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1.2); }
    40% { transform: translateY(-5px) scale(1.2); }
    60% { transform: translateY(-3px) scale(1.2); }
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Product Features Ultra */
.product-features-ultra {
    display: grid;
    gap: 15px;
}

.feature-item-ultra {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.feature-item-ultra:hover {
    background: rgba(248, 250, 252, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item-ultra i {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.feature-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Product Details Ultra */
.product-details-ultra {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.details-tabs-ultra {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tab-btn-ultra {
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn-ultra.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn-ultra:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-pane-ultra {
    display: none;
}

.tab-pane-ultra.active {
    display: block;
}

.description-content-ultra,
.specifications-content-ultra,
.reviews-content-ultra {
    padding: 20px 0;
}

.description-content-ultra h3,
.specifications-content-ultra h3,
.reviews-content-ultra h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

.description-content-ultra p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.spec-grid-ultra {
    display: grid;
    gap: 15px;
}

.spec-item-ultra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.spec-label {
    font-weight: 600;
    color: #64748b;
}

.spec-value {
    font-weight: 700;
    color: #1a202c;
}

/* Related Products Ultra */
.related-products-ultra {
    margin-top: 50px;
}

.section-header-ultra {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-ultra {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title-ultra i {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-ultra {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
}

.related-products-grid-ultra {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-product-card-ultra {
    background: white;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
}

.related-product-card-ultra:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image-container-ultra {
    position: relative;
    height: 200px;
    overflow: visible;
}

.product-image-container-ultra .related-product-image-ultra {
    border-radius: 16px;
    overflow: hidden;
}

.related-product-image-ultra {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-product-card-ultra:hover .related-product-image-ultra {
    transform: scale(1.1);
}

.product-overlay-ultra {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-product-card-ultra:hover .product-overlay-ultra {
    opacity: 1;
}

.quick-view-btn-ultra {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.quick-view-btn-ultra:hover {
    background: white;
    transform: scale(1.1);
}

.product-badge-ultra {
    display: none;
}

.product-info-card-ultra {
    padding: 20px;
}

.product-name-ultra {
    margin-bottom: 10px;
}

.product-name-ultra a {
    color: #1a202c;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.product-name-ultra a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-ultra {
    margin-bottom: 15px;
}

.product-price-ultra .price-amount {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECCIÓN SKU ===== */
.sku-section-ultra {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.sku-display-ultra {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sku-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sku-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ===== OCULTAR OVERLAY Y BOTÓN DE OJO EN PRODUCTOS RELACIONADOS ===== */
.product-overlay-ultra,
.quick-view-btn-ultra {
    display: none;
}

.add-to-cart-btn-ultra {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.add-to-cart-btn-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-to-cart-btn-ultra:hover::before {
    opacity: 1;
}

.add-to-cart-btn-ultra:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.05);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.add-to-cart-btn-ultra:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

.add-to-cart-btn-ultra i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.add-to-cart-btn-ultra:hover i {
    transform: scale(1.1);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1.1); }
    40% { transform: translateY(-5px) scale(1.1); }
    60% { transform: translateY(-3px) scale(1.1); }
}

/* Responsive Design Ultra */
@media (max-width: 768px) {
    .ultra-modern-product-page {
        padding: 0;
    }
    
    .product-showcase-ultra {
        padding: 20px 0;
    }
    
    .image-gallery-ultra,
    .product-info-ultra {
        padding: 20px;
        border-radius: 20px;
    }
    
    .product-title-ultra {
        font-size: 32px;
    }
    
    .price-amount-ultra {
        font-size: 42px;
    }
    
    .main-product-image-ultra {
        height: 280px;
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
    
    .action-buttons-ultra {
        gap: 10px;
        flex-direction: row;
    }
    
    .btn-ultra {
        padding: 12px 18px;
        font-size: 14px;
        flex: 1;
        min-width: 130px;
    }
    
    .btn-ultra.wishlist-ultra {
        min-width: 110px;
    }
    
    .thumbnail-gallery-ultra {
        display: flex;
        gap: 15px;
        padding: 12px 5px;
    }
    
    .thumbnail-image-ultra {
        width: 75px;
        height: 75px;
    }
    
    .thumbnail-item-ultra.active::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .carousel-navigation-mobile {
        display: none;
    }
    
    .product-details-ultra {
        padding: 20px;
        border-radius: 20px;
    }
    
    .details-tabs-ultra {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn-ultra {
        padding: 12px 20px;
        border-radius: 10px;
    }
    
    .related-products-grid-ultra {
        padding: 20px;
        border-radius: 20px;
    }
    
    .section-title-ultra {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive - Tablet Small / Mobile Large */
@media (max-width: 640px) {
    .action-buttons-ultra {
        gap: 10px;
        flex-direction: column;
        margin-top: 30px;
    }
    
    .btn-ultra {
        padding: 14px 20px;
        font-size: 15px;
        min-width: 100%;
        width: 100%;
    }
    
    .btn-ultra.wishlist-ultra {
        min-width: 100%;
        width: 100%;
    }
    
    .thumbnail-gallery-ultra {
        gap: 12px;
        padding: 10px 5px;
        justify-content: flex-start;
    }
    
    .thumbnail-image-ultra {
        width: 70px;
        height: 70px;
    }
    
    .thumbnail-item-ultra {
        border-width: 2px;
    }
    
    .thumbnail-item-ultra.active::after {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 4px;
        right: 4px;
    }
    
    /* Cambiar a modo carrusel en mobile */
    .thumbnail-gallery-ultra {
        display: none !important;
    }
    
    .carousel-navigation-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .image-container-ultra {
        position: relative;
        touch-action: pan-y;
        margin-bottom: 20px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.1),
            0 5px 15px rgba(0, 0, 0, 0.07);
    }
    
    .main-product-image-ultra {
        height: 320px;
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
        transition: transform 0.3s ease;
    }
    
    .image-container-ultra:active .main-product-image-ultra {
        transform: scale(0.98);
    }
}

/* Responsive - Mobile Small */
@media (max-width: 480px) {
    .action-buttons-ultra {
        gap: 10px;
        flex-direction: column;
        margin-top: 30px;
    }
    
    .btn-ultra {
        padding: 14px 20px;
        font-size: 14px;
        gap: 8px;
        min-width: 100%;
        width: 100%;
    }
    
    .btn-ultra.wishlist-ultra {
        min-width: 100%;
        width: 100%;
    }
    
    .btn-ultra span {
        font-size: 14px;
    }
    
    .quantity-controls-ultra {
        gap: 6px;
        padding: 5px;
        width: 100%;
        justify-content: center;
    }
    
    .quantity-btn-ultra {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .quantity-input-ultra {
        width: 70px;
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .thumbnail-gallery-ultra {
        gap: 10px;
        padding: 8px 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail-image-ultra {
        width: 65px;
        height: 65px;
    }
    
    .thumbnail-item-ultra {
        border-width: 2px;
        border-radius: 12px;
    }
    
    .thumbnail-item-ultra.active {
        transform: scale(1.05);
    }
    
    .thumbnail-item-ultra.active::after {
        width: 14px;
        height: 14px;
        font-size: 9px;
        top: 3px;
        right: 3px;
    }
    
    .thumbnail-gallery-ultra {
        display: none !important;
    }
    
    .carousel-navigation-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 15px;
        padding: 0 5px;
    }
    
    .carousel-btn-mobile {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .carousel-dots-mobile {
        gap: 8px;
    }
    
    .carousel-dot-mobile {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot-mobile.active {
        width: 24px;
    }
    
    .image-container-ultra {
        position: relative;
        touch-action: pan-y;
        user-select: none;
        margin-bottom: 20px;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.12),
            0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .main-product-image-ultra {
        height: 280px;
        width: 100%;
        object-fit: cover;
        border-radius: 18px;
        transition: transform 0.2s ease;
    }
    
    .image-container-ultra:active .main-product-image-ultra {
        transform: scale(0.99);
    }
    
    .image-container-ultra::after {
        content: '👆 Desliza ← →';
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
        color: white;
        padding: 10px 18px;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 700;
        opacity: 0;
        animation: fadeInOut 4s ease-in-out;
        pointer-events: none;
        z-index: 10;
        box-shadow: 
            0 8px 20px rgba(102, 126, 234, 0.4),
            0 3px 8px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        20%, 80% { opacity: 1; }
    }
}

/* ===== BADGE DESTACADO - IGUAL QUE EN VISTA DE TIENDA ===== */
.badge-featured {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #212529 !important;
    padding: 3px 6px !important;
    border-radius: 12px !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 100 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.badge-featured i {
    margin-right: 2px;
    font-size: 7px;
}

/* ===== ASEGURAR POSICIÓN RELATIVA DEL CONTENEDOR ===== */
.image-container-ultra {
    position: relative !important;
    overflow: visible !important;
}

.main-image-display {
    position: relative !important;
}

/* ===== BADGE DENTRO DE LA IMAGEN PRINCIPAL ===== */
.image-container-ultra .badge-featured {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #212529 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}

/* ===== FORZAR BADGE EN IMAGEN PRINCIPAL ===== */
.main-image-display .image-container-ultra .badge-featured {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 9999 !important;
    display: inline-block !important;
}

/* ===== OCULTAR BADGE EN MINIATURAS ===== */
.thumbnail-item-ultra .badge-featured,
.thumbnail-gallery-ultra .badge-featured {
    display: none !important;
}

/* Ocultar badge en cualquier lugar que NO sea la imagen principal */
.main-image-display:not(.image-container-ultra) .badge-featured,
.image-gallery-ultra:not(.main-image-display) .badge-featured {
    display: none !important;
}

/* Solo mostrar badge en la imagen principal */
.main-image-display .image-container-ultra .badge-featured {
    display: inline-block !important;
}

/* ===== PUNTOS DENTRO DE LA IMAGEN PRINCIPAL ===== */
.carousel-dots-inside {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.carousel-dot-inside {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(128, 128, 128, 0.6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-dot-inside.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-dot-inside:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* OCULTAR TODOS LOS BADGES EXCEPTO EL PRIMERO */
.badge-featured:nth-of-type(2),
.badge-featured:nth-of-type(3),
.badge-featured:nth-of-type(4),
.badge-featured:nth-of-type(5) {
    display: none !important;
}

/* OCULTAR BADGE EN PRODUCTOS RELACIONADOS */
.badge-featured-related {
    display: none !important;
}

/* Vista Global - Scroll horizontal con arrastre */
.global-view-table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: grab !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.global-view-table-wrapper::-webkit-scrollbar {
    display: none;  /* Chrome, Safari y Opera */
}

.global-view-table-wrapper:active {
    cursor: grabbing !important;
}

/* Las celdas de la tabla tienen cursor grab por defecto */
.global-view-table-wrapper table td {
    cursor: grab !important;
}

.global-view-table-wrapper table th {
    cursor: grab !important;
}

/* Los botones y elementos interactivos mantienen el cursor pointer */
.global-view-table-wrapper .btn-premium,
.global-view-table-wrapper .action-buttons,
.global-view-table-wrapper .action-buttons button,
.global-view-table-wrapper .action-buttons a,
.global-view-table-wrapper .premium-checkbox,
.global-view-table-wrapper input[type="checkbox"],
.global-view-table-wrapper a,
.global-view-table-wrapper button,
.global-view-table-wrapper .btn,
.global-view-table-wrapper table td .btn-premium,
.global-view-table-wrapper table td .action-buttons,
.global-view-table-wrapper table td .action-buttons button,
.global-view-table-wrapper table td .action-buttons a,
.global-view-table-wrapper table td .premium-checkbox,
.global-view-table-wrapper table td input[type="checkbox"],
.global-view-table-wrapper table td a,
.global-view-table-wrapper table td button,
.global-view-table-wrapper table td .btn {
    cursor: pointer !important;
}

/* Estilos para tablas de comparativa de precios */
.price-comparison-table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.price-comparison-table-wrapper::-webkit-scrollbar {
    display: none;  /* Chrome, Safari y Opera */
}

.price-comparison-table-wrapper:active {
    cursor: grabbing;
}

/* ============================================
   Sidebar Maestro - Menú lateral tipo WordPress
   ============================================ */

/* Sidebar dentro del layout maestro */
#app-container .dashboard-sidebar {
    background: #1d2327;
    color: #f0f0f1;
}

#app-container .dashboard-sidebar .sidebar-content {
    padding: 27px 0 20px 0;
}

#app-container .dashboard-sidebar .sidebar-top-block {
    padding: 6px 12px 8px 12px;
    margin-bottom: 0;
}

#app-container .dashboard-sidebar .sidebar-store-name {
    padding: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #f0f0f1;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#app-container .dashboard-sidebar .sidebar-theme-dropdown {
    width: 100%;
}

#app-container .dashboard-sidebar .sidebar-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    color: #b4b9be;
    background: #2c3338;
    border: 1px solid #3c434a;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

#app-container .dashboard-sidebar .sidebar-theme-btn:hover {
    background: #3c434a;
    color: #fff;
    border-color: #50575e;
}

#app-container .dashboard-sidebar .sidebar-theme-btn::after {
    margin-left: 4px;
}

#app-container .dashboard-sidebar .sidebar-theme-dropdown .dropdown-menu {
    background: #2c3338;
    border: 1px solid #3c434a;
    padding: 4px 0;
}

#app-container .dashboard-sidebar .sidebar-theme-dropdown .dropdown-item {
    color: #f0f0f1;
    font-size: 13px;
    padding: 8px 16px;
}

#app-container .dashboard-sidebar .sidebar-theme-dropdown .dropdown-item:hover {
    background: #3c434a;
    color: #fff;
}

#app-container .dashboard-sidebar .sidebar-theme-dropdown .dropdown-divider {
    border-color: #3c434a;
}

#app-container .dashboard-sidebar .sidebar-title {
    font-size: 14.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8c8f94;
    text-align: center;
    padding: 12px 20px 12px 20px;
    margin: 0;
    margin-top: 8px;
    letter-spacing: 0.5px;
    border-top: 1px solid #2c3338;
    border-bottom: 1px solid #2c3338;
    margin-bottom: 10px;
}

#app-container .dashboard-sidebar .sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#app-container .dashboard-sidebar .sidebar-menu-item {
    margin: 0;
    padding: 0;
}

#app-container .dashboard-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #b4b9be;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

#app-container .dashboard-sidebar .sidebar-link:hover,
#app-container .dashboard-sidebar .sidebar-link:focus,
#app-container .dashboard-sidebar .sidebar-link:active,
#app-container .dashboard-sidebar .sidebar-link:visited {
    text-decoration: none !important;
}

#app-container .dashboard-sidebar .sidebar-link:hover {
    background-color: #2c3338;
    color: #fff;
    border-left-color: #2271b1;
}

#app-container .dashboard-sidebar .sidebar-link.active {
    background-color: #2271b1;
    color: #fff;
    border-left-color: #2271b1;
    font-weight: 600;
}

#app-container .dashboard-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

#app-container .dashboard-sidebar .sidebar-link span {
    flex: 1;
}

#app-container .dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

#app-container .dashboard-sidebar::-webkit-scrollbar-track {
    background: #1d2327;
}

#app-container .dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #3c434a;
    border-radius: 3px;
}

#app-container .dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #50575e;
}

/* Ocultar pestaña "Mis Tarifas" en shipping/carriers (también al entrar desde menú Gestión de pagos y envíos > Transportistas) */
#shippingTabs .shipping-tab-mis-tarifas-hidden,
ul#shippingTabs li.shipping-tab-mis-tarifas-hidden {
    display: none !important;
} 