/* ===================================
   PRODUCTO PREMIUM - ESTILOS ESPECÍFICOS
   Solo para producto.php
   ================================== */

/* Contenedor principal del producto premium */
.producto-premium {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* ===== BREADCRUMB PREMIUM ===== */
.producto-premium .breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.producto-premium .breadcrumb a {
    color: #ff6348;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.producto-premium .breadcrumb a:hover {
    color: #ff4757;
    text-decoration: underline;
}

.producto-premium .breadcrumb span {
    color: #6c757d;
    font-weight: 500;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.producto-premium .modern-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.producto-premium .modern-product-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6348, #ff4757, #e83e8c);
}

/* ===== SECCIÓN DE IMAGEN ===== */
.producto-premium .product-image-section {
    position: relative;
}

.producto-premium .product-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.producto-premium .product-image-wrapper:hover {
    transform: scale(1.02);
}

.producto-premium .modern-product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.producto-premium .product-image-wrapper:hover .modern-product-image {
    transform: none;
}

/* Botones de acción sobre la imagen */
.producto-premium .image-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.producto-premium .product-image-wrapper:hover .image-actions {
    opacity: 1;
    transform: translateX(0);
}

.producto-premium .action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.producto-premium .action-btn:hover {
    background: #ff6348;
    color: white;
    transform: scale(1.1);
}

.producto-premium .action-btn.wishlist.active {
    background: #ff6348;
    color: white;
}

/* ===== SECCIÓN DE DETALLES ===== */
.producto-premium .product-details-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.producto-premium .product-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 20px;
}

.producto-premium .modern-product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.producto-premium .product-condition-under {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #20c997;
}

.producto-premium .product-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ff6348;
    background: rgba(255, 99, 72, 0.12);
    border: 1px solid rgba(255, 99, 72, 0.25);
    max-width: 100%;
}

/* ===== RATING SECTION ===== */
.producto-premium .product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.producto-premium .stars {
    display: flex;
    gap: 4px;
}

.producto-premium .star {
    color: #ffc107;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.producto-premium .rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.producto-premium .rating-count {
    font-weight: 600;
}

/* ===== SECCIÓN DE COMPRA ===== */
.producto-premium .modern-buy-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(255, 99, 72, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.producto-premium .buy-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.producto-premium .buy-title::before {
    content: '\f07a';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

/* ===== CARDS DE VENDEDORES ===== */
.producto-premium .sellers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.producto-premium .modern-offer-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.producto-premium .modern-offer-card:hover {
    border-color: #ff6348;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 99, 72, 0.15);
}

.producto-premium .modern-offer-card.best-offer {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02), rgba(32, 201, 151, 0.02));
}

.producto-premium .best-offer-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.producto-premium .offer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.producto-premium .seller-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.producto-premium .seller-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.producto-premium .vendor-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.producto-premium .seller-link {
    color: #ff6348;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.producto-premium .seller-link:hover {
    color: #ff4757;
    text-decoration: underline;
}

.producto-premium .stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

.producto-premium .price-action-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.producto-premium .price-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    color: #ff6348;
}

.producto-premium .currency {
    font-size: 1.2rem;
    opacity: 0.8;
}

.producto-premium .price-amount {
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(255, 99, 72, 0.2);
}

.producto-premium .modern-add-to-cart-btn {
    background: linear-gradient(135deg, #ff6348, #ff4757);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 99, 72, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.producto-premium .modern-add-to-cart-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;
}

.producto-premium .modern-add-to-cart-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 99, 72, 0.4);
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.producto-premium .modern-add-to-cart-btn:hover::before {
    left: 100%;
}

.producto-premium .modern-add-to-cart-btn:active {
    transform: translateY(0) scale(1.01);
}

/* ===== DESCRIPCIÓN PREMIUM ===== */
.producto-premium .mercadolibre-description {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.producto-premium .description-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #ff6348;
    display: inline-block;
}

.producto-premium .description-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1rem;
}

.producto-premium .product-features,
.producto-premium .product-specs {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border-left: 4px solid #ff6348;
}

.producto-premium .product-features h3,
.producto-premium .product-specs h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.producto-premium .product-features h3::before {
    content: '\f085';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.producto-premium .product-specs h3::before {
    content: '📋';
}

.producto-premium .features-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.producto-premium .features-list li {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.producto-premium .features-list li:hover {
    transform: translateX(4px);
}

.producto-premium .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.producto-premium .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.producto-premium .spec-label {
    font-weight: 600;
    color: #6c757d;
}

.producto-premium .spec-value {
    font-weight: 700;
    color: #2c3e50;
}

/* ===== PRODUCTOS SIMILARES PREMIUM ===== */
.producto-premium .similar-products-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.producto-premium .similar-products-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.producto-premium .similar-products-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6348, #ff4757);
    border-radius: 2px;
}

.producto-premium .carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.producto-premium .similar-products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.producto-premium .similar-products-carousel::-webkit-scrollbar {
    display: none;
}

.producto-premium .similar-product-card {
    min-width: 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.producto-premium .similar-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 99, 72, 0.2);
}

.producto-premium .similar-product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.producto-premium .similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-premium .similar-product-card:hover .similar-product-image img {
    transform: scale(1.1);
}

.producto-premium .similar-product-info {
    padding: 20px;
}

.producto-premium .similar-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-premium .similar-product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ff6348;
    text-shadow: 0 1px 3px rgba(255, 99, 72, 0.3);
}

.producto-premium .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.producto-premium .carousel-btn:hover {
    background: #ff6348;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.producto-premium .carousel-btn-prev {
    left: 10px;
}

.producto-premium .carousel-btn-next {
    right: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .producto-premium .modern-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .producto-premium .offer-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    
    .producto-premium .price-action-section {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .producto-premium .modern-product-container {
        padding: 20px;
        margin: 0 10px 30px;
        gap: 20px;
    }

    .producto-premium .modern-product-image {
        height: 300px;
        max-width: 100%;
    }
    
    .producto-premium .modern-product-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .producto-premium .product-header {
        padding-bottom: 15px;
    }
    
    .producto-premium .price-amount {
        font-size: 1.3rem;
    }
    
    .producto-premium .mercadolibre-description,
    .producto-premium .similar-products-section {
        padding: 20px;
        margin: 0 10px 30px;
    }
    
    .producto-premium .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .producto-premium .similar-product-card {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .producto-premium .modern-product-container {
        padding: 12px 15px;
        gap: 15px;
        margin: 0 5px 20px;
    }

    .producto-premium .modern-product-image {
        height: 240px;
        max-width: 100%;
    }
    
    .producto-premium .modern-product-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .producto-premium .product-header {
        gap: 6px;
        padding-bottom: 12px;
    }
    
    .producto-premium .product-details-section {
        gap: 16px;
    }
    
    .producto-premium .price-amount {
        font-size: 1.1rem;
    }
    
    .producto-premium .modern-add-to-cart-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .producto-premium .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.producto-premium .modern-product-container {
    animation: fadeInUp 0.6s ease-out;
}

.producto-premium .mercadolibre-description {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.producto-premium .similar-products-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.producto-premium .modern-offer-card {
    animation: slideInRight 0.5s ease-out;
}

.producto-premium .modern-offer-card:nth-child(2) {
    animation-delay: 0.1s;
}

.producto-premium .modern-offer-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== LOADING STATES ===== */
.producto-premium .btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.producto-premium .btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.toast.success .toast-icon {
    background: #28a745;
}

.toast.error .toast-icon {
    background: #dc3545;
}

.toast-message {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #2c3e50;
}
