/* Assets/CSS/details.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* NAVBAR (mismo estilo que home.css) */
.navbar {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo:hover {
    color: #f7931e;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.1);
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-weight: 600;
}

.welcome-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

.username {
    color: #ff6b35;
    font-weight: 700;
}

.btn-logout {
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    text-decoration: none;
}

/* BREADCRUMB */
.breadcrumb-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #64748b;
}

.breadcrumb-current {
    color: #ff6b35;
    font-weight: 600;
}

.back-button {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.back-button:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
    transform: translateX(-5px);
}

/* PRODUCT DETAILS CONTAINER */
.product-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* PRODUCT IMAGE SECTION */
.product-image-section {
    position: relative;
}

.product-image-container {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.product-main-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

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

.product-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.product-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-discount {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* PRODUCT INFO SECTION */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-header {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.product-current-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff6b35;
}

.product-original-price {
    font-size: 1.5rem;
    color: #64748b;
    text-decoration: line-through;
}

.discount-percentage {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f59e0b;
    font-size: 1rem;
    font-weight: 600;
}

.product-description-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    color: #e2e8f0;
    font-size: 0.95rem;
}

/* PRODUCT ACTIONS */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.main-action {
    display: flex;
    gap: 16px;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    text-decoration: none;
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.store-details {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.store-name {
    font-weight: 600;
    color: #ffffff;
}

/* ERROR STATE */
.error-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.error-description {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* RELATED PRODUCTS SECTION */
.related-products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .navbar-container, 
    .breadcrumb-section, 
    .product-details-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .product-details-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 20px;
        padding: 16px 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .breadcrumb-section, 
    .product-details-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-current-price {
        font-size: 2rem;
    }
    
    .product-original-price {
        font-size: 1.2rem;
    }
    
    .main-action {
        flex-direction: column;
    }
    
    .secondary-actions {
        grid-template-columns: 1fr;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        padding: 20px;
    }
    
    .product-main-image,
    .product-placeholder {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-current-price {
        font-size: 1.8rem;
    }
    
    .product-actions {
        padding: 24px;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
}

/* ANIMATIONS */
.product-details-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* UTILITY CLASSES */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* NOTIFICACION EFIMERA */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeInOut 10s ease-in-out;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
/* FIN NOTIFICACION EFIMERA */