/* 
 * TEMPLATE PREMIUM - PÁGINA DE PRODUCTO
 * Diseño moderno y funcional con todas las características avanzadas
 */

/* ===== CONTENEDOR PRINCIPAL ===== */
.product-premium-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    color: #1a202c;
}

/* ===== HEADER PREMIUM ===== */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.breadcrumb span {
    color: #1e293b;
}

.product-badges-header {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-new, .badge-featured, .badge-sale {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
}

.badge-featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* ===== LAYOUT PRINCIPAL ===== */
.product-premium-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.product-premium-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 50%, #f093fb 100%);
}

/* ===== GALERÍA PREMIUM ===== */
.product-premium-gallery {
    padding: 2rem;
    background: #ffffff;
}

.premium-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.premium-gallery-counter {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.premium-gallery-controls {
    display: flex;
    gap: 0.5rem;
}

.premium-control-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #64748b;
}

.premium-control-btn:hover {
    background: var(--main-color2, #667eea);
    color: white;
    transform: scale(1.1);
}

.premium-main-display {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: zoom-in;
}

.premium-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-main-image:hover {
    transform: scale(1.05);
}

.premium-discount-badge, .premium-new-badge {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-discount-badge {
    left: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.premium-new-badge {
    right: 1rem;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
}

.premium-thumbnails-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
}

.premium-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-thumbnail:hover, .premium-thumbnail.active {
    border-color: var(--main-color2, #667eea);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.premium-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-gallery-counter {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.premium-gallery-controls {
    display: flex;
    gap: 0.5rem;
}

.premium-control-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.premium-control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.premium-main-display {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: zoom-in;
}

.premium-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-main-display:hover .premium-main-image {
    transform: scale(1.05);
}

.premium-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-main-display:hover .premium-image-overlay {
    opacity: 1;
}

.premium-zoom-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-main-display:hover .premium-zoom-controls {
    opacity: 1;
}

.premium-zoom-btn {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.premium-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* Galería de Miniaturas Premium */
.premium-thumbnails-container {
    position: relative;
    margin: 0 -0.5rem;
}

.premium-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
}

.premium-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.premium-thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.premium-thumbnails::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--main-color2, #667eea), var(--main-color3, #764ba2));
    border-radius: 2px;
}

.premium-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
}

.premium-thumbnail::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--main-color2, #667eea), var(--main-color3, #764ba2), #f093fb);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.premium-thumbnail:hover::before,
.premium-thumbnail.active::before {
    opacity: 1;
}

.premium-thumbnail:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.premium-thumbnail.active {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.premium-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-thumbnail-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-thumbnail:hover .premium-thumbnail-badge {
    opacity: 1;
}

/* Información Premium */
.product-premium-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.premium-header {
    margin-bottom: 2rem;
}

.premium-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.premium-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.premium-badge:hover::before {
    left: 100%;
}

.premium-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.premium-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-badge.sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.premium-badge.exclusive {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.premium-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.premium-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.premium-rating-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--main-color2, #667eea);
}

.premium-stars {
    display: flex;
    gap: 0.25rem;
}

.premium-star {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: transform 0.2s ease;
}

.premium-star:hover {
    transform: scale(1.2);
}

.premium-star.empty {
    background: #e2e8f0;
}

.premium-rating-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.premium-rating-score {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
}

.premium-rating-count {
    font-size: 0.9rem;
    color: #64748b;
}

/* Precio Premium */
.premium-price-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.premium-price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0) translateY(0) rotate(45deg); }
}

