.tracking-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 0;
}

.search-section {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    height: 4rem;
    width: 70%;
    margin: 1rem auto;
    border: 1px solid var(--color-gray-light);
    padding: 0.5rem;
    border-radius: 2rem;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0 1rem;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
}
.section-title {
    font-weight: 500;
}
/* Order Container */
.order-container {
    display: flex;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.order-main {
    width: 65%;
}

.order-sidebar {
    width: 20%;
    min-width: 250px;
    margin-top: var(--font-size-3xl);
}

/* Order Table */
.order-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

/* === INICIO: CÓDIGO MODIFICADO PARA LA TABLA === */
.order-table {
    width: 100%;
    /* Se usa 'collapse' para controlar el espaciado con padding */
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.order-table th,
.order-table td {
    /* Se usa padding para crear los 'gaps' y se alinea el texto */
    padding: 0 1rem 1rem 0; /* Relleno: arriba, derecha, abajo, izquierda */
    text-align: left;
    vertical-align: middle;
}

/* Se elimina el padding inferior de la última fila para evitar doble espaciado */
.order-table tbody tr:last-child td {
    padding-bottom: 0;
}

/* Se elimina el padding derecho de la última columna para que llegue al borde */
.order-table th:last-child,
.order-table td:last-child {
    padding-right: 0;
}

/* --- Alineación de encabezados y celdas específicas --- */

/* Encabezado de 'Planos' centrado */
.order-table th:nth-child(3) {
    text-align: center;
}

/* Encabezado de 'Total' a la derecha */
.order-table th:last-child {
    text-align: right;
}

/* Celda de 'Planos' centrada (se mantiene) */
.order-table .product-manual {
    text-align: center;
}

/* Celda de 'Total' a la derecha (se mantiene) */
.order-table .product-total {
    text-align: right;
}
/* === FIN: CÓDIGO MODIFICADO PARA LA TABLA === */


.product-image-cell {
    width: 100px; /* Ancho fijo para la celda de la imagen */
}

.product-image-container {
    position: relative;
    display: block; /* Ajustado para el nuevo layout sin padding */
}

.product-image-container img {
    width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.quantity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    border: 2px solid var(--color-white);
}


.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manual-icon {
    width: 24px;
    height: auto;
    display: inline-block; /* Asegura que el centrado funcione correctamente */
}

/* Order Summary */
.order-summary {
    display: flex;
    justify-content: flex-end; /* Alinea el resumen a la derecha */
    margin: 2rem 0;
}

.summary-details {
    width: 40%;
    min-width: 200px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}
.summary-row h5 {
    font-size:14px;
}
.summary-row p {
    font-size: 14px;
}
.order-total h4 {
    font-size: 19px;
    font-weight: 500;
}
.order-total p {
    font-size: 19px;
    font-weight: 500;
}
/* Status Timeline */
.status-timeline {
    position: relative;
    padding-left: 20px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 12px; /* Ajustado para alinear con el icono */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.status-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.status-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    background-color: white; /* Asegura que el icono tape la línea */
    border-radius: 50%; /* Opcional: para que el fondo sea redondo */
}
h5.status-title {
    font-weight: 400;
    font-size: 14px;
}
p.status-date {
    font-size: 13px;
    color: gray;
}

/* Delivery Section */
.info-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    align-items: center;
}
.delivery-info p {
    font-size: 14px;
    font-weight: 500;
}
/* Responsive Design */
@media screen and (max-width: 1200px) {
    .search-form {
        width: 100%;
    }

    .order-container {
        flex-direction: column;
    }
    .order-main {
        width: 100%;
    }
    .order-sidebar {
        margin: 2rem 0 0 0;
        width: 100%;
    }
    .order-table {
        font-size: 13px;
    }
    
    .order-table th, .order-table td {
        /* padding-right: 0.5rem; */ /* Reduce el gap en móviles */
        padding-bottom: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .product-image-container img {
        width: 60px;
    }
    .product-image-cell {
        width: 70px;
    }

    .order-summary {
       justify-content: center; /* Centra el resumen en móviles */
    }

    .summary-details {
        width: 100%;
    }

    .status-timeline {
        padding-left: 0;
    }

    .status-timeline::before {
        left: 12px;
    }
}
