/* Estilos principales del catálogo de velas */
.candle-catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sección de filtros */
.candle-filters {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: -0.5px;
}

.filter-buttons {
    display: inline-flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #999;
    color: #333;
    background-color: #f8f8f8;
}

.filter-btn.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

.sort-dropdown {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Grid de productos */
.candle-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .candle-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .candle-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sort-dropdown {
        float: none;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .candle-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Producto individual */
.candle-product-item {
    position: relative;
    background: white;
    transition: transform 0.3s ease;
}

.candle-product-item:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.candle-product-item:hover .product-image {
    transform: scale(1.05);
}

/* Botón de wishlist */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    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);
    opacity: 0;
}

.candle-product-item:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background-color: #ff4458;
    color: white;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
}

.wishlist-btn.active svg {
    fill: #ff4458;
    stroke: #ff4458;
}

/* Botón de agregar rápido */
.quick-add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    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);
    opacity: 0;
}

.candle-product-item:hover .quick-add-btn {
    opacity: 1;
}

.quick-add-btn:hover {
    background-color: #333;
    color: white;
}

.quick-add-btn svg {
    width: 18px;
    height: 18px;
}

/* Información del producto */
.product-info {
    padding: 15px 5px;
    text-align: left;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Estados de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animación de entrada */
.candle-product-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.candle-product-item:nth-child(1) { animation-delay: 0.1s; }
.candle-product-item:nth-child(2) { animation-delay: 0.15s; }
.candle-product-item:nth-child(3) { animation-delay: 0.2s; }
.candle-product-item:nth-child(4) { animation-delay: 0.25s; }
.candle-product-item:nth-child(5) { animation-delay: 0.3s; }
.candle-product-item:nth-child(6) { animation-delay: 0.35s; }
.candle-product-item:nth-child(7) { animation-delay: 0.4s; }
.candle-product-item:nth-child(8) { animation-delay: 0.45s; }

/* Mensaje de productos no encontrados */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products-found h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.no-products-found p {
    font-size: 16px;
    color: #666;
}

/* Clearfix para el float */
.candle-filters::after {
    content: "";
    display: table;
    clear: both;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip.show {
    opacity: 1;
}

/* Quick view modal (opcional) */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* Paginación */
.candle-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.candle-pagination-buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn,
.page-number {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover,
.page-number:hover {
    background-color: #f8f8f8;
    border-color: #999;
}

.page-numbers {
    display: inline-flex;
    gap: 5px;
}

.current-page {
    padding: 8px 16px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

/* Etiquetas de WooCommerce */
.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4458;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.out-of-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

/* Enlaces de productos */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-info a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-info a:hover {
    color: #666;
}

/* Subtítulo del producto */
.product-subtitle {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

/* Rating de WooCommerce */
.product-rating {
    margin-top: 8px;
}

.product-rating .star-rating {
    font-size: 12px;
    color: #ffb900;
}

/* Precio de WooCommerce */
.product-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 8px 0 0 0;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
    color: #ff4458;
}

/* Mini spinner para botones */
.mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Notificaciones */
.candle-notification {
    position: fixed;
    bottom: 20px;
    right: -400px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: right 0.3s ease;
    z-index: 10000;
}

.candle-notification.show {
    right: 20px;
}

.candle-notification.success {
    border-left: 4px solid #4caf50;
}

.candle-notification.error {
    border-left: 4px solid #f44336;
}

.candle-notification.info {
    border-left: 4px solid #2196f3;
}

.candle-notification span {
    flex: 1;
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}

.close-notification {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.close-notification:hover {
    color: #333;
}

/* Mensaje de no productos mejorado */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products-found svg {
    margin-bottom: 20px;
    color: #ddd;
}

.no-products-found h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.no-products-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.reset-filters-btn {
    padding: 10px 24px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reset-filters-btn:hover {
    background: #555;
}

/* Compatibilidad con YITH Wishlist */
.yith-wcwl-add-to-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.yith-wcwl-add-button a,
.yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-wishlistexistsbrowse a {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.yith-wcwl-add-button a:hover {
    background-color: #ff4458;
    color: white;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .candle-pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        order: 2;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
    
    .candle-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .candle-notification.show {
        right: 10px;
    }
}

/* Ajustes adicionales para productos de WooCommerce */
.candle-product-item.product-type-variable .quick-add-btn {
    display: none; /* Ocultar botón rápido para productos variables */
}

.candle-product-item.product-type-grouped .quick-add-btn {
    display: none; /* Ocultar botón rápido para productos agrupados */
}

/* Loading state para productos */
.candle-product-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
.candle-product-item:focus-within {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Transiciones suaves */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ESTILOS PARA VISTA DE DETALLE DEL PRODUCTO ===== */

.candle-product-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== GALERÍA DE IMÁGENES ===== */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    background: #f8f8f8;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.main-product-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #333;
    transform: scale(1.05);
}

/* ===== INFORMACIÓN DEL PRODUCTO ===== */
.product-info-detail {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.product-price-detail {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.product-short-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.product-details-list {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-item {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #333;
    font-weight: 600;
}

/* ===== FORMULARIO DE COMPRA ===== */
.product-add-to-cart {
    margin-bottom: 40px;
}

.quantity-cart-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.quantity-selector input[type="number"] {
    width: 60px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background: white;
}

.single_add_to_cart_button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.single_add_to_cart_button:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.out-of-stock-message {
    color: #e74c3c;
    font-weight: 600;
    padding: 15px;
    background: #fdf2f2;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

/* ===== ACORDEÓN DE INFORMACIÓN ===== */
.product-accordion {
    border-top: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: #666;
}

.accordion-header span {
    flex: 1;
    font-weight: 500;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #666;
    margin-left: 10px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 20px;
}

.accordion-content p {
    margin: 0 0 10px 0;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .quantity-cart-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .single_add_to_cart_button {
        width: 100%;
        min-width: auto;
    }
    
    .gallery-thumbnails {
        justify-content: flex-start;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .candle-product-detail {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .product-detail-container {
        gap: 20px;
    }
    
    .accordion-header {
        padding: 15px 0;
        font-size: 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price-detail {
        font-size: 18px;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
.main-product-image:hover {
    transform: scale(1.05);
}

.accordion-header:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

.single_add_to_cart_button:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Loading state para el botón */
.single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.single_add_to_cart_button.loading:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* ===== MEJORAS PARA INTEGRACIÓN CON WOOCOMMERCE ===== */
.woocommerce .candle-product-detail .cart {
    margin: 0;
}

.woocommerce .candle-product-detail .variations {
    margin-bottom: 20px;
}

.woocommerce .candle-product-detail .variations td {
    padding: 5px 0;
    border: none;
    vertical-align: middle;
}

.woocommerce .candle-product-detail .variations label {
    font-weight: 600;
    color: #333;
}

.woocommerce .candle-product-detail select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Stock status */
.stock {
    font-size: 14px;
    margin-bottom: 15px;
}

.stock.in-stock {
    color: #27ae60;
}

.stock.out-of-stock {
    color: #e74c3c;
}

/* ===== MODAL DE IMAGEN EXPANDIDA ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: white;
    transform: scale(1.1);
}

.prev-image,
.next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-image {
    left: -80px;
}

.next-image {
    right: -80px;
}

.prev-image:hover,
.next-image:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

body.modal-open {
    overflow: hidden;
}

/* ===== NOTIFICACIONES MEJORADAS ===== */
.candle-notification {
    position: fixed;
    bottom: 20px;
    right: -400px;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: right 0.4s ease, transform 0.2s ease;
    z-index: 10000;
    border: 1px solid #eee;
}

.candle-notification.show {
    right: 20px;
}

.candle-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.candle-notification.success {
    border-left: 4px solid #27ae60;
}

.candle-notification.success .notification-icon {
    color: #27ae60;
}

.candle-notification.error {
    border-left: 4px solid #e74c3c;
}

.candle-notification.error .notification-icon {
    color: #e74c3c;
}

.candle-notification.info {
    border-left: 4px solid #3498db;
}

.candle-notification.info .notification-icon {
    color: #3498db;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.close-notification {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-notification:hover {
    color: #333;
    background: #f5f5f5;
}

/* ===== MEJORAS DE ACCESIBILIDAD Y UX ===== */
@media (prefers-reduced-motion: reduce) {
    .main-product-image,
    .thumbnail,
    .accordion-icon,
    .single_add_to_cart_button,
    .candle-notification,
    .image-modal {
        transition: none;
    }
    
    .main-product-image:hover {
        transform: none;
    }
    
    .thumbnail:hover {
        transform: none;
    }
}

/* Focus styles mejorados */
.thumbnail:focus-visible,
.accordion-header:focus-visible,
.single_add_to_cart_button:focus-visible {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Estados de carga */
.product-gallery.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-info-detail.loading {
    opacity: 0.7;
}

/* Responsive mejorado */
@media (max-width: 1024px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .close-modal,
    .prev-image,
    .next-image {
        top: 20px;
        transform: none;
    }
    
    .close-modal {
        right: 20px;
    }
    
    .prev-image {
        left: 20px;
    }
    
    .next-image {
        right: 80px;
    }
}

@media (max-width: 768px) {
    .candle-notification {
        left: 15px;
        right: 15px;
        max-width: none;
        bottom: 15px;
    }
    
    .candle-notification.show {
        right: 15px;
    }
    
    .image-modal-content {
        padding: 20px;
    }
    
    .modal-image {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
}

/* Animaciones de entrada */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.candle-product-detail {
    animation: fadeInScale 0.6s ease-out;
}

.candle-notification.show {
    animation: slideInRight 0.4s ease-out;
}