.premium-price-main {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.premium-price-original {
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.8;
    margin-left: 1rem;
}

.premium-savings {
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.premium-price-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Variantes Premium */
.premium-variants {
    margin-bottom: 2rem;
}

.premium-variant-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.premium-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.premium-variant-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
}

.premium-variant-help {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.premium-variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.premium-variant-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-variant-option::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;
}

.premium-variant-option:hover::before {
    left: 100%;
}

.premium-variant-option:hover {
    border-color: var(--main-color2, #667eea);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.premium-variant-option.selected {
    border-color: var(--main-color2, #667eea);
    background: linear-gradient(135deg, var(--main-color2, #667eea), var(--main-color3, #764ba2));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.premium-variant-option.color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    position: relative;
}

.premium-variant-option.color.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

/* Acciones Premium */
.premium-actions {
    margin-bottom: 2rem;
}

.premium-quantity-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.premium-quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.premium-quantity-label {
    font-weight: 600;
    color: #1a202c;
}

.premium-stock-indicator {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 500;
}

.premium-quantity-selector {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.premium-quantity-btn {
    background: #f8fafc;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #4b5563;
}

.premium-quantity-btn:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.premium-quantity-input {
    border: none;
    padding: 1rem;
    text-align: center;
    width: 100px;
    font-weight: 600;
    background: white;
    color: #1a202c;
}

.premium-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-btn-cart {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-btn-cart::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 ease;
}

.premium-btn-cart:hover::before {
    left: 100%;
}

.premium-btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.premium-btn-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.premium-btn-secondary {
    background: transparent;
    color: var(--main-color2, #667eea);
    border: 2px solid var(--main-color2, #667eea);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-btn-secondary:hover {
    background: var(--main-color2, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Información Premium Avanzada */
.premium-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

.premium-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.25rem;
}

.premium-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.premium-tab.active {
    background: white;
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-tab-content {
    display: none;
    padding: 1rem 0;
}

.premium-tab-content.active {
    display: block;
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.premium-feature-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.premium-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color2, #667eea);
}

.premium-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--main-color2, #667eea), var(--main-color3, #764ba2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.premium-feature-title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.premium-feature-text {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Trust Indicators */
.premium-trust {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fff4, #ecfdf5);
    border-radius: 12px;
    border: 1px solid #10b981;
}

.premium-trust-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.premium-trust-icon {
    color: #10b981;
    font-size: 1.5rem;
}

.premium-trust-title {
    font-weight: 600;
    color: #064e3b;
}

.premium-trust-items {
    display: grid;
    gap: 0.75rem;
}

.premium-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #065f46;
    font-size: 0.9rem;
}

.premium-trust-check {
    color: #10b981;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-premium-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .premium-main-display {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .product-premium-container {
        padding: 1rem;
    }
    
    .product-premium-info {
        padding: 2rem;
    }
    
    .premium-title {
        font-size: 2rem;
    }
    
    .premium-price-main {
        font-size: 2rem;
    }
    
    .premium-variant-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .premium-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .premium-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .premium-tabs {
        flex-direction: column;
    }
    
    .premium-buttons-container {
        gap: 0.75rem;
    }
    
    .premium-btn-cart,
    .premium-btn-secondary {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ===== PRODUCTOS RELACIONADOS ===== */
.related-products-section {
    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
    padding: 4rem 0;
    margin-top: 2rem;
}

.related-products-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.related-products-title i {
    color: var(--main-color2, #667eea);
    font-size: 1.5rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e0;
    font-size: 1rem;
    font-weight: 500;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.related-discount-badge, .related-featured-badge {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-discount-badge {
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.related-featured-badge {
    left: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748 !important;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.related-product-price {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.related-price-original {
    color: #a0aec0 !important;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

.related-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--main-color2, #667eea) !important; /* Fallback */
}

.related-product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.related-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white !important;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.related-product-btn.view {
    flex: 1;
    min-width: 0;
}

.related-product-btn.quick-add {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.related-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    text-decoration: none !important;
    color: white !important;
}

.related-product-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* ===== CONTROLES DE CARRITO PARA PRODUCTOS RELACIONADOS ===== */
.related-cart-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px;
}

.related-cart-controls .cartbutton {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-cart-controls .cartbutton:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.related-cart-controls .cartbutton.cartdelete {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.related-cart-controls .cartbutton.cartdelete:hover {
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.related-cart-controls .productqty {
    width: 30px;
    height: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    background: white;
    color: #2d3748;
}

.related-cart-controls .productqty:focus {
    outline: none;
    border-color: var(--main-color2, #667eea);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Botones específicos para productos relacionados en carrito */
.related-qty-btn, .related-delete-btn {
    font-size: 10px !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 4px 6px !important;
}

.related-qty-btn i, .related-delete-btn i {
    font-size: 10px;
}

/* Cuando el producto está en el carrito, ocultar el botón "agregar" */
.related-cart-controls:has(.productqty) .quick-add {
    display: none;
}

/* ===== BARRA DE SEGURIDAD ===== */
.security-bar {
    /* background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); */
    color: white;
    padding: 4rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.security-bar h4,
.security-bar .security-content h4 {
    color: var(--main-font-color) !important;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.security-bar p,
.security-bar .security-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.security-bar .trust-badge {
    color: white;
}

.security-bar .security-item {
    color: white;
}

.security-bar .security-item * {
    color: inherit;
}

.security-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.security-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.security-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.security-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-font-color) !important;
}

.security-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 1rem;
    color: var(--main-color2, #667eea);
}

/* Responsive para secciones nuevas */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .related-products-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .security-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .trust-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        padding: 2rem 0;
    }
    
    .security-bar {
        padding: 2rem 0;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .related-products-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== ESTILOS FALTANTES ESPECÍFICOS ===== */
.premium-category, .premium-sku, .premium-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    font-size: 0.875rem;
    color: #4c51bf !important;
    font-weight: 600;
}

.premium-rating-section {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--main-color2, #667eea);
}

.premium-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.premium-stars i {
    color: #fbbf24 !important;
    font-size: 1.2rem;
}

.premium-rating-info {
    font-size: 0.9rem;
    color: #64748b !important;
}

.premium-description {
    line-height: 1.8;
    color: #4a5568 !important;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid var(--main-color2, #667eea);
    margin-bottom: 2rem;
}

.premium-product-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a202c 0%, var(--main-color2, #667eea) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    color: #1a202c; /* Fallback para navegadores sin soporte de background-clip */
}

/* Fix para elementos que aparecen blancos */
.product-premium-info * {
    color: inherit;
}

.premium-price-section * {
    color: white !important;
}

.security-bar * {
    color: inherit;
}

.related-product-card * {
    color: inherit;
}

.related-product-name {
    color: #2d3748 !important;
}

.related-price-current {
    color: var(--main-color2, #667eea) !important;
}

.related-price-original {
    color: #a0aec0 !important;
}

/* ===== CLASES ADICIONALES NECESARIAS ===== */
.premium-rating-text, .premium-rating-link {
    font-size: 0.9rem;
    color: #64748b !important;
    margin-top: 0.5rem;
}

.premium-rating-link {
    color: var(--main-color2, #667eea) !important;
    text-decoration: none;
    font-weight: 600;
}

.premium-rating-link:hover {
    text-decoration: underline;
}

.premium-pricing-section {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    padding: 2rem;
    border-radius: 16px;
    color: white;
    margin-bottom: 2rem;
}

.premium-price-comparison {
    margin-bottom: 1rem;
}

.premium-prices {
    margin-bottom: 1rem;
}

.premium-price-original {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.premium-price-current {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.premium-single-price .premium-price-current {
    font-size: 3rem;
}

.premium-savings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.premium-savings-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.premium-discount-percent {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.premium-shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
    color: white;
}

.premium-description-section {
    margin-bottom: 2rem;
}

.premium-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c !important;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-section-title i {
    color: var(--main-color2, #667eea) !important;
}

/* ===== NOTIFICACIONES PREMIUM ===== */
.premium-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.premium-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.premium-notification-success {
    border-left: 4px solid #10b981;
}

.premium-notification-success i {
    color: #10b981;
}

.premium-notification-error {
    border-left: 4px solid #ef4444;
}

.premium-notification-error i {
    color: #ef4444;
}

.premium-notification-info {
    border-left: 4px solid var(--main-color2, #667eea);
}

.premium-notification-info i {
    color: var(--main-color2, #667eea);
}

/* ===== ESTILOS PARA BOTONES PREMIUM ===== */
.premium-btn-add-cart, .premium-btn-buy-now {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.premium-btn-buy-now {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.premium-btn-add-cart:hover, .premium-btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* === COMPATIBILIDAD CON SISTEMA DE CARRITO === */
/* Estilos para botones generados dinámicamente por custom.js */
.cartbutton.productplus.add-to-cart-btn {
    /* Heredar estilos del botón premium-btn-add-cart */
    background: linear-gradient(135deg, var(--main-color, #667eea) 0%, var(--main-color2, #764ba2) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cartbutton.productplus.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cartbutton.add-to-cart-btn {
    /* También para botones add-to-cart genéricos */
    background: linear-gradient(135deg, var(--main-color, #667eea) 0%, var(--main-color2, #764ba2) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cartbutton.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.premium-btn-wishlist, .premium-btn-compare, .premium-btn-share {
    background: transparent;
    color: var(--main-color2, #667eea);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.premium-btn-wishlist:hover, .premium-btn-compare:hover, .premium-btn-share:hover {
    background: var(--main-color2, #667eea);
    color: white;
    border-color: var(--main-color2, #667eea);
}

.premium-additional-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== SECCIÓN DE COMPRA PREMIUM ===== */
.premium-purchase-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.premium-purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.premium-stock-available {
    color: #10b981 !important;
    font-weight: 600;
}

.premium-stock-unavailable {
    color: #ef4444 !important;
    font-weight: 600;
}

.premium-quantity-section {
    margin-bottom: 2rem;
}

.premium-quantity-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1a202c !important;
    margin-bottom: 1rem;
}

.premium-quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-bottom: 0.5rem;
}

.premium-qty-btn {
    background: #f8fafc;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-qty-btn:hover:not(:disabled) {
    background: var(--main-color2, #667eea);
    color: white;
}

.premium-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.premium-qty-input {
    border: none;
    padding: 0.75rem;
    text-align: center;
    width: 80px;
    font-weight: 600;
    background: white;
    color: #1a202c;
}

.premium-quantity-info {
    font-size: 0.875rem;
    color: #64748b !important;
}

/* ===== CARACTERÍSTICAS PREMIUM ===== */
.premium-features-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.premium-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--main-color2, #667eea), var(--main-color3, #764ba2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.premium-feature-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c !important;
}

.premium-feature-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b !important;
}

/* ===== ATRIBUTOS PREMIUM ===== */
.premium-attributes {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.premium-attributes-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c !important;
    margin-bottom: 1rem;
}

.premium-attributes-title i {
    color: var(--main-color2, #667eea);
}

.premium-attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.premium-attribute-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.premium-attribute-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    border-color: var(--main-color2, #667eea);
}

.premium-attribute-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4a5568 !important;
}

.premium-attribute-name i {
    color: var(--main-color2, #667eea);
    font-size: 0.875rem;
}

.premium-attribute-value {
    color: #1a202c !important;
    font-weight: 500;
}

/* ===== MODO PANTALLA COMPLETA ===== */
.premium-main-display.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: black;
    border-radius: 0;
}

.premium-main-display.fullscreen-mode .premium-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== DESCRIPCIÓN PREMIUM ===== */
.premium-description-content {
    line-height: 1.7;
    color: #4a5568 !important;
    font-size: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

/* ===== ACCIONES DE PRODUCTOS RELACIONADOS ===== */
.related-product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.related-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 80px;
}

.related-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.related-product-btn span, .related-product-btn i {
    color: white !important;
}

/* Controles del carrito para productos relacionados */
.related-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-cart-controls .cartbutton {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0.75rem;
    border-radius: 6px;
}

.related-cart-controls .productqty {
    width: 40px !important;
    height: 32px;
    text-align: center;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

/* ===== ESTILOS PARA LA SECCIÓN DE VARIANTES ===== */
.premium-variants-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.premium-variant-group {
    margin-bottom: 2rem;
}

.premium-variant-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c !important;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-variant-label i {
    color: var(--main-color2, #667eea);
}

.premium-variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.premium-variant-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.premium-variant-option:hover {
    border-color: var(--main-color2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.premium-variant-option.selected {
    border-color: var(--main-color2, #667eea);
    background: linear-gradient(135deg, var(--main-color2, #667eea), var(--main-color3, #764ba2));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

/* Estilos específicos para variantes de color */
.color-variant {
    min-width: 100px;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.premium-variant-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.premium-variant-price {
    color: #059669;
    font-weight: 700;
    font-size: 0.875rem;
}

.variant-stock {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 500;
}

.variant-no-stock {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
}

.premium-variant-price {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.premium-variant-option.selected .premium-variant-price {
    opacity: 1;
}

/* ===== ESTILOS PARA OUT OF STOCK ===== */
.premium-out-of-stock {
    text-align: center;
    padding: 2rem;
}

.premium-btn-notify {
    background: #9ca3af;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* ===== CONTROLES DE CARRITO CUSTOM ===== */
.product-cart-controls {
    display: contents;
}

.product-cart-controls .cartbutton {
    background: linear-gradient(135deg, var(--main-color2, #667eea) 0%, var(--main-color3, #764ba2) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.product-cart-controls .cartbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.product-cart-controls .cartbutton.minus,
.product-cart-controls .cartbutton.plus {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-cart-controls .qty {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    background: white;
}

.product-cart-controls .cartdelete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.product-cart-controls .cartdelete:hover {
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* Estilos cuando se muestran los controles de cantidad */
.premium-action-buttons .product-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.premium-action-buttons .product-cart-controls .cartbutton {
    flex: 0 0 auto;
}

.premium-action-buttons .product-cart-controls .qty {
    flex: 0 0 60px;
    margin: 0;
}

/* Mantener estilo premium cuando se cambia a controles */
.premium-action-buttons .add-to-cart-btn {
    width: 100%;
    justify-content: center;
}

/* Controles de carrito para productos relacionados */
.related-cart-controls .cartbutton {
    width: 40px;
    height: 40px;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.related-cart-controls .cartbutton.minus,
.related-cart-controls .cartbutton.plus {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.related-cart-controls .qty {
    width: 40px;
    height: 30px;
    padding: 0.25rem;
    font-size: 0.8rem;
}

/* Responsive para controles de carrito */
@media (max-width: 768px) {
    .premium-action-buttons .product-cart-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .premium-action-buttons .product-cart-controls .qty {
        flex: 0 0 auto;
        width: 80px;
    }
}

/* ===== MEJORAS RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-premium-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .premium-gallery-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .premium-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-premium-container {
        padding: 1rem;
    }
    
    .premium-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .product-badges-header {
        align-self: stretch;
        justify-content: center;
    }
    
    .premium-product-title {
        font-size: 2rem;
    }
    
    .premium-main-display {
        height: 300px;
    }
    
    .premium-variant-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .premium-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .premium-additional-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Productos relacionados responsive */
    .related-products-section {
        padding: 3rem 0;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .related-products-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .related-product-image {
        height: 180px;
    }
    
    .related-product-info {
        padding: 1rem;
    }
    
    .related-product-name {
        font-size: 1rem;
    }
    
    .related-price-current {
        font-size: 1.1rem;
    }
    
    .related-product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .related-product-btn.view {
        width: 100%;
    }
    
    .related-product-btn.quick-add {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .premium-header {
        padding: 1rem;
    }
    
    .premium-product-title {
        font-size: 1.5rem;
    }
    
    .premium-pricing-section {
        padding: 1.5rem;
    }
    
    .premium-price-current {
        font-size: 2rem !important;
    }
    
    .premium-single-price .premium-price-current {
        font-size: 2.5rem !important;
    }
    
    .premium-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .premium-variant-options {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    /* Productos relacionados móvil */
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .related-product-image {
        height: 200px;
    }
    
    .related-product-card {
        border-radius: 15px;
    }
}

/* === ESTILOS ESPECÍFICOS PARA VIDEOS - TEMPLATE PREMIUM === */

/* Sección de videos premium */
.product-premium-videos {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.product-premium-videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.premium-videos-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.premium-videos-title i {
    color: #ffd700;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: premiumPulse 3s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

/* Video único embebido premium */
.product-premium-videos .premium-single-video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: #000;
    margin: 0;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.product-premium-videos .premium-single-video iframe {
    border-radius: 16px;
    min-height: 500px;
}

/* Galería de videos premium */
.product-premium-videos .premium-video-gallery {
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    position: relative;
    z-index: 1;
}

.product-premium-videos .premium-video-gallery .video-gallery-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-premium-videos .premium-video-gallery .video-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 50%,
        rgba(255, 215, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-premium-videos .premium-video-gallery .video-gallery-item:hover {
    border-color: #ffd700;
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.3);
}

.product-premium-videos .premium-video-gallery .video-gallery-item:hover::before {
    opacity: 1;
}

.product-premium-videos .video-thumbnail {
    transition: all 0.4s ease;
    position: relative;
    z-index: 0;
}

.product-premium-videos .video-gallery-item:hover .video-thumbnail {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.product-premium-videos .video-play-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(15px);
    border: 4px solid #ffd700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.product-premium-videos .video-play-overlay i {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #ffd700;
}

.product-premium-videos .video-main-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a202c;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 16px 0;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    z-index: 3;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-premium-videos .video-title {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.product-premium-videos .video-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Responsive para videos premium */
@media (max-width: 1200px) {
    .product-premium-videos {
        margin: 2.5rem 0;
        padding: 2rem;
    }
    
    .premium-videos-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-premium-videos .premium-single-video iframe {
        min-height: 400px;
    }
    
    .product-premium-videos .premium-video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-premium-videos {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .premium-videos-title {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }
    
    .product-premium-videos .premium-single-video iframe {
        min-height: 300px;
    }
    
    .product-premium-videos .premium-video-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .product-premium-videos {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .premium-videos-title {
        font-size: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .product-premium-videos .premium-single-video iframe {
        min-height: 220px;
    }
    
    .product-premium-videos .video-title {
        font-size: 1.125rem;
    }
}
