/* ===================================== */
/* PRODUCT DETAIL - MODERN STYLES       */
/* ===================================== */

/* Suavizar borde del contenedor de detalles */
.product-detail-content {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

/* Modern stock badges */
.badge-stock {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-stock-available {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge-stock-low {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.badge-stock-out {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Modern action buttons */
.modern-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-modern-add,
.btn-modern-buy {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern-add {
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorDestacado) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-modern-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-modern-buy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-modern-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Modern wishlist actions */
.modern-wishlist-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-wishlist {
    flex: 1;
    padding: 12px 20px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wishlist:hover {
    border-color: var(--colorCorporativo);
    color: var(--colorCorporativo);
    background: #fff;
    transform: translateY(-1px);
}

.btn-wishlist.active {
    border-color: var(--colorCorporativo);
    background: var(--colorCorporativo);
    color: #fff;
}

.btn-wishlist i {
    font-size: 16px;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .modern-action-buttons {
        flex-direction: column;
    }
    
    .btn-modern-add,
    .btn-modern-buy {
        width: 100%;
    }
    
    .modern-wishlist-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .btn-modern-add,
    .btn-modern-buy {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===================================== */
/* MODERN PRODUCT INFO SECTION          */
/* ===================================== */

.modern-product-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.info-label i {
    color: var(--colorCorporativo);
    opacity: 0.8;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rating link styling */
.rating-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rating-link:hover {
    opacity: 0.8;
}

.rating-link .stars-outer {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 24px;
}

.rating-link .stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

.rating-link .stars-inner::before {
    content: '\2605\2605\2605\2605\2605';
    color: #ffc107;
    font-size: 20px;
}

.rating-link .stars-outer::before {
    content: '\2605\2605\2605\2605\2605';
    color: #e0e0e0;
    font-size: 20px;
}

.rating-count {
    font-size: 14px;
    color: var(--colorCorporativo);
    font-weight: 600;
}

/* Product short description */
.product-short-desc {
    background: #f8f9fa;
    border-left: 4px solid var(--colorCorporativo);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.product-short-desc p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* Responsive adjustments for product info */
@media (max-width: 768px) {
    .modern-product-info {
        padding: 12px;
        margin: 12px 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        padding: 10px 12px;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .info-value {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .modern-product-info {
        padding: 10px;
        border-radius: 10px;
    }
    
    .info-item {
        padding: 8px 10px;
    }
    
    .rating-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===================================== */
/* MODERN MODAL STYLES                  */
/* ===================================== */

/* Modal backdrop con blur moderno */
.modal {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease;
}

.modal.show {
    backdrop-filter: blur(4px);
}

.modal-backdrop.show {
    opacity: 0.6;
    background-color: #000;
}

/* Modal content modernizado */
.quick-view-modal-container .modal-content,
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Modal header moderno */
.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
    position: relative;
}

.modal-header .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #666;
    line-height: 1;
}

.modal-header .close:hover {
    background: var(--colorCorporativo);
    border-color: var(--colorCorporativo);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header .close span {
    display: block;
    line-height: 1;
}

/* Modal body con padding mejorado */
.modal-body {
    padding: 32px 24px;
}

/* Título del producto en modal */
.modal-body .product-details-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Carrusel de imágenes moderno */
.big-image-slider,
.small-image-slider {
    border-radius: 12px;
    overflow: hidden;
}

.big-image-slider img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.small-image-slider-single-item {
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.small-image-slider-single-item img {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.small-image-slider-single-item:hover img,
.small-image-slider-single-item.slick-current img {
    border-color: var(--colorCorporativo);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Slick arrows modernizados */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--colorCorporativo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slick-prev:before,
.slick-next:before {
    color: #666;
    font-size: 20px;
    opacity: 1;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: #fff;
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal responsive mejorado */
@media (max-width: 991px) {
    .modal-body {
        padding: 24px 16px;
    }
    
    .modal-body .product-details-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 20px 12px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header .close {
        width: 32px;
        height: 32px;
        right: 12px;
        top: 12px;
        font-size: 20px;
    }
}

/* Quick view modal específico */
.quick-view-modal-container .modal-dialog {
    max-width: 1000px;
}

@media (min-width: 992px) {
    .quick-view-modal-container .modal-dialog {
        max-width: 1100px;
    }
}

/* Modal de video mejorado */
.youtubeVideo .modal-body {
    padding: 0;
    background: #000;
}

.youtubeVideo .videoContainer {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.youtubeVideo .videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtubeVideo .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1050;
    background: transparent;
    border: none;
    padding: 10px;
}

.youtubeVideo .modal-header .close {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.youtubeVideo .modal-header .close:hover {
    background: var(--colorCorporativo);
    border-color: var(--colorCorporativo);
}

@media (max-width: 767px) {
    .youtubeVideo .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .youtubeVideo .modal-content {
        border-radius: 0;
    }
}

/* ===================================== */
/* MODERN ALERTIFY DIALOGS              */
/* ===================================== */

/* Backdrop con blur */
.alertify .ajs-dimmer {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease;
}

/* Dialog container moderno */
.alertify .ajs-dialog {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    max-width: 500px !important;
    animation: alertify-slide-in 0.3s ease-out;
}

@keyframes alertify-slide-in {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Header moderno */
.alertify .ajs-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 20px 24px !important;
    border-radius: 16px 16px 0 0 !important;
}

.alertify .ajs-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    text-transform: none !important;
}

/* Close button moderno */
.alertify .ajs-commands button.ajs-close {
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 20px !important;
    right: 20px !important;
}

.alertify .ajs-commands button.ajs-close:before {
    content: '\f00d' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    color: #666 !important;
    display: block !important;
}

.alertify .ajs-commands button.ajs-close:hover {
    background-color: var(--colorCorporativo) !important;
    border-color: var(--colorCorporativo) !important;
    transform: rotate(90deg) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.alertify .ajs-commands button.ajs-close:hover:before {
    color: #fff !important;
}

/* Body moderno */
.alertify .ajs-body {
    padding: 24px !important;
}

.alertify .ajs-content {
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

/* Footer con botones modernos */
.alertify .ajs-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 16px 24px !important;
    border-radius: 0 0 16px 16px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

.alertify .ajs-footer .ajs-buttons {
    display: flex !important;
    gap: 12px !important;
}

/* Botones modernos */
.alertify .ajs-footer .ajs-buttons .ajs-button {
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Botón cancelar */
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel {
    background: #f8f8f8 !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel:hover {
    background: #fff !important;
    border-color: #ccc !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Botón aceptar/ok */
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, var(--colorDestacado) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Notificaciones (alertify.success, alertify.error, etc.) */
.alertify-notifier .ajs-message {
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
}

.alertify-notifier .ajs-message.ajs-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #fff !important;
}

.alertify-notifier .ajs-message.ajs-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
}

.alertify-notifier .ajs-message.ajs-warning {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%) !important;
    color: #fff !important;
}

.alertify-notifier .ajs-message.ajs-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 576px) {
    .alertify .ajs-dialog {
        max-width: calc(100% - 32px) !important;
        margin: 16px !important;
    }
    
    .alertify .ajs-header,
    .alertify .ajs-body,
    .alertify .ajs-footer {
        padding: 16px !important;
    }
    
    .alertify .ajs-footer .ajs-buttons {
        flex-direction: column-reverse !important;
        width: 100% !important;
    }
    
    .alertify .ajs-footer .ajs-buttons .ajs-button {
        width: 100% !important;
    }
}
