/*
=====================================
COMPONENTS CSS - COMPONENTES ESPECÍFICOS
Sistema Web Electrotienda
=====================================
*/

/* ====================================
   PRODUCT CARDS
==================================== */

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card .card-img-container {
    position: relative;
    background: #f8f9fa;
    padding: 20px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-container img {
    transform: scale(1.05);
}

.product-card .badge-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-card .badge-descuento {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    font-weight: bold;
    z-index: 2;
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .product-code {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.product-card .price-info {
    margin: auto 0 1rem 0;
}

.product-card .price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.product-card .price-levels {
    font-size: 0.8rem;
    color: #28a745;
    line-height: 1.2;
}

.product-card .product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.product-card .btn-quick-add {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card .btn-quick-view {
    width: 40px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================
   CHECKOUT COMPONENTS
==================================== */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkout-progress {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.checkout-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.step-indicator {
    position: relative;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: bold;
}

.step-indicator.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.step-indicator:hover {
    transform: scale(1.05);
}

.checkout-paso {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.checkout-paso.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.checkout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* ====================================
   MÉTODO DE ENVÍO/PAGO
==================================== */

.metodo-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cantidad-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.stock-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stock-disponible {
    font-weight: 600;
}

.stock-disponible.text-success {
    color: var(--success-color) !important;
}

.stock-disponible.text-warning {
    color: var(--warning-color) !important;
}

.stock-disponible.text-danger {
    color: var(--danger-color) !important;
}

/* ====================================
   PRECIOS ESCALONADOS
==================================== */

.precios-escalonados {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.precios-escalonados h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.precio-nivel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.precio-nivel:last-child {
    border-bottom: none;
}

.precio-nivel-cantidad {
    font-weight: 600;
    color: #6c757d;
}

.precio-nivel-precio {
    font-weight: 700;
    color: var(--primary-color);
}

.precio-nivel-ahorro {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

/* ====================================
   BOTONES DE ACCIÓN
==================================== */

.producto-acciones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-agregar-carrito {
    background: linear-gradient(135deg, var(--primary-color), #4dabf7);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-agregar-carrito::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;
}

.btn-agregar-carrito:hover::before {
    left: 100%;
}

.btn-agregar-carrito:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-comprar-ahora {
    background: linear-gradient(135deg, var(--success-color), #51cf66);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-comprar-ahora:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-compartir {
    background: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-compartir:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ====================================
   COMPARTIR SOCIAL
==================================== */

.compartir-opciones {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-1px);
}

.btn-email {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-email:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-copiar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-copiar:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ====================================
   CARRITO DE COMPRAS
==================================== */

.carrito-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carrito-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carrito-item-imagen {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrito-item-imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carrito-item-info h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.carrito-item-codigo {
    font-size: 0.8rem;
    color: #6c757d;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.carrito-item-color {
    font-size: 0.9rem;
    color: #495057;
}

.carrito-item-precio {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carrito-item-cantidad .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.carrito-item-cantidad input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.25rem;
}

.carrito-item-total {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
}

.carrito-item-eliminar {
    color: var(--danger-color);
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.carrito-item-eliminar:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

/* ====================================
   RESUMEN DEL CARRITO
==================================== */

.carrito-resumen {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.carrito-resumen h5 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.resumen-linea:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #dee2e6;
}

.resumen-linea.descuento {
    color: var(--success-color);
}

.resumen-linea.envio {
    color: var(--info-color);
}

.carrito-acciones {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ====================================
   CUPONES
==================================== */

.cupon-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.cupon-form h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.cupon-input-group input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cupon-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.cupon-aplicado {
    margin: 1rem 0;
}

.cupon-aplicado .alert {
    border-radius: 12px;
    border: none;
    font-weight: 600;
}

/* ====================================
   FILTROS Y BÚSQUEDA
==================================== */

.filtros-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filtros-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filtro-busqueda {
    flex: 1;
    min-width: 250px;
}

.filtro-busqueda input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.filtro-busqueda input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filtro-rubro select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.filtro-rubro select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filtro-orden select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.filtro-orden select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.vista-toggle .btn {
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.vista-toggle .btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.vista-toggle .btn:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* ====================================
   PAGINACIÓN
==================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.pagination .page-item .page-link {
    border: 2px solid #e9ecef;
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #e9ecef;
}

/* ====================================
   LOADING STATES
==================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================
   NOTIFICACIONES TOAST
==================================== */

#toast-container {
    z-index: 10000;
}

.toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    min-width: 300px;
}

.toast-body {
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.toast.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #4dabf7) !important;
}

.toast.bg-success {
    background: linear-gradient(135deg, var(--success-color), #51cf66) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b) !important;
}

.toast.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #ffd43b) !important;
    color: #2c3e50 !important;
}

/* ====================================
   BOTONES FLOTANTES
==================================== */

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1040;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.floating-btn:hover::before {
    width: 100%;
    height: 100%;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-btn.scroll-top {
    background: linear-gradient(135deg, var(--primary-color), #4dabf7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ====================================
   RESPONSIVE ESPECÍFICO PARA COMPONENTES
==================================== */

@media (max-width: 768px) {
    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checkout-steps::before,
    .checkout-progress-bar {
        display: none;
    }
    
    .step-indicator {
        position: relative;
        margin-bottom: 0.5rem;
    }
    
    .metodo-option {
        padding: 1rem;
    }
    
    .metodo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .producto-imagenes {
        position: static;
        margin-bottom: 2rem;
    }
    
    .imagen-principal {
        height: 300px;
    }
    
    .imagenes-thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .colores-opciones {
        justify-content: center;
    }
    
    .color-option {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }
    
    .producto-acciones {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem;
        margin: 0 -1rem;
        border-top: 1px solid #e9ecef;
        z-index: 100;
    }
    
    .carrito-item {
        padding: 1rem;
    }
    
    .carrito-item-imagen {
        width: 80px;
        height: 80px;
    }
    
    .carrito-resumen {
        position: static;
        margin-top: 2rem;
    }
    
    .floating-buttons {
        bottom: 80px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .filtros-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtro-busqueda,
    .filtro-rubro select,
    .filtro-orden select {
        min-width: auto;
        width: 100%;
    }
}

/* ====================================
   ANIMACIONES ADICIONALES
==================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out;
}

/* ====================================
   UTILIDADES ESPECIALES
==================================== */

.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

.user-select-none {
    user-select: none;
}

.overflow-hidden {
    overflow: hidden;
}

.transition-all {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.border-hover:hover {
    border-color: var(--primary-color) !important;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ====================================
   MODO OSCURO (OPCIONAL)
==================================== */

@media (prefers-color-scheme: dark) {
    .product-card,
    .checkout-paso,
    .carrito-item,
    .carrito-resumen,
    .filtros-section {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    .product-card .card-title,
    .checkout-paso h5,
    .carrito-resumen h5 {
        color: #ecf0f1;
    }
    
    .metodo-option {
        background: #34495e;
        border-color: #4a5568;
        color: #ecf0f1;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #34495e 25%, #4a5568 50%, #34495e 75%);
        background-size: 200% 100%;
    }
}d #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.metodo-option:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.02);
}

.metodo-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.metodo-option.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.metodo-option.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.metodo-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metodo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.metodo-titulo {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.metodo-descripcion {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.metodo-precio {
    font-weight: 600;
    color: var(--success-color);
    margin-top: 0.5rem;
}

.metodo-precio.gratis {
    color: var(--success-color);
}

.metodo-precio.con-costo {
    color: var(--warning-color);
}

/* ====================================
   RESUMEN DE COMPRA
==================================== */

.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.order-summary h5 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-line:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #dee2e6;
}

.summary-line.descuento {
    color: var(--success-color);
}

.summary-line.envio {
    color: var(--info-color);
}

/* ====================================
   GALERÍA DE PRODUCTO
==================================== */

.producto-imagenes {
    position: sticky;
    top: 100px;
}

.imagen-principal {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-principal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.imagen-navegacion {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.imagen-principal:hover .imagen-navegacion {
    opacity: 1;
}

.imagen-navegacion:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.imagen-navegacion.anterior {
    left: 10px;
}

.imagen-navegacion.siguiente {
    right: 10px;
}

.imagenes-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ====================================
   VARIANTES DE COLOR
==================================== */

.variantes-colores {
    margin: 2rem 0;
}

.variantes-titulo {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.colores-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 3px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    overflow: hidden;
}

.color-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Colores específicos */
.color-option[data-color="Negro"] { background: #2c3e50; color: white; }
.color-option[data-color="Blanco"] { background: #ecf0f1; color: #2c3e50; }
.color-option[data-color="Rojo"] { background: #e74c3c; color: white; }
.color-option[data-color="Azul"] { background: #3498db; color: white; }
.color-option[data-color="Verde"] { background: #27ae60; color: white; }
.color-option[data-color="Amarillo"] { background: #f1c40f; color: #2c3e50; }
.color-option[data-color="Naranja"] { background: #e67e22; color: white; }
.color-option[data-color="Violeta"] { background: #9b59b6; color: white; }
.color-option[data-color="Rosa"] { background: #e91e63; color: white; }
.color-option[data-color="Gris"] { background: #95a5a6; color: white; }

/* ====================================
   CONTROLES DE CANTIDAD
==================================== */

.cantidad-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.cantidad-controls .btn-cantidad {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cantidad-controls .btn-cantidad:hover {
    transform: scale(1.1);
}

.cantidad-input {
    width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px soli