.tracking-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 15px; /* This creates the left/right space on mobile */
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

.tracking-form-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-primary{
    display: block;      /* Change from inline-block to block */
    margin: 20px auto 0; /* 'auto' on left and right centers the block */
    width: fit-content;  /* Ensures the button doesn't stretch to 100% width */
    padding: 12px 25px;
    /* Changed from --primary-color to --primary-dark */
    background-color: var(--primary-dark);
    color: white;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Container for the Table */
.order-result-card{
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.95rem;
}

.order-items-table thead th {
    background-color: #f8f9fa;
    padding: 12px;
    border-bottom: 2px solid #eee;
    color: #555;
}

.order-items-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Product Image in Table */
.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-cell img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* Specifications List */
.specs-cell ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

/* Total Row */
.grand-total-row {
    background-color: #fff9f0;
    font-weight: bold;
}

.grand-total-row td {
    padding: 15px !important;
    color: #e67e22;
    font-size: 1.1rem;
}

/* Header Flex for Status */
.order-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.details-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
}