/**
 * Cart.css - Estilos específicos para el carrito
 * 
 * Contiene estilos personalizados para la página de carrito
 */

/* Contenedor principal del carrito */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.cart-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.cart-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cart-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.divider {
    border: none;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 3rem 0;
}

/* Estado de la compra */
.checkout-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

/* Nuevos estilos para checkout-steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    position: relative;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
    z-index: 2;
    pointer-events: none;
}

.checkout-step:hover {
    transform: none;
}

.step-divider {
    height: 4px;
    flex-grow: 1;
    width: 60px;
    background-color: #dddddd;
    margin: 0 1rem;
    position: relative;
    top: -30px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.checkout-step.active + .step-divider,
.step-divider.active {
    background-color: #4CAF50;
    background-image: none;
}

.step-text {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.checkout-step.active .step-text {
    color: #333;
    font-weight: 600;
}

/* Fin de nuevos estilos */

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
    z-index: 2;
    pointer-events: none;
}

/* Eliminar el efecto hover */
.status-step:hover {
    transform: none;
}

.status-step.active .step-icon {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 8px 16px rgba(var(--color-primary-rgb), 0.3);
}

.status-step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.checkout-step.active .step-icon {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-background);
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.step-label {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.status-line {
    height: 4px;
    flex-grow: 1;
    background-color: #dddddd;
    max-width: 100px;
    margin: 0 1rem;
    position: relative;
    top: -30px;
    z-index: 1;
    display: block !important;
}

.status-step.active + .status-line,
.status-line.active {
    background-color: var(--color-primary);
    background-image: none;
}

/* Estilo para carrito vacío */
.woocommerce-info, 
.woocommerce-message,
.woocommerce-error {
    background-color: white;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.woocommerce-info {
    border-left-color: var(--color-info);
}

.woocommerce-error {
    border-left-color: var(--color-danger);
}

.return-to-shop {
    margin-top: 3rem;
    text-align: center;
}

.return-to-shop .button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(var(--color-primary-rgb), 0.2);
}

.return-to-shop .button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(var(--color-primary-rgb), 0.3);
}

/* Estilo para productos en el carrito */
.woocommerce-cart-form {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 90, 254, 0.10);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.woocommerce-cart-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(61, 90, 254, 0.07);
    overflow: hidden;
    margin-bottom: 0;
}

.shop_table th {
    background: #f6f8ff;
    font-weight: 700;
    color: #1a46af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.08rem;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.shop_table td {
    padding: 18px 20px;
    font-size: 1.08rem;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    vertical-align: middle;
}

.shop_table tr:last-child td {
    border-bottom: none;
}

.product-remove a {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fbe9e7;
    margin: 0 auto;
}

.product-remove a:hover {
    color: #fff;
    background-color: #e74c3c;
    transform: rotate(90deg) scale(1.08);
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(61, 90, 254, 0.10);
    background: #f6f8ff;
    padding: 6px;
}

.product-name {
    font-weight: 700;
    color: #1a46af;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.product-price, .product-subtotal {
    font-weight: 800;
    color: #3d5afe;
    font-size: 1.1rem;
}

.quantity input {
    width: 60px;
    padding: 0.7rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #1a46af;
    background: #f6f8ff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quantity input:focus {
    border-color: #3d5afe;
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.10);
    outline: none;
}

.actions {
    padding: 2rem 1.5rem !important;
    background-color: #f6f8ff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.coupon {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.coupon input {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    min-width: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.coupon input:focus {
    border-color: #3d5afe;
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.10);
    outline: none;
}

.coupon button,
.actions button.button {
    background: linear-gradient(90deg, #1a46af 0%, #3d5afe 100%);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(61, 90, 254, 0.10);
    margin-left: 0.5rem;
}

.coupon button:hover,
.actions button.button:hover {
    background: linear-gradient(90deg, #3d5afe 0%, #1a46af 100%);
    transform: translateY(-2px) scale(1.04);
}

/* Estilo para el resumen del carrito */
.cart-collaterals {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 90, 254, 0.10);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2.5rem;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.cart-collaterals:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.cart_totals {
    padding: 2.5rem 2rem 2rem 2rem;
}

.cart_totals h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1a46af;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 1rem;
    position: relative;
    letter-spacing: -1px;
}

.cart_totals h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #3d5afe;
}

.cart_totals table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(61, 90, 254, 0.07);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart_totals th,
.cart_totals td {
    padding: 18px 20px;
    font-size: 1.08rem;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.cart_totals th {
    background: #f6f8ff;
    font-weight: 700;
    color: #1a46af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart_totals tr:last-child th,
.cart_totals tr:last-child td {
    border-bottom: none;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3d5afe;
    background: #f6f8ff;
    border-top: 2px solid #e5e5e5;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.cart_totals .shipping td {
    font-size: 1rem;
    color: #222;
}

.cart_totals ul {
    margin: 0;
    padding-left: 18px;
}

.cart_totals .product-total {
    text-align: right;
}

.cart_totals .product-name {
    font-weight: 600;
    color: #1a46af;
}

.wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #1a46af 0%, #3d5afe 100%);
    color: #fff;
    padding: 1.3rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(61, 90, 254, 0.13);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 18px;
}

.wc-proceed-to-checkout .button:hover {
    background: linear-gradient(90deg, #3d5afe 0%, #1a46af 100%);
    transform: translateY(-2px) scale(1.02);
}

/* Estilo para sugerencias de productos vacíos */
.empty-cart-suggestions {
    margin: 4rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-cart-suggestions h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text-dark);
    position: relative;
}

.empty-cart-suggestions h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Beneficios de compra */
.shopping-benefits {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.benefit-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.benefit-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* CTA Button */
.cta-button {
    display: block;
    width: max-content;
    margin: 4rem auto;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 2px solid var(--color-primary);
    padding: 1rem 3rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: white;
}

.cta-button:hover::before {
    width: 100%;
}

.fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .cart-header h1 {
        font-size: 2.2rem;
    }
    
    .cart-header p {
        font-size: 1rem;
    }
    
    .shopping-benefits {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 2rem 1rem;
    }

    .cart-header h1 {
        font-size: 2rem;
    }

    .checkout-status {
        margin: 2rem 0;
    }
    
    .checkout-steps {
        margin: 2rem 0;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .status-line {
        max-width: 50px;
        margin: 0 0.5rem;
    }
    
    .step-divider {
        width: 30px;
        margin: 0 0.5rem;
    }

    .step-label {
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }

    /* Tabla de carrito responsiva */
    .shop_table thead {
        display: none;
    }

    .shop_table tr {
        display: block;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: none;
        text-align: right;
    }

    .shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--color-text-dark);
    }

    .product-thumbnail {
        justify-content: center;
    }

    .product-thumbnail::before {
        display: none;
    }

    .actions {
        padding: 1.5rem !important;
    }

    .coupon {
        flex-direction: column;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .coupon input {
        width: 100%;
    }

    .coupon button {
        width: 100%;
    }

    .actions .button {
        width: 100%;
        margin-top: 1rem !important;
    }

    .shopping-benefits {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .benefit-item {
        min-width: 100%;
    }
    
    .cta-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cart-header h1 {
        font-size: 1.8rem;
    }
    
    .cart-header::after {
        width: 60px;
        height: 3px;
        margin-top: 1rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .status-line {
        max-width: 30px;
    }
    
    .step-divider {
        width: 20px;
        top: -20px;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
    }
}

/* Eliminar estilos del modal de zoom de imagen */
.image-modal,
.image-modal-content,
.close-modal,
.image-modal.show {
  display: none !important;
  opacity: 1 !important;
  animation: none !important;
  pointer-events: none !important;
}

/* Mensaje de actualización */
.update-indicator {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--color-info-rgb), 0.1);
    color: var(--color-info);
    border-radius: 4px;
    font-weight: 500;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Estilo para info de cupón */
.coupon-info {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Estilos para categorías de productos */
.empty-cart-subtext {
    text-align: center;
    color: var(--color-text-light);
    margin: -1rem auto 2rem;
    max-width: 600px;
    font-size: 1.05rem;
}

.empty-cart-categories {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}

.empty-cart-categories h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: white;
    border: 2px solid var(--color-border);
    border-radius: 30px;
    color: var(--color-text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.category-button:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.category-button:hover::before {
    width: 100%;
}

/* Estilos para asistencia al cliente */
.customer-support {
    margin: 4rem 0;
    padding: 2.5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-support:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.support-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-right: 2rem;
    flex-shrink: 0;
}

.support-content {
    flex: 1;
}

.support-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-text-dark);
}

.support-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 70%;
}

.support-buttons {
    display: flex;
    gap: 1rem;
}

.support-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-background-light);
    border-radius: 8px;
    color: var(--color-text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-button.primary {
    background-color: var(--color-primary);
    color: white;
}

.support-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.support-button.primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 8px 15px rgba(var(--color-primary-rgb), 0.2);
}

.support-button:not(.primary):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.support-button i {
    margin-right: 0.5rem;
}

/* Estilos adicionales responsivos */
@media (max-width: 992px) {
    .support-content p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .customer-support {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .support-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .support-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .category-button {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 576px) {
    .category-button {
        width: 100%;
    }
}

button[name="update_cart"] {
  display: none !important;
} 